/* Blanca Hotel — KVKK / GDPR çerez onay arayüzü */

.consent-banner[hidden],
.consent-modal[hidden] { display: none !important; }

/* ---------- Banner (sayfanın kullanımını engellemez: çerez duvarı değildir) ---------- */
.consent-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 100000;
    max-width: 1080px;
    margin: 0 auto;
    background: #fff;
    color: #222;
    border-top: 3px solid #aa8453;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .25);
    padding: 22px 26px;
    font-family: 'Barlow', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    display: flex;
    gap: 24px;
    align-items: center;
}
.consent-banner__text { flex: 1 1 auto; }
.consent-banner__title {
    font-family: 'Gilda Display', serif;
    font-size: 20px;
    color: #222;
    margin: 0 0 6px;
}
.consent-banner__text p { margin: 0; color: #444; font-size: 15px; }
.consent-banner a,
.consent-modal a { color: #aa8453; text-decoration: underline; }

.consent-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    flex: 0 0 auto;
}

/* "Kabul Et" ve "Reddet" bilerek AYNI görünümdedir (KVKK Rehberi: eşit kolaylık). */
.consent-btn {
    font-family: 'Barlow', sans-serif;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 11px 20px;
    border: 1px solid #aa8453;
    background: #aa8453;
    color: #fff;
    cursor: pointer;
    min-width: 150px;
    line-height: 1.2;
    transition: background .2s, color .2s;
}
.consent-btn:hover,
.consent-btn:focus-visible { background: #222; border-color: #222; color: #fff; }
.consent-btn--ghost { background: #fff; color: #aa8453; }
.consent-btn--ghost:hover,
.consent-btn--ghost:focus-visible { background: #f8f5f0; color: #222; border-color: #222; }

@media (max-width: 860px) {
    .consent-banner { flex-direction: column; align-items: stretch; padding: 18px; bottom: 8px; left: 8px; right: 8px; }
    .consent-actions { flex-direction: column; }
    .consent-btn { width: 100%; }
}

/* ---------- Tercih paneli ---------- */
.consent-modal {
    position: fixed;
    inset: 0;
    z-index: 100001;
    background: rgba(0, 0, 0, .55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.consent-modal__dialog {
    background: #fff;
    color: #222;
    width: 100%;
    max-width: 620px;
    max-height: calc(100vh - 32px);
    overflow-y: auto;
    padding: 28px;
    font-family: 'Barlow', sans-serif;
    font-size: 15px;
    line-height: 1.6;
    outline: none;
    border-top: 3px solid #aa8453;
}
.consent-modal__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.consent-modal__title { font-family: 'Gilda Display', serif; font-size: 24px; margin: 0 0 10px; color: #222; }
.consent-modal__close {
    background: none; border: 0; font-size: 28px; line-height: 1; cursor: pointer; color: #666; padding: 0 4px;
}
.consent-modal__close:hover { color: #222; }
.consent-modal__dialog > p { color: #444; }

.consent-cat {
    border: 1px solid #ececec;
    padding: 14px 16px;
    margin: 12px 0;
    background: #f8f5f0;
}
.consent-cat__row { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.consent-cat__name { font-weight: 600; color: #222; margin: 0; font-size: 16px; }
.consent-cat__desc { margin: 6px 0 0; color: #555; font-size: 14px; }
.consent-cat__always { font-size: 13px; color: #aa8453; white-space: nowrap; }

/* Anahtar (toggle) */
.consent-switch { position: relative; display: inline-block; width: 46px; height: 26px; flex: 0 0 auto; }
.consent-switch input { opacity: 0; width: 0; height: 0; position: absolute; }
.consent-switch span {
    position: absolute; inset: 0; background: #adadad; border-radius: 26px; cursor: pointer; transition: background .2s;
}
.consent-switch span::before {
    content: ""; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px;
    background: #fff; border-radius: 50%; transition: transform .2s;
}
.consent-switch input:checked + span { background: #aa8453; }
.consent-switch input:checked + span::before { transform: translateX(20px); }
.consent-switch input:focus-visible + span { outline: 2px solid #222; outline-offset: 2px; }

.consent-modal .consent-actions { margin-top: 18px; }
.consent-modal__meta { margin-top: 16px; font-size: 12px; color: #777; word-break: break-all; }

/* ---------- Onay bekleyen gömülü içerik yer tutucusu (ör. Google Maps) ---------- */
.consent-embed {
    background: #f8f5f0;
    border: 1px solid #ececec;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px 20px;
}
.consent-embed--loaded { display: block; padding: 0; border: 0; min-height: 0; background: none; }
.consent-embed__box { max-width: 520px; }
.consent-embed__box p { color: #444; margin-bottom: 16px; }
.consent-embed__box .consent-actions { justify-content: center; }

/* Footer bağlantıları */
.footer-legal-links { margin-top: 6px; }
.footer-legal-links a { color: inherit; margin: 0 8px; cursor: pointer; }
