/* =====================================================================
   CEREZ ONAY BANDI VE TERCIH PANELI  (web/js/cerez-onay.js)
   ===================================================================== */

.cerez-bant,
.cerez-panel-arka {
    --cerez-lacivert: #00006b;
    --cerez-kenar: #e2e7f2;
    --cerez-soluk: #5a6780;
    font-family: inherit;
}

/* ---------------- Bant ---------------- */
.cerez-bant {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 7000;
    background: #fff;
    border: 1px solid var(--cerez-kenar);
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(10, 16, 50, .18);
}
.cerez-bant[hidden] { display: none; }
.cerez-bant-ic {
    display: flex;
    align-items: center;
    gap: 16px 28px;
    max-width: 1140px;
    margin: 0 auto;
    padding: 16px 20px;
}
.cerez-bant-metin { flex: 1 1 auto; min-width: 0; }
.cerez-bant-baslik { display: block; font-size: 15px; color: var(--cerez-lacivert); margin-bottom: 4px; }
.cerez-bant-metin p { margin: 0; font-size: 13.5px; line-height: 1.55; color: #33405a; }
.cerez-bant-metin a,
.cerez-panel-giris a { color: var(--cerez-lacivert); font-weight: 600; text-decoration: underline; }
.cerez-bant-dugmeler { display: flex; gap: 8px; flex: 0 0 auto; }

/* Kabul ve Reddet ESIT agirlikta (Kurul rehberi): ikisi de dolu lacivert */
.cerez-dugme {
    min-height: 40px;
    padding: 8px 16px;
    border-radius: 9px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    white-space: nowrap;
    border: 1px solid var(--cerez-lacivert);
}
.cerez-dugme-ana { background: var(--cerez-lacivert); color: #fff; }
.cerez-dugme-ana:hover { background: #1a1a8f; border-color: #1a1a8f; }
.cerez-dugme-ikincil { background: #fff; color: var(--cerez-lacivert); }
.cerez-dugme-ikincil:hover { background: #eef1f7; }
.cerez-dugme:focus-visible,
.cerez-kapat:focus-visible,
.cerez-anahtar input:focus-visible + span { outline: 3px solid rgba(0, 0, 107, .35); outline-offset: 2px; }

/* ---------------- Panel ---------------- */
.cerez-panel-arka {
    position: fixed;
    inset: 0;
    z-index: 7100;
    background: rgba(8, 12, 40, .55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.cerez-panel-arka[hidden] { display: none; }
.cerez-panel {
    width: min(560px, 100%);
    max-height: calc(100vh - 32px);
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, .3);
}
.cerez-panel-ust {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--cerez-kenar);
}
.cerez-panel-ust h2 { font-size: 18px; font-weight: 700; color: var(--cerez-lacivert); margin: 0; padding: 0; }
.cerez-kapat {
    width: 36px;
    height: 36px;
    border: 1px solid var(--cerez-kenar);
    border-radius: 8px;
    background: #fff;
    font-size: 22px;
    line-height: 1;
    color: var(--cerez-lacivert);
    cursor: pointer;
}
.cerez-panel-govde { padding: 16px 20px; overflow: auto; }
.cerez-panel-giris { font-size: 13.5px; line-height: 1.55; color: #33405a; margin: 0 0 12px; }

.cerez-kategori { padding: 12px 0; border-top: 1px solid var(--cerez-kenar); }
.cerez-kategori-ust { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cerez-kategori-baslik { font-weight: 700; font-size: 14.5px; color: #1f2a44; margin: 0; }
.cerez-kategori-aciklama { margin: 6px 0 0; font-size: 13px; line-height: 1.5; color: var(--cerez-soluk); }
.cerez-her-zaman { font-size: 12.5px; font-weight: 600; color: #1d7a3e; white-space: nowrap; }

/* Anahtar (switch) */
.cerez-anahtar { position: relative; display: inline-block; width: 46px; height: 26px; flex: 0 0 auto; }
.cerez-anahtar input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.cerez-anahtar span {
    position: absolute;
    inset: 0;
    background: #c7cedb;
    border-radius: 13px;
    transition: background .15s ease;
}
.cerez-anahtar span::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
    transition: transform .15s ease;
}
.cerez-anahtar input:checked + span { background: var(--cerez-lacivert); }
.cerez-anahtar input:checked + span::after { transform: translateX(20px); }

.cerez-panel-alt {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    flex-wrap: wrap;
    padding: 14px 20px;
    border-top: 1px solid var(--cerez-kenar);
}

/* ---------------- Google Haritalar onay kutusu ---------------- */
.harita-onay {
    width: 100%;
    min-height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef1f7;
    border-radius: 8px;
    text-align: center;
    padding: 24px;
}
.harita-onay-ic { max-width: 380px; }
.harita-onay-ic > i { font-size: 40px; color: #00006b; margin-bottom: 12px; }
.harita-onay-ic p { font-size: 14px; line-height: 1.55; color: #33405a; margin: 0 0 14px; }
.harita-onay-ic .btn { margin-bottom: 12px; }
.harita-hatirla { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; color: #33405a; margin-bottom: 10px; cursor: pointer; }
.harita-hatirla input { margin: 0; }
.harita-onay-ic a { font-size: 13.5px; color: #00006b; font-weight: 600; }
.harita-cerceve { width: 100%; height: 450px; border: 0; border-radius: 8px; display: block; }
.harita-onay[data-harita-yuklendi] { padding: 0; background: none; min-height: 0; }

@media (max-width: 767.98px) {
    .cerez-bant { left: 8px; right: 8px; bottom: 8px; }
    .cerez-bant-ic { flex-direction: column; align-items: stretch; padding: 14px; gap: 12px; }
    .cerez-bant-dugmeler { flex-direction: column; }
    .cerez-bant-dugmeler .cerez-dugme,
    .cerez-panel-alt .cerez-dugme { width: 100%; }
    .cerez-panel-arka { padding: 0; align-items: flex-end; }
    .cerez-panel { width: 100%; max-height: 92vh; border-radius: 14px 14px 0 0; }
}
