/* ==========================================================================
   Saygın Turizm — OTEL MODÜLÜ (archive-otel.php / single-otel.php / [st_oteller])
   Yalnız otel sayfalarında koşullu yüklenir (functions.php). Tüm sınıflar
   `st-htl-` önekli — mevcut st-style.css sınıflarıyla ÇAKIŞMAZ. Design token'ları
   st-style.css :root'undan (--st-navy/--st-red/--st-blue/--st-gold/--st-line/--st-soft/
   --st-ink/--st-body/--st-muted/--st-green) devralınır, yeni renk İCAT EDİLMEDİ.
   ========================================================================== */

/* ---------- Kartlar (arşiv + [st_oteller] ortak) ---------- */
.st-htl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.st-htl-card { background: #fff; border: 1px solid var(--st-line); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; transition: transform .3s ease, box-shadow .3s ease; }
.st-htl-card:hover { transform: translateY(-6px); box-shadow: 0 26px 58px rgba(16,60,100,.16); }
.st-htl-card .media { position: relative; display: block; aspect-ratio: 20/14; overflow: hidden; background: var(--st-soft); }
.st-htl-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.st-htl-card:hover .media img { transform: scale(1.07); }
.st-htl-noimg { width: 100%; height: 100%; background: linear-gradient(135deg, var(--st-navy), var(--st-navy-2)); }

.st-htl-tag { position: absolute; padding: 6px 13px; border-radius: 999px; font-weight: 800; font-size: 11px; letter-spacing: .05em; color: #fff; }
.st-htl-tag.city { top: 13px; left: 13px; background: var(--st-red); text-transform: uppercase; }
.st-htl-tag.star { top: 13px; right: 13px; background: rgba(8,20,36,.65); backdrop-filter: blur(6px); color: var(--st-gold-2); }

.st-htl-card .body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.st-htl-card h3 { font-weight: 800; font-size: 18.5px; line-height: 1.28; letter-spacing: -.015em; color: var(--st-navy); margin: 0 0 10px; }
.st-htl-card h3 a { color: inherit; }
.st-htl-card h3 a:hover { color: var(--st-blue); }
.st-htl-card .desc { font-size: 13.5px; line-height: 1.6; color: var(--st-body); margin: 0 0 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.st-htl-card .chips { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 18px; }
.st-htl-card .chips .chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 500; color: var(--st-body); }
.st-htl-card .chips .chip svg { color: var(--st-red); flex: none; }

.st-htl-btn { margin-top: auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 18px; border-radius: 999px; background: var(--st-navy); color: #fff; font-weight: 700; font-size: 13.5px; transition: background .2s ease; }
.st-htl-btn:hover { background: var(--st-blue); color: #fff; }

.st-htl-empty { grid-column: 1 / -1; text-align: center; padding: 70px 20px; color: var(--st-muted); }
.st-htl-empty p { margin: 0; font-size: 15px; }

/* ---------- Arşiv: hızlı mağaza yapısı (archive-tur.php diline paralel) ---------- */
.st-htl-shop { max-width: 1340px; margin: 0 auto; padding: 46px 28px 96px; display: grid; grid-template-columns: 280px 1fr; gap: 34px; align-items: start; }

.st-htl-filters { position: sticky; top: 100px; background: #fff; border: 1px solid var(--st-line); border-radius: 20px; box-shadow: 0 18px 44px rgba(16,60,100,.07); overflow: hidden; }
.st-htl-filters-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px; border-bottom: 1px solid var(--st-line); }
.st-htl-filters-head .t { font-weight: 800; font-size: 16px; color: var(--st-navy); display: flex; align-items: center; gap: 9px; }
.st-htl-filters-head .clear { background: none; border: none; color: var(--st-red); font-weight: 700; font-size: 12.5px; cursor: pointer; padding: 0; }
.st-htl-filters-head .clear:hover { text-decoration: underline; }
.st-htl-filters-close { display: none; background: none; border: none; color: var(--st-navy); cursor: pointer; }

.st-htl-fbody { padding: 6px 22px 12px; }
.st-htl-fgroup { padding: 18px 0; border-bottom: 1px solid var(--st-line); }
.st-htl-fgroup:last-child { border-bottom: none; }
.st-htl-fgroup > h4 { font-weight: 800; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--st-ink); margin: 0 0 14px; }

.st-htl-search { position: relative; }
.st-htl-search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--st-muted); }
.st-htl-search input { width: 100%; padding: 11px 14px 11px 38px; border-radius: 12px; border: 1px solid #d9e3ec; font-size: 14px; font-family: var(--st-font); color: var(--st-navy); }
.st-htl-search input:focus { outline: none; border-color: var(--st-blue); }

.st-htl-check { display: flex; align-items: center; gap: 11px; padding: 7px 0; cursor: pointer; font-size: 14.5px; color: var(--st-body); font-weight: 500; user-select: none; }
.st-htl-check input { position: absolute; opacity: 0; width: 0; height: 0; }
.st-htl-check .box { flex: none; width: 20px; height: 20px; border-radius: 6px; border: 1.6px solid #cdd9e5; display: flex; align-items: center; justify-content: center; transition: all .18s; color: #fff; }
.st-htl-check .box svg { opacity: 0; transform: scale(.5); transition: all .18s; }
.st-htl-check input:checked + .box { background: var(--st-blue); border-color: var(--st-blue); }
.st-htl-check input:checked + .box svg { opacity: 1; transform: scale(1); }
.st-htl-check:hover .box { border-color: var(--st-blue); }
.st-htl-check .cnt { margin-left: auto; font-size: 12.5px; color: var(--st-muted); font-weight: 600; }
.st-htl-check .star { color: var(--st-gold); letter-spacing: 1px; }

.st-htl-shop-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.st-htl-shop-bar .count { font-size: 14.5px; color: var(--st-muted); font-weight: 500; }
.st-htl-shop-bar .count b { color: var(--st-navy); font-weight: 800; }
.st-htl-shop-tools { display: flex; align-items: center; gap: 12px; }
.st-htl-filter-open { display: none; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--st-line); background: #fff; color: var(--st-navy); font-weight: 700; font-size: 13.5px; cursor: pointer; }
.st-htl-filter-open .n { background: var(--st-red); color: #fff; border-radius: 999px; padding: 1px 7px; font-size: 11px; }
.st-htl-sort { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--st-ink); font-weight: 600; }
.st-htl-sort select { padding: 9px 12px; border-radius: 10px; border: 1px solid #d9e3ec; font-family: var(--st-font); font-size: 13.5px; color: var(--st-navy); background: #fff; }

.st-htl-active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: -6px 0 16px; }
.st-htl-active-filters:empty { margin: 0; }
.st-htl-active-filters .chip { display: inline-flex; align-items: center; gap: 6px; background: var(--st-soft); border: 1px solid var(--st-line); border-radius: 999px; padding: 6px 8px 6px 13px; font-size: 12.5px; font-weight: 600; color: var(--st-ink); }
.st-htl-active-filters .chip button { border: none; background: rgba(226,35,26,.1); color: var(--st-red); width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: 12px; line-height: 1; }

.st-htl-noresult { display: none; text-align: center; padding: 90px 20px; }
.st-htl-noresult .ico { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; background: var(--st-soft); display: flex; align-items: center; justify-content: center; color: var(--st-muted); }
.st-htl-noresult h3 { font-weight: 800; font-size: 19px; color: var(--st-navy); margin: 0 0 8px; }
.st-htl-noresult p { color: var(--st-muted); font-size: 14px; margin: 0 0 20px; }
.st-htl-shop.st-htl-empty-state .st-htl-grid { display: none; }
.st-htl-shop.st-htl-empty-state .st-htl-noresult { display: block; }

.st-htl-filter-backdrop { position: fixed; inset: 0; background: rgba(6,15,29,.55); z-index: 1044; opacity: 0; pointer-events: none; transition: opacity .3s ease; }
.st-htl-filter-backdrop.is-open { opacity: 1; pointer-events: auto; }

/* ---------- Detay: hızlı bilgi şeridi (hero altında, hafif "yüzen" kart) ---------- */
.st-htl-quick-wrap { max-width: 1240px; margin: -46px auto 0; padding: 0 28px; position: relative; z-index: 5; }
.st-htl-quick { background: #fff; border-radius: 20px; box-shadow: 0 24px 60px rgba(16,60,100,.16); display: flex; flex-wrap: wrap; }
.st-htl-quick .qi { flex: 1 1 220px; display: flex; align-items: center; gap: 14px; padding: 24px 26px; border-right: 1px solid var(--st-line); }
.st-htl-quick .qi:last-child { border-right: none; }
.st-htl-quick .qi .ico { width: 46px; height: 46px; border-radius: 13px; background: var(--st-soft); display: flex; align-items: center; justify-content: center; color: var(--st-red); flex: none; }
.st-htl-quick .qi .ico.gold { color: var(--st-gold); background: #fdf6e8; }
.st-htl-quick .qi .k { font-weight: 700; font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--st-muted); margin-bottom: 2px; }
.st-htl-quick .qi .v { font-weight: 800; font-size: 15.5px; color: var(--st-navy); }

/* ---------- Detay: gövde grid (içerik + sağ iletişim kartı) ---------- */
.st-htl-wrap { max-width: 1240px; margin: 0 auto; padding: 44px 28px 90px; display: grid; grid-template-columns: 1fr 360px; gap: 52px; align-items: start; }
.st-htl-sec { margin-bottom: 56px; scroll-margin-top: 90px; }
.st-htl-sec:last-child { margin-bottom: 0; }
.st-htl-sec h2 { font-weight: 800; font-size: clamp(23px,2.4vw,31px); letter-spacing: -.022em; color: var(--st-navy); margin: 0 0 14px; }

.st-htl-prose p { font-weight: 400; font-size: 16.5px; line-height: 1.85; color: var(--st-body); max-width: 780px; margin: 0 0 18px; }
.st-htl-prose p:last-child { margin-bottom: 0; }

/* Galeri */
.st-htl-gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 140px; gap: 10px; }
.st-htl-gimg { position: relative; border: none; padding: 0; margin: 0; border-radius: 14px; overflow: hidden; cursor: zoom-in; background: var(--st-soft); display: block; }
.st-htl-gimg img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; display: block; }
.st-htl-gimg:hover img { transform: scale(1.08); }
.st-htl-gimg.big { grid-column: span 2; grid-row: span 2; }

/* Olanaklar */
.st-htl-amenities { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.st-htl-amenities .am { display: flex; align-items: center; gap: 12px; background: var(--st-soft); border: 1px solid var(--st-line); border-radius: 14px; padding: 14px 16px; font-weight: 600; font-size: 14px; color: var(--st-ink); }
.st-htl-amenities .am .ico { color: var(--st-green); flex: none; display: flex; }

/* Oda tipleri */
.st-htl-rooms { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.st-htl-rooms .room { border: 1px solid var(--st-line); border-radius: 16px; padding: 20px 22px; background: #fff; }
.st-htl-rooms .room .head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; flex-wrap: wrap; }
.st-htl-rooms .room h3 { font-weight: 800; font-size: 16.5px; color: var(--st-navy); margin: 0; }
.st-htl-rooms .room .cap { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--st-muted); white-space: nowrap; }
.st-htl-rooms .room p { margin: 0; font-size: 14px; line-height: 1.65; color: var(--st-body); }

/* Konum */
.st-htl-loc-txt { font-weight: 600; font-size: 14.5px; color: var(--st-ink); margin: 0 0 14px; }
.st-htl-map { border-radius: 16px; overflow: hidden; box-shadow: 0 18px 44px rgba(16,60,100,.1); }
.st-htl-map iframe { width: 100%; height: 340px; border: 0; display: block; }

.st-htl-kaynak { font-size: 12px; color: var(--st-muted); margin-top: -30px; }

/* Sağ iletişim kartı */
.st-htl-aside { position: sticky; top: 104px; }
.st-htl-cta-card { border: 1px solid #e3edf4; border-radius: 22px; box-shadow: 0 24px 60px rgba(16,60,100,.13); background: #fff; padding: 28px; }
.st-htl-cta-card h3 { font-weight: 800; font-size: 18.5px; color: var(--st-navy); margin: 0 0 10px; }
.st-htl-cta-card p { font-size: 13.5px; line-height: 1.65; color: var(--st-body); margin: 0 0 20px; }
.st-htl-cta-card .st-btn-resv,
.st-htl-cta-card .st-btn-wa { width: 100%; }

/* ---------- Lightbox (vanilla JS, st-otel.js) ---------- */
.st-htl-lightbox { position: fixed; inset: 0; background: rgba(6,15,29,.94); z-index: 99999; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility 0s .25s; }
.st-htl-lightbox.is-open { opacity: 1; visibility: visible; transition: opacity .25s ease; }
.st-htl-lightbox img { max-width: 88vw; max-height: 84vh; border-radius: 10px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.st-htl-lightbox .close,
.st-htl-lightbox .prev,
.st-htl-lightbox .next { position: absolute; border: none; background: rgba(255,255,255,.12); color: #fff; width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background .2s ease; }
.st-htl-lightbox .close:hover,
.st-htl-lightbox .prev:hover,
.st-htl-lightbox .next:hover { background: rgba(255,255,255,.24); }
.st-htl-lightbox .close { top: 22px; right: 22px; }
.st-htl-lightbox .prev { left: 22px; top: 50%; transform: translateY(-50%); }
.st-htl-lightbox .next { right: 22px; top: 50%; transform: translateY(-50%); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1199.98px) {
  .st-htl-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 991.98px) {
  .st-htl-wrap { grid-template-columns: 1fr; gap: 32px; }
  .st-htl-aside { position: static; }
  .st-htl-amenities { grid-template-columns: repeat(2, 1fr); }
  .st-htl-rooms { grid-template-columns: 1fr; }

  .st-htl-shop { grid-template-columns: 1fr; padding: 34px 20px 70px; }
  .st-htl-filters {
    position: fixed; top: 0; left: 0; bottom: 0; width: 86vw; max-width: 340px; z-index: 1045;
    border-radius: 0; transform: translateX(-100%); box-shadow: 0 0 60px rgba(0,0,0,.25);
    overflow-y: auto; visibility: hidden; transition: transform .32s ease, visibility 0s .32s;
  }
  .st-htl-filters.is-open { transform: translateX(0); visibility: visible; transition: transform .32s ease; }
  .st-htl-filters-close { display: flex; align-items: center; justify-content: center; }
  .st-htl-filter-open { display: inline-flex; }
}

@media (max-width: 767.98px) {
  .st-htl-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .st-htl-quick-wrap { margin-top: -30px; padding: 0 20px; }
  .st-htl-quick { flex-direction: column; }
  .st-htl-quick .qi { border-right: none; border-bottom: 1px solid var(--st-line); width: 100%; }
  .st-htl-quick .qi:last-child { border-bottom: none; }
  .st-htl-wrap { padding: 36px 20px 70px; }
  .st-htl-gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 130px; }
  .st-htl-gimg.big { grid-column: span 2; grid-row: span 1; }
  .st-htl-amenities { grid-template-columns: 1fr; }
  .st-htl-lightbox .prev, .st-htl-lightbox .next { width: 38px; height: 38px; }
  .st-htl-lightbox .close { top: 14px; right: 14px; width: 38px; height: 38px; }
}

@media (max-width: 575.98px) {
  .st-htl-grid { grid-template-columns: 1fr; }
  .st-htl-card .media { aspect-ratio: 16/11; }
}

/* ==========================================================================
   REVİZYON — detay sayfası düzeni (2026-08-04)
   Sorun: tüm bölümler 642px'lik sol kolona sıkışıyordu; sticky iletişim kartı
   bitince sağda ~700px boşluk kalıyor, sayfa yarım görünüyordu.
   Çözüm: ızgarada yalnız tanıtım + kart kalır, galeri ve altındaki tüm
   bölümler tam genişliğe alınır.
   ========================================================================== */
.st-htl-full {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px 8px;
}
.st-htl-full .st-htl-main { width: 100%; max-width: none; }

/* Galeri: 1 büyük + 4 küçük, 6. ve sonrası "+N" rozetiyle lightbox'ta */
.st-htl-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 168px;
  gap: 12px;
}
.st-htl-gallery > .st-htl-gimg { margin: 0; padding: 0; border: 0; }
.st-htl-gallery > .st-htl-gimg.big { grid-column: span 2; grid-row: span 2; }
.st-htl-gallery > .st-htl-gimg:nth-child(n+6) { display: none; }
.st-htl-gallery > .st-htl-gimg[data-more] { position: relative; }
.st-htl-gallery > .st-htl-gimg[data-more]::after {
  content: attr(data-more) " fotoğraf";
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(12, 32, 52, .62);
  color: #fff; font-size: 15px; font-weight: 700; letter-spacing: .01em;
  border-radius: inherit;
}
.st-htl-gallery > .st-htl-gimg[data-more]:hover::after { background: rgba(12, 32, 52, .72); }

/* Harita: konum bölümü artık tek satır metin değil */
.st-htl-map { margin-top: 14px; border-radius: 16px; overflow: hidden; border: 1px solid var(--st-line); }
.st-htl-map iframe { display: block; width: 100%; height: 380px; border: 0; }

/* İlgili program bulunamadığında dürüst CTA bloğu */
.st-htl-prog-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap;
  background: var(--st-soft); border: 1px solid var(--st-line); border-radius: 20px; padding: 30px 34px;
}
.st-htl-prog-cta .tx { flex: 1 1 460px; min-width: 0; }
.st-htl-prog-cta .tx h2 { margin: 6px 0 8px; }
.st-htl-prog-cta .tx p { margin: 0; color: var(--st-body); line-height: 1.7; }
.st-htl-prog-cta .ct { display: flex; gap: 12px; flex-wrap: wrap; flex: 0 0 auto; }
.st-htl-prog-cta .ct a { margin: 0; }

@media (max-width: 991.98px) {
  .st-htl-full { padding: 0 20px 8px; }
  .st-htl-gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 140px; }
  .st-htl-gallery > .st-htl-gimg.big { grid-column: span 2; grid-row: span 2; }
  .st-htl-map iframe { height: 300px; }
  .st-htl-prog-cta { padding: 22px; }
}
@media (max-width: 560px) {
  .st-htl-gallery { grid-auto-rows: 116px; gap: 8px; }
}

/* ==========================================================================
   REVİZYON-2 — Porto kutulu kabının nötrlenmesi (2026-08-04)
   porto_meta_layout filtresi 'otel' CPT'sinde etkili olmuyor (tur'da oluyor):
   #main > .container 1140px max-width ile kalıyor → 1920px'te hero ve tüm
   sayfa 1140px'lik kutuya hapsoluyor, kenarlarda beyaz bant kalıyordu.
   Projede 404 ve /hac/ için kullanılan kalıbın aynısı uygulanıyor.
   ========================================================================== */
body.single-otel #main > .container,
body.post-type-archive-otel #main > .container {
  max-width: 100% !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
body.single-otel #main > .container > .row,
body.post-type-archive-otel #main > .container > .row {
  margin-left: 0 !important;
  margin-right: 0 !important;
}
body.single-otel .main-content,
body.post-type-archive-otel .main-content {
  max-width: 100% !important;
  flex: 0 0 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* ==========================================================================
   REVİZYON-3 — TEK SOL HİZA (2026-08-04)
   2560px'te ölçüldüğünde sayfada 4 ayrı sol kenar vardı:
   hero başlığı 668 · hızlı bilgi şeridi 688 · gövde ızgarası 660 · galeri kabı 690.
   Geniş ekranda aşağı inen tırtıklı bir kenar oluşuyordu.
   Referans: gövde ızgarası (.st-htl-wrap) = 1240px kap + 28px iç dolgu → içerik 688.
   Hero içeriği de aynı ızgaraya oturtuluyor (yalnız otel sayfasında, tur şablonu
   etkilenmesin diye body.single-otel ile sınırlandı).
   ========================================================================== */
body.single-otel .st-htl-hero .st-hero-content {
  max-width: 1240px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 28px !important;
  padding-right: 28px !important;
  width: 100% !important;
}
@media (max-width: 991.98px) {
  body.single-otel .st-htl-hero .st-hero-content {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
}

/* REVİZYON-4 — Program CTA butonları (2026-08-04)
   İki buton farklı genişlikteydi (355px / 192px), sola yaslı olduğundan sağ
   kenar tırtıklı görünüyordu. Aynı sütunda, eşit genişlikte, ortalanmış metinle. */
.st-htl-prog-cta .ct {
  flex: 0 0 300px;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}
.st-htl-prog-cta .ct a {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 14px 22px;
  text-align: center;
  white-space: nowrap;
}
@media (max-width: 767.98px) {
  .st-htl-prog-cta .ct { flex: 1 1 100%; }
}
