/* 9Taş v1.8.1 — görsel düzeltmeler. flow-v18.css'ten sonra yüklenir; yalnızca üzerine yazar. */

/* Mobil üst şerit: tüm içerik gizlendiği için boş koyu bant kalıyordu → kısa notu göster. */
@media (max-width: 800px) {
  .room-topline { height: 28px; justify-content: center; }
  .room-topline .topnote { display: block !important; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}

/* Ürün kartları: başlık/açıklama/fiyat kart kenarına yapışıktı → iç boşluk. */
.house-emotions .product,
.room-page .product { overflow: hidden; }
.house-emotions .product .product-meta,
.room-page .product .product-meta { padding: 0 16px 16px; margin-top: 14px; flex-wrap: nowrap; }
.house-emotions .product .product-meta > a,
.room-page .product .product-meta > a { min-width: 0; }
@media (max-width: 560px) {
  .house-emotions .product .product-meta,
  .room-page .product .product-meta { padding: 0 10px 12px; gap: 6px; }
  .house-emotions .product .product-meta h3,
  .room-page .product .product-meta h3 { font-size: 20px; }
  .product-meta .price:after { font-size: 8px; }
}

/* Etkinlik kartı bilgi tablosu: "Ebeveyn katılımı" değerle bitişikti. */
.brief-facts { grid-template-columns: max-content minmax(0, 1fr); column-gap: 18px; }

/* Yasal/dizin alt şeridi: kaldırılan marka bloğundan sonra iki sütun. */
.brief-footer .brief-inner { grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
@media (max-width: 760px) { .brief-footer .brief-inner { grid-template-columns: 1fr; } }

/* Mobil kaydırma çubuğu etiketi iki satıra kırılıp ilerleme çubuğuyla çakışıyordu. */
@media (max-width: 560px) {
  .ux-bottom > span { display: none; }
}

/* 404: başlık ortalı, "Ana sayfa" düğmesi sola yaslıydı. */
#main > .section.wrap:has(> .btn:only-child) { text-align: center; }

/* Footer üstündeki büyük boşluk: son bölümün alt boşluğu + footer üst boşluğu (~175px) daraltıldı. */
#main > .brief-section:last-child,
#main > .section:last-child,
#main > .ed-narrative:last-child { padding-bottom: 40px; }
#main > .room-page:last-child,
#main > :last-child > .room-page:last-child { padding-bottom: 40px; }
#main > .room-page:last-child > .section:last-child,
#main > :last-child > .room-page:last-child > .section:last-child { padding-bottom: 0; }
#footer .room-footer { padding-top: 40px; }

/* Yasal bağlantılar footer alt satırına taşındı. */
.room-footer-bottom .brief-legal { display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: flex-end; }
.room-footer-bottom .brief-legal a { color: inherit; text-decoration: none; }
.room-footer-bottom .brief-legal a:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 760px) { .room-footer-bottom .brief-legal { justify-content: flex-start; } }

/* Bölümler arası boşluk: her bölüm üst+alt 84px + kapsayıcı 84px → 170–260px boşluk oluşuyordu. */
#main .section,
#main > .section,
#main .room-page .section { padding-block: clamp(28px, 3.4vw, 52px); }
#main .room-page { padding-bottom: 0; }
#main .room-page .quote { padding-block: clamp(40px, 4.5vw, 64px); }

/* Hakkımızda: metnin sağı boştu → metin + fotoğraf sütunu. */
.about-split { display: grid; grid-template-columns: minmax(0, 720px) minmax(260px, 400px); justify-content: space-between; gap: clamp(32px, 6vw, 110px); align-items: start; }
.about-split > .prose { max-width: none; padding: 0; margin: 0; }
.about-aside { position: sticky; top: calc(var(--ed-head, 90px) + 24px); display: grid; gap: 22px; }
.about-aside figure { margin: 0; }
.about-aside img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 6px; box-shadow: 0 18px 40px -28px rgba(60, 40, 60, .45); }
.about-aside figure:nth-child(2) img { aspect-ratio: 4 / 3; }
.about-aside figcaption { margin-top: 8px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #807076; }
@media (max-width: 900px) {
  .about-split { grid-template-columns: 1fr; }
  .about-aside { position: static; grid-template-columns: 1fr 1fr; gap: 12px; }
  .about-aside figure:nth-child(2) img { aspect-ratio: 4 / 5; }
}

/* "9Taş’ı tanıyın": düz butonlar yerine fotoğraflı kartlar. */
.about-links h2 { margin-bottom: 22px; }
.about-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 26px); }
.about-card { display: block; color: inherit; text-decoration: none; background: #fffdf9; border: 1px solid #e4d9e1; border-radius: 6px; overflow: hidden; transition: transform .35s ease, box-shadow .35s ease; }
.about-card img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .6s ease; }
.about-card span { display: grid; gap: 6px; padding: 16px 18px 18px; }
.about-card b { font: 400 22px/1.2 var(--serif, Georgia, serif); color: #3a2f3c; }
.about-card i { font-style: normal; font-size: 15px; color: #7b5a7f; }
.about-card small { font-size: 13px; line-height: 1.5; color: #75666f; }
.about-card:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -30px rgba(60, 40, 60, .5); }
.about-card:hover img { transform: scale(1.04); }
.about-card:focus-visible { outline: 3px solid #7d4f92; outline-offset: 3px; }
@media (max-width: 760px) { .about-cards { grid-template-columns: 1fr; } .about-card img { aspect-ratio: 16 / 9; } }
@media (prefers-reduced-motion: reduce) { .about-card, .about-card img { transition: none; } }

/* --- v1.8.1 tur 3: tekrarlar ve fazla boşluklar --- */
/* Ana sayfa bölümleri (house-*) üst+alt ~80px kullanıyordu. */
#main .house-worlds, #main .house-gatherings, #main .house-story, #main .house-partnership,
#main .house-founder, #main .house-quote, #main .house-emotions { padding-block: clamp(28px, 3.4vw, 52px); }
#main .house-candle, #main .house-festival { padding-block: clamp(20px, 2.6vw, 40px); }
#main .house-quote .quote { padding-block: clamp(36px, 4vw, 56px); }
#main .house-emotions > .section, #main .house-event-list .section { padding-block: clamp(18px, 2.2vw, 32px); }

/* Ana sayfa: aynı içerik iki kez — "Dokuz duygu · bir hikâye" notu, etkinlik listesinin ikinci başlığı
   ve ikinci festival bloğu ("Bir gün dolusu…"; aynı festival "Hayal eden çocuklar" ile zaten var). */
#main .house-emotions > .house-emotion-note { display: none; }
#main .house-event-list .sectionhead { display: none; }
#main .house-festival { display: none; }

/* Atölyeler: kategori kartları hemen altındaki filtre düğmeleriyle aynı işi yapıyordu. */
#main .work-intro-cards { display: none; }

/* Arama/durum alanlarının etiketi ve kutusu diğer filtrelerden büyüktü. */
#main label.catalog-search { font-size: 12px; display: grid; gap: 6px; max-width: 360px; }
#main label.catalog-search .field { font-size: 13px; }

/* Festival özellik kartlarının alt yarısı boştu. */
#main .infocard { min-height: 0; }

/* Etkinlik kartında satır kalmayınca boşluk bırakmasın. */
#main .eventcard .brief-event:empty { display: none; }
#main .calendar-controls label { font-size: 12px; display: grid; gap: 6px; }
#main .calendar-controls .field { font-size: 13px; }
/* Seçim kutuları farklı boyutlardaydı (12–16px). */
#main select.field { font-size: 13px; }

/* Örnek veri turu: fiyat altındaki "örnek fiyat" notu (ORNEK_VERILER.md'de listeli). */
.price:after, .product-meta .price:after { content: none !important; }
/* Atölye detayı: "Kayıt seçenekleri" düğmesi sağ sütunu boydan boya kaplıyordu. */
#main .contactgrid > a.btn { align-self: start; justify-self: start; }
#main .eventcard .sample-note:empty { display: none; }

/* --- Konum yardımcıları: harita, açık/kapalı rozeti, adres kartı, takvime ekle --- */
.place-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(24px, 4vw, 64px); align-items: stretch; }
.place-grid h2 { margin-top: 0; }
.place-info { display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.place-card { display: grid; gap: 6px; justify-items: start; }
.place-address { margin: 4px 0 0; font: 400 20px/1.35 var(--serif, Georgia, serif); color: #3a2f3c; }
.place-hours { margin: 0; font-size: 14px; color: #75666f; }
.place-copy { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; font-size: 13px; color: #6d4f72; text-decoration: underline; text-underline-offset: 3px; }
.place-status { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; background: #efe7ea; color: #6e5a63; font-size: 12px; font-weight: 600; letter-spacing: .02em; }
.place-status i { width: 8px; height: 8px; border-radius: 50%; background: #b08a95; }
.place-status.is-open { background: #e5efe6; color: #3d6248; }
.place-status.is-open i { background: #4f9a63; box-shadow: 0 0 0 4px rgba(79, 154, 99, .18); }
.place-map { margin: 0; min-height: 320px; border-radius: 10px; overflow: hidden; border: 1px solid #e2d7de; background: #ece5e8; }
.place-map iframe { display: block; width: 100%; height: 100%; min-height: 320px; border: 0; filter: saturate(.85); }
#main .prose .place-map, #main .wrap > .place-map { margin-top: 22px; height: 360px; }
#main .wrap > .place-card { margin-bottom: 4px; }
.place-cal { margin-top: 14px; }
@media (max-width: 860px) {
  .place-grid { grid-template-columns: 1fr; }
  .place-map, .place-map iframe { min-height: 260px; }
}
.place-grid h2, #main .wrap > h2:first-child { font: 400 clamp(28px, 3vw, 40px)/1.15 var(--serif, Georgia, serif); color: #2f2832; margin: 0 0 14px; }

/* v1.8.3 — Ana sayfa iş birlikleri: sağdan sola akan kart şeridi */
.partner-marquee{overflow:hidden;margin-top:clamp(22px,3vw,36px);padding-block:6px;-webkit-mask-image:linear-gradient(90deg,transparent,#000 7%,#000 93%,transparent);mask-image:linear-gradient(90deg,transparent,#000 7%,#000 93%,transparent)}
.partner-track{display:flex;gap:18px;width:max-content;margin:0;padding:0;list-style:none;animation:partner-flow 38s linear infinite;will-change:transform;backface-visibility:hidden;transform:translate3d(0,0,0)}
.partner-card{display:flex;align-items:center;gap:14px;min-width:240px;padding:16px 22px 16px 16px;background:#fffdf8;border:1px solid rgba(80,60,80,.12);border-radius:14px;box-shadow:0 6px 18px rgba(60,40,60,.06)}
.partner-logo{flex:0 0 48px;width:48px;height:48px}
.partner-card span{font:400 17px/1.25 Georgia,serif;color:#3d2f3f;white-space:nowrap}
@keyframes partner-flow{from{transform:translate3d(0,0,0)}to{transform:translate3d(calc(-50% - 9px),0,0)}}
#main .house-partnership .section{padding-bottom:0}
#main .house-partnership{padding-bottom:clamp(16px,2vw,28px)}

@media (prefers-reduced-motion:reduce){.partner-track{animation:none;flex-wrap:wrap;width:auto}.partner-track li[aria-hidden]{display:none}}
@media (max-width:650px){.partner-card{min-width:200px;padding:12px 16px 12px 12px}.partner-logo{flex-basis:40px;width:40px;height:40px}.partner-card span{font-size:15px}.partner-track{animation-duration:30s}}

/* ==========================================================================
   v1.8.3 — Mobil ve tablet uyumu
   ========================================================================== */
/* Ürün görseli altındaki iki düğme: tam genişlik yerine yan yana, kompakt */
#main .detail-media{flex-direction:row;flex-wrap:wrap;align-items:flex-start;column-gap:10px}
#main .detail-media>*{flex:1 1 100%}
#main .detail-media>button[data-media].btn,#main .detail-media>button[data-preview].btn{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;width:auto;min-height:42px;margin:4px 0 0;padding:0 18px;font-size:13px}

/* Tablet (dikey ve yatay): tek sütuna düşen kart ızgaraları iki sütun olsun */
@media (min-width:601px) and (max-width:1024px){
  /* sabit 2 sütun değil: kart en az 250px kalacak şekilde sığdığı kadar sütun (3'e kadar) */
  #main .cards3{grid-template-columns:repeat(auto-fit,minmax(max(250px,calc((100% - 2 * 18px) / 3)),1fr))}
  #main .contactgrid{gap:28px}
  .room-footer-bottom .brief-legal{justify-content:flex-start}
}

/* Telefon ve tablet: okunabilirlik */
@media (max-width:1024px){
  #main .ed-kicker,#main .eyebrow,#main .ux-hero-foot{font-size:11px;letter-spacing:.14em}
  .room-page-mast a,.room-page-mast span{font-size:11px}
  #main figcaption{font-size:10.5px}
  #main small{font-size:max(11px,1em)}
  /* iOS, 16px'ten küçük form alanlarına odaklanınca sayfayı yakınlaştırır */
  #main input:not([type=checkbox]):not([type=radio]),#main select,#main textarea{font-size:16px}
}

/* Dokunmatik ekranlar: parmakla rahat basılabilir alanlar (görünüm aynı, tıklama alanı büyük) */
@media (pointer:coarse){
  #main .textlink,#main .ed-textlink,.room-backtop,#main .place-copy{display:inline-flex;align-items:center;min-height:40px}
  .room-footer a,.room-footer-bottom .brief-legal a{display:inline-flex;align-items:center;min-height:36px}
  .room-page-mast a{display:inline-flex;align-items:center;min-height:36px}
  .room-footer-bottom .brief-legal{gap:0 18px}
  #main input[type=checkbox],#main input[type=radio]{width:20px;height:20px;flex:0 0 20px}
}

/* Telefon: alt sabit çubuk (İletişim · Kayıt · Alışveriş) sayfa sonunu kapatmasın */
@media (max-width:650px){
  .room-footer{padding-bottom:calc(72px + env(safe-area-inset-bottom,0px))}
  .room-footer-bottom{flex-direction:column;align-items:flex-start;gap:10px}
  #main .partner-card{min-width:0}
}

/* Telefon/tablet: 11px'in altında kalan okunur etiketler (dekoratif logo alt yazısı hariç) */
@media (max-width:1024px){
  html body .room-footer-links span,html body .room-footer-bottom small,html body .emotion-grid .emotion b,
  html body .product-image .product-tag,html body #main .pill,html body .split .visual .visualtext,
  html body .ux-hero .ux-hero-foot,html body .ux-pin .ux-top span,html body .ux-pin .ux-top b,
  html body .room-card .room-copy span,html body .house-kicker,html body .room-grid-foot span,
  html body .ed-hero-foot span,html body .ed-embed-head .ed-textlink,html body .ed-scroll-hint,
  html body .ux-fest-frame span,html body .ux-ticket span,html body .ed-art-tag span{font-size:11px}
  html body #main figcaption,html body #main .ux-hero .ux-hero-foot,html body #main .ux-pin .ux-top span,html body #main .ux-pin .ux-top b{font-size:11px}
}

/* v1.8.3 — "Bir hayalin izi" kuş bakışı harita kamerası (js/history-line.js) */
#main .ux-history.hl-cam{overflow:hidden;border-radius:14px}
#main .ux-history .hl-world{position:absolute;inset:0;transform-origin:0 0;will-change:transform}
#main .ux-history.hl-cam .ux-memory.is-active{transform:translateX(-10px);opacity:.33;z-index:auto}
#main .ux-history.hl-cam .ux-memory.is-active:nth-of-type(even){transform:translateX(10px)}
#main .ux-history.hl-cam .ux-memory.hl-seen{opacity:.8}
#main .ux-history.hl-cam .ux-memory.hl-on{opacity:1;transform:translateX(-10px) scale(1.03);z-index:2}
#main .ux-history.hl-cam .ux-memory.hl-on:nth-of-type(even){transform:translateX(10px) scale(1.03)}

/* Fotoğraflar arası açıklık: harita dikeyde --hl-stretch kat uzar, fotoğraflar aynı boyutta kalır */
#main .ux-history.hl-cam{--hl-stretch:1.6}
#main .ux-history.hl-cam .hl-world{bottom:auto;height:calc(100% * var(--hl-stretch))}
#main .ux-history.hl-cam .ux-memory{height:calc(32% / var(--hl-stretch));top:calc(var(--i) * 34% + 4%)}

/* Telefon: "Bir hayalin izi" fotoğrafları 14:12; harita buna göre biraz daha uzun */
@media (max-width:650px){
  #main .ux-history.hl-cam{--hl-stretch:2}
  #main .ux-history.hl-cam .ux-memory{height:auto}
  #main .ux-history.hl-cam .ux-memory img{height:auto;aspect-ratio:14/12;object-fit:cover}
}

/* Ana sayfa ve Kafe & Oyun: açılış bölümü (ux-hero) tamamen kaldırıldı;
   sayfa doğrudan kaydırmalı animasyonlu bölümle (ux-journey) açılır. */
#main .ux-hero.ux-hero-home,#main .ux-hero.ux-hero-play{display:none}

/* Kaydırmalı bölümlerin ilk girişi (js/journey-enter.js):
   ux-prep  → gizli + geçiş efektleri kapalı, konumlar anında yerine oturur
   ux-enter → 4px aşağıdan hafifçe yukarı kayarak belirir (yalnızca sayfa açılışında) */
#main .ux-journey.ux-prep .ux-stage>div:first-child{opacity:0}
#main .ux-journey.ux-prep .ux-stage>div:first-child,#main .ux-journey.ux-prep .ux-stage>div:first-child *{transition:none!important}
#main .ux-journey.ux-enter .ux-stage>div:first-child{animation:ux-enter .55s cubic-bezier(.2,.7,.25,1) both}
@keyframes ux-enter{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){#main .ux-journey.ux-enter .ux-stage>div:first-child{animation-duration:.01s}}
