/* =========================================================
   HakanBey Konağı - yeni tasarım
   Renkler konağın fotoğraflarından: Mardin taşı, kireç,
   gece mavisi ve teras kandillerinin ışığı.
   ========================================================= */

:root {
    --tas: #EAD9BA;        /* Mardin taşı: sayfa zemini */
    --kirec: #FBF7EF;      /* kireç: kutular ve açık yüzeyler, zeminden belirgin açık */
    --gece: #1E2238;       /* gece mavisi: metin ve koyu bölüm */
    --gece-acik: #2B3150;
    --kandil: #E8A13F;     /* kandil ışığı: ana eylem */
    --kandil-koyu: #C9822A;
    --harc: #6B4F31;       /* harç kahvesi: ikincil metin */
    --cizgi: rgba(30, 34, 56, .18);
    --kenar: rgba(107, 79, 49, .22);  /* taş zemindeki kutuların ince kenarı */
    --gece-sis: #DCDEE7;               /* dolu günler: gece mavisinin açık tonu */
    --pasif: #DDD6C9;                  /* pasif buton */

    --font-display: "Marcellus", "Times New Roman", serif;
    --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

    /* Tip ölçeği (1.25 oran) */
    --t-sm: .875rem;
    --t-base: 1rem;
    --t-md: 1.25rem;
    --t-lg: 1.5625rem;
    --t-xl: clamp(1.95rem, 3.2vw, 2.45rem);
    --t-hero: clamp(2.5rem, 6.4vw, 5.25rem);

    --wrap: 72rem;
    --gutter: clamp(1rem, 4vw, 2.5rem);
    --section: clamp(4rem, 9vw, 7.5rem);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--tas);
    color: var(--gece);
    font-family: var(--font-body);
    font-size: var(--t-base);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; }

:focus-visible {
    outline: 3px solid var(--kandil);
    outline-offset: 3px;
}

.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.plain { list-style: none; margin: 0; padding: 0; }

.skip-link {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 100;
    padding: .6rem 1rem;
    background: var(--kandil);
    color: var(--gece);
    font-weight: 600;
    text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* ---------- Butonlar ---------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    padding: .75rem 1.4rem;
    border: 1.5px solid transparent;
    border-radius: 2px;
    font: 600 var(--t-base)/1.2 var(--font-body);
    text-decoration: none;
    cursor: pointer;
    transition: background-color .15s, border-color .15s, color .15s;
}

.btn--kandil { background: var(--kandil); color: var(--gece); }
.btn--kandil:hover { background: var(--kandil-koyu); }
.btn:disabled, .btn:disabled:hover { background: var(--pasif); border-color: var(--pasif); color: rgba(30, 34, 56, .55); cursor: default; }

.btn--line { border-color: var(--gece); color: var(--gece); background: transparent; }
.btn--line:hover { background: var(--gece); color: var(--kirec); }

.text-link {
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: var(--kandil);
    text-decoration-thickness: 2px;
    text-underline-offset: .3em;
}
.text-link:hover { color: var(--harc); }

/* ---------- Üst bar ---------- */

.site-header { background: var(--gece); color: var(--kirec); }
.site-header--over {
    position: absolute;
    inset: 0 0 auto;
    z-index: 10;
    background: linear-gradient(rgba(20, 23, 40, .7), rgba(20, 23, 40, 0));
}

.site-header__inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 5rem;
}

.brand img { width: 150px; height: auto; }

.nav-toggle {
    display: none;
    padding: .5rem .9rem;
    border: 1px solid rgba(247, 239, 224, .5);
    border-radius: 2px;
    background: transparent;
    color: inherit;
    font: 600 var(--t-base) var(--font-body);
    cursor: pointer;
}

.site-nav { display: flex; align-items: center; gap: 2rem; }
.site-nav a {
    text-decoration: none;
    font-weight: 500;
    padding-block: .4rem;
    border-bottom: 2px solid transparent;
}
.site-nav a:hover { border-bottom-color: var(--kandil); }
.site-nav .site-nav__wa {
    padding: .55rem 1rem;
    border: 1.5px solid var(--kandil);
    border-radius: 2px;
}
.site-nav .site-nav__wa:hover { background: var(--kandil); color: var(--gece); }

/* ---------- Hero ---------- */

.hero {
    position: relative;
    isolation: isolate;
    min-height: min(100svh, 56rem);
    display: flex;
    align-items: flex-end;
    color: var(--kirec);
    background: var(--gece);
}

.hero__photo {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 40%;
}

/* Fotoğrafın alt yarısını gece rengine eritir: başlık her ışıkta okunur */
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(to top, rgba(22, 25, 43, .96) 0%, rgba(22, 25, 43, .82) 32%, rgba(22, 25, 43, .15) 70%, rgba(22, 25, 43, .35) 100%);
}

.hero__content { padding-top: 9rem; padding-bottom: clamp(2rem, 5vw, 3.5rem); }

.hero__title {
    max-width: 15ch;
    margin: 0;
    font-family: var(--font-display);
    font-weight: 400;
    font-size: var(--t-hero);
    line-height: 1.02;
    letter-spacing: -.01em;
    text-wrap: balance;
}

.hero__lede {
    max-width: 34rem;
    margin: 1.25rem 0 0;
    font-size: var(--t-md);
    line-height: 1.5;
    color: rgba(247, 239, 224, .88);
}

/* Tek orkestre an: sayfa açılırken başlık ve form sırayla belirir */
@media (prefers-reduced-motion: no-preference) {
    .hero__title, .hero__lede, .hero .search {
        animation: rise .9s cubic-bezier(.2, .7, .2, 1) both;
    }
    .hero__lede { animation-delay: .12s; }
    .hero .search { animation-delay: .24s; }
    @keyframes rise {
        from { opacity: 0; transform: translateY(14px); }
        to { opacity: 1; transform: none; }
    }
}

/* ---------- Tarih arama ---------- */

.search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: .75rem;
    max-width: 46rem;
    margin-top: 2.25rem;
    padding: 1rem;
    background: var(--kirec);
    color: var(--gece);
    border-radius: 2px;
    scroll-margin-top: 2rem;
}

.search__dates { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.search__dates.is-enhanced { display: block; }
.search__dates.is-enhanced .search__field { display: none; }

.search__field label {
    display: block;
    margin-bottom: .3rem;
    font-size: var(--t-sm);
    font-weight: 600;
    color: var(--harc);
}

.search__field input {
    width: 100%;
    min-height: 3rem;
    padding: .6rem .75rem;
    border: 1.5px solid var(--cizgi);
    border-radius: 2px;
    background: #fff;
    color: var(--gece);
    font: 500 var(--t-base) var(--font-body);
}
.search__field input:focus { border-color: var(--gece); outline: none; box-shadow: 0 0 0 3px rgba(232, 161, 63, .45); }

.search__note {
    grid-column: 1 / -1;
    margin: .1rem 0 0;
    font-size: var(--t-sm);
    color: var(--harc);
}

.search__error {
    grid-column: 1 / -1;
    margin: 0;
    padding: .6rem .75rem;
    background: #F5DFD2;
    border-left: 3px solid #A2401F;
    font-size: var(--t-sm);
    font-weight: 500;
}


/* ---------- Arama tarih seçici ---------- */

.dates-btn {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    min-height: 3.6rem;
    padding: 0;
    border: 1.5px solid var(--cizgi);
    border-radius: 2px;
    background: #fff;
    color: var(--gece);
    font: inherit;
    text-align: left;
    cursor: pointer;
}
.dates-btn:hover { border-color: var(--gece); }
.dates-btn[aria-expanded="true"] { border-color: var(--gece); box-shadow: 0 0 0 3px rgba(232, 161, 63, .45); }
.dates-btn__half { display: flex; flex-direction: column; justify-content: center; padding: .45rem .8rem; }
.dates-btn__half + .dates-btn__half { border-left: 1px solid var(--cizgi); }
.dates-btn__label { font-size: .75rem; font-weight: 600; color: var(--harc); }
.dates-btn__value { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dates-btn.is-empty .dates-btn__value { font-weight: 400; color: rgba(30, 34, 56, .55); }

.dates-pop {
    position: absolute;
    inset: auto;
    top: calc(100% + .5rem);
    left: 0;
    z-index: 40;
    width: min(40rem, calc(100vw - 2 * var(--gutter)));
    max-width: none;
    margin: 0;
    padding: 1.25rem;
    border: 1px solid var(--kenar);
    border-radius: 2px;
    background: var(--kirec);
    color: var(--gece);
    box-shadow: 0 18px 50px rgba(22, 25, 43, .28);
}
.dates-pop.is-above { top: auto; bottom: calc(100% + .5rem); }
.search--inline .dates-pop { left: auto; right: 0; }

.dates-pop__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: .25rem; }
.dates-pop__title { margin: 0; font-family: var(--font-display); font-size: var(--t-lg); }
.dates-pop__close, .dates-pop__clear {
    padding: .4rem 0;
    border: 0;
    background: none;
    color: var(--gece);
    font: 600 var(--t-sm) var(--font-body);
    text-decoration: underline;
    text-decoration-color: var(--kandil);
    text-underline-offset: .25em;
    cursor: pointer;
}
.dates-pop__hint { margin: 0 0 1rem; }
.dates-pop__foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--cizgi); }

/* Mobil: alttan kayan panel */
.dates-pop:modal {
    position: fixed;
    inset: auto 0 0 0;
    width: 100%;
    max-height: 92vh;
    overflow-y: auto;
    padding: 1.25rem var(--gutter) calc(1.25rem + env(safe-area-inset-bottom));
    border: 0;
    border-radius: 12px 12px 0 0;
}
.dates-pop::backdrop { background: rgba(22, 25, 43, .6); }
@media (prefers-reduced-motion: no-preference) {
    .dates-pop:modal[open] { animation: sheet .28s cubic-bezier(.2, .7, .2, 1); }
    @keyframes sheet { from { transform: translateY(100%); } to { transform: none; } }
}
.dates-pop:modal .dates-pop__done { flex: 1; }

/* ---------- Bölümler ---------- */

.section { padding-block: var(--section); }

.section__head { max-width: 40rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); }

.section__title {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 400;
    font-size: var(--t-xl);
    line-height: 1.15;
}

.section__lede { margin: .75rem 0 0; font-size: var(--t-md); line-height: 1.5; color: var(--harc); }

/* ---------- Odalar ---------- */

.room-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
    gap: clamp(2.5rem, 5vw, 3.5rem) clamp(1.5rem, 3vw, 2.5rem);
}

.room { display: flex; flex-direction: column; }

/* Mardin kemeri: oda fotoğrafları kapı kemeri gibi kesilir */
.room__photo {
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    border-radius: 50% 50% 2px 2px / 28% 28% 2px 2px;
    background: var(--gece);
}
.room__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.room__photo:hover img { transform: scale(1.03); }

.room__name {
    margin: 1.4rem 0 0;
    font-family: var(--font-display);
    font-weight: 400;
    font-size: var(--t-lg);
    line-height: 1.2;
}
.room__name a { text-decoration: none; }
.room__name a:hover { text-decoration: underline; text-decoration-color: var(--kandil); text-underline-offset: .2em; }

.room__capacity { margin: .25rem 0 0; font-weight: 600; color: var(--harc); font-size: var(--t-sm); }

.room__desc {
    margin: .75rem 0 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.room__prices {
    display: flex;
    gap: 2rem;
    margin: 1.1rem 0 1.4rem;
    padding-top: 1rem;
    border-top: 1px solid var(--cizgi);
}
.room__prices dt { font-size: var(--t-sm); color: var(--harc); }
.room__prices dd { margin: 0; font-size: var(--t-md); font-weight: 600; font-variant-numeric: tabular-nums; }

.room .btn { margin-top: auto; align-self: flex-start; }

.whole {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 2rem;
    margin-top: clamp(3rem, 6vw, 4.5rem);
    padding: 1.5rem;
    border: 1.5px solid var(--gece);
    border-radius: 2px;
}
.whole__title { margin: 0 0 .25rem; font-family: var(--font-display); font-weight: 400; font-size: var(--t-lg); }
.whole p { margin: 0; max-width: 44rem; }

/* ---------- Konak ---------- */

.house { background: var(--kirec); border-block: 1px solid var(--kenar); }

.house__grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: clamp(2.5rem, 6vw, 5rem);
    align-items: start;
}

.house__lede { margin: 1rem 0 2rem; font-size: var(--t-md); line-height: 1.55; max-width: 32rem; }

.facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem 2rem;
    margin: 0 0 2rem;
}
.facts div { padding-top: .9rem; border-top: 1px solid var(--cizgi); }
.facts dt { font-weight: 600; }
.facts dd { margin: .25rem 0 0; color: var(--harc); font-size: var(--t-sm); line-height: 1.55; }

.house__photos {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: .75rem;
}
.house__photo { width: 100%; height: 100%; object-fit: cover; border-radius: 2px; aspect-ratio: 4 / 3; }
.house__photo--tall { grid-row: span 2; aspect-ratio: auto; }

/* ---------- Gece bölümü: yorumlar ---------- */

.night { background: var(--gece); color: var(--kirec); }
.night .section__title { margin-bottom: clamp(2rem, 5vw, 3.5rem); }

.quotes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
    gap: 2.5rem;
}

.quote { margin: 0; padding-top: 1.25rem; border-top: 2px solid var(--kandil); }
.quote blockquote { margin: 0; }
.quote p { margin: 0; font-size: var(--t-md); line-height: 1.55; max-width: 34ch; }
.quote figcaption { margin-top: 1.1rem; display: flex; flex-direction: column; }
.quote__name { font-weight: 600; }
.quote__from { font-size: var(--t-sm); color: rgba(247, 239, 224, .7); }

/* ---------- Ulaşım ---------- */

.visit__grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: clamp(2.5rem, 6vw, 5rem);
    align-items: center;
}
.visit__address { margin: 1rem 0 .75rem; font-style: normal; font-size: var(--t-md); font-weight: 600; }
.visit p { max-width: 32rem; }
.visit__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.5rem 0 1rem; }
.visit__phone { color: var(--harc); }
.visit__phone a { color: var(--gece); font-weight: 600; }

.visit__map {
    aspect-ratio: 4 / 3;
    border-radius: 2px;
    overflow: hidden;
    background: var(--kirec);
}
.visit__map iframe { width: 100%; height: 100%; border: 0; filter: sepia(.25) saturate(.9); }

/* ---------- Alt bilgi ---------- */

.site-footer { background: var(--gece); color: rgba(247, 239, 224, .82); padding-top: 4rem; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--kandil); }

.site-footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2.5rem;
    padding-bottom: 3rem;
}
.site-footer__logo { width: 150px; margin-bottom: 1rem; }
.site-footer__address { max-width: 18rem; margin: 0; }
.site-footer__title { margin: 0 0 .75rem; font: 600 var(--t-base) var(--font-body); color: var(--kirec); }
.site-footer li + li { margin-top: .35rem; }

.site-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .5rem 2rem;
    padding-block: 1.5rem;
    border-top: 1px solid rgba(247, 239, 224, .15);
    font-size: var(--t-sm);
    color: rgba(247, 239, 224, .6);
}

/* =========================================================
   İç sayfalar
   ========================================================= */

.site-nav a[aria-current="page"] { border-bottom-color: var(--kandil); }

.page-head { padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(1.5rem, 3vw, 2.25rem); }
.page-head__title {
    margin: 0;
    max-width: 22ch;
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    line-height: 1.08;
    text-wrap: balance;
}
.page-head__lede { margin: .9rem 0 0; max-width: 40rem; font-size: var(--t-md); line-height: 1.5; color: var(--harc); }
.page-head__lede a { color: var(--gece); }

.section--tight { padding-block: 0 var(--section); }
.section__title--spaced { margin-bottom: clamp(1.5rem, 4vw, 2.5rem); }

.sub-title {
    margin: 0 0 1rem;
    font-family: var(--font-display);
    font-weight: 400;
    font-size: var(--t-lg);
    line-height: 1.2;
}

.wrap--text { max-width: 46rem; }

.back-link {
    display: inline-block;
    margin-top: 1.5rem;
    font-weight: 600;
    font-size: var(--t-sm);
    color: var(--harc);
    text-decoration: none;
}
.back-link::before { content: "‹ "; }
.back-link:hover { color: var(--gece); }
.back-link--dark { margin: 0 0 1rem; }

.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }

.btn--block { width: 100%; }
.btn--on-dark { border-color: var(--kirec); color: var(--kirec); }
.btn--on-dark:hover { background: var(--kirec); color: var(--gece); }

.empty { max-width: 40rem; padding: 2rem 0; font-size: var(--t-md); }
.empty__title { margin: 0 0 .5rem; font-family: var(--font-display); font-weight: 400; font-size: var(--t-lg); }

.notice { margin: 0 0 1.25rem; padding: .8rem 1rem; border-left: 3px solid; font-weight: 500; font-size: var(--t-sm); }
.notice:empty, .notice.validation-summary-valid { display: none; }
.notice ul { margin: 0; padding-left: 1.1rem; }
.notice { color: var(--gece); }
.notice--error { background: #F5DFD2; border-color: #A2401F; }
.notice--warn { background: #F8E9CC; border-color: var(--kandil-koyu); }
.notice--ok { background: #E7E6D0; border-color: #5F6F33; }

/* Satır içi tarih arama (Odalar, Müsait odalar) */
.search--inline {
    max-width: none;
    margin: 0 0 clamp(2.5rem, 6vw, 4rem);
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) auto;
    border: 1px solid var(--kenar);
}
.search__intro { margin: 0; align-self: center; font-weight: 600; }

.room-list--page { margin-top: 0; }

/* ---------- Form alanları ---------- */

.field { margin-bottom: 1.1rem; }
.field label { display: block; margin-bottom: .35rem; font-weight: 600; font-size: var(--t-sm); }
.field__opt { font-weight: 400; color: var(--harc); }
.field input, .field textarea {
    width: 100%;
    min-height: 3rem;
    padding: .65rem .8rem;
    border: 1.5px solid var(--cizgi);
    border-radius: 2px;
    background: #fff;
    color: var(--gece);
    font: 400 var(--t-base)/1.4 var(--font-body);
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gece); box-shadow: 0 0 0 3px rgba(232, 161, 63, .45); }
.field input.input-validation-error, .field textarea.input-validation-error { border-color: #b3401e; }
.field--short input { max-width: 8rem; }
.field__help { display: block; margin-top: .3rem; font-size: var(--t-sm); color: var(--harc); }
.field__error { display: block; margin-top: .3rem; font-size: var(--t-sm); font-weight: 500; color: #a1371a; }
.field__error:empty { display: none; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }

.toggle, .check { display: flex; gap: .75rem; align-items: flex-start; cursor: pointer; }
.toggle {
    margin-top: .5rem;
    padding: 1rem;
    border: 1.5px solid var(--cizgi);
    border-radius: 2px;
    background: #fff;
}
.toggle:has(input:checked) { border-color: var(--kandil); background: #fdf3e2; }
.toggle span { display: flex; flex-direction: column; font-size: var(--t-sm); color: var(--harc); }
.toggle strong { font-size: var(--t-base); color: var(--gece); }
.toggle input, .check input { width: 1.25rem; height: 1.25rem; margin: .1rem 0 0; flex: none; accent-color: var(--gece); }
.check { font-size: var(--t-sm); margin: 1.25rem 0 1rem; }

/* ---------- Oda sayfası ---------- */

.room-page { padding-bottom: var(--section); }
.room-page__head { padding-block: 1rem clamp(1.5rem, 4vw, 2.5rem); }
.room-page__meta { margin: .6rem 0 0; font-size: var(--t-md); color: var(--harc); }

.room-page__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 30rem);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start;
}

.gallery-main { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 50% 50% 2px 2px / 22% 22% 2px 2px; background: var(--gece); }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }

.gallery-thumbs { display: flex; gap: .5rem; margin-top: .75rem; overflow-x: auto; padding-bottom: .25rem; }
.gallery-thumbs__item {
    flex: none;
    width: 4.5rem;
    height: 4.5rem;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 2px;
    background: none;
    cursor: pointer;
    overflow: hidden;
}
.gallery-thumbs__item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs__item[aria-pressed="true"] { border-color: var(--kandil); }

.room-page__desc { margin-top: 2rem; max-width: 38rem; }
.room-page__desc p { margin: 0; }

.booking {
    position: sticky;
    top: 1.5rem;
    padding: clamp(1.25rem, 3vw, 1.75rem);
    background: var(--kirec);
    border: 1px solid var(--kenar);
    border-radius: 2px;
}
.booking__step + .booking__step { margin-top: 2rem; padding-top: 1.75rem; border-top: 1px solid var(--cizgi); }
.booking__hint { margin: -.4rem 0 1rem; font-size: var(--t-sm); color: var(--harc); }
.booking__hint.is-error { color: #a1371a; font-weight: 600; }

.booking__total { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--cizgi); }
.booking__total dl { margin: 0; }
.booking__total dl > div { display: flex; justify-content: space-between; gap: 1rem; padding: .3rem 0; }
.booking__total dt { color: var(--harc); }
.booking__total dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.booking__sum dt { color: var(--gece); font-weight: 600; }
.booking__sum dd { font-family: var(--font-display); font-weight: 400; font-size: var(--t-lg); }
.booking__fine { margin: .9rem 0 0; font-size: var(--t-sm); color: var(--harc); }

/* ---------- Müsaitlik takvimi ---------- */

.cal { position: relative; min-height: 18rem; }
.cal__nav { position: absolute; top: -.2rem; right: 0; display: flex; gap: .35rem; }
.cal__step {
    width: 2.25rem;
    height: 2.25rem;
    border: 1.5px solid var(--cizgi);
    border-radius: 2px;
    background: #fff;
    color: var(--gece);
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
}
.cal__step:disabled { opacity: .35; cursor: default; }
.cal__months { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1.5rem; }
.cal__title { margin: 0 0 .75rem; font-weight: 600; line-height: 2.25rem; }
.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal__dow { padding-bottom: .35rem; text-align: center; font-size: .75rem; color: var(--harc); }
.cal__day {
    aspect-ratio: 1;
    min-height: 2.4rem;
    border: 1px solid rgba(107, 79, 49, .12);
    border-radius: 2px;
    background: #fff;
    color: var(--gece);
    font: 500 var(--t-sm) var(--font-body);
    font-variant-numeric: tabular-nums;
    cursor: pointer;
}
.cal__day:hover:not(:disabled) { box-shadow: inset 0 0 0 2px var(--gece); }
.cal__day.is-today { box-shadow: inset 0 0 0 1px var(--harc); }
.cal__day.is-past { background: transparent; border-color: transparent; color: rgba(30, 34, 56, .3); cursor: default; }
.cal__day.is-booked {
    background: var(--gece-sis);
    color: rgba(30, 34, 56, .6);
    text-decoration: line-through;
    text-decoration-thickness: 1.5px;
}
.cal__day.is-in { background: #F6D9A8; border-color: transparent; }
.cal__day.is-start, .cal__day.is-end { background: var(--gece); border-color: var(--gece); color: var(--kirec); text-decoration: none; }
.cal__legend { display: flex; align-items: center; gap: .4rem; margin: .9rem 0 0; font-size: var(--t-sm); color: var(--harc); }
.cal__key { display: inline-block; width: .9rem; height: .9rem; border-radius: 2px; }
.cal__key--booked { background: var(--gece-sis); box-shadow: inset 0 0 0 1px rgba(30, 34, 56, .25); }
.cal__key--sel { margin-left: .9rem; background: var(--gece); }

/* ---------- Onay ---------- */

.confirm { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.confirm__card { padding: clamp(1.25rem, 3vw, 1.75rem); background: var(--kirec); border: 1px solid var(--kenar); border-radius: 2px; }
.confirm__photo { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; margin-bottom: 1.25rem; border-radius: 2px; }

.summary { margin: 0; }
.summary > div { display: grid; grid-template-columns: 8rem 1fr; gap: 1rem; padding: .6rem 0; border-top: 1px solid var(--cizgi); }
.summary dt { color: var(--harc); }
.summary dd { margin: 0; font-weight: 500; overflow-wrap: anywhere; }
.summary a { color: var(--gece); font-weight: 600; }
.summary__total dd { font-family: var(--font-display); font-size: var(--t-lg); font-weight: 400; }

.steps { margin: 0 0 1rem; padding-left: 1.25rem; }
.steps li { padding-left: .25rem; margin-bottom: .6rem; }
.confirm__next .text-link { display: inline-block; margin-top: 1.5rem; }

/* ---------- Konak (hakkımızda) ---------- */

.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 22rem); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.about__aside { display: grid; gap: .75rem; }
.about__aside img { width: 100%; border-radius: 2px; object-fit: cover; }
.about__aside img:first-child { aspect-ratio: 3 / 4; border-radius: 50% 50% 2px 2px / 22% 22% 2px 2px; }

.prose { max-width: 40rem; font-size: 1.0625rem; line-height: 1.7; }
.prose > :first-child { margin-top: 0; }
.prose h2, .prose h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.2; margin: 2.2rem 0 .6rem; }
.prose h2 { font-size: var(--t-lg); }
.prose h3 { font-size: var(--t-md); }
.prose p, .prose ul, .prose ol { margin: 0 0 1.1rem; }
.prose a { color: var(--gece); text-decoration-color: var(--kandil); text-decoration-thickness: 2px; text-underline-offset: .2em; }
.prose img { margin: 1.5rem 0; border-radius: 2px; }
.prose strong { font-weight: 600; }
.prose table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: var(--t-sm); }
.prose td, .prose th { padding: .5rem; border: 1px solid var(--cizgi); text-align: left; }

.cta { max-width: 44rem; }
.cta p { margin: .9rem 0 0; font-size: var(--t-md); color: rgba(247, 239, 224, .85); }

/* ---------- İletişim ---------- */

.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.contact__map { margin: 1.5rem 0 .75rem; aspect-ratio: 4 / 3; border-radius: 2px; overflow: hidden; background: var(--kirec); }
.contact__map iframe { width: 100%; height: 100%; border: 0; filter: sepia(.25) saturate(.9); }
.contact__form { padding: clamp(1.25rem, 3vw, 1.75rem); background: var(--kirec); border: 1px solid var(--kenar); border-radius: 2px; }

/* ---------- Galeri ---------- */

.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: clamp(2rem, 5vw, 3rem); }
.chips a {
    padding: .45rem .9rem;
    border: 1.5px solid var(--cizgi);
    border-radius: 999px;
    font-weight: 500;
    font-size: var(--t-sm);
    text-decoration: none;
}
.chips a:hover { border-color: var(--gece); }
.chips a[aria-current="page"] { background: var(--gece); border-color: var(--gece); color: var(--kirec); }
.chips--small { margin: 2rem 0 0; }

.gallery + .gallery { margin-top: clamp(3rem, 6vw, 4.5rem); }
.gallery { scroll-margin-top: 1.5rem; }
.gallery__grid { columns: 3 16rem; column-gap: .75rem; }
.gallery__item { display: block; margin-bottom: .75rem; break-inside: avoid; border-radius: 2px; overflow: hidden; }
.gallery__item img { width: 100%; transition: transform .5s ease; }
.gallery__item:hover img { transform: scale(1.02); }

.lightbox { max-width: min(92vw, 70rem); max-height: 92vh; padding: 0; border: 0; background: transparent; }
.lightbox::backdrop { background: rgba(22, 25, 43, .92); }
.lightbox img { max-width: 100%; max-height: 86vh; margin: 0 auto; }
.lightbox__close {
    display: block;
    margin: .75rem auto 0;
    padding: .55rem 1.2rem;
    border: 1.5px solid var(--kirec);
    border-radius: 2px;
    background: transparent;
    color: var(--kirec);
    font: 600 var(--t-sm) var(--font-body);
    cursor: pointer;
}

/* ---------- Blog ---------- */

.post-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: clamp(2rem, 4vw, 3rem) clamp(1.5rem, 3vw, 2.5rem); }
.post-card__photo { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 2px; background: var(--kirec); }
.post-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.post-card__meta { margin: 1rem 0 .3rem; font-size: var(--t-sm); color: var(--harc); }
.post-card__title { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: var(--t-md); line-height: 1.3; }
.post-card__title a { text-decoration: none; }
.post-card__title a:hover { text-decoration: underline; text-decoration-color: var(--kandil); text-underline-offset: .2em; }
.post-card__summary { margin: .5rem 0 0; color: var(--harc); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.article__cover { width: 100%; margin-bottom: 2rem; border-radius: 2px; }

/* ---------- Mobil hızlı bar ---------- */

.quickbar { display: none; }

/* ---------- Duyarlı ---------- */

@media (max-width: 900px) {
    .house__grid, .visit__grid, .room-page__grid, .confirm, .about, .contact { grid-template-columns: 1fr; }
    .booking { position: static; }
    .gallery-main { aspect-ratio: 4 / 3; max-height: 60vh; width: 100%; border-radius: 40% 40% 2px 2px / 18% 18% 2px 2px; }
    .room-page__desc { margin-top: 1.25rem; }
    .about__aside { grid-template-columns: 1fr 1fr; }
    .search--inline { grid-template-columns: 1fr; }
    .house__photos { order: -1; }
    .site-footer__grid { grid-template-columns: 1fr 1fr; }
    .site-footer__grid > :first-child { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
    .nav-toggle { display: inline-block; }
    .site-nav { display: none; }
    .is-menu-open .site-nav {
        display: flex;
        position: absolute;
        left: var(--gutter);
        right: var(--gutter);
        top: 4.75rem;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: .5rem 1rem;
        background: var(--gece);
        border-radius: 2px;
        box-shadow: 0 12px 30px rgba(0, 0, 0, .35);
    }
    .is-menu-open .site-nav a { padding: .85rem 0; border-bottom: 1px solid rgba(247, 239, 224, .12); }
    .is-menu-open .site-nav .site-nav__wa { margin: .75rem 0 .5rem; text-align: center; border-bottom: 1.5px solid var(--kandil); }

    /* Mobilde fotoğraf üstte kalır, yazı altındaki gece zeminine oturur */
    .hero { min-height: 0; }
    .hero__photo { height: 24rem; object-position: 30% 50%; }
    .hero::after {
        background: linear-gradient(to bottom, rgba(22, 25, 43, .55) 0, rgba(22, 25, 43, 0) 6rem, rgba(22, 25, 43, 0) 13rem, rgba(30, 34, 56, 1) 24rem);
    }
    .hero__content { padding-top: 17rem; }
    .search { grid-template-columns: 1fr; }

    .facts { grid-template-columns: 1fr; }

    body { padding-bottom: 4.5rem; }
    .quickbar {
        position: fixed;
        inset: auto 0 0;
        z-index: 50;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: .5rem;
        padding: .6rem var(--gutter) calc(.6rem + env(safe-area-inset-bottom));
        background: rgba(30, 34, 56, .97);
    }
    .quickbar a {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 3rem;
        border-radius: 2px;
        font-weight: 600;
        text-decoration: none;
    }
    .quickbar__wa { border: 1.5px solid var(--kandil); color: var(--kirec); }
    .quickbar__book { background: var(--kandil); color: var(--gece); }
}

@media (max-width: 420px) {
    .search__dates:not(.is-enhanced) { grid-template-columns: 1fr; }
    .field-row { grid-template-columns: 1fr; }
    .summary > div { grid-template-columns: 6.5rem 1fr; }
    .site-footer__grid { grid-template-columns: 1fr; }
}
