/* =========================================================
   rooms.css — La Bien Theme (Room Pages)
   Scope: .lbn-room / .lbn-room-intro / .lbn-lightbox
   Prefix: lbn-
   ========================================================= */

/* ---------- Page Wrap ---------- */
.lbn-room{
  padding: clamp(18px, 3vw, 34px) 0 clamp(28px, 4.2vw, 54px);
}
.lbn-room *{ box-sizing: border-box; }

/* ---------- Intro ---------- */
.lbn-room-intro{
  background: rgba(255,255,255,.72);
  border: 1px solid var(--card-br);
  border-radius: var(--radius-2);
  box-shadow: var(--shadow-1);
  padding: clamp(16px, 2.6vw, 26px);
  margin: 0 0 clamp(16px, 2.4vw, 24px);
}

.lbn-room-intro__title{
  margin: 0 0 8px;
  letter-spacing: .2px;
}

.lbn-room-intro__lead{
  margin: 0;
  color: var(--muted);
  max-width: 78ch;
}

.lbn-room-intro__chips{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.lbn-chip{
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  background: var(--pill);
  border: 1px solid rgba(0,0,0,.06);
  color: #2b2f36;
  font-weight: 600;
  font-size: 13px;
}

/* ---------- Layout Grid ---------- */
.lbn-room__grid{
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: clamp(14px, 2.6vw, 22px);
  align-items: start;
}

/* ---------- Cards ---------- */
.lbn-card{
  background: var(--card);
  border: 1px solid var(--card-br);
  border-radius: var(--radius-2);
  box-shadow: var(--shadow-1);
  padding: clamp(14px, 2.2vw, 20px);
}

.lbn-card__title{ margin: 0 0 10px; }
.lbn-card__sub{
  margin: 0 0 14px;
  color: var(--muted);
}

/* Oda sayfası sağ sidebar: kartlar arası dikey boşluk */
.lbn-room__sidebar .lbn-card + .lbn-card{
  margin-top: clamp(12px, 2vw, 22px);
}

/* =========================================================
   Gallery (Page) — 5 images: 1 main + 4 thumbs
   FIX: Sağ tarafta satırlar boşluk dağıtmasın
   ========================================================= */
.lbn-room-gallery{
  display: grid;
  grid-template-columns: 1.35fr .65fr;
  gap: 10px;
}

.lbn-room-gallery__item{
  position: relative;
  border-radius: var(--radius-2);
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.08);
  background: #f3f4f6;
  text-decoration: none;
}

.lbn-room-gallery__item img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.001);
  transition: transform .35s ease;
}

.lbn-room-gallery__item:hover img{ transform: scale(1.03); }

/* Ana büyük görsel */
.lbn-room-gallery__item.is-main{
  aspect-ratio: 4 / 3;
}

/* Sağ taraf 4 küçük görsel: 2x2, satırlar 1fr -> boşluk dağıtımı biter */
.lbn-room-gallery__side--4{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, 1fr);          /* <-- kritik fix */
  gap: 8px;                                   /* <-- masaüstünde daha sıkı */
  height: 100%;
  align-content: stretch;                      /* satırlar 1fr olduğundan sorun olmaz */
}

/* Küçük görseller: yüksekliği hücreden alsın */
.lbn-room-gallery__item.is-thumb{
  height: 100%;
}

/* Hint */
.lbn-room-gallery__hint{
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- Facts ---------- */
.lbn-facts{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
  margin: 14px 0 0;
}

.lbn-facts > div{
  padding: 10px 12px;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 12px;
  background: rgba(245,233,220,.35);
}

.lbn-facts dt{
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 2px;
}
.lbn-facts dd{
  margin: 0;
  font-weight: 800;
  color: var(--brand-navy);
}

/* =========================================================
   Gallery (Page) — 4 images: 1 main + 3 thumbs
   (Artemis gibi 4 görselli odalar için)
   ========================================================= */
.lbn-room-gallery__side--3{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, 1fr);
  gap: 8px;
  height: 100%;
}

/* 3. küçük görsel altta 2 kolon kaplasın (dengeli görünüm) */
.lbn-room-gallery__side--3 .lbn-room-gallery__item:nth-child(3){
  grid-column: 1 / -1;
}

/* =========================================================
   Gallery (Page) — 2 images: 1 main + 1 thumb
   (Medusa gibi 2 görselli odalar için)
   ========================================================= */
.lbn-room-gallery__side--1{
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  height: 100%;
}


/* ---------- Actions ---------- */
.lbn-room__actions{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.lbn-btn--soft{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 700;
  padding: 12px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(0,0,0,.10);
  background: rgba(10,35,66,.06);
  color: var(--brand-navy);
  transition: transform .15s ease, background .15s ease;
}
.lbn-btn--soft:hover{
  transform: translateY(-1px);
  background: rgba(10,35,66,.10);
}

/* ---------- Checklist ---------- */
.lbn-checklist{
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.lbn-checklist li{
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  color: #2b2f36;
}

.lbn-checklist li::before{
  content: "✓";
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: rgba(201,163,59,.22);
  color: var(--brand-navy);
  font-weight: 900;
  margin-top: 2px;
}

/* ---------- Amenities ---------- */
.lbn-room__sections{
  margin-top: clamp(16px, 2.8vw, 26px);
}

.lbn-room__section-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: clamp(12px, 2.4vw, 18px);
}

.lbn-amenities{
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  display: grid;
  gap: 8px;
}

.lbn-amenities li{
  padding: 10px 12px;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: 12px;
  background: #fff;
  color: #2b2f36;
}

.lbn-note{
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
}

/* ---------- CTA band ---------- */
.lbn-room-cta{
  margin-top: clamp(18px, 3vw, 30px);
  border-radius: var(--radius-2);
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.08);
  background:
    radial-gradient(900px 240px at 10% 0%, rgba(201,163,59,.22), transparent 60%),
    linear-gradient(135deg, rgba(10,35,66,.95), rgba(10,35,66,.86));
  color: #fff;
}

.lbn-room-cta__inner{
  padding: clamp(16px, 3vw, 26px);
  display: grid;
  gap: 10px;
}

.lbn-room-cta__inner h2{ margin: 0; color: #fff; }

.lbn-room-cta__inner p{
  margin: 0;
  color: rgba(255,255,255,.88);
  max-width: 78ch;
}

.lbn-room-cta__actions{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

/* ---------- SEO block ---------- */
.lbn-room-seo{
  margin-top: clamp(18px, 3vw, 30px);
}

.lbn-prose{
  background: rgba(255,255,255,.72);
  border: 1px solid var(--card-br);
  border-radius: var(--radius-2);
  box-shadow: var(--shadow-1);
  padding: clamp(16px, 2.6vw, 26px);
}

.lbn-prose h2, .lbn-prose h3{ margin-top: 0; }

.lbn-prose p{
  margin: 10px 0;
  color: #2b2f36;
}

.lbn-prose ul{
  margin: 10px 0 0;
  padding-left: 18px;
  color: #2b2f36;
}

.lbn-prose li{ margin: 6px 0; }

/* =========================================================
   LBN Pro Lightbox (Rooms Gallery)
   ========================================================= */
body.lbn-lightbox-open{ overflow:hidden; }

.lbn-lightbox{
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(10px, 2vw, 18px);
  background: rgba(0,0,0,.88);
  z-index: 99999;
}
.lbn-lightbox.is-open{ display:flex; }

/* FIX: thumbs + caption için 4 satır */
.lbn-lightbox__dialog{
  width: min(1180px, 100%);
  height: min(82vh, 820px);
  display: grid;
  grid-template-rows: auto 1fr auto auto; /* <-- kritik fix */
  gap: 10px;
  min-height: 0;
}

.lbn-lightbox__top{
  display:flex;
  align-items:center;
  justify-content: space-between;
  gap: 10px;
  color:#fff;
}

.lbn-lightbox__meta{
  display:flex;
  flex-direction:column;
  gap: 4px;
  min-width: 0;
}

.lbn-lightbox__title{
  margin:0;
  font-weight: 900;
  font-size: 14px;
  letter-spacing: .2px;
  opacity:.95;
  white-space: nowrap;
  overflow:hidden;
  text-overflow: ellipsis;
}
.lbn-lightbox__count{
  font-size: 12px;
  opacity:.72;
}

.lbn-lightbox__btns{
  display:flex;
  align-items:center;
  gap: 8px;
  flex-wrap: wrap;
}

.lbn-lightbox__btn{
  appearance:none;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.10);
  color:#fff;
  border-radius: 999px;
  padding: 10px 12px;
  cursor:pointer;
  font-weight: 900;
  line-height: 1;
  transition: transform .15s ease, background .15s ease;
}
.lbn-lightbox__btn:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,.16);
}
.lbn-lightbox__btn:active{ transform: translateY(0); }

.lbn-lightbox__stage{
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  display:flex;
  align-items:center;
  justify-content:center;
  user-select: none;
  -webkit-user-select: none;
  min-height: 0;
}

.lbn-lightbox__img{
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  display:block;
  transform: scale(var(--lbn-zoom, 1));
  transform-origin: var(--lbn-ox, 50%) var(--lbn-oy, 50%);
  transition: transform .12s ease;
}

.lbn-lightbox.is-zoom .lbn-lightbox__stage{ cursor: zoom-out; }
.lbn-lightbox:not(.is-zoom) .lbn-lightbox__stage{ cursor: zoom-in; }
.lbn-lightbox.is-zoom .lbn-lightbox__img{ transition: transform .08s linear; }

.lbn-lightbox__nav{
  position:absolute;
  inset: 0;
  display:flex;
  justify-content: space-between;
  align-items:center;
  pointer-events:none;
  padding: 0 10px;
}
.lbn-lightbox__nav button{
  pointer-events: all;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(0,0,0,.26);
  color:#fff;
  cursor:pointer;
  font-weight: 900;
  transition: background .15s ease, transform .15s ease;
}
.lbn-lightbox__nav button:hover{
  background: rgba(0,0,0,.38);
  transform: translateY(-1px);
}

.lbn-lightbox__thumbs{
  display:flex;
  gap: 10px;
  overflow-x: auto;
  padding: 10px 8px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  scrollbar-width: thin;
}
.lbn-lightbox__thumbs::-webkit-scrollbar{ height: 8px; }
.lbn-lightbox__thumbs::-webkit-scrollbar-thumb{
  background: rgba(255,255,255,.18);
  border-radius: 999px;
}

.lbn-thumb{
  flex: 0 0 auto;
  width: 76px;
  height: 56px;
  border-radius: 12px;
  overflow:hidden;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(0,0,0,.18);
  cursor:pointer;
  padding:0;
}
.lbn-thumb img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
  transform: scale(1.02);
  transition: transform .25s ease, opacity .25s ease;
  opacity: .86;
}
.lbn-thumb:hover img{ transform: scale(1.06); opacity: 1; }

.lbn-thumb.is-active{
  outline: 2px solid rgba(201,163,59,.85);
  outline-offset: 2px;
}
.lbn-thumb.is-active img{ opacity: 1; }

.lbn-lightbox__caption{
  margin: 0;
  color: rgba(255,255,255,.86);
  font-size: 13px;
  text-align:center;
  min-height: 18px;
}

/* ---------- Responsive ---------- */
@media (max-width: 992px){
  .lbn-room__grid{ grid-template-columns: 1fr; }
  .lbn-room__section-grid{ grid-template-columns: 1fr; }
  .lbn-facts{ grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px){
  /* page gallery: tek sütun + 2x2 thumb */
  .lbn-room-gallery{ grid-template-columns: 1fr; }
  .lbn-room-gallery__item.is-main{ aspect-ratio: 16 / 10; }

  /* mobilde sağ blok yüksekliği artık ana görsele bağlı olmasın */
  .lbn-room-gallery__side--4{
    height: auto;
    grid-template-rows: none;
    gap: 10px;
  }

  /* mobil thumb’larda güzel oran */
  .lbn-room-gallery__item.is-thumb{
    height: auto;
    aspect-ratio: 16 / 10;
  }

  .lbn-facts{ grid-template-columns: 1fr; }

  /* lightbox mobil */
  .lbn-lightbox__dialog{ height: min(84vh, 760px); }
  .lbn-lightbox__nav button{ width: 50px; height: 50px; }
  .lbn-thumb{ width: 68px; height: 54px; }
}
