/*
 * ZIYARA RIDE · CONSISTENT EDITORIAL TYPOGRAPHY
 * Shared by main pages and the standalone four- and seven-day itineraries.
 * Display: same Playfair Display already used on the homepage.
 * Body: Raleway. Keep labels, controls and paragraph text readable.
 * Do not override sizes, layout, colors or existing accessibility behavior.
 */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600&family=Raleway:wght@400;500;600;700&display=swap');

:root{
  --zr-display:'Playfair Display',Georgia,'Times New Roman',serif;
  --zr-body:'Raleway',Arial,Helvetica,sans-serif;
}
body{font-family:var(--zr-body)!important}

/* Editorial serif for page titles, section titles, cards and selected quotes. */
h1,h2,h3,h4,h5,h6,blockquote,
.section-title,.brand-main,.overlay-card h3,.info-card h3,.review-card h3,
.zr-featured-title,.zr-recommend-copy h2,
.zi-hero h1,.zi-story h2,.zi-personal h3,
.zi-destination-card h4,.zi-triptych figcaption strong,
.zi-hero-places,.day .day-copy h3,.zi-rate-card h3,
.zi-related-grid h4,.zi-rate-line strong,.zi-total-box .zi-amount,
#total-price,.price-inline strong,.day-number,
.topbar .brand strong,.topbar .logo,
.offers-hero h1,.offers-intro h2,.offers-finish h2,
.offers-card h3,.offer-card h3,.zi-sharing h2{
  font-family:var(--zr-display)!important;
}

/* Body paragraphs, navigation and controls remain crisp sans-serif. */
p,li,dt,dd,label,legend,summary,input,select,textarea,button,
.button,.btn,.nav-link,.desktop-nav a,.mobile-nav a,
.topbar nav a,.topbar nav .button,.topbar nav .nav-primary,
.zi-hero-actions .button,.zi-hero-actions button,
.zi-sharing .button,.zi-total-box .button,
.site-header .button,.zr-recommend-actions a{
  font-family:var(--zr-body)!important;
}

/* Lighter, less mechanical navigation, retaining its legibility. */
.desktop-nav .nav-link{
  letter-spacing:.07em!important;
  font-size:clamp(.75rem,.78vw,.84rem)!important;
  font-weight:600!important;
}
.mobile-nav a:not(.button){
  letter-spacing:.075em!important;
  font-size:.81rem!important;
  line-height:1.45!important;
}
.topbar nav a:not(.button){
  letter-spacing:.025em;
  font-size:.92rem;
  font-weight:600;
}
.topbar nav .button,.topbar nav .nav-primary{
  letter-spacing:.035em!important;
  font-weight:600!important;
}
.brand-main{letter-spacing:.14em}
.topbar .brand strong{font-weight:500}

/* Editorial weight and a comfortable baseline for long-form content. */
h1,h2,h3,h4,h5,h6{font-weight:400}
.section-title,.zi-hero h1,.zi-story h2,.zi-personal h3{
  font-weight:400!important;
}
p,li{font-synthesis:weight}
@media (max-width:570px){
  .desktop-nav .nav-link{font-size:.78rem!important}
}

/* More legible top-level actions without changing the luxury display type. */
.site-header .header-wa{font-size:.76rem!important;letter-spacing:.08em!important}
.site-header .nav-link{color:rgba(255,255,255,.88)!important}
.site-header .nav-link:hover,.site-header .nav-link:focus-visible{color:#edc686!important}
.topbar nav a:not(.button):hover,.topbar nav a:not(.button):focus-visible{color:#a27539}
@media(max-width:1120px){.desktop-nav{gap:clamp(.55rem,1vw,1.1rem)}}

/* Practical walking and terrain notes for the active private sightseeing tours. */
.zr-activity-note{background:#e8ddc9;color:#233c2b;border-block:1px solid #d3c4a9}
.zr-activity-note .wrap{display:flex;align-items:center;gap:24px;padding-block:19px}
.zr-activity-note strong{flex:0 0 150px;font:500 1.4rem/1.1 var(--zr-display);color:#1a3c2b}
.zr-activity-note p{margin:0;font:400 .91rem/1.65 var(--zr-body);color:#3d5141}
/* Practical walking advice belongs beside Before You Book, in the same dark palette. */
.zr-terrain-section{padding:2.6rem 0!important;background:#0d0b08!important;color:#f0e6d0;border-color:rgba(200,145,58,.20)!important}
.zr-terrain-inner{max-width:930px;margin-inline:auto;border-left:2px solid rgba(200,145,58,.75);padding:8px 0 8px 24px}
.zr-terrain-inner h2,.zr-terrain-inner h3{font:400 clamp(1.45rem,2.4vw,1.9rem)/1.18 var(--zr-display)!important;margin:0 0 9px;color:#f0e6d0}
.zr-terrain-inner p{font:400 .94rem/1.7 var(--zr-body);color:#bfb4a0;margin:0}
.zr-terrain-inner .zr-terrain-eyebrow{font-size:.7rem;font-weight:700;letter-spacing:.15em;text-transform:uppercase;color:#dbb47a}
.container.notes .zr-terrain-inner{margin:24px 0 0;max-width:none;padding:4px 0 4px 20px}
.container.notes .zr-terrain-inner h3{font-size:clamp(1.35rem,2vw,1.65rem)}
.container.notes .zr-terrain-inner p{max-width:780px;line-height:1.75}
@media(max-width:650px){.zr-activity-note .wrap{display:block;padding-block:18px}.zr-activity-note strong{display:block;margin-bottom:8px}.zr-terrain-inner{padding-left:16px}}

/* Avoid cluttering small destination promo tiles with repeated source badges.
   Maintain truthful image alt text and the accessible photo credits on the tour page. */
.zr-tour-photo-card .zr-ai-photo-note{display:none!important}

/* Professional, consistently filled editorial galleries on destination pages. */
.gallery:not(.zr-maaloula-gallery):not(.zr-bosra-gallery){
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:clamp(12px,1.6vw,22px)!important;
  align-items:stretch;
}
.gallery:not(.zr-maaloula-gallery):not(.zr-bosra-gallery) figure,
.gallery:not(.zr-maaloula-gallery):not(.zr-bosra-gallery) figure:first-child{
  grid-column:auto!important;
  aspect-ratio:4 / 3;
  min-width:0;
  border-radius:12px;
  background:#dfd3c2;
}
.gallery:not(.zr-maaloula-gallery):not(.zr-bosra-gallery) img{display:block;width:100%;height:100%;object-fit:cover}

/* Curated Maaloula editorial gallery: 4 balanced image pairs, never empty tiles. */
.zr-maaloula-gallery{
  display:grid!important;
  grid-template-columns:repeat(12,minmax(0,1fr))!important;
  gap:clamp(12px,1.6vw,22px)!important;
  align-items:stretch;
  background:transparent;
}
.zr-maaloula-gallery figure,.zr-maaloula-gallery figure:first-child{
  grid-column:span 6!important;
  position:relative;
  min-width:0;
  height:clamp(255px,30vw,380px);
  aspect-ratio:auto!important;
  border:0!important;
  border-radius:14px;
  overflow:hidden;
  margin:0;
  background:#bcae97;
  isolation:isolate;
}
.zr-maaloula-gallery figure:nth-child(1){grid-column:span 7!important}
.zr-maaloula-gallery figure:nth-child(2){grid-column:span 5!important}
.zr-maaloula-gallery figure:nth-child(5){grid-column:span 12!important}
.zr-maaloula-gallery figure:nth-child(6),
.zr-maaloula-gallery figure:nth-child(7){grid-column:span 6!important}
.zr-maaloula-gallery img{
  display:block;
  width:100%!important;
  height:100%!important;
  object-fit:cover;
  object-position:center 50%;
  transition:transform .45s ease;
}
.zr-maaloula-gallery figure:nth-child(2) img{object-position:center 57%}
.zr-maaloula-gallery figure:nth-child(6) img{object-position:center 62%}
.zr-maaloula-gallery figure:nth-child(7) img{object-position:center 49%}

.zr-maaloula-gallery figure::after{
  content:"";position:absolute;inset:40% 0 0;
  background:linear-gradient(180deg,transparent,rgba(9,22,14,.72));
  z-index:0;pointer-events:none;
}
.zr-maaloula-gallery figcaption{
  position:absolute;left:0;right:0;bottom:0;z-index:1;
  padding:34px clamp(14px,1.5vw,22px) 16px;
  color:#fff9e9;
  font:600 clamp(.77rem,.95vw,.94rem)/1.4 var(--zr-body);
  letter-spacing:.015em;
  text-shadow:0 1px 2px rgba(0,0,0,.3);
}
.zr-maaloula-gallery figure:hover img{transform:scale(1.035)}
@media(max-width:760px){
  .gallery:not(.zr-maaloula-gallery):not(.zr-bosra-gallery){grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .gallery:not(.zr-maaloula-gallery):not(.zr-bosra-gallery) figure:first-child{grid-column:span 2!important}
  .zr-maaloula-gallery figure,.zr-maaloula-gallery figure:first-child,
  .zr-maaloula-gallery figure:nth-child(n){grid-column:span 6!important;height:clamp(230px,52vw,380px)}
  .zr-maaloula-gallery figure:nth-child(1),.zr-maaloula-gallery figure:nth-child(5){grid-column:span 12!important;height:clamp(210px,52vw,350px)}
}
@media(max-width:480px){
  .gallery:not(.zr-maaloula-gallery):not(.zr-bosra-gallery){grid-template-columns:1fr!important}
  .gallery:not(.zr-maaloula-gallery):not(.zr-bosra-gallery) figure,.gallery:not(.zr-maaloula-gallery):not(.zr-bosra-gallery) figure:first-child{grid-column:span 1!important}
  .zr-maaloula-gallery figure,.zr-maaloula-gallery figure:first-child,
  .zr-maaloula-gallery figure:nth-child(n){grid-column:span 12!important;height:clamp(245px,70vw,340px)}
  .zr-maaloula-gallery figure:nth-child(2),.zr-maaloula-gallery figure:nth-child(6),
  .zr-maaloula-gallery figure:nth-child(7){height:380px}
}

/* Bosra: balanced editorial gallery, with Mohammed only in gallery. */
.zr-bosra-gallery{display:grid!important;grid-template-columns:repeat(12,minmax(0,1fr))!important;gap:clamp(12px,1.6vw,22px)!important;align-items:stretch}
.zr-bosra-gallery figure,.zr-bosra-gallery figure:first-child{position:relative;min-width:0;height:clamp(280px,32vw,400px);margin:0;grid-column:span 4!important;aspect-ratio:auto!important;border:none!important;border-radius:14px;overflow:hidden;background:#b7a58f;isolation:isolate}
.zr-bosra-gallery figure:nth-child(odd){grid-column:span 8!important}
.zr-bosra-gallery img{width:100%!important;height:100%!important;display:block;object-fit:cover;object-position:center 50%;transition:transform .45s ease}
.zr-bosra-gallery figure:nth-child(2) img{object-position:center 42%}
.zr-bosra-gallery figure:nth-child(4) img{object-position:center 44%}
.zr-bosra-gallery figure::after{content:"";position:absolute;inset:40% 0 0;background:linear-gradient(180deg,transparent,rgba(9,19,14,.72));pointer-events:none}
.zr-bosra-gallery figcaption{position:absolute;z-index:1;bottom:0;left:0;right:0;padding:30px clamp(14px,1.5vw,22px) 16px;color:#fff9e9;font:600 clamp(.77rem,.95vw,.94rem)/1.4 var(--zr-body);letter-spacing:.015em;text-shadow:0 1px 2px #0005}
.zr-bosra-gallery figure:hover img{transform:scale(1.035)}
@media(max-width:760px){.zr-bosra-gallery figure,.zr-bosra-gallery figure:first-child{grid-column:span 6!important;height:clamp(260px,55vw,370px)}.zr-bosra-gallery figure:nth-child(odd){grid-column:span 6!important}}
@media(max-width:480px){.zr-bosra-gallery figure,.zr-bosra-gallery figure:first-child,.zr-bosra-gallery figure:nth-child(odd){grid-column:span 12!important;height:clamp(260px,68vw,380px)}.zr-bosra-gallery figure:nth-child(even){height:420px}}

/* Maaloula: bright owner's St Thecla photograph, with readable but lighter type overlay. */
html:has(link[rel="canonical"][href$="/maaloula/"]) .hero.short::after{
  background:
    linear-gradient(90deg,rgba(0,0,0,.64) 0%,rgba(0,0,0,.39) 49%,rgba(0,0,0,.05) 100%),
    linear-gradient(0deg,rgba(10,15,14,.41),transparent 53%,rgba(0,0,0,.03));
}
html:has(link[rel="canonical"][href$="/maaloula/"]) .hero.short .hero-media img{
  object-position:center 44%;
}
@media(max-width:700px){
  html:has(link[rel="canonical"][href$="/maaloula/"]) .hero.short::after{
    background:
      linear-gradient(0deg,rgba(0,0,0,.76),rgba(0,0,0,.30) 72%,rgba(0,0,0,.06)),
      linear-gradient(90deg,rgba(0,0,0,.24),rgba(0,0,0,.10));
  }
  html:has(link[rel="canonical"][href$="/maaloula/"]) .hero.short .hero-media img{
    object-position:center 41%;
  }
}
