/* Otel sayfasına özel bölümler (partials/service-otel.php).
   Ortak sistemden: renk değişkenleri, .wrap, .section, .eyebrow, .btn, .corners, .frame, .sintro, .features. */

/* ---------- Ortak bölüm başlığı ---------- */
.ot-head { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(24px, 5vw, 80px); align-items: end; margin-bottom: clamp(32px, 4vw, 56px); }
.ot-head h2 { max-width: 16ch; }
.ot-head h2 span { color: var(--accent); }
.ot-head--light h2 span { color: var(--gold-2); }
.ot-head__lead { color: var(--muted); font-size: 1.08rem; max-width: 46ch; padding-left: 20px; border-left: 2px solid var(--gold-2); }
.ot-head--light .ot-head__lead { color: var(--on-dark-muted); }

/* ---------- Uygunluk ---------- */
.ot-book { background: var(--ink); color: var(--on-dark); }
.ot-book__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 88px); align-items: start; }
.ot-book__ctrls { display: grid; gap: 26px; }
.ot-field { display: grid; gap: 10px; margin: 0; padding: 0; border: 0; min-width: 0; }
.ot-field__label { padding: 0; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-muted); }
.ot-dates { display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 14px; }
.ot-dates__arrow { padding-bottom: 14px; color: var(--gold-2); font-size: 1.3rem; }
.ot-field input[type="date"] { width: 100%; min-height: 52px; padding: 0 14px; border: 1px solid rgba(245, 242, 236, .3); border-radius: var(--radius); background: rgba(245, 242, 236, .04); color: var(--on-dark); font: 600 1rem var(--font-body); color-scheme: dark; }
.ot-field input[type="date"]:focus-visible { outline: 3px solid var(--gold-2); outline-offset: 2px; }
.ot-step { display: inline-grid; grid-template-columns: 52px 72px 52px; border: 1px solid rgba(245, 242, 236, .3); justify-self: start; }
.ot-step__btn { min-height: 52px; border: 0; background: none; color: var(--on-dark); font: 700 1.3rem/1 var(--font-body); cursor: pointer; transition: background-color .2s, color .2s; }
.ot-step__btn:hover:not(:disabled) { background: var(--gold-2); color: var(--ink); }
.ot-step__btn:disabled { color: rgba(245, 242, 236, .25); cursor: not-allowed; }
.ot-step__val { display: grid; place-items: center; border-inline: 1px solid rgba(245, 242, 236, .3); font-size: 1.4rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.ot-rooms__opts { display: flex; flex-wrap: wrap; gap: 8px; }
.ot-chip { position: relative; cursor: pointer; }
.ot-chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.ot-chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid rgba(245, 242, 236, .24); font-weight: 600; color: rgba(245, 242, 236, .8); transition: background-color .2s, color .2s, border-color .2s; }
.ot-chip:hover span { border-color: var(--on-dark); color: var(--on-dark); }
.ot-chip input:checked + span { background: var(--gold-2); border-color: var(--gold-2); color: var(--ink); }
.ot-chip input:focus-visible + span { outline: 3px solid var(--on-dark); outline-offset: 2px; }
.ot-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; padding-top: 22px; border-top: 1px solid rgba(245, 242, 236, .14); font-size: .86rem; color: var(--on-dark-muted); }
.ot-steps b { display: block; color: var(--gold-2); font-size: .78rem; margin-bottom: 4px; }

/* Oda anahtarı etiketi: pirinç oval, halka ile asılı */
.ot-key { display: grid; justify-items: center; padding-top: 24px; }
.ot-key__tag { position: relative; width: min(300px, 80%); aspect-ratio: 3 / 4.1; padding: 74px 24px 30px; border-radius: 50% / 34%; text-align: center; color: #3b2a10;
  background: radial-gradient(120% 80% at 30% 15%, #f7dc8a 0%, #e2b450 38%, #b9852b 72%, #8c5f1b 100%);
  box-shadow: inset 0 0 0 3px rgba(255, 240, 200, .5), inset 0 -10px 24px rgba(80, 45, 5, .35), 0 22px 40px rgba(0, 0, 0, .45);
  transform-origin: 50% -18px; }
.ot-key__tag.is-swing { animation: ot-swing 1.2s var(--ease); }
@keyframes ot-swing { 0% { transform: rotate(0); } 20% { transform: rotate(5deg); } 45% { transform: rotate(-3deg); } 70% { transform: rotate(1.2deg); } 100% { transform: rotate(0); } }
.ot-key__hole { position: absolute; top: 22px; left: 50%; width: 22px; height: 22px; margin-left: -11px; border-radius: 50%; background: var(--ink); box-shadow: inset 0 2px 3px rgba(0, 0, 0, .6), 0 1px 0 rgba(255, 240, 200, .6); }
.ot-key__ring { position: absolute; top: -34px; left: 50%; width: 46px; height: 64px; margin-left: -23px; border: 4px solid #c9cbc8; border-radius: 50%; clip-path: inset(0 0 46% 0); }
.ot-key__brand { font-size: .7rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; opacity: .75; }
.ot-key__nights { margin-top: 10px; font-size: clamp(2.4rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; color: #2b1d08; text-shadow: 0 1px 0 rgba(255, 240, 200, .6); }
.ot-key__dates { margin-top: 12px; font-size: 1.15rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.ot-key__meta { margin-top: 6px; font-size: .9rem; font-weight: 600; opacity: .8; }
.ot-key__msg { width: 100%; margin-top: 32px; padding: 20px; border: 1px solid rgba(245, 242, 236, .16); background: rgba(245, 242, 236, .04); }
.ot-key__msg-label { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-2); }
.ot-key__msg-text { margin: 10px 0 18px; color: rgba(245, 242, 236, .86); min-height: 3em; }
.ot-key__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ot-key__actions .btn { flex: 1 1 auto; }

/* ---------- Odalar ---------- */
.ot-roomlist { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 5fr) minmax(0, 3fr); gap: clamp(16px, 2vw, 28px); align-items: stretch; }
.ot-room { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); }
.ot-room__media { aspect-ratio: 4 / 3; }
.ot-room__body { display: flex; flex-direction: column; flex: 1; padding: clamp(20px, 2.4vw, 30px); }
.ot-room__num { font-size: .78rem; font-weight: 700; color: var(--accent); }
.ot-room__title { margin-top: 6px; font-size: clamp(1.3rem, 2vw, 1.6rem); }
.ot-room__text { margin: 8px 0 18px; color: var(--muted); }
.ot-room__go { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding-top: 12px; border-top: 1px solid var(--line); font-weight: 700; text-decoration: none; color: var(--ink); }
.ot-room__go span { color: var(--accent); transition: transform .25s var(--ease); }
.ot-room__go:hover span { transform: translateX(4px); }
.ot-direct { padding: clamp(22px, 2.4vw, 30px); background: var(--ink); color: var(--on-dark); }
.ot-direct__icon { width: 34px; height: 34px; color: var(--gold-2); }
.ot-direct h3 { margin-top: 18px; font-size: 1.25rem; }
.ot-direct p { margin-top: 8px; color: var(--on-dark-muted); }
.ot-direct ul { margin-top: 16px; display: grid; gap: 6px; }
.ot-direct li { position: relative; padding-left: 16px; font-size: .92rem; }
.ot-direct li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 2px; background: var(--gold-2); }

/* ---------- Akşam: yapışkan cephe ---------- */
.ot-eve { --p: 0; position: relative; background: #0d1626; color: #fff; }
.ot-eve__sticky { position: relative; min-height: 80vh; overflow: hidden; display: flex; align-items: flex-end; }
.ot-eve.is-live .ot-eve__track { height: 300vh; }
.ot-eve.is-live .ot-eve__sticky { position: sticky; top: calc(var(--header-h) + 60px); height: calc(100vh - var(--header-h) - 60px); min-height: 0; }
.ot-eve__media { position: absolute; inset: 0; }
.ot-eve__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ot-eve__img--day { transform: scale(calc(1.06 - var(--p) * .06)); }
.ot-eve__img--night { opacity: 0; transform: scale(calc(1.06 - var(--p) * .06)); }
.ot-eve.is-live .ot-eve__img--night { opacity: clamp(0, calc((var(--p) - .3) * 2.4), 1); }
/* Gün batımı: ortada turuncu-mor bir tül, sonra çekilir */
.ot-eve__dusk { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(240, 120, 60, .55), rgba(120, 60, 120, .25) 55%, transparent); mix-blend-mode: soft-light; opacity: 0; }
.ot-eve.is-live .ot-eve__dusk { opacity: var(--dusk, 0); }
.ot-eve__stars { position: absolute; inset: 0 0 80% 0; opacity: 0;
  background-image: radial-gradient(1.5px 1.5px at 12% 22%, #fff 50%, transparent), radial-gradient(1px 1px at 28% 40%, #fff 50%, transparent), radial-gradient(1.5px 1.5px at 44% 14%, #fff 50%, transparent),
    radial-gradient(1px 1px at 63% 30%, #fff 50%, transparent), radial-gradient(1.5px 1.5px at 78% 18%, #fff 50%, transparent), radial-gradient(1px 1px at 90% 44%, #fff 50%, transparent), radial-gradient(1px 1px at 52% 52%, #fff 50%, transparent); }
.ot-eve.is-live .ot-eve__stars { opacity: clamp(0, calc((var(--p) - .65) * 3), .9); }
.ot-eve__sticky::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10, 14, 22, .85) 0%, rgba(10, 14, 22, .2) 45%, transparent 70%); pointer-events: none; }
.ot-eve__content { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; padding-bottom: clamp(36px, 6vw, 72px); }
.ot-eve__lines { display: grid; flex: 1; }
.ot-eve__line { grid-area: 1 / 1; }
.ot-eve__line p { max-width: 20ch; font-size: clamp(1.6rem, 3.4vw, 2.8rem); font-weight: 700; line-height: 1.15; letter-spacing: -.025em; }
.ot-eve__when { display: inline-block; margin-bottom: 12px; padding: 6px 10px; background: rgba(10, 14, 22, .6); font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-1); }
.ot-eve.is-live .ot-eve__line { opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.ot-eve.is-live .ot-eve__line.is-active { opacity: 1; transform: none; }
.ot-eve:not(.is-live) .ot-eve__lines { gap: 18px; }
.ot-eve:not(.is-live) .ot-eve__line { grid-area: auto; }
.ot-eve:not(.is-live) .ot-eve__line p { font-size: clamp(1.2rem, 2.2vw, 1.6rem); }
/* Saat kadranı: akrep günü dolaşır */
.ot-eve__clock { position: relative; flex: none; width: 76px; height: 76px; border: 2px solid rgba(255, 255, 255, .7); border-radius: 50%; }
.ot-eve__clock::before { content: ""; position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px; border-radius: 50%; background: var(--gold-1); }
.ot-eve__clock i { position: absolute; left: 50%; bottom: 50%; width: 2px; height: 28px; margin-left: -1px; background: var(--gold-1); transform-origin: bottom; transform: rotate(calc(60deg + var(--p) * 180deg)); }
.ot-eve:not(.is-live) .ot-eve__clock { display: none; }
.ot-eve__note { position: absolute; right: 16px; top: 14px; z-index: 2; font-size: .75rem; color: rgba(255, 255, 255, .7); }

/* ---------- Galeri ---------- */
.ot-gal__nav { display: flex; gap: 8px; justify-self: end; }
.ot-gal__btn { width: 52px; height: 52px; border: 1.5px solid var(--ink); background: none; font: 700 1.2rem/1 var(--font-body); cursor: pointer; transition: background-color .2s, color .2s; }
.ot-gal__btn:hover:not(:disabled) { background: var(--ink); color: var(--gold-2); }
.ot-gal__btn:disabled { opacity: .3; cursor: default; }
.ot-gal__strip { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2)); scroll-padding-inline: max(var(--gutter), calc((100vw - var(--wrap)) / 2)); }
.ot-gal__strip::-webkit-scrollbar { display: none; }
.ot-gal__strip:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.ot-gal__item { position: relative; flex: 0 0 clamp(260px, 30vw, 400px); aspect-ratio: 4 / 5; overflow: hidden; scroll-snap-align: start; background: var(--stone); }
.ot-gal__item:nth-child(even) { aspect-ratio: 4 / 4.4; align-self: end; }
.ot-gal__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.ot-gal__item:hover img { transform: scale(1.03); }
.ot-gal__tag { position: absolute; left: 12px; bottom: 12px; padding: 6px 10px; background: rgba(22, 21, 15, .82); color: var(--on-dark); font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.ot-gal__note { margin-top: 14px; font-size: .8rem; color: var(--muted); }

/* ---------- Duyarlı ---------- */
@media (max-width: 960px) {
  .ot-head, .ot-book__grid { grid-template-columns: 1fr; }
  .ot-roomlist { grid-template-columns: 1fr 1fr; }
  .ot-direct { grid-column: 1 / -1; }
  .ot-gal__nav { justify-self: start; }
  .ot-eve__stars { display: none; } /* dar ekranda gökyüzü görünmez; yıldızlar duvara düşmesin */
  .ot-eve__clock { width: 56px; height: 56px; }
  .ot-eve__clock i { height: 20px; }
}
@media (max-width: 560px) {
  .ot-roomlist { grid-template-columns: 1fr; }
  .ot-dates { grid-template-columns: 1fr; }
  .ot-dates__arrow { display: none; }
  .ot-steps { grid-template-columns: 1fr 1fr; row-gap: 14px; }
  .ot-step { grid-template-columns: 56px 1fr 56px; width: 100%; }
  .ot-gal__item { flex-basis: 78vw; }
  .ot-eve__clock { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ot-key__tag.is-swing { animation: none; }
  .ot-gal__item img, .ot-room__go span { transition: none; }
}

/* ---------- Konum (otel Kıyıköy'de) ---------- */
.ot-loc { background: var(--ink); color: var(--on-dark); }
.ot-loc__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.ot-loc h2 span { color: var(--gold-2); }
.ot-loc__lead { margin-top: 16px; color: var(--on-dark-muted); max-width: 42ch; }
.ot-loc__list { margin: 26px 0 28px; border-top: 1px solid rgba(245, 242, 236, .16); }
.ot-loc__list div { display: grid; grid-template-columns: 90px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(245, 242, 236, .1); }
.ot-loc__list dt { font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-2); padding-top: 3px; }
.ot-loc__list dd { margin: 0; font-weight: 600; }
.ot-loc__map { position: relative; aspect-ratio: 4 / 3; background: #0d0c09; }
.ot-loc__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.35) contrast(1.05); }
@media (max-width: 960px) { .ot-loc__grid { grid-template-columns: 1fr; } }
