/* ============================================================
   Dealti - Cerez Riza Yonetimi
   Bagimsiz bilesen. stylee209.css'e dokunmaz.
   Yesil Mod (html.theme-dark) uyumlu. Marka yesili: #83BF68
   ============================================================ */

.cc-root {
    --cc-bg:        #ffffff;
    --cc-surface:   #f5f6f4;
    --cc-border:    #e2e5e0;
    --cc-text:      #1c1f1b;
    --cc-text-soft: #5b615a;
    --cc-green:     #83bf68;
    --cc-green-ink: #3f7a2c;
    --cc-shadow:    0 -2px 24px rgba(16, 24, 16, .12);
    --cc-radius:    12px;
    font-family: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}
html.theme-dark .cc-root {
    --cc-bg:        #181b19;
    --cc-surface:   #20241f;
    --cc-border:    #2c312d;
    --cc-text:      #e7e9e4;
    --cc-text-soft: #a7aca4;
    --cc-green:     #83bf68;
    --cc-green-ink: #9fd486;
    --cc-shadow:    0 -2px 24px rgba(0, 0, 0, .45);
}

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

/* ---------- Banner ---------- */
.cc-banner {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 2147483000;
    background: var(--cc-bg);
    color: var(--cc-text);
    border-top: 1px solid var(--cc-border);
    box-shadow: var(--cc-shadow);
    padding: 20px clamp(16px, 4vw, 40px);
    transform: translateY(100%);
    transition: transform .32s cubic-bezier(.4, 0, .2, 1);
}
.cc-banner.is-visible { transform: translateY(0); }

.cc-banner-inner {
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
}
.cc-banner-copy { flex: 1 1 420px; min-width: 260px; }
.cc-banner-title {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--cc-text);
}
.cc-banner-text {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.6;
    color: var(--cc-text-soft);
}
.cc-banner-text a {
    color: var(--cc-green-ink);
    text-decoration: underline;
}
.cc-gpc-note {
    margin: 10px 0 0;
    font-size: 12.5px;
    line-height: 1.55;
    color: var(--cc-text-soft);
    padding: 8px 12px;
    background: var(--cc-surface);
    border-radius: 8px;
    border: 1px solid var(--cc-border);
}

.cc-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

/* Esit vurgu: kabul ve reddet ayni gorsel agirlik (KVKK). */
.cc-btn {
    appearance: none;
    border: 1px solid var(--cc-green);
    background: transparent;
    color: var(--cc-text);
    font: inherit;
    font-size: 13.5px;
    font-weight: 600;
    padding: 11px 20px;
    border-radius: 999px;
    cursor: pointer;
    line-height: 1;
    transition: background .16s, color .16s, border-color .16s;
    white-space: nowrap;
}
.cc-btn:hover { background: var(--cc-surface); }
.cc-btn:focus-visible {
    outline: 2px solid var(--cc-green-ink);
    outline-offset: 2px;
}
.cc-btn--primary {
    background: var(--cc-green);
    border-color: var(--cc-green);
    color: #10240a;
}
.cc-btn--primary:hover { background: #74b058; border-color: #74b058; }
.cc-btn--ghost {
    border-color: var(--cc-border);
    color: var(--cc-text-soft);
}

/* ---------- Modal ---------- */
.cc-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 2147483001;
    background: rgba(12, 16, 12, .55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s;
}
.cc-modal-overlay.is-visible { opacity: 1; pointer-events: auto; }

.cc-modal {
    background: var(--cc-bg);
    color: var(--cc-text);
    border-radius: var(--cc-radius);
    border: 1px solid var(--cc-border);
    max-width: 640px;
    width: 100%;
    max-height: 88vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 64px rgba(0, 0, 0, .32);
    transform: translateY(12px) scale(.98);
    transition: transform .2s;
}
.cc-modal-overlay.is-visible .cc-modal { transform: none; }

.cc-modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 22px 24px 14px;
    border-bottom: 1px solid var(--cc-border);
}
.cc-modal-title { margin: 0; font-size: 18px; font-weight: 600; }
.cc-modal-close {
    appearance: none;
    background: transparent;
    border: 0;
    color: var(--cc-text-soft);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    padding: 2px 6px;
    border-radius: 6px;
}
.cc-modal-close:hover { background: var(--cc-surface); color: var(--cc-text); }
.cc-modal-close:focus-visible { outline: 2px solid var(--cc-green-ink); outline-offset: 2px; }

.cc-modal-body {
    padding: 16px 24px 8px;
    overflow-y: auto;
}
.cc-modal-intro {
    margin: 0 0 16px;
    font-size: 13px;
    line-height: 1.6;
    color: var(--cc-text-soft);
}

.cc-cat {
    border: 1px solid var(--cc-border);
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 12px;
    background: var(--cc-surface);
}
.cc-cat-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.cc-cat-title { margin: 0; font-size: 14px; font-weight: 600; }
.cc-cat-desc {
    margin: 8px 0 0;
    font-size: 12.5px;
    line-height: 1.55;
    color: var(--cc-text-soft);
}

/* Toggle */
.cc-switch { position: relative; flex-shrink: 0; width: 42px; height: 24px; }
.cc-switch input {
    position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer;
}
.cc-switch-track {
    position: absolute; inset: 0;
    background: #b9beb4;
    border-radius: 999px;
    transition: background .16s;
    pointer-events: none;
}
.cc-switch-track::after {
    content: "";
    position: absolute;
    top: 2px; left: 2px;
    width: 20px; height: 20px;
    background: #fff;
    border-radius: 50%;
    transition: transform .16s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
}
.cc-switch input:checked + .cc-switch-track { background: var(--cc-green); }
.cc-switch input:checked + .cc-switch-track::after { transform: translateX(18px); }
.cc-switch input:focus-visible + .cc-switch-track {
    outline: 2px solid var(--cc-green-ink); outline-offset: 2px;
}
.cc-switch input:disabled { cursor: not-allowed; }
.cc-switch input:disabled + .cc-switch-track { opacity: .6; }

.cc-always {
    font-size: 12px;
    font-weight: 600;
    color: var(--cc-green-ink);
    flex-shrink: 0;
}

.cc-cookie-toggle {
    margin-top: 10px;
    background: transparent;
    border: 0;
    color: var(--cc-green-ink);
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
}
.cc-cookie-list { margin-top: 10px; overflow-x: auto; }
.cc-cookie-list table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11.5px;
}
.cc-cookie-list th,
.cc-cookie-list td {
    text-align: left;
    padding: 6px 8px;
    border-bottom: 1px solid var(--cc-border);
    color: var(--cc-text-soft);
    vertical-align: top;
}
.cc-cookie-list th { color: var(--cc-text); font-weight: 600; }

.cc-modal-foot {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
    padding: 16px 24px 20px;
    border-top: 1px solid var(--cc-border);
}

@media (max-width: 640px) {
    .cc-actions { width: 100%; }
    .cc-actions .cc-btn { flex: 1 1 auto; text-align: center; }
    .cc-modal-foot .cc-btn { flex: 1 1 auto; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
    .cc-banner, .cc-modal-overlay, .cc-modal, .cc-switch-track::after { transition: none; }
}

/* ============================================================
   Gomulu harita tikla-yukle plaseholderi (contact + offices).
   Rizasiz Google istegi gonderilmez; kullanici isteyince iframe enjekte edilir.
   ============================================================ */

.map-consent-holder {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 100%;
    min-height: 320px;
    padding: 28px;
    background: #f5f6f4;
    border: 1px solid #e2e5e0;
    border-radius: 10px;
    font-family: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

.map-consent-holder.is-loaded {
    padding: 0;
    border: 0;
    background: none;
    display: block;
}

.map-consent-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: #1c1f1b;
}

.map-consent-text {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.55;
    color: #5b615a;
}

.map-consent-btn {
    margin-top: 4px;
    border: 0;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #10240c;
    background: #83bf68;
    cursor: pointer;
    transition: background .15s ease;
}

.map-consent-btn:hover { background: #74b058; }

.map-consent-holder iframe { border: 0; width: 100%; height: 100%; min-height: 320px; border-radius: 10px; }

html.theme-dark .map-consent-holder {
    background: #20241f;
    border-color: #2c312d;
}
html.theme-dark .map-consent-title { color: #e7e9e4; }
html.theme-dark .map-consent-text  { color: #a7aca4; }
