/* ========================================================================== 
   TripGuidely — hotels.css (DEDICATED)
   Purpose:
   - ONLY for /hotels/ pages (neighborhood guides, booking rules, tables)
   - Keeps styles.css global and stable
   - Adds: pill-link, mini-grid polish, area table + badges, section rhythms
   - CWV-friendly: no layout thrash, safe overflow guards
   ========================================================================== */

body[data-page="guide"]{
  --h-pill-bg: rgba(255,255,255,.96);
  --h-pill-border: rgba(15,23,42,.10);
  --h-pill-shadow: 0 10px 22px rgba(2,6,23,.08);

  --h-soft: rgba(15,23,42,.06);
  --h-soft2: rgba(15,23,42,.10);

  --h-table-radius: 18px;
  --h-table-line: rgba(15,23,42,.10);

  --h-badge-text: rgba(15,23,42,.92);
}

/* --------------------------------------------------------------------------
   Quick Nav pills + “pill-link”
   -------------------------------------------------------------------------- */

.pill-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding: 12px 14px;
  border-radius: 999px;
  text-decoration:none;
  font-weight: 900;
  letter-spacing: -0.15px;
  color: var(--text);
  background: var(--h-pill-bg);
  border: 1px solid var(--h-pill-border);
  box-shadow: var(--h-pill-shadow);
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease, background .12s ease;
  min-width: 0;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pill-link:hover{
  transform: translateY(-1px);
  border-color: rgba(18,207,208,.28);
  box-shadow: 0 18px 44px rgba(2,6,23,.12);
  background: #ffffff;
}

.pill-link:active{
  transform: translateY(0);
  box-shadow: 0 10px 22px rgba(2,6,23,.08);
}

/* Highlight higher-value hotel actions / key sections */
.pill-link[href*="#compare-hotels"],
.pill-link[href*="#tips"],
.pill-link[target="_blank"]{
  background: linear-gradient(135deg, rgba(18,207,208,.14), rgba(244,162,97,.12));
  border-color: rgba(18,207,208,.22);
}

body[data-page="guide"] .mini-grid{
  gap: 10px;
}

@media (max-width: 760px){
  .pill-link{
    width: 100%;
    justify-content: center;
    padding: 14px 16px;
    border-radius: 18px;
    font-size: 1.02rem;
    white-space: normal;
  }
}

/* --------------------------------------------------------------------------
   Section rhythm
   -------------------------------------------------------------------------- */

body[data-page="guide"] .content h3{
  margin: 18px 0 10px;
  font-size: 1.06rem;
  letter-spacing: -0.12px;
  color: var(--text);
}

body[data-page="guide"] .content h3 + .checklist{
  margin-top: 8px;
}

body[data-page="guide"] .checklist li strong{
  color: var(--text);
}

body[data-page="guide"] .callout{
  border-color: rgba(18,207,208,.20);
  box-shadow: 0 10px 22px rgba(2,6,23,.06);
}

/* --------------------------------------------------------------------------
   Table system
   -------------------------------------------------------------------------- */

.table-wrap{
  width:100%;
  overflow:auto;
  border-radius: var(--h-table-radius);
  border: 1px solid var(--h-table-line);
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(2,6,23,.06);
}

.table-wrap:focus{
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.table{
  width:100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 720px;
}

.table-cap{
  caption-side: top;
  text-align: left;
  padding: 12px 12px 10px;
  color: var(--muted2);
  font-size: .92rem;
}

.table thead th{
  position: sticky;
  top: 0;
  background:
    radial-gradient(520px 160px at 12% 0%, rgba(18,207,208,.10), transparent 60%),
    radial-gradient(560px 180px at 88% 0%, rgba(244,162,97,.10), transparent 62%),
    #ffffff;
  z-index: 1;
  text-align: left;
  padding: 12px 12px;
  font-size: .92rem;
  letter-spacing: .02em;
  color: rgba(15,23,42,.86);
  border-bottom: 1px solid rgba(15,23,42,.10);
}

.table tbody td{
  padding: 12px 12px;
  border-bottom: 1px solid rgba(15,23,42,.08);
  color: var(--muted);
  vertical-align: top;
}

.table tbody tr:hover td{
  background: rgba(15,23,42,.02);
}

.table tbody tr:last-child td{
  border-bottom: 0;
}

.table strong{
  color: var(--text);
}

.t-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(15,23,42,.10);
  background: rgba(15,23,42,.04);
  font-weight: 900;
  font-size: .86rem;
  line-height: 1;
  color: var(--h-badge-text);
  white-space: nowrap;
}

.t-badge-yes{
  background: linear-gradient(135deg, rgba(18,207,208,.18), rgba(18,207,208,.08));
  border-color: rgba(18,207,208,.22);
}

.t-badge-maybe{
  background: linear-gradient(135deg, rgba(244,162,97,.16), rgba(244,162,97,.08));
  border-color: rgba(244,162,97,.22);
}

.t-badge-no{
  background: rgba(15,23,42,.05);
  border-color: rgba(15,23,42,.14);
}

.t-badge-anchor{
  background: linear-gradient(135deg, rgba(18,207,208,.16), rgba(244,162,97,.12));
  border-color: rgba(18,207,208,.20);
}

.t-badge-flex{
  background: rgba(15,23,42,.04);
  border-color: rgba(15,23,42,.12);
}

@media (max-width: 760px){
  .table{ min-width: 0; }
  .table thead{ display:none; }

  .table tbody tr{
    display:block;
    border-bottom: 1px solid rgba(15,23,42,.10);
  }

  .table tbody td{
    display:flex;
    gap: 10px;
    justify-content: space-between;
    align-items: baseline;
    border-bottom: 0;
    padding: 10px 12px;
  }

  .table tbody td::before{
    content: attr(data-label);
    font-weight: 900;
    color: rgba(15,23,42,.72);
    font-size: .86rem;
    flex: 0 0 auto;
    max-width: 46%;
  }

  .table-wrap{
    overflow: hidden;
  }
}

/* --------------------------------------------------------------------------
   Callout mini-grid
   -------------------------------------------------------------------------- */

body[data-page="guide"] .callout .mini-grid{
  margin-top: .75rem;
}

body[data-page="guide"] .callout .mini-grid .pill-link{
  box-shadow: 0 10px 22px rgba(2,6,23,.08);
}

/* --------------------------------------------------------------------------
   General polish
   -------------------------------------------------------------------------- */

body[data-page="guide"] .breadcrumbs{
  margin-top: 16px;
}

body[data-page="guide"] .section-title h2{
  letter-spacing: -0.12px;
}

body[data-page="guide"] .aff-note{
  color: var(--muted2);
}

body[data-page="guide"] .wrap,
body[data-page="guide"] .card{
  min-width: 0;
}

/* ==========================================================================
   HERO text: force white
   ========================================================================== */

body[data-page="guide"][data-section="hotels"] .hero{
  --hero-white: rgba(255,255,255,.96);
  --hero-white-soft: rgba(226,232,240,.90);
}

body[data-page="guide"][data-section="hotels"] .hero .kicker,
body[data-page="guide"][data-section="hotels"] .hero h1,
body[data-page="guide"][data-section="hotels"] .hero .lede,
body[data-page="guide"][data-section="hotels"] .hero .meta,
body[data-page="guide"][data-section="hotels"] .hero .meta time,
body[data-page="guide"][data-section="hotels"] .hero a{
  color: var(--hero-white) !important;
}

body[data-page="guide"][data-section="hotels"] .hero .lede{
  color: var(--hero-white-soft) !important;
}

body[data-page="guide"][data-section="hotels"] .hero .hero-overlay{
  background: linear-gradient(
    90deg,
    rgba(0,0,0,.42) 0%,
    rgba(0,0,0,.26) 38%,
    rgba(0,0,0,.12) 68%,
    rgba(0,0,0,.04) 100%
  );
}

/* ==========================================================================
   HERO readability + summary cards polish
   ========================================================================== */

body[data-page="guide"][data-section="hotels"] .hero .meta,
body[data-page="guide"][data-section="hotels"] .hero .meta p{
  color: rgba(255,255,255,.92) !important;
  text-shadow: 0 2px 10px rgba(0,0,0,.28);
}

body[data-page="guide"][data-section="hotels"] .hero h1,
body[data-page="guide"][data-section="hotels"] .hero .kicker,
body[data-page="guide"][data-section="hotels"] .hero .lede{
  text-shadow: 0 2px 14px rgba(0,0,0,.26);
}

body[data-page="guide"][data-section="hotels"] .hero .mini-grid{
  gap: 14px;
  margin-top: 18px;
}

body[data-page="guide"][data-section="hotels"] .hero .mini{
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(255,255,255,.28);
  box-shadow: 0 16px 34px rgba(0,0,0,.16);
  border-radius: 18px;
}

body[data-page="guide"][data-section="hotels"] .hero .mini b{
  color: #0f172a;
  font-weight: 900;
}

body[data-page="guide"][data-section="hotels"] .hero .mini span{
  color: #475569;
  font-weight: 600;
}

body[data-page="guide"][data-section="hotels"] .hero .mini-icon{
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  font-family: "Segoe UI Symbol","Segoe UI",Arial,sans-serif;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1;
  color: #0f172a;
  background: linear-gradient(135deg, rgba(18,207,208,.18), rgba(244,162,97,.14));
  border: 1px solid rgba(15,23,42,.10);
  box-shadow: 0 8px 18px rgba(2,6,23,.08);
}

body[data-page="guide"][data-section="hotels"] .hero .actions{
  margin-top: 18px;
  gap: 12px;
}

body[data-page="guide"][data-section="hotels"] .hero .btn{
  min-height: 56px;
  font-weight: 900;
  color: #0f172a !important;
  text-shadow: none !important;
}

body[data-page="guide"][data-section="hotels"] .hero .btn.primary{
  color: #ffffff !important;
  text-shadow: 0 1px 0 rgba(0,0,0,.10) !important;
}

body[data-page="guide"][data-section="hotels"] .hero .btn:not(.primary){
  background: rgba(255,255,255,.96);
  border-color: rgba(15,23,42,.10);
  box-shadow: 0 10px 22px rgba(2,6,23,.08);
}

body[data-page="guide"][data-section="hotels"] .hero .btn:not(.primary):hover{
  background: #ffffff;
  border-color: rgba(18,207,208,.24);
  box-shadow: 0 18px 44px rgba(2,6,23,.12);
}

@media (max-width: 760px){
  body[data-page="guide"][data-section="hotels"] .hero .mini-grid{
    gap: 12px;
  }

  body[data-page="guide"][data-section="hotels"] .hero .mini{
    border-radius: 16px;
  }

  body[data-page="guide"][data-section="hotels"] .hero .mini-icon{
    width: 40px;
    height: 40px;
    flex-basis: 40px;
    font-size: .95rem;
  }
}

/* ==========================================================================
   Hotels page — richer table + neighborhood content polish
   ========================================================================== */

body[data-page="guide"][data-section="hotels"] .table{
  min-width: 980px;
}

body[data-page="guide"][data-section="hotels"] .table thead th,
body[data-page="guide"][data-section="hotels"] .table tbody td{
  vertical-align: top;
}

body[data-page="guide"][data-section="hotels"] .table tbody td{
  line-height: 1.5;
}

body[data-page="guide"][data-section="hotels"] .table td strong{
  display: inline-block;
  color: var(--text);
}

body[data-page="guide"][data-section="hotels"] .content h3{
  margin-top: 22px;
}

body[data-page="guide"][data-section="hotels"] .content h3:first-of-type{
  margin-top: 8px;
}

body[data-page="guide"][data-section="hotels"] details summary{
  line-height: 1.45;
}

body[data-page="guide"][data-section="hotels"] .pill-link.js-aff{
  font-weight: 900;
}

@media (max-width: 760px){
  body[data-page="guide"][data-section="hotels"] .table tbody td{
    align-items: flex-start;
  }

  body[data-page="guide"][data-section="hotels"] .table tbody td::before{
    max-width: 42%;
  }
}
