/* =========================================================
   Tusk Travel India Guide Pages — Full-width editorial layout
   Shared with destination.css
   ========================================================= */

.guide-page{
  background:#fff;
  color:#1f2933;
}

/* HERO */
.guide-destination-hero .destination-hero__content{
  max-width:780px;
}

.guide-destination-hero .destination-hero__content h1{
  max-width:760px;
  text-wrap:balance;
}

.guide-destination-hero .destination-hero__content p{
  max-width:720px;
  text-wrap:pretty;
}

/* QUICK FACTS */
.guide-facts{
  border-bottom:1px solid #e8e5df;
  background:#faf9f7;
}

.guide-facts__grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
}

.guide-facts__grid>div{
  min-height:96px;
  padding:24px 28px;
  border-right:1px solid #e8e5df;
  display:flex;
  flex-direction:column;
  justify-content:center;
}

.guide-facts__grid>div:last-child{
  border-right:0;
}

.guide-facts span{
  display:block;
  margin-bottom:7px;
  font-size:.75rem;
  text-transform:uppercase;
  letter-spacing:.07em;
  color:#69727b;
}

.guide-facts strong{
  font-size:1rem;
  line-height:1.45;
}

/* FULL-WIDTH ARTICLE */
.guide-section{
  padding:72px 0;
}

.guide-article__main{
  width:100%;
  max-width:1180px;
  margin:0 auto;
}

.guide-article__main>p{
  max-width:900px;
  margin-left:auto;
  margin-right:auto;
}

.guide-article__main>p:first-child,
.guide-article__main>.guide-lead{
  max-width:900px;
  margin-bottom:24px;
  font-size:1.22rem;
  line-height:1.82;
  color:#293641;
}

.guide-article p{
  margin-top:0;
  margin-bottom:19px;
  font-size:1.04rem;
  line-height:1.82;
}

.guide-article a{
  font-weight:600;
  text-decoration:underline;
  text-decoration-thickness:1px;
  text-underline-offset:3px;
}

/* CHAPTERS */
.guide-chapter{
  padding:48px 0;
  border-top:1px solid #ece9e3;
}

.guide-chapter:first-of-type{
  margin-top:36px;
}

.guide-chapter>span,
.guide-chapter__copy>span,
.guide-note span,
.guide-inline-cta span{
  display:block;
  margin-bottom:10px;
  font-size:.76rem;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.guide-chapter h2,
.guide-note h2,
.guide-inline-cta h2{
  margin:0 0 18px;
  font-size:clamp(1.9rem,2.5vw,2.65rem);
  line-height:1.13;
  letter-spacing:-.02em;
  text-wrap:balance;
}

.guide-chapter--text{
  max-width:900px;
  margin-left:auto;
  margin-right:auto;
}

.guide-chapter--text h2{
  max-width:780px;
}

.guide-chapter--text p{
  max-width:900px;
}

.guide-chapter--split{
  display:grid;
  grid-template-columns:minmax(0,1.12fr) minmax(360px,.88fr);
  gap:48px;
  align-items:center;
}

.guide-chapter--reverse{
  grid-template-columns:minmax(360px,.88fr) minmax(0,1.12fr);
}

.guide-chapter--reverse .guide-chapter__copy{
  order:2;
}

.guide-chapter--reverse figure{
  order:1;
}

.guide-chapter__copy p{
  max-width:620px;
}

.guide-chapter figure{
  margin:0;
}

.guide-chapter img{display:block;width:100%;}

.guide-chapter figcaption{
  margin-top:10px;
  font-size:.82rem;
  line-height:1.5;
  color:#6b7280;
}

/* NOTE BLOCK */
.guide-note{
  max-width:1040px;
  margin:42px auto;
  padding:32px 34px;
  border-radius:18px;
  background:#f4efe8;
  display:grid;
  grid-template-columns:minmax(210px,.68fr) minmax(0,1.32fr);
  gap:36px;
  align-items:start;
}

.guide-note h2{
  margin-bottom:0;
}

.guide-note p:last-child{
  margin-bottom:0;
}

/* INLINE CTA — replaces the sticky sidebar */
.guide-inline-cta{
  max-width:1040px;
  margin:12px auto 10px;
  padding:30px 32px;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:34px;
  align-items:center;
  border:1px solid #e5ded3;
  border-radius:18px;
  background:#faf7f2;
}

.guide-inline-cta h2{
  max-width:680px;
  margin-bottom:10px;
  font-size:clamp(1.55rem,2vw,2rem);
}

.guide-inline-cta p{
  max-width:720px;
  margin:0;
  font-size:.96rem;
  line-height:1.65;
  color:#59636d;
}

.guide-inline-cta__actions{
  min-width:220px;
  display:flex;
  flex-direction:column;
  gap:12px;
  align-items:stretch;
}

.guide-inline-cta__actions .destination-button{
  width:100%;
}

.guide-inline-cta__actions a{
  text-align:center;
  font-size:.9rem;
  font-weight:700;
  text-decoration:none;
}

/* HIGHLIGHTS */
.guide-highlights{
  padding-top:68px;
  padding-bottom:74px;
}

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

.guide-highlight-card{
  overflow:hidden;
  border:1px solid #e8e5df;
  border-radius:16px;
  background:#fff;
}

.guide-highlight-card img{
  display:block;
  width:100%;
  aspect-ratio:1 / 1;
  object-fit:cover;
}

.guide-highlight-card>div{
  padding:20px 20px 22px;
}

.guide-highlight-card span{
  font-size:.73rem;
  text-transform:uppercase;
  letter-spacing:.065em;
  color:#777;
}

.guide-highlight-card h3{
  margin:7px 0 9px;
  font-size:1.24rem;
  line-height:1.25;
}

.guide-highlight-card p{
  margin:0 0 13px;
  font-size:.92rem;
  line-height:1.6;
  color:#59636d;
}

/* RELATED GUIDES */
.guide-related__grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:15px;
}

.guide-related__card{
  display:flex;
  flex-direction:column;
  gap:8px;
  min-height:116px;
  padding:21px;
  border:1px solid #e8e5df;
  border-radius:14px;
  color:inherit;
  text-decoration:none;
}

.guide-related__card strong{
  font-size:1.04rem;
  line-height:1.35;
}

.guide-related__card span{
  margin-top:auto;
  font-size:.86rem;
  color:#656d76;
}

/* CTA / FAQ */
.guide-page .destination-cta,
.guide-page .destination-cta *,
.guide-page .destination-faq{
  visibility:visible;
  opacity:1;
}

.guide-page #itinerarios{
  padding-top:70px;
  padding-bottom:70px;
}

.guide-page #preguntas{
  padding-top:64px;
  padding-bottom:68px;
}

/* TABLET */
@media (max-width:1000px){
  .guide-chapter--split,
  .guide-chapter--reverse{
    grid-template-columns:minmax(0,1fr) minmax(300px,.85fr);
    gap:34px;
  }

  .guide-inline-cta{
    grid-template-columns:1fr;
  }

  .guide-inline-cta__actions{
    min-width:0;
    max-width:320px;
  }
}

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

  .guide-facts__grid>div:nth-child(2n){
    border-right:0;
  }

  .guide-highlight-grid,
  .guide-related__grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

/* MOBILE */
@media (max-width:700px){
  .guide-facts__grid{
    grid-template-columns:1fr;
  }

  .guide-facts__grid>div{
    min-height:auto;
    padding:18px 20px;
    border-right:0;
    border-bottom:1px solid #e8e5df;
  }

  .guide-facts__grid>div:last-child{
    border-bottom:0;
  }

  .guide-section{
    padding:52px 0;
  }

  .guide-article__main>p:first-child,
  .guide-article__main>.guide-lead{
    font-size:1.12rem;
    line-height:1.74;
  }

  .guide-article p{
    font-size:1rem;
    line-height:1.78;
  }

  .guide-chapter{
    padding:34px 0;
  }

  .guide-chapter h2,
  .guide-note h2{
    font-size:1.8rem;
  }

  .guide-chapter--split,
  .guide-chapter--reverse,
  .guide-note{
    grid-template-columns:1fr;
    gap:22px;
  }

  .guide-chapter--split .guide-chapter__copy,
  .guide-chapter--reverse .guide-chapter__copy{
    order:1;
  }

  .guide-chapter--split figure,
  .guide-chapter--reverse figure{
    order:2;
  }

  .guide-chapter img,
  .guide-highlight-card img{
    aspect-ratio:1 / 1;
  }

  .guide-note{
    margin:30px auto;
    padding:24px;
  }

  .guide-inline-cta{
    margin:8px auto 0;
    padding:24px;
    gap:20px;
  }

  .guide-inline-cta__actions{
    max-width:none;
  }

  .guide-highlight-grid,
  .guide-related__grid{
    grid-template-columns:1fr;
  }

  .guide-page #itinerarios,
  .guide-page #preguntas{
    padding-top:52px;
    padding-bottom:52px;
  }
}


/* ---------------------------------------------------------
   GUIDE READ MORE
   Optional per-page via:
   'read_more' => true,
   'preview_paragraphs' => 2,
   --------------------------------------------------------- */

.guide-readmore__preview{
  max-width:900px;
  margin:0 auto;
}

.guide-readmore__more[hidden]{
  display:none !important;
}

.guide-readmore__action{
  max-width:900px;
  margin:26px auto 0;
  padding-top:4px;
}

.guide-readmore__button{
  appearance:none;
  display:inline-flex;
  align-items:center;
  gap:10px;
  min-height:46px;
  padding:0 20px;
  border:1px solid #d7d0c7;
  border-radius:999px;
  background:#fff;
  color:#1f2933;
  font:inherit;
  font-weight:700;
  cursor:pointer;
  transition:border-color .2s ease,background .2s ease,transform .2s ease;
}

.guide-readmore__button:hover{
  border-color:#c8beb2;
  background:#faf7f2;
  transform:translateY(-1px);
}

.guide-readmore__button i{
  font-style:normal;
  font-size:1rem;
}

.guide-readmore__more:not([hidden]) + .guide-readmore__action{
  margin-top:30px;
  padding-top:20px;
  border-top:1px solid #ece9e3;
}

@media (max-width:700px){
  .guide-readmore__action{
    margin-top:20px;
  }

  .guide-readmore__button{
    width:100%;
    justify-content:center;
  }
}


/* =========================================================
   SQUARE IMAGE FIX
   The square ratio lives on the media wrapper, not the img.
   This overrides intrinsic portrait/landscape source ratios.
   ========================================================= */

.guide-page .guide-chapter__media{
  position:relative;
  width:100%;
  aspect-ratio:1 / 1;
  margin:0;
  overflow:hidden;
  border-radius:18px;
}

.guide-page .guide-chapter__media > img{
  position:absolute;
  inset:0;
  display:block;
  width:100% !important;
  height:100% !important;
  max-width:none;
  aspect-ratio:auto !important;
  object-fit:cover !important;
  object-position:center center;
  border-radius:0;
}

.guide-page .guide-chapter__media > figcaption{
  position:absolute;
  left:12px;
  right:12px;
  bottom:10px;
  z-index:2;
  margin:0;
  padding:8px 10px;
  border-radius:8px;
  background:rgba(10,17,24,.68);
  color:#fff;
  font-size:.76rem;
  line-height:1.4;
}

/* Keep square ratio on tablet/mobile too. */
@media (max-width:700px){
  .guide-page .guide-chapter__media{
    aspect-ratio:1 / 1;
  }
}
