/* ==========================================================================
   What's Happening This Week — /this-week
   All sizes in px (site base: html { font-size: 62.5% }, 1rem = 10px).
   ========================================================================== */

/* --- Hero --- */
.tw-hero {
  position: relative;
  border-radius: 80px 80px 80px 20px;
  overflow: hidden;
  margin: 10px 0 0;
  min-height: 240px;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center center;
  background-color: #1a2a3a;
}
.tw-hero-overlay {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 60px 5% 28px;
  background: linear-gradient(0deg, rgba(0,0,0,.62) 0%, rgba(0,0,0,.25) 60%, transparent 100%);
}
.tw-hero h1 {
  color: #fff;
  font-size: 34px;
  margin: 0 0 8px;
  text-shadow: 0 2px 8px rgba(0,0,0,.45);
  line-height: 1.15;
}
.tw-hero h1 i { margin-right: 8px; }
.tw-hero p {
  color: rgba(255,255,255,.92);
  font-size: 19px;
  margin: 0;
  max-width: 640px;
  text-shadow: 0 1px 4px rgba(0,0,0,.4);
  line-height: 1.5;
}
@media (min-width: 768px) {
  .tw-hero { min-height: 340px; }
  .tw-hero h1 { font-size: 42px; }
  .tw-hero p { font-size: 21px; }
}

/* --- Week Range Bar --- */
.tw-week-bar {
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 22px 0 8px;
  padding: 14px 20px;
  background: #f0f7ff;
  border-radius: 12px;
  border: 1px solid #d0e2f2;
}

/* --- Island Tabs --- */
.tw-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px auto 10px;
  padding: 0 12px;
  max-width: 780px;
}
.tw-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 12px 22px;
  border: 2px solid #ddd;
  border-radius: 40px;
  background: #fff;
  color: #555;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s ease;
  white-space: nowrap;
}
.tw-tab:hover {
  border-color: #bbb;
  color: #333;
  background: #f8f8f8;
}
.tw-tab.is-active {
  background: #0a5e8c;
  border-color: #0a5e8c;
  color: #fff;
}
.tw-tab .tw-tab-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
}

/* --- Category Filters --- */
.tw-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px auto 28px;
  padding: 0 12px;
}
.tw-filter {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 16px;
  border: 1px solid #ddd;
  border-radius: 20px;
  background: #fff;
  color: #666;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s ease;
}
.tw-filter:hover {
  border-color: #bbb;
  background: #f8f8f8;
}
.tw-filter.is-active {
  background: #eef5fa;
  border-color: #0a5e8c;
  color: #0a5e8c;
}
.tw-filter i { font-size: 13px; }

/* --- Day Sections --- */
.tw-day {
  margin: 0 0 28px;
}
.tw-day-header {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid #e8e8e8;
}
.tw-day-header .tw-day-label {
  font-size: 14px;
  font-weight: 600;
  color: #0a5e8c;
  text-transform: uppercase;
  letter-spacing: .6px;
  display: block;
  margin-bottom: 2px;
}

/* --- Event Cards --- */
.tw-event-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 640px) {
  .tw-event-grid { grid-template-columns: repeat(2, 1fr); }
}
.tw-event-card {
  background: #fff;
  border: 1px solid #e4e4e4;
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: box-shadow .2s ease;
}
.tw-event-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,.07);
}

/* Category dot */
.tw-cat-dot {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-top: 2px;
}
.tw-cat-market { background: #dcfce7; color: #166534; }
.tw-cat-music { background: #ede9fe; color: #5b21b6; }
.tw-cat-culture { background: #fef3c7; color: #92400e; }
.tw-cat-festival { background: #fee2e2; color: #991b1b; }
.tw-cat-outdoor { background: #dbeafe; color: #1e40af; }

/* Card content */
.tw-event-body { flex: 1; min-width: 0; }
.tw-event-name {
  font-size: 18px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 4px;
  line-height: 1.3;
}
.tw-event-meta {
  font-size: 14px;
  color: #777;
  margin: 0 0 6px;
  line-height: 1.4;
}
.tw-event-meta strong { color: #555; }
.tw-event-island {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 2px 8px;
  border-radius: 4px;
  display: inline-block;
  margin-right: 6px;
}
.tw-island-oahu { background: #fff3e0; color: #e65100; }
.tw-island-maui { background: #e3f2fd; color: #0d47a1; }
.tw-island-big-island { background: #fce4ec; color: #b71c1c; }
.tw-island-kauai { background: #e8f5e9; color: #1b5e20; }
.tw-event-desc {
  font-size: 15px;
  color: #555;
  margin: 0;
  line-height: 1.5;
}

/* --- Recurring Events Grid --- */
.tw-recurring-intro,
.tw-upcoming-intro {
  font-size: 17px;
  color: #555;
  line-height: 1.6;
  margin: 0 0 18px;
}
.tw-recurring-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 560px) {
  .tw-recurring-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .tw-recurring-grid { grid-template-columns: repeat(3, 1fr); }
}
.tw-recurring-card {
  background: #f7fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 18px 20px;
}
.tw-recurring-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 4px;
}
.tw-recurring-day {
  font-size: 13px;
  font-weight: 700;
  color: #0a5e8c;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin: 0 0 6px;
}
.tw-recurring-card p {
  font-size: 15px;
  color: #555;
  margin: 0;
  line-height: 1.5;
}

/* --- Upcoming Highlights --- */
.tw-upcoming-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 640px) {
  .tw-upcoming-grid { grid-template-columns: repeat(2, 1fr); }
}
.tw-upcoming-card {
  background: #fff;
  border: 1px solid #e4e4e4;
  border-left: 4px solid #0a5e8c;
  border-radius: 14px;
  padding: 20px 22px;
}
.tw-upcoming-card h3 {
  font-size: 18px;
  color: #1a1a1a;
  margin: 0 0 4px;
  font-weight: 700;
}
.tw-upcoming-date {
  font-size: 14px;
  color: #0a5e8c;
  font-weight: 600;
  margin: 0 0 6px;
}
.tw-upcoming-card p {
  font-size: 16px;
  color: #555;
  margin: 0;
  line-height: 1.55;
}

/* --- Section blocks --- */
.tw-section {
  margin: 40px 0;
}
.tw-section h2 {
  font-size: 24px;
  color: #1a1a1a;
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e8e8e8;
  line-height: 1.3;
}
.tw-section h2 i {
  margin-right: 8px;
  color: #0a5e8c;
}

/* --- Tips Grid --- */
.tw-tips-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 640px) {
  .tw-tips-grid { grid-template-columns: repeat(2, 1fr); }
}
.tw-tip-card {
  background: #f0f7ff;
  border: 1px solid #d0e2f2;
  border-radius: 14px;
  padding: 22px 24px;
}
.tw-tip-card h3 {
  font-size: 19px;
  color: #0a5e8c;
  margin: 0 0 8px;
  font-weight: 700;
}
.tw-tip-card p {
  font-size: 16px;
  color: #444;
  margin: 0;
  line-height: 1.6;
}

/* --- Bottom CTA --- */
.tw-bottom-cta {
  text-align: center;
  margin: 44px 0 30px;
  padding: 40px 28px;
  background: linear-gradient(135deg, #eef5fa 0%, #e0f0fa 100%);
  border-radius: 20px;
}
.tw-bottom-cta h3 {
  font-size: 26px;
  margin: 0 0 10px;
  color: #1a1a1a;
}
.tw-bottom-cta p {
  font-size: 19px;
  color: #444;
  margin: 0 0 22px;
  line-height: 1.55;
}
.tw-bottom-cta .tw-cta-btn {
  display: inline-block;
  padding: 16px 40px;
  background: #0a5e8c;
  color: #fff;
  border-radius: 40px;
  font-size: 19px;
  font-weight: 700;
  text-decoration: none;
  transition: background .2s ease;
}
.tw-bottom-cta .tw-cta-btn:hover {
  background: #084a6e;
}

/* --- Empty state --- */
.tw-empty {
  text-align: center;
  padding: 32px 20px;
  font-size: 16px;
  color: #888;
  grid-column: 1 / -1;
}

/* --- Print --- */
@media print {
  .tw-tabs, .tw-filters, .tw-bottom-cta { display: none; }
  .tw-hero { min-height: 80px; border-radius: 0; }
}
