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

/* --- 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;
}
/* Translucent back-button pill anchored inside the hero's top-left.
   Matches the pattern used on /weather-forecast. */
.tw-hero-back {
  position: absolute;
  top: 34px;
  left: 38px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px 7px 12px;
  background: rgba(0, 0, 0, 0.42);
  color: #fff !important;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2px;
  text-decoration: none !important;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  line-height: 1;
  transition: background 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}
.tw-hero-back:hover,
.tw-hero-back:focus {
  background: rgba(0, 0, 0, 0.62);
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.45);
  transform: translateX(-2px);
}
.tw-hero-back i {
  font-size: 11px;
  opacity: 0.9;
}
@media (max-width: 540px) {
  .tw-hero-back {
    top: 24px;
    left: 26px;
    font-size: 12px;
    padding: 6px 12px 6px 10px;
  }
}
.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; }
}

/* --- Quick Nav (anchor pills that jump to sections below) --- */
.tw-quicknav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 14px 0 18px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid #e3e7ec;
  border-radius: 14px;
  box-shadow: 0 2px 6px rgba(0,0,0,.04);
}
.tw-quicknav-label {
  font-size: 15px;
  font-weight: 700;
  color: #1a1a1a;
  margin-right: 4px;
}
.tw-quicknav-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  background: #f0f7ff;
  border: 1px solid #d0e2f2;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 600;
  color: #0a5e8c;
  text-decoration: none;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.tw-quicknav-btn:hover {
  background: #dbeaf8;
  border-color: #a9cbe8;
  transform: translateY(-1px);
}
.tw-quicknav-btn i { font-size: 14px; }
/* Scroll targets get top margin so the section title isn't hidden by any sticky nav */
.tw-section-anchor, #tw-events-section, #tw-recurring-section, #tw-upcoming-section, #tw-autofeed-section, #tw-tips-section {
  scroll-margin-top: 80px;
}
@media (max-width: 640px) {
  .tw-quicknav {
    padding: 12px;
    gap: 8px;
  }
  .tw-quicknav-label {
    flex-basis: 100%;
    margin-bottom: 2px;
  }
  .tw-quicknav-btn {
    padding: 8px 14px;
    font-size: 14px;
  }
}

/* --- 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 .fa {
  font-size: 14px;
  vertical-align: middle;
  margin-right: 2px;
}
.tw-tab.is-active .fa {
  color: #fff !important;
}

/* --- 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; }

/* Regalia thumbnail — replaces .tw-cat-dot for SPECIAL_EVENTS that have a
   matching cultural graphic. PNGs are transparent so the object floats on
   the white card. */
.tw-event-img {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 10px;
  overflow: hidden;
  margin-top: 2px;
}
.tw-event-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* 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;
}
.tw-event-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 0;
  margin-top: 4px;
}

/* --- 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;
}

/* Upcoming card variant with regalia thumbnail — flex layout pairs a square
   image (88px desktop / 72px mobile) with the existing card body. The body
   wrapper exists in both variants so the link/button block stacks naturally.
   PNGs are transparent so the object floats on the white card. */
.tw-upcoming-card--with-img {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 18px 16px 16px;
}
.tw-upcoming-img {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 10px;
  overflow: hidden;
}
.tw-upcoming-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.tw-upcoming-body { flex: 1; min-width: 0; }
@media (min-width: 640px) {
  .tw-upcoming-img {
    width: 88px;
    height: 88px;
  }
}

/* --- 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;
}

/* --- Auto-feed section (Ticketmaster) ---
   Rendered below the curated SPECIAL_EVENTS / RECURRING sections so the
   editorial layer always wins visual priority. Cards use modern grid. */
.tw-autofeed-section {
  margin-top: 36px;
}
.tw-autofeed-details {
  border-bottom: none;
}
.tw-autofeed-summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 16px;
  font-size: 24px;
  color: #1a1a1a;
  margin: 0 0 16px;
  padding: 12px 16px;
  border: 1px solid #e3e7ec;
  border-radius: 12px;
  background: #f7f9fb;
  line-height: 1.3;
  transition: background .15s ease, border-color .15s ease;
}
.tw-autofeed-summary::-webkit-details-marker { display: none; }
.tw-autofeed-summary::marker { content: ''; }
.tw-autofeed-summary:hover {
  background: #eef3f8;
  border-color: #cdd6e0;
}
.tw-autofeed-summary-label {
  font-weight: 700;
  display: inline-flex;
  align-items: center;
}
.tw-autofeed-summary-label i {
  margin-right: 8px;
  color: #0a5e8c;
}
.tw-autofeed-summary-hint {
  font-size: 14px;
  color: #5a6470;
  font-weight: 400;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.tw-autofeed-summary-hint::after {
  content: '\25BC';
  font-size: 11px;
  color: #0a5e8c;
  transition: transform .2s ease;
  display: inline-block;
}
.tw-autofeed-details[open] .tw-autofeed-summary-hint::after {
  transform: rotate(180deg);
}
.tw-autofeed-details[open] .tw-autofeed-summary-hint-text {
  display: none;
}
@media (max-width: 520px) {
  .tw-autofeed-summary {
    font-size: 20px;
    padding: 10px 14px;
  }
  .tw-autofeed-summary-hint {
    font-size: 13px;
  }
}
.tw-autofeed-intro {
  font-size: 16px;
  color: #555;
  margin: 0 0 18px;
  line-height: 1.55;
}
.tw-autofeed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.tw-autofeed-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e3e7ec;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 6px rgba(0,0,0,.05);
  transition: transform .15s ease, box-shadow .15s ease;
  box-sizing: border-box;
}
.tw-autofeed-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,.12);
}
.tw-autofeed-img {
  width: 100%;
  height: 160px;
  background-color: #e8eef4;
  background-size: cover;
  background-position: center center;
}
.tw-autofeed-img-placeholder {
  background: linear-gradient(135deg, #e8eef4 0%, #d2dce6 100%);
}
.tw-autofeed-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.tw-autofeed-island {
  display: inline-block;
  align-self: flex-start;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 3px 10px;
  border-radius: 12px;
  color: #fff;
  margin-bottom: 4px;
}
.tw-autofeed-island.tw-island-oahu       { background: #F27A24; }
.tw-autofeed-island.tw-island-maui       { background: #1866B4; }
.tw-autofeed-island.tw-island-big-island { background: #c3232f; }
.tw-autofeed-island.tw-island-kauai      { background: #1D9771; }
.tw-autofeed-title {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
  color: #1a1a1a;
}
.tw-autofeed-date {
  font-size: 15px;
  font-weight: 600;
  color: #0a5e8c;
  margin: 0;
}
.tw-autofeed-venue {
  font-size: 14px;
  color: #555;
  margin: 0;
  line-height: 1.4;
}
.tw-autofeed-price {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0;
}
.tw-autofeed-source {
  font-size: 11px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-top: auto;
  padding-top: 6px;
}
/* Small inline "Read our guide" text link to an internal Hawaii-Guide page */
.tw-internal-link {
  display: inline-flex;
  align-items: center;
  margin-top: 6px;
  margin-right: 12px;
  font-size: 13px;
  font-weight: 600;
  color: #c3232f;
  text-decoration: none;
}
.tw-internal-link::after {
  content: ' \2192';
  font-size: 14px;
  margin-left: 4px;
}
.tw-internal-link:hover {
  color: #8c1923;
  text-decoration: underline;
}
/* Small inline "Official site" text link under curated card descriptions */
.tw-official-link {
  display: inline-flex;
  align-items: center;
  margin-top: 6px;
  margin-right: 12px;
  font-size: 13px;
  font-weight: 600;
  color: #0a5e8c;
  text-decoration: none;
}
.tw-official-link::after {
  content: ' \2197';
  font-size: 12px;
  margin-left: 2px;
}
.tw-official-link:hover {
  color: #084a6e;
  text-decoration: underline;
}

/* Affiliate CTA button on curated recurring/upcoming cards (luaus, etc.) */
/* Uses GetYourGuide brand red since our luau buttons point there */
.tw-affiliate-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 9px 16px;
  background: #c8102e;
  color: #fff;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: background .15s ease, transform .15s ease;
}
.tw-affiliate-btn:hover {
  background: #a40d25;
  color: #fff;
  transform: translateY(-1px);
  text-decoration: none;
}
.tw-affiliate-btn i { font-size: 12px; }

/* Tours CTA — island-aware Viator callout under the auto-feed */
.tw-tours-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 26px 0 10px;
  padding: 22px 26px;
  background: linear-gradient(135deg, #fff7ee 0%, #ffe8d3 100%);
  border: 1px solid #f5d5b0;
  border-radius: 18px;
  box-sizing: border-box;
}
.tw-tours-cta-body { flex: 1 1 280px; min-width: 0; }
.tw-tours-cta-body h3 {
  font-size: 20px;
  font-weight: 700;
  color: #1a1a1a;
  margin: 0 0 6px;
  line-height: 1.25;
}
.tw-tours-cta-body p {
  font-size: 15px;
  color: #555;
  margin: 0;
  line-height: 1.5;
}
.tw-tours-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  background: #f27a24;
  color: #fff;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
  box-shadow: 0 3px 10px rgba(242,122,36,.35);
}
.tw-tours-cta-btn:hover {
  background: #d96818;
  color: #fff;
  transform: translateY(-1px);
  text-decoration: none;
  box-shadow: 0 5px 14px rgba(242,122,36,.45);
}
@media (max-width: 560px) {
  .tw-tours-cta {
    padding: 18px 18px;
    gap: 14px;
  }
  .tw-tours-cta-btn {
    width: 100%;
    justify-content: center;
    padding: 13px 20px;
  }
}

.tw-autofeed-attribution {
  font-size: 12px;
  color: #888;
  text-align: center;
  margin: 22px 0 0;
}
.tw-autofeed-attribution a {
  color: #0a5e8c;
  text-decoration: none;
}
.tw-autofeed-attribution a:hover { text-decoration: underline; }

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