/* ==========================================================================
   TripGuidely travel-guides.css
   Travel Guides Hub Page
   - Compatible with styles.css tokens
   - Reader-first layout
   - Stable cards and icon sizing
   - Lets components/map-explorer.css control the map component
   - CWV friendly
   ========================================================================== */


/* =========================================================
   PAGE BASICS
   ========================================================= */

.guides-page{
  display:grid;
  gap:40px;
  padding-block:28px 56px;
}

.guides-section{
  display:grid;
  gap:18px;
}

.section-title{
  display:grid;
  gap:8px;
}

.section-title h2{
  margin:0;
}

.section-title p{
  margin:0;
  color:var(--muted);
  max-width:760px;
}


/* =========================================================
   HERO — TRAVEL GUIDES
   ========================================================= */

.guides-hero{
  position:relative;
  overflow:hidden;
  border-bottom:1px solid var(--line);
  min-height:560px;
  display:flex;
  align-items:center;
  isolation:isolate;
}

.guides-hero__bg{
  position:absolute;
  inset:0;
  z-index:0;
}

.guides-hero__bg picture,
.guides-hero__bg img{
  width:100%;
  height:100%;
  display:block;
}

.guides-hero__bg img{
  object-fit:cover;
  object-position:center;
}

.guides-hero__overlay{
  position:absolute;
  inset:0;
  background:
    radial-gradient(900px 520px at 12% 0%, rgba(18,207,208,.16), transparent 55%),
    radial-gradient(1000px 600px at 88% 8%, rgba(244,162,97,.12), transparent 60%),
    linear-gradient(180deg, rgba(2,6,23,.42), rgba(2,6,23,.14) 42%, rgba(2,6,23,.34));
  pointer-events:none;
}

.guides-hero__inner{
  position:relative;
  z-index:2;
  width:100%;
  padding:88px 0 76px;
}

.guides-hero__content{
  max-width:760px;
}

.guides-hero__eyebrow{
  margin:0 0 12px;
  color:rgba(255,255,255,.78);
  font-size:.92rem;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.guides-hero h1{
  margin:0 0 14px;
  max-width:780px;
  color:#fff;
}

.guides-hero__lead{
  margin:0;
  max-width:720px;
  color:rgba(226,232,240,.94);
  font-size:1.04rem;
  line-height:1.75;
}

.guides-hero__actions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:22px;
}

.guides-hero__actions .btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
}

.guides-hero__actions .pill{
  display:inline-grid;
  place-items:center;
}

@media (max-width:760px){
  .guides-hero{
    min-height:460px;
  }

  .guides-hero__inner{
    padding:56px 0 48px;
  }

  .guides-hero__lead{
    font-size:1rem;
    line-height:1.68;
  }
}


/* =========================================================
   VALUE STRIP
   ========================================================= */

.guides-strip{
  margin-top:-22px;
  position:relative;
  z-index:3;
}

.guides-strip__grid{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:16px;
}

.guides-strip__card{
  display:grid;
  gap:6px;
  padding:18px 18px 16px;
  border:1px solid var(--line);
  border-radius:18px;
  background:rgba(255,255,255,.94);
  backdrop-filter:blur(10px);
  box-shadow:var(--shadow2);
}

.guides-strip__card b{
  line-height:1.2;
}

.guides-strip__card span{
  color:var(--muted);
  font-size:.95rem;
  line-height:1.55;
}

@media (max-width:1080px){
  .guides-strip__grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
}

@media (max-width:640px){
  .guides-strip{
    margin-top:20px;
  }

  .guides-strip__grid{
    grid-template-columns:1fr;
  }
}


/* =========================================================
   DESTINATION GUIDE GRID
   ========================================================= */

.guides-grid{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:22px;
  align-items:stretch;
}

@media (max-width:980px){
  .guides-grid{
    grid-template-columns:1fr;
  }
}

.guide-card{
  display:flex;
  flex-direction:column;
  gap:18px;
  padding:22px;
  border:1px solid var(--line);
  border-radius:22px;
  background:#fff;
  box-shadow:var(--shadow2);
  transition:
    transform .16s ease,
    box-shadow .16s ease,
    border-color .16s ease;
  overflow:hidden;
}

.guide-card:hover{
  transform:translateY(-2px);
  box-shadow:var(--shadow);
  border-color:rgba(18,207,208,.24);
}

.guide-card__top{
  display:flex;
  align-items:center;
  gap:16px;
  min-width:0;
}

.guide-card__icon{
  width:68px !important;
  min-width:68px !important;
  max-width:68px !important;
  height:68px !important;
  min-height:68px !important;
  max-height:68px !important;
  flex:0 0 68px;
  object-fit:contain;
  display:block;
  border-radius:16px;
  background:linear-gradient(180deg, #ffffff, #f8fafc);
}

.guide-card__top > div{
  min-width:0;
  flex:1 1 auto;
}

.guide-card__city{
  margin:0 0 4px;
  font-size:1.24rem;
  line-height:1.2;
}

.guide-card__sub{
  display:block;
  color:var(--muted2);
  font-size:.95rem;
  line-height:1.5;
}

.guide-card__body{
  display:flex;
  flex-direction:column;
  gap:14px;
}

.guide-card__body p{
  margin:0;
  color:var(--muted);
  line-height:1.72;
}

.guide-card__links{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.guide-card__links a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:40px;
  padding:10px 14px;
  border-radius:999px;
  border:1px solid rgba(18,207,208,.16);
  background:#f7fbfc;
  color:var(--text);
  font-size:.94rem;
  font-weight:700;
  line-height:1;
  text-decoration:none;
  transition:
    transform .16s ease,
    box-shadow .16s ease,
    background-color .16s ease,
    border-color .16s ease;
}

.guide-card__links a:hover,
.guide-card__links a:focus-visible{
  transform:translateY(-1px);
  border-color:rgba(18,207,208,.34);
  background:#eefcfc;
  box-shadow:0 10px 20px rgba(18,207,208,.10);
}

@media (max-width:640px){
  .guide-card{
    padding:20px;
    border-radius:20px;
  }

  .guide-card__top{
    align-items:flex-start;
  }

  .guide-card__icon{
    width:60px !important;
    min-width:60px !important;
    max-width:60px !important;
    height:60px !important;
    min-height:60px !important;
    max-height:60px !important;
    flex:0 0 60px;
  }

  .guide-card__links a{
    width:100%;
    justify-content:flex-start;
  }
}


/* =========================================================
   PLANNING TOPIC GRID
   ========================================================= */

.planning-grid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:18px;
}

@media (max-width:1080px){
  .planning-grid{
    grid-template-columns:repeat(2, minmax(0, 1fr));
  }
}

@media (max-width:680px){
  .planning-grid{
    grid-template-columns:1fr;
  }
}

.planning-card{
  display:flex;
  flex-direction:column;
  gap:12px;
  padding:20px;
  border:1px solid var(--line);
  border-radius:20px;
  background:#fff;
  box-shadow:var(--shadow2);
}

.planning-card h3{
  margin:0;
  font-size:1.08rem;
}

.planning-card p{
  margin:0;
  color:var(--muted);
  line-height:1.68;
}

.planning-card a{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-top:auto;
  color:var(--text);
  font-weight:700;
  text-decoration:none;
}

.planning-card a:hover,
.planning-card a:focus-visible{
  color:var(--brand, #12cfd0);
}


/* =========================================================
   MAP EXPLORER PAGE SPACING ONLY
   Leaves component styling to /assets/css/components/map-explorer.css
   ========================================================= */

.map-explorer.guides-section{
  margin-top:0;
}


/* =========================================================
   POPULAR LINKS
   ========================================================= */

.guides-links{
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:14px;
}

@media (max-width:860px){
  .guides-links{
    grid-template-columns:1fr;
  }
}

.guides-links > a{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:18px;
  border:1px solid var(--line);
  border-radius:20px;
  background:#fff;
  box-shadow:var(--shadow2);
  text-decoration:none;
  color:inherit;
  transition:
    transform .16s ease,
    box-shadow .16s ease,
    border-color .16s ease;
}

.guides-links > a:hover,
.guides-links > a:focus-visible{
  transform:translateY(-2px);
  box-shadow:var(--shadow);
  border-color:rgba(18,207,208,.24);
}

.guides-links strong{
  display:block;
  margin-bottom:6px;
}

.guides-links span{
  display:block;
  color:var(--muted);
  line-height:1.6;
}

.guides-links__arrow{
  flex:0 0 auto;
  font-size:1.1rem;
  color:var(--muted2);
}


/* =========================================================
   FAQ
   ========================================================= */

.guides-faq{
  gap:14px;
}

.guides-faq details{
  border:1px solid var(--line);
  border-radius:18px;
  background:#fff;
  box-shadow:var(--shadow2);
  overflow:hidden;
}

.guides-faq summary{
  cursor:pointer;
  list-style:none;
  padding:18px 20px;
  font-weight:700;
}

.guides-faq summary::-webkit-details-marker{
  display:none;
}

.guides-faq details p{
  margin:0;
  padding:0 20px 18px;
  color:var(--muted);
  line-height:1.7;
}


/* =========================================================
   DISCLOSURE
   ========================================================= */

.disclosure{
  padding:18px 20px;
  border:1px solid var(--line);
  border-radius:18px;
  background:#fff;
  box-shadow:var(--shadow2);
}

.disclosure p{
  margin:0;
  color:var(--muted);
  line-height:1.65;
}


/* =========================================================
   LEGACY SAFETY FIXES
   Keeps old generic image rules from breaking sticker icons
   ========================================================= */

.guide-card picture{
  display:block;
}

.guide-card picture img{
  width:100%;
  height:auto;
  display:block;
}

.guide-card img.guide-card__icon{
  width:68px !important;
  min-width:68px !important;
  max-width:68px !important;
  height:68px !important;
  min-height:68px !important;
  max-height:68px !important;
  object-fit:contain;
  flex:0 0 68px;
}

@media (max-width:640px){
  .guide-card img.guide-card__icon{
    width:60px !important;
    min-width:60px !important;
    max-width:60px !important;
    height:60px !important;
    min-height:60px !important;
    max-height:60px !important;
    flex:0 0 60px;
  }
}
