/* ============================================================
   Kartu Turizm - site.css
   Marka (logo ile uyumlu): #055242 (yeşil), #E68C1E (turuncu), #FEFBF8 (krem)
   Mobil öncelikli, framework'süz.
   ============================================================ */

:root {
    --brand: #055242;
    --brand-dark: #033628;
    --brand-lt: #0B6E58;
    --brand-wash: #EAF2EF;
    --brand-rgb: 5, 82, 66; /* gölgeler için; /tema.css seçilen renkle ezer */
    --ink: #1C2B26;
    --accent: #E68C1E;
    --accent-dark: #C97710;
    --accent-wash: #FDF1DF;
    --bg: #FFFFFF;
    --bg-alt: #EAF2EF;
    --border: #E8E2DA;
    --muted: #5E6E68;
    --success: #1E8E5A;
    --warning-bg: #FDF1DF;
    --warning-border: #E68C1E;
    --error: #C0392B;
    --error-bg: #FDEDEB;
    --radius: 16px;
    --shadow: 0 2px 16px rgba(var(--brand-rgb), 0.07);
    --shadow-lift: 0 14px 34px rgba(var(--brand-rgb), 0.10);
    --page-bg: #FEFBF8;
    --panel-bg: var(--bg-alt); /* panel sayfa zemini; /tema.css zemin seçimiyle ezer */
}

* {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--ink);
    background: var(--page-bg);
    line-height: 1.62;
}

img {
    max-width: 100%;
}

a {
    color: var(--brand);
}

h1, h2, h3, h4 {
    font-family: "Outfit", "Source Sans 3", sans-serif;
    line-height: 1.2;
    color: var(--brand-dark);
    font-weight: 600;
    letter-spacing: -0.015em;
}

/* Bölüm başlıklarının üstündeki küçük turuncu etiket */
.eyebrow {
    display: inline-block;
    font-family: "Outfit", sans-serif;
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-dark);
}

.eyebrow--on-dark {
    color: var(--accent);
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1rem;
}

.text-muted {
    color: var(--muted);
    font-size: 0.9rem;
}

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

.btn {
    display: inline-block;
    padding: 0.65rem 1.6rem;
    border-radius: 999px;
    border: 2px solid transparent;
    font-family: "Outfit", sans-serif;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    text-align: center;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease,
                transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:active {
    transform: translateY(1px);
}

.btn--primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 14px rgba(230, 140, 30, 0.30);
}

.btn--primary:hover {
    background: var(--accent-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(230, 140, 30, 0.38);
}

.btn--primary:disabled {
    background: #EFC894;
    cursor: not-allowed;
}

.btn--outline {
    background: transparent;
    color: var(--brand);
    border-color: var(--brand);
}

.btn--outline:hover {
    background: var(--brand);
    color: #fff;
}

.btn--danger {
    background: transparent;
    color: var(--error);
    border-color: var(--error);
}

.btn--danger:hover {
    background: var(--error);
    color: #fff;
}

.btn--success {
    background: var(--success);
    color: #fff;
}

.btn--success:hover {
    filter: brightness(0.9);
}

.btn--small {
    padding: 0.35rem 0.8rem;
    font-size: 0.875rem;
}

.btn--large {
    padding: 0.85rem 1.75rem;
    font-size: 1.1rem;
}

.btn--full {
    display: block;
    width: 100%;
}

/* ---------- Header / Nav ---------- */

.site-header {
    background: rgba(254, 251, 248, 0.93);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.site-logo {
    font-family: "Outfit", sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--brand);
    text-decoration: none;
    white-space: nowrap;
    letter-spacing: 0.02em;
}

.site-logo span {
    color: var(--accent);
}

.nav-toggle {
    display: inline-flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 3px;
    background: var(--ink);
    border-radius: 2px;
}

.site-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 1rem;
    flex-direction: column;
    gap: 0.75rem;
}

.site-nav--open {
    display: flex;
}

.site-nav a {
    color: var(--muted);
    text-decoration: none;
    font-weight: 500;
}

.site-nav a:hover {
    color: var(--brand);
}

@media (min-width: 860px) {
    .nav-toggle {
        display: none;
    }

    .site-nav {
        display: flex;
        position: static;
        flex-direction: row;
        align-items: center;
        gap: 1.5rem;
        border: none;
        padding: 0;
        background: transparent;
    }
}

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

.hero-slider {
    position: relative;
    min-height: 420px;
    overflow: hidden;
    background: var(--brand-dark);
}

.hero-slider__track {
    position: relative;
    height: 100%;
}

.hero-slider__slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end; /* içerik slaytın alt kısmında durur */
    min-height: 420px;
    padding: 3rem 0 4.25rem;
    background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand) 55%, var(--brand-lt) 100%);
    background-size: cover;
    background-position: center;
    color: #fff;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease;
    z-index: 0;
}

.hero-slider__slide.is-active {
    position: relative;
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

.hero-slider__slide--image::before {
    content: "";
    position: absolute;
    inset: 0;
    /* İçerik ortalanıp aşağı alındığı için karartma alttan yukarı doğru */
    background: linear-gradient(0deg, rgba(3, 54, 40, 0.82) 0%, rgba(3, 54, 40, 0.42) 45%, rgba(3, 54, 40, 0.08) 100%);
}

.hero-slider__slide--image .hero-slider__content h1,
.hero-slider__slide--image .hero-slider__title,
.hero-slider__slide--image .hero-slider__content p {
    text-shadow: 0 2px 12px rgba(31, 36, 48, 0.45);
}

.hero-slider__content {
    position: relative;
    max-width: 560px;
    margin: 0 auto;
    text-align: center;
}

.hero-slider__content h1,
.hero-slider__title {
    color: #fff;
    font-size: clamp(1.4rem, 2.8vw, 2rem);
    line-height: 1.25;
    margin: 0 0 0.6rem;
}

.hero-slider__content p {
    font-size: 0.98rem;
    color: #CFE3DB;
    margin: 0 0 1rem;
}

.hero-slider__content .btn {
    padding: 0.55rem 1.4rem;
    font-size: 0.95rem;
}

.hero-slider__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    transition: background 0.2s ease;
    backdrop-filter: blur(4px);
}

.hero-slider__arrow:hover {
    background: var(--accent);
}

.hero-slider__arrow--prev {
    left: 0.75rem;
}

.hero-slider__arrow--next {
    right: 0.75rem;
}

.hero-slider__dots {
    position: absolute;
    left: 50%;
    bottom: 1rem;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    gap: 0.5rem;
}

.hero-slider__dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-slider__dot.is-active {
    background: var(--accent);
    transform: scale(1.25);
}

@media (min-width: 860px) {
    .hero-slider,
    .hero-slider__slide {
        min-height: 520px;
    }

    .hero-slider__content h1,
    .hero-slider__title {
        font-size: 2rem;
    }

    .hero-slider__content p {
        font-size: 1.02rem;
    }
}

/* ---------- İstatistik Bandı ---------- */

.stats-band {
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 2.5rem 0;
}

.stats-band__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
    text-align: center;
}

.stat__value {
    display: block;
    font-family: "Outfit", sans-serif;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1;
    color: var(--brand);
}

/* Değerin altındaki kısa turuncu çizgi */
.stat__value::after {
    content: "";
    display: block;
    width: 34px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
    margin: 0.75rem auto 0.6rem;
}

.stat__label {
    display: block;
    font-size: 0.92rem;
    color: var(--muted);
}

@media (min-width: 860px) {
    .stats-band__grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .stat__value {
        font-size: 2.2rem;
    }
}

/* ---------- Neden Biz / Adımlar / CTA ---------- */

.section__subtitle {
    color: var(--muted);
    max-width: 620px;
    margin: -0.5rem 0 2rem;
}

.why-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1000px) {
    .why-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.why-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.why-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lift);
}

.why-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--accent-wash);
    color: var(--accent-dark);
    margin-bottom: 0.9rem;
}

.why-card__icon svg {
    width: 26px;
    height: 26px;
}

.why-card h3 {
    margin: 0 0 0.5rem;
    font-size: 1.05rem;
}

.why-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.steps-row {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 1fr;
}

@media (min-width: 860px) {
    .steps-row {
        grid-template-columns: repeat(4, 1fr);
    }
}

.step-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.step-card__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    font-family: "Outfit", sans-serif;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

/* Son adımın numarası turuncu (v3 deseni) */
.step-card:last-child .step-card__number {
    background: var(--accent);
}

.step-card h3 {
    margin: 0 0 0.5rem;
    font-size: 1.05rem;
}

.step-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.school-card {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.school-card h3 {
    margin: 0 0 0.2rem;
    font-size: 1rem;
}

.school-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.school-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--accent);
    color: #fff;
    flex-shrink: 0;
}

.school-card__icon svg {
    width: 22px;
    height: 22px;
}

/* Okullar bölümü: koyu yeşil zemin (v3 deseni) */
.section--schools {
    background: var(--brand);
}

.section--schools .section__title,
.section--schools .school-card h3 {
    color: #fff;
}

.section--schools .section__subtitle,
.section--schools .school-card p {
    color: #A9CCC1;
}

.section--schools .card {
    background: rgba(255, 255, 255, 0.06);
    border-color: #1C5546;
    box-shadow: none;
}

.section--schools .empty-state {
    background: rgba(255, 255, 255, 0.06);
    border-color: #1C5546;
    color: #A9CCC1;
}

.section--schools__after {
    margin: 1.75rem 0 0;
    color: #A9CCC1;
    font-size: 0.96rem;
}

.section--schools__after a {
    color: var(--accent);
}

.cta-band {
    background: var(--accent-wash);
    padding: 3.5rem 0;
}

.cta-band__inner {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: flex-start;
}

.cta-band h2 {
    color: var(--brand-dark);
    margin: 0 0 0.5rem;
    font-size: 1.6rem;
}

.cta-band p {
    margin: 0;
    color: var(--muted);
}

.btn--light {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
    box-shadow: 0 4px 14px rgba(230, 140, 30, 0.30);
}

.btn--light:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    color: #fff;
    transform: translateY(-2px);
}

@media (min-width: 860px) {
    .cta-band__inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .cta-band h2 {
        font-size: 1.9rem;
    }
}

/* ---------- Admin slayt görselleri ---------- */

.admin-slide-thumb {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 96px;
    height: 54px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: linear-gradient(135deg, var(--ink), #37405a);
    color: #fff;
    font-size: 0.7rem;
}

.admin-slide-preview {
    margin-bottom: 0.75rem;
}

.admin-slide-preview img {
    max-width: 320px;
    width: 100%;
    border-radius: 10px;
    border: 1px solid var(--border);
}

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

.section {
    padding: 4rem 0;
}

.section--alt {
    background: var(--bg-alt);
}

.section__title {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin-top: 0.5rem;
    margin-bottom: 0.75rem;
}

.section__cta {
    margin-top: 2rem;
    text-align: center;
}

.page-header {
    background: var(--bg-alt);
    padding: 2.5rem 0;
    border-bottom: 1px solid var(--border);
}

.page-header h1 {
    margin: 0 0 0.5rem;
    font-size: 1.9rem;
}

.page-header p {
    margin: 0;
    color: var(--muted);
}

.prose {
    max-width: 760px;
}

.prose h2 {
    font-size: 1.25rem;
    margin-top: 2rem;
}

/* ---------- Kartlar ---------- */

.card-grid,
.feature-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .card-grid,
    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 960px) {
    .card-grid,
    .feature-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.card,
.feature {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
}

.card h3,
.feature h3 {
    margin-top: 0;
    font-size: 1.1rem;
}

.card p,
.feature p {
    margin-bottom: 0;
    color: var(--muted);
}

.empty-state {
    color: var(--muted);
    background: var(--bg-alt);
    border: 1px dashed var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
}

/* ---------- Formlar ---------- */

.form-page {
    max-width: 560px;
}

.form-group {
    margin-bottom: 1.1rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.form-control {
    width: 100%;
    padding: 0.7rem 0.9rem;
    font-family: inherit;
    font-size: 1rem;
    border: 1.5px solid var(--border);
    border-radius: calc(var(--radius) - 4px);
    background: #fff;
    color: var(--ink);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(var(--brand-rgb), 0.12);
}

/* Sayı alanlarındaki tarayıcı artırma/azaltma oklarını gizle */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

.form-control--inline {
    width: auto;
    max-width: 140px;
    display: inline-block;
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.form-row .form-group {
    flex: 1 1 200px;
}

.form-group--small {
    flex: 0 1 120px;
}

.form-group--checkbox label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 400;
}

.form-error {
    display: block;
    color: var(--error);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.form-hint {
    display: block;
    color: var(--muted);
    font-size: 0.825rem;
    margin-top: 0.25rem;
}

/* ---------- Uyarılar ---------- */

.alert {
    padding: 0.85rem 1rem;
    border-radius: var(--radius);
    margin-bottom: 1.25rem;
    border: 1px solid transparent;
}

.alert:empty {
    display: none;
}

.alert--success {
    background: #E8F6EF;
    border-color: var(--success);
    color: #14603D;
}

.alert--error {
    background: var(--error-bg);
    border-color: var(--error);
    color: var(--brand-dark);
}

.alert--error ul {
    margin: 0;
    padding-left: 1.25rem;
}

.alert--warning {
    background: var(--warning-bg);
    border-color: var(--warning-border);
    color: #7a5c00;
}

/* ---------- Kayıt Sihirbazı ---------- */

.wizard-steps {
    list-style: none;
    display: flex;
    padding: 0;
    margin: 0 0 2.25rem;
}

.wizard-steps__item {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 700;
    text-align: center;
}

/* Adımlar arası bağlantı çizgisi */
.wizard-steps__item:not(:first-child)::before {
    content: "";
    position: absolute;
    top: 19px;
    right: 50%;
    width: 100%;
    height: 3px;
    background: var(--border);
    z-index: 1;
    transition: background 0.3s ease;
}

.wizard-steps__item span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #fff;
    border: 2.5px solid var(--border);
    color: var(--muted);
    font-weight: 800;
    position: relative;
    z-index: 2;
    transition: all 0.25s ease;
}

.wizard-steps__item.is-active {
    color: var(--ink);
}

.wizard-steps__item.is-active span {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
    box-shadow: 0 0 0 6px rgba(var(--brand-rgb), 0.14);
}

.wizard-steps__item.is-done span {
    background: var(--success);
    border-color: var(--success);
    color: #fff;
    font-size: 0;
}

.wizard-steps__item.is-done span::after {
    content: "✓";
    font-size: 1.05rem;
}

.wizard-steps__item.is-done::before,
.wizard-steps__item.is-active::before {
    background: var(--success);
}

@media (min-width: 640px) {
    .wizard-steps__item {
        font-size: 0.925rem;
    }
}

.wizard-panel {
    display: none;
}

.wizard-panel.is-active {
    display: block;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    animation: panel-in 0.35s ease;
}

@media (min-width: 860px) {
    .wizard-panel.is-active {
        padding: 2.25rem;
    }
}

@keyframes panel-in {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.wizard-panel h2 {
    margin-top: 0;
}

.address-autocomplete gmp-place-autocomplete {
    display: block;
    width: 100%;
}

.distance-summary.is-loading {
    opacity: 0.6;
}

/* Adres belirleme modu düğmeleri */
.mode-toggle {
    display: flex;
    gap: 0.5rem;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.35rem;
}

.mode-toggle__btn {
    flex: 1;
    padding: 0.65rem 0.75rem;
    border: none;
    border-radius: calc(var(--radius) - 3px);
    background: transparent;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--muted);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.mode-toggle__btn:hover {
    color: var(--ink);
}

/* Seçili mod dolu yeşil + beyaz yazı: hangisinin aktif olduğu net görünür */
.mode-toggle__btn.is-active {
    background: var(--brand);
    color: #fff;
    box-shadow: 0 3px 10px rgba(var(--brand-rgb), 0.30);
}

.mode-toggle__btn.is-active:hover {
    color: #fff;
}

.map-pick-hint {
    background: #EAF1FB;
    border: 1px solid #B9CDEB;
    border-radius: var(--radius);
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    font-size: 0.925rem;
    color: #2456A6;
}

/* Adres seçilene kadar arama kutusunun altında yanıp sönen dikkat uyarısı */
.address-attention {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    background: var(--warning-bg);
    border: 1px solid var(--warning-border);
    border-left: 4px solid var(--accent);
    border-radius: var(--radius);
    padding: 0.85rem 1rem;
    margin-top: 0.75rem;
    font-size: 0.925rem;
    color: var(--ink);
    line-height: 1.5;
}

.address-attention__icon {
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    margin-top: 0.1rem;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-weight: 800;
    font-size: 1.05rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    animation: attention-blink 1.2s ease-in-out infinite;
}

@keyframes attention-blink {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(230, 140, 30, 0.45);
    }
    50% {
        opacity: 0.75;
        transform: scale(1.12);
        box-shadow: 0 0 0 8px rgba(230, 140, 30, 0);
    }
}

/* "Devam Et" kapalıyken tıklanınca uyarı kutusu sallanır (JS sınıfı ekleyip kaldırır) */
.address-attention--flash {
    animation: attention-shake 0.5s ease;
}

@keyframes attention-shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-6px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(4px); }
}

@media (prefers-reduced-motion: reduce) {
    .address-attention__icon,
    .address-attention--flash {
        animation: none;
    }
}

/* Harita altı rota göstergesi */
.map-legend {
    display: flex;
    gap: 1.25rem;
    justify-content: center;
    padding: 0.6rem 1rem;
    background: #fff;
    border-top: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--muted);
    flex-wrap: wrap;
}

.map-legend__item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.map-legend__line {
    display: inline-block;
    width: 28px;
    height: 0;
}

.map-legend__line--go {
    border-top: 4px solid var(--accent);
    border-radius: 2px;
}

.map-legend__line--return {
    border-top: 4px dashed #2456A6;
}

.map-container {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    margin-bottom: 1rem;
}

.map-banner {
    background: linear-gradient(135deg, #17808a 0%, #1f9aa5 100%);
    color: #fff;
    padding: 0.85rem 1rem;
    text-align: center;
}

.map-banner__title {
    font-weight: 700;
    font-size: 1.05rem;
}

.map-banner__instruction {
    font-size: 0.875rem;
    opacity: 0.95;
    margin-top: 0.15rem;
}

.address-summary {
    background: #F0F9F4;
    border: 1px solid #BFE3CE;
    border-left: 4px solid var(--success);
    border-radius: var(--radius);
    padding: 0.85rem 1.1rem;
    margin-bottom: 1.25rem;
    font-size: 0.925rem;
}

.address-summary p {
    margin: 0.2rem 0;
}

.address-summary__head {
    font-weight: 700;
    color: var(--success);
    margin-bottom: 0.35rem;
}

.address-summary__address {
    font-weight: 600;
    color: var(--ink);
}

.address-summary__meta {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    color: var(--muted);
}

.address-summary__coords {
    font-size: 0.8rem;
    opacity: 0.8;
}

.required-mark {
    color: var(--error);
}

.wizard-map {
    width: 100%;
    height: 400px;
    border: none;
    border-radius: 0;
    background: var(--bg-alt);
    margin-bottom: 0;
}

@media (min-width: 860px) {
    .wizard-map {
        height: 540px;
    }
}

.distance-summary {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.85rem 1rem;
    margin-bottom: 1rem;
    text-align: center;
}

.wizard-actions {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.5rem;
}

.wizard-actions .btn:only-child {
    margin-left: auto;
}

/* Mobilde aksiyon butonları ekranın altına yapışır */
@media (max-width: 859px) {
    .wizard-actions {
        position: sticky;
        bottom: 0;
        z-index: 40;
        margin: 1rem -1.5rem -1.5rem;
        padding: 0.85rem 1.5rem 1rem;
        background: linear-gradient(to top, #fff 75%, rgba(255, 255, 255, 0));
        border-radius: 0 0 var(--radius) var(--radius);
    }

    .wizard-actions .btn {
        flex: 1;
    }
}

.loading {
    text-align: center;
    padding: 2rem;
    color: var(--muted);
}

/* Fiyat kartı */

.price-card {
    position: relative;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(135deg, var(--brand), var(--accent)) border-box;
    border: 3px solid transparent;
    border-radius: var(--radius);
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: var(--shadow-lift);
    animation: price-in 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes price-in {
    from {
        opacity: 0;
        transform: scale(0.94) translateY(10px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.price-card__label {
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
    margin-bottom: 0.75rem;
}

.price-card__amount {
    font-size: 3.4rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--brand);
    line-height: 1.05;
    font-variant-numeric: tabular-nums;
}

.price-card__km {
    margin-top: 0.85rem;
    color: var(--muted);
}

.price-card__note {
    display: inline-block;
    margin-top: 1.1rem;
    padding: 0.35rem 0.9rem;
    background: #F0F9F4;
    color: var(--success);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
}

/* Bilgi kartları (kapalı / ön kayıt / özel teklif) */

.status-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
}

.status-card h3 {
    margin-top: 0;
}

.status-card .form-group {
    text-align: left;
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
}

.progress-bar {
    background: var(--bg-alt);
    border-radius: 999px;
    height: 14px;
    overflow: hidden;
    margin: 1rem auto;
    max-width: 360px;
    border: 1px solid var(--border);
}

.progress-bar__fill {
    height: 100%;
    background: var(--accent);
    border-radius: 999px;
    transition: width 0.4s ease;
}

/* Veli satırları */

.parent-row {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    margin-bottom: 1rem;
    background: #fff;
}

.parent-row__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.parent-row__head strong {
    font-size: 0.95rem;
}

.parent-row .form-row .form-group {
    margin-bottom: 0.5rem;
}

/* Özet */

.summary-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.5rem;
}

.summary-card table {
    width: 100%;
    border-collapse: collapse;
}

.summary-card th,
.summary-card td {
    text-align: left;
    padding: 0.5rem 0.25rem;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}

.summary-card th {
    width: 40%;
    color: var(--muted);
    font-weight: 600;
}

.summary-card .summary-price {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--brand);
}

/* Başarı sayfası */

.success-card {
    max-width: 520px;
    margin: 0 auto;
    text-align: center;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2.5rem 1.5rem;
    box-shadow: var(--shadow);
}

.success-card__keep {
    background: var(--warning-bg);
    border: 1px solid var(--warning-border);
    border-radius: var(--radius);
    padding: 0.85rem 1rem;
    margin: 1.25rem 0 0;
    font-size: 1.05rem;
    color: var(--ink);
}

.success-card__keep strong {
    color: var(--brand);
}

.success-card__number {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--brand);
    background: var(--bg-alt);
    border-radius: var(--radius);
    padding: 0.75rem;
    margin: 1.5rem 0;
    letter-spacing: 1px;
}

.success-card__details {
    text-align: left;
    margin: 0 0 1.5rem;
}

.success-card__details dt {
    font-weight: 600;
    color: var(--muted);
    margin-top: 0.75rem;
}

.success-card__details dd {
    margin: 0;
}

.success-card__actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

@media (min-width: 640px) {
    .success-card__actions {
        flex-direction: row;
        justify-content: center;
    }
}

/* ---------- Footer ---------- */

.site-footer {
    background: var(--brand-dark);
    color: #9DB8AE;
    padding: 3.5rem 0 1.5rem;
    margin-top: 3rem;
}

.site-footer__inner {
    display: grid;
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #114536;
}

.site-logo--footer {
    color: #fff;
    font-size: 1.2rem;
}

.site-logo--footer span {
    color: var(--accent);
}

.site-footer__about {
    margin: 0.75rem 0 0;
    max-width: 32ch;
    line-height: 1.7;
}

.site-footer h4 {
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    margin: 0 0 1rem;
}

.site-footer__links {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.site-footer__links a {
    color: #9DB8AE;
    text-decoration: none;
}

.site-footer__links a:hover {
    color: #fff;
}

.site-footer__copy {
    padding-top: 1.25rem;
    font-size: 0.86rem;
    color: #7FA79A;
}

@media (min-width: 860px) {
    .site-footer__inner {
        grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
        gap: 2rem;
    }
}

/* ============================================================
   Admin Paneli
   ============================================================ */

.admin-body {
    background: var(--panel-bg);
}

.admin-shell {
    display: flex;
    min-height: 100vh;
    flex-direction: column;
}

.admin-sidebar {
    position: relative;
    background: var(--ink);
    color: #fff;
    padding: 1.25rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.admin-sidebar__brand {
    font-size: 1.2rem;
    font-weight: 800;
    display: block;
    color: inherit;
    text-decoration: none;
}

.admin-sidebar__brand span {
    color: var(--accent);
}

.admin-sidebar__brand small {
    display: block;
    font-size: 0.75rem;
    font-weight: 400;
    color: #9aa1b1;
}

.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.admin-nav a {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: #cfd2da;
    text-decoration: none;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.4;
}

/* Menü ikonları: metinden bir tık soluk, aktif satırda tam opak */
.admin-nav a svg,
.admin-nav__group > summary svg {
    flex: none;
    opacity: 0.7;
}

.admin-nav a:hover svg,
.admin-nav a.is-active svg {
    opacity: 1;
}

.admin-nav a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.admin-nav a.is-active {
    background: var(--brand);
    color: #fff;
}

/* Kenar menüde açılır-kapanır grup (Kayıtlar, Araç Takibi): başlık öbür menü öğeleriyle aynı hizada ve
   aynı yazıyla durur; alt sayfalar başlığın altında girintili, solda ince çizgiyle */
.admin-nav__group > summary {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    list-style: none;
    cursor: pointer;
    color: #cfd2da;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.4;
}

.admin-nav__group > summary::-webkit-details-marker {
    display: none;
}

.admin-nav__group > summary:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.admin-nav__group > summary:hover svg {
    opacity: 1;
}

/* Sağdaki ok: kapalıyken sağa, açıkken aşağı bakar */
.admin-nav__group > summary::after {
    content: "";
    width: 0.38rem;
    height: 0.38rem;
    margin-left: auto;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(-45deg);
    transition: transform 0.15s ease;
    opacity: 0.7;
}

.admin-nav__group[open] > summary::after {
    transform: rotate(45deg);
}

.admin-nav__items {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin: 0.25rem 0 0.35rem 1.25rem;
    padding-left: 0.5rem;
    border-left: 2px solid rgba(255, 255, 255, 0.12);
}

/* Kilitli Personel Servisi: menü öğesi gibi durur, şifre ekranına götürür */
.admin-nav__lockedgroup {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    color: #cfd2da;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.4;
}

.admin-nav__lockedgroup:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.admin-nav__lockedgroup svg:last-child {
    margin-left: auto;
    opacity: 0.9;
}

.admin-nav__relock {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    color: #8d9a95;
    background: none;
    border: 0;
    cursor: pointer;
    padding: 0.45rem 0.75rem;
    border-radius: 8px;
}

.admin-nav__relock:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #cfd2da;
}

/* display:flex tarayıcının kapalı <details> gizlemesini ezdiği için açıkça kapatılır */
.admin-nav__group:not([open]) .admin-nav__items {
    display: none;
}

/* İşletme alanı düğmesi (Öğrenci / Personel): menü seçilen alana göre değişir */
.admin-alan {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3px;
    padding: 3px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.admin-alan a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-width: 0;
    padding: 0.4rem 0.5rem;
    border-radius: 999px;
    color: #cfd2da;
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.admin-alan a svg {
    flex: none;
    opacity: 0.75;
}

.admin-alan a:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.admin-alan a.is-on {
    background: #fff;
    color: var(--brand);
}

.admin-alan a.is-on svg {
    opacity: 1;
}

/* Alanın sayfalarından sonra iki alanda da aynı kalan bölüm (Araç Takibi, Sistem) */
.admin-nav__baslik {
    margin: 0.5rem 0 0.1rem;
    padding: 0.65rem 0.75rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: #8d9a95;
}

.admin-sidebar__logout {
    margin-top: auto;
}

/* Çıkış Yap üstünde: kullanıcı adı + siteye git bağlantısı */
.admin-sidebar__user {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    color: #cfd2da;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.admin-sidebar__user span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-sidebar__user a {
    color: var(--accent);
    text-decoration: none;
    white-space: nowrap;
}

.admin-sidebar__user a:hover {
    text-decoration: underline;
}

.admin-sidebar__sifre {
    display: block;
    color: #cfd2da;
    font-size: 0.8rem;
    margin-bottom: 0.6rem;
    text-decoration: none;
}

.admin-sidebar__sifre:hover {
    color: #fff;
    text-decoration: underline;
}

.admin-sidebar__logout .btn--outline {
    color: #cfd2da;
    border-color: #4a5164;
}

.admin-sidebar__logout .btn--outline:hover {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

.admin-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.admin-main {
    padding: 1.5rem;
}

@media (min-width: 960px) {
    .admin-shell {
        flex-direction: row;
    }

    .admin-sidebar {
        width: 240px;
        flex-shrink: 0;
        position: sticky;
        top: 0;
        height: 100vh;
        /* Menü ekrandan uzunsa kendi içinde kaysın (alt gruplar kesiliyordu);
           sona gelince sayfayı kaydırmasın */
        overflow-y: auto;
        overscroll-behavior: contain;
        scrollbar-width: thin;
        scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
    }
}

.admin-page-title {
    margin: 0 0 1.25rem;
    font-size: 1.5rem;
}

.admin-page-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.admin-page-head .admin-page-title {
    margin: 0;
}

.admin-page-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.admin-panel {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}

.admin-panel--narrow {
    max-width: 620px;
}

.admin-panel h2 {
    margin-top: 0;
    font-size: 1.15rem;
}

.admin-panel h2 small {
    color: var(--muted);
    font-weight: 400;
}

/* Kayıt izi (v33): kaydın / sayfanın açılır "geçmiş" kutusu ve tablosu (kayit-gecmisi.js) */
.kayit-gecmisi > summary {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    list-style: none;
}

.kayit-gecmisi > summary::-webkit-details-marker {
    display: none;
}

.kayit-gecmisi > summary h2 {
    margin: 0;
}

/* Ok: kapalıyken aşağı, açıkken yukarı bakar */
.kayit-gecmisi > summary::after {
    content: "";
    width: 8px;
    height: 8px;
    margin: -4px 4px 0 auto;
    border-right: 2px solid var(--muted);
    border-bottom: 2px solid var(--muted);
    transform: rotate(45deg);
}

.kayit-gecmisi[open] > summary::after {
    margin-top: 4px;
    transform: rotate(-135deg);
}

.kayit-gecmisi[open] > summary {
    margin-bottom: 0.75rem;
}

.gecmis-tablosu__zaman,
.gecmis-tablosu__kim {
    white-space: nowrap;
}

.gecmis-tablosu__kim-dar {
    display: none;
    color: var(--muted);
    font-size: 0.85em;
}

.gecmis-tablosu__ip {
    color: var(--muted);
    font-size: 0.85em;
}

/* 10 kaydı aşınca çıkan tarih süzgeci (kayit-gecmisi.js: geçmiş kutuları ve kartların hareket geçmişi; puantaj Geçmiş sekmesi) */
.kayit-gecmisi__suzgec {
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

/* .filter-form .form-group (min-width 160px) dosyada sonra geldiği için seçici iki sınıflı */
.filter-form.kayit-gecmisi__suzgec .form-group {
    min-width: 0;
    flex: 1 1 130px;
    max-width: 190px;
}

@media (max-width: 720px) {
    .gecmis-tablosu .gecmis-tablosu__kim {
        display: none;
    }

    /* Panel tabloları telefonda kırılmaz (.admin-table nowrap); geçmişte mesaj uzun cümledir, alt satıra geçer */
    .gecmis-tablosu td:last-child {
        white-space: normal;
        min-width: 11rem;
    }

    .gecmis-tablosu__kim-dar {
        display: block;
    }
}


.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.925rem;
}

.admin-table th,
.admin-table td {
    text-align: left;
    padding: 0.6rem 0.5rem;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.admin-table th {
    color: var(--ink);
    font-weight: 800;
    font-size: 0.9rem;
    white-space: nowrap;
}

.admin-table__actions {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

/* Tablo kendi kutusunda yana kayar (her tablo .tablo-kutu içinde); sayfa hiçbir genişlikte yana kaymaz.
   Telefonda hücreler alt satıra kırılmaz, satırlar okunur kalır; tablo kutunun içinde kaydırılır. */
.tablo-kutu {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
}

@media (max-width: 720px) {
    .admin-table {
        white-space: nowrap;
    }
}

.inline-form {
    display: inline-block;
}

.tier-row-form {
    display: inline-flex;
    align-items: flex-end;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tiers-table input.form-control {
    max-width: 140px;
}

.tiers-table td {
    vertical-align: middle;
}

.filter-form {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
    flex-wrap: wrap;
}

.filter-form .form-group {
    margin-bottom: 0;
    min-width: 160px;
}

/* Geniş filtre: alanlar esner/daralır, her şey tek satıra sığar (dar ekranda sarmaya döner) */
.filter-form--wide .form-group {
    flex: 1 1 100px;
    min-width: 100px;
}

.filter-form--wide .form-control {
    width: 100%;
    min-width: 0;
}

.filter-form--wide .btn {
    flex-shrink: 0;
    white-space: nowrap;
}

/* Excel butonu filtre satırının sağına yaslanır */
.filter-form__excel {
    margin-left: auto;
}

.button-row {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.detail-list {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 0.4rem 1.5rem;
    margin: 0;
}

.detail-list dt {
    font-weight: 600;
    color: var(--muted);
}

.detail-list dd {
    margin: 0;
}

/* Rozetler */

.badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
}

.badge--pending {
    background: var(--warning-bg);
    color: #7a5c00;
}

.badge--approved,
.badge--active {
    background: #E8F6EF;
    color: var(--success);
}

.badge--cancelled,
.badge--closed {
    background: var(--error-bg);
    color: var(--error);
}

.badge--preregistration {
    background: #EAF1FB;
    color: #2456A6;
}

/* Dönem Bitti (v38): dönem kapanışıyla kapanan eski kayıt; gri, satırı soluk */
.badge--season-ended {
    background: #EEF0F1;
    color: #5F6B73;
}

.text-ready {
    color: var(--success);
    font-weight: 700;
}

/* İstatistik kartları */

.stat-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    margin-bottom: 1.5rem;
}

.stat-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.1rem;
    border-left: 4px solid var(--brand);
}

.stat-card--warning {
    border-left-color: var(--accent);
}

.stat-card--success {
    border-left-color: var(--success);
}

.stat-card--muted {
    border-left-color: var(--muted);
}

/* Araç kartı sekme şeridi: solda tarih aralığı, sağda küçük kutucuklarda toplamlar */
.kart-serit {
    display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap;
    margin: 0 0 14px;
}
.kart-serit__ozet { display: flex; gap: 10px; flex-wrap: wrap; margin-left: auto; }
.kart-serit__kutu {
    display: grid; gap: 1px; min-width: 128px; padding: 8px 14px;
    background: #fff; border: 1px solid var(--border); border-radius: 12px; border-left: 3px solid var(--brand);
    white-space: nowrap;
}
.kart-serit__kutu strong { font-size: 1.05rem; color: var(--brand); line-height: 1.2; }
.kart-serit__etiket { font-size: 0.74rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; }
.kart-serit__kutu small { font-size: 0.78rem; }
@media (max-width: 720px) { .kart-serit__ozet { margin-left: 0; width: 100%; } .kart-serit__kutu { flex: 1 1 140px; } }

/* Araç kartı: kimlik kartı (plaka solda; ad + işlemler üstte; durum, şoför, bağlar, km altta) */
.arac-kart-tasarim { min-width: 0; }
.arac-kart-tasarim > p:first-child { font-size: 0.82rem; padding-bottom: 10px; }
.arac-kart-tasarim a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.arac-kimlik {
    display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 16px 24px;
    padding: 20px; margin-bottom: 16px;
    background: #fff; border: 1px solid var(--border); border-top: 4px solid var(--brand); border-radius: var(--radius);
}
.arac-kimlik .kart-ikon { width: 23px; height: 23px; flex: none; color: var(--brand); }
.arac-kimlik__plaka {
    grid-row: 1 / 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px;
    text-decoration: none; min-width: 0;
}
.arac-kimlik__ust { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 20px; min-width: 0; }
.arac-kimlik__ad { min-width: 0; flex: 1 1 auto; }
/* Geniş ekranda düğmeler başlıkla aynı satırda kalır (başlık daralır, gerekirse kırılır); 1500px altında alta iner, sağa dayalı */
@media (min-width: 1500px) { .arac-kimlik__ust { flex-wrap: nowrap; } .arac-kimlik .admin-page-actions { flex: 0 0 auto; } }
.arac-kimlik .admin-page-title { font-size: clamp(1.4rem, 1.8vw, 1.8rem); letter-spacing: -0.025em; margin: 0 0 6px; }
.arac-kimlik .text-muted { font-size: 0.87rem; margin: 0; }
.arac-kimlik .admin-page-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; min-width: 0; margin-left: auto; } /* satıra sığmayıp alta inince de sağa dayalı */
.arac-kimlik .admin-page-actions .btn { display: inline-flex; gap: 8px; align-items: center; padding: 11px 15px; font-size: 0.86rem; border-radius: 12px; }
.arac-kimlik .btn--primary .kart-ikon { color: inherit; }
.arac-kimlik__alt {
    display: flex; flex-wrap: wrap; align-items: center; gap: 12px 0; min-width: 0;
    padding-top: 14px; border-top: 1px solid var(--border);
}
.arac-kimlik__durum { padding-right: 20px; flex: none; }
.arac-kimlik__durum .badge { display: inline-flex; align-items: center; gap: 8px; padding: 10px 13px; border-radius: 10px; font-size: 0.9rem; }
.arac-kimlik__hucre {
    display: flex; gap: 12px; align-items: flex-start; flex: 1 1 120px; min-width: 0;
    padding: 0 20px; border-left: 1px solid var(--border);
    text-decoration: none; color: var(--brand); font-size: 0.88rem;
}
.arac-kimlik__hucre > span { min-width: 0; overflow-wrap: anywhere; }
.arac-kimlik__hucre small { display: block; color: var(--muted); font-size: 0.84rem; line-height: 1.45; margin-top: 3px; }
.arac-kimlik__km { flex: 0 1 130px; padding-right: 0; }
.arac-kimlik__km strong { display: block; margin-top: 3px; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Araç kartı: durum şeridi (servis gideri, sonraki bakım, belgeler, bu ay yakıt) */
.arac-durum-seridi {
    display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); margin: 0 0 18px;
    background: #fff; border: 1px solid var(--border); border-left: 3px solid var(--brand); border-radius: 10px; box-shadow: var(--shadow);
}
.arac-durum-seridi > a {
    display: grid; grid-template-columns: auto 1fr; align-content: center; align-items: baseline; gap: 5px 12px; min-width: 0;
    padding: 14px 20px; border-left: 1px solid var(--border); text-decoration: none;
}
.arac-durum-seridi > a:first-child { border-left: 0; }
.arac-durum-seridi > a:hover { background: var(--brand-wash); }
.arac-durum-seridi > a > span:first-child { color: var(--muted); font-size: 0.85rem; font-weight: 600; }
.arac-durum-seridi strong { color: var(--brand); font-variant-numeric: tabular-nums; font-size: 1.13rem; line-height: 1.35; }
.arac-durum-seridi small { color: var(--muted); font-size: 0.83rem; line-height: 1.4; }
.arac-durum-seridi > a > small, .arac-belge-uyarilari { grid-column: 1 / -1; }
.arac-belge-uyarilari { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.arac-durum-seridi .arac-uyari--yakin,
.arac-durum-seridi .arac-uyari--gecmis { padding: 2px 8px; border-radius: 5px; width: fit-content; font-weight: 600; }
.arac-durum-seridi .arac-uyari--yakin { color: var(--accent-dark); background: var(--accent-wash); }
.arac-durum-seridi .arac-uyari--gecmis { color: var(--error); background: var(--error-bg); }

/* Araç kartı: sekmeler (aktif sekme yeşil hap) */
.arac-kart-tasarim > .admin-tabs {
    display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 4px; scrollbar-width: thin;
    padding: 0 0 7px; margin-bottom: 16px; border-bottom: 1px solid var(--border);
}
.arac-kart-tasarim > .admin-tabs .admin-tabs__tab { flex: 0 0 auto; padding: 10px 14px; border: 0; border-radius: 9px; font-size: 0.85rem; white-space: nowrap; margin: 0; }
.arac-kart-tasarim > .admin-tabs .admin-tabs__tab.is-active { background: var(--brand); color: #fff; }
.arac-kart-tasarim > .admin-tabs .is-active .text-muted { color: rgba(255, 255, 255, 0.75); }

/* Araç kartı: Giderler sekmesi (başlıkta kayıt sayısı + toplam + ekle; altında tarih süzgeci) */
.arac-kart-tasarim .arac-gider-paneli { padding: 18px 20px; }
.arac-gider-baslik { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.arac-gider-baslik h2 { margin: 0; display: flex; gap: 10px; align-items: center; font-size: 1.35rem; }
.arac-gider-baslik h2 small { font-family: "Source Sans 3", sans-serif; font-size: 0.78rem; font-weight: 400; background: var(--brand-wash); color: var(--brand); padding: 4px 8px; border-radius: 20px; }
.arac-gider-toplam { margin-left: auto; display: flex; align-items: baseline; gap: 9px; font-size: 0.78rem; color: var(--muted); }
.arac-gider-toplam strong { font-size: 1.25rem; color: var(--brand); font-variant-numeric: tabular-nums; }
.arac-gider-filtre { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; padding: 12px 0; margin: 6px 0 2px; border-top: 1px solid var(--border); }
.arac-gider-filtre p { margin: 0; font-size: 0.78rem; color: var(--muted); }
.arac-gider-paneli .admin-table th { background: var(--brand-wash); color: var(--muted); padding: 10px 12px; font-size: 0.78rem; }
.arac-gider-paneli .admin-table td { padding: 12px; border-color: var(--border); }
.arac-gider-paneli .admin-table .tutar-hucre { font-weight: 700; color: var(--brand); font-variant-numeric: tabular-nums; }
.arac-gider-paneli .admin-table td:last-child { width: 1%; }
.arac-gider-paneli .satir-eylem .btn { border-width: 1px; padding: 6px 10px; font-size: 0.78rem; box-shadow: none; }

@media (max-width: 1400px) {
    .arac-kimlik .admin-page-actions { justify-content: flex-start; }
    .arac-kimlik__hucre { padding-inline: 12px; }
}
@media (max-width: 1100px) {
    .arac-kimlik__plaka { grid-row: 1; }
    .arac-kimlik__alt { grid-column: 1 / -1; gap: 16px 0; }
    .arac-kimlik__hucre { flex: 1 1 130px; }
    .arac-durum-seridi { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .arac-durum-seridi > a:nth-child(odd) { border-left: 0; }
    .arac-durum-seridi > a:nth-child(n + 3) { border-top: 1px solid var(--border); }
}
@media (max-width: 720px) {
    .arac-kimlik { padding: 16px; }
    .arac-kimlik .admin-page-actions { width: 100%; }
    .arac-kimlik .admin-page-actions .btn { flex: 1 1 40%; }
    .arac-durum-seridi { grid-template-columns: minmax(0, 1fr); }
    .arac-durum-seridi > a { border-left: 0; padding: 12px 16px; }
    .arac-durum-seridi > a + a { border-top: 1px solid var(--border); }
    .arac-gider-baslik { gap: 10px; }
    .arac-gider-toplam { flex-wrap: wrap; gap: 4px; }
    .arac-gider-filtre .filter-form { display: flex; flex-wrap: wrap; width: 100%; }
    .arac-gider-filtre input[type=date] { flex: 1 1 110px; min-width: 0; }
    .arac-kart-tasarim .arac-gider-paneli { padding: 14px; }
}
@media (max-width: 600px) {
    .arac-kimlik { grid-template-columns: minmax(0, 1fr); gap: 18px; }
    .arac-kimlik__plaka { align-items: flex-start; }
    .arac-kimlik__ust { flex-direction: column; align-items: flex-start; }
    .arac-kimlik__alt { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
    .arac-kimlik__durum { grid-column: 1 / -1; }
    .arac-kimlik__hucre { border-left: 0; padding: 0; gap: 8px; }
    .arac-kimlik .admin-page-actions .btn { justify-content: center; }
}

/* Servis tablosu: parçası olan servisin altında açılır parça satırı (kapalıyken sayı, toplam ve parça adları) */
.servis-satiri--parcali > td { border-bottom: 0; }
.servis-parca-satiri > td { padding-top: 0; }
.servis-parcalari { margin-left: 8px; padding-left: 12px; border-left: 3px solid var(--brand-wash); }
.servis-parcalari > summary {
    display: flex; align-items: center; gap: 6px; min-width: 0; padding: 4px 0;
    list-style: none; cursor: pointer; color: var(--brand); font-size: 0.86rem;
}
.servis-parcalari > summary::-webkit-details-marker { display: none; }
.servis-parcalari > summary:hover strong { text-decoration: underline; }
.servis-parcalari__ok { flex: none; transition: transform 0.15s ease; }
.servis-parcalari[open] .servis-parcalari__ok { transform: rotate(90deg); }
.servis-parcalari__adlar {
    flex: 1 1 auto; min-width: 0; margin-left: 6px; color: var(--muted);
    display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.servis-parcalari[open] .servis-parcalari__adlar { display: none; }
.servis-parcalari .tablo-kutu { margin: 4px 0 6px; }
.servis-parcalari .admin-table { font-size: 0.86rem; }
.servis-parcalari .admin-table th { background: var(--brand-wash); color: var(--muted); font-size: 0.8rem; }

/* Tıklanabilir özet kartı (araç kartı): ilgili sekmeye gider */
a.stat-card--link {
    display: block;
    color: inherit;
    text-decoration: none;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}
a.stat-card--link:hover,
a.stat-card--link:focus-visible {
    box-shadow: var(--shadow-lift);
    transform: translateY(-1px);
}

/* Tıklanır sayı kartı (alttaki kayıtları açar) */
a.stat-card--link {
    display: block;
    color: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s;
}

a.stat-card--link:hover {
    /* sol şerit kartın durum rengini korur */
    border-top-color: var(--brand);
    border-right-color: var(--brand);
    border-bottom-color: var(--brand);
    box-shadow: 0 4px 14px rgba(var(--brand-rgb), 0.12);
}

.stat-card__value {
    font-size: 1.9rem;
    font-weight: 800;
}

.stat-card__label {
    color: var(--muted);
    font-size: 0.875rem;
}

/* Admin giriş sayfası */

.admin-login-body {
    background: var(--ink);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    margin: 0;
}

.admin-login-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 2rem;
    width: 100%;
    max-width: 380px;
    box-shadow: var(--shadow);
}

.admin-login-card__brand {
    font-size: 1.4rem;
    font-weight: 800;
    text-align: center;
}

.admin-login-card__brand span {
    color: var(--brand);
}

.admin-login-card h1 {
    font-size: 1.15rem;
    text-align: center;
    color: var(--muted);
    font-weight: 600;
}

/* ---------- Logo görseli ---------- */

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

.site-logo img {
    display: block;
    height: 48px;
    width: auto;
}

/* ---------- Buton ikonları ---------- */

.btn__icon {
    width: 18px;
    height: 18px;
    vertical-align: -3px;
    margin-right: 0.35rem;
}

/* ---------- Sözleşme PDF önizleme ---------- */

.pdf-preview {
    max-width: 860px;
    margin: 2.5rem auto 0;
}

.pdf-preview__title {
    font-size: 1.35rem;
    margin-bottom: 0.35rem;
}

.pdf-preview__hint {
    color: var(--muted);
    margin-bottom: 1rem;
}

.pdf-preview__frame {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.pdf-preview__frame iframe {
    display: block;
    width: 100%;
    height: min(78vh, 900px);
    border: 0;
}

.pdf-preview__download {
    display: inline-block;
    margin-top: 1rem;
}

/* Mobil tarayıcılar gömülü PDF'i çoğu zaman göstermez; önizleme yerine indirme butonu öne çıkar */
@media (max-width: 640px) {
    .pdf-preview__frame {
        display: none;
    }
}

/* Başarı kartından sözleşme önizlemesine yönlendiren not */
.success-card__contract-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--brand-wash);
    color: var(--brand);
    border-radius: var(--radius);
    padding: 0.85rem 1rem;
    margin-bottom: 1rem;
    font-weight: 600;
    text-decoration: none;
}

.success-card__contract-note svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.success-card__contract-note:hover {
    text-decoration: underline;
}

/* Kayıt sorgulama sayfası */
.status-query-card {
    max-width: 480px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    box-shadow: var(--shadow);
}

.status-query-card h1 {
    margin: 0 0 0.5rem;
    font-size: 1.6rem;
    text-align: center;
}

.status-query-card__hint {
    color: var(--muted);
    text-align: center;
    margin: 0 0 1.5rem;
}

.status-query__result {
    margin-top: 1.25rem;
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    text-align: center;
}

.status-query__result--error {
    background: var(--error-bg);
    border: 1px solid var(--error);
    color: var(--error);
}

.status-query__result--pending {
    background: var(--warning-bg);
    border: 1px solid var(--warning-border);
    color: var(--ink);
    font-weight: 600;
}

.status-query__result--approved {
    background: #EAF7F0;
    border: 1px solid var(--success);
    color: var(--ink);
}

.status-query__result-title {
    margin: 0 0 0.75rem;
    font-weight: 700;
    color: var(--success);
}

.status-query__details {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.35rem 1rem;
    margin: 0;
    text-align: left;
    max-width: 340px;
    margin-inline: auto;
}

.status-query__details dt {
    font-weight: 600;
    color: var(--muted);
}

.status-query__details dd {
    margin: 0;
}

/* Okul -> servis mahalleleri seçim ızgarası */
.nbhd-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.35rem 1rem;
    margin-top: 1rem;
}

.nbhd-grid__item {
    font-size: 0.95rem;
    cursor: pointer;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---------- Bölge uyarı modalı ---------- */

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(3, 54, 40, 0.55);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    padding: 1rem;
}

.modal-backdrop[hidden] {
    display: none;
}

.modal {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lift);
    max-width: 440px;
    width: 100%;
    padding: 1.75rem 1.5rem;
    max-height: 90vh;
    overflow-y: auto;
}

.modal h3 {
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
}

.modal p {
    margin: 0 0 1rem;
    color: var(--muted);
}

.modal__actions {
    margin-top: 1rem;
}

/* ---------- Dashboard grafikleri ---------- */

.stat-card__sub {
    font-size: 0.8rem;
    color: var(--muted);
    margin-top: 0.2rem;
}

.chart-row {
    display: grid;
    gap: 1.5rem;
    align-items: start;
}

@media (min-width: 900px) {
    .chart-row {
        grid-template-columns: minmax(260px, 1fr) 1.4fr;
    }
}

.donut-wrap {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.donut-legend {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.4rem;
    font-size: 0.92rem;
}

.donut-legend__swatch {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 3px;
    margin-right: 0.5rem;
    vertical-align: -1px;
}

.donut-legend__count {
    color: var(--muted);
}

.grade-bars {
    display: grid;
    gap: 0.45rem;
}

.grade-bars__row {
    display: grid;
    grid-template-columns: 64px 1fr 34px;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.9rem;
}

.grade-bars__track {
    background: var(--bg-alt);
    border-radius: 4px;
    height: 18px;
    overflow: hidden;
}

.grade-bars__fill {
    background: #12896B;
    border-radius: 4px 4px 4px 4px;
    height: 100%;
}

.grade-bars__count {
    text-align: right;
    color: var(--muted);
}

/* Özet tablolarında toplam satırı */
.admin-table__total > th,
.admin-table__total > td {
    border-top: 2px solid var(--border);
    font-weight: 700;
    background: var(--bg-alt);
}

/* Dashboard okul paneli: kayıt/iptal sayaç şeritleri */
.school-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.25rem 0 1rem;
}

.school-stat {
    display: inline-flex;
    align-items: baseline;
    gap: 0.35rem;
    background: var(--bg-alt);
    border-radius: 999px;
    padding: 0.35rem 0.9rem;
    font-size: 0.82rem;
    color: var(--muted);
    white-space: nowrap;
}

.school-stat strong {
    font-size: 1rem;
    color: var(--ink);
}

.school-stat--ok strong { color: var(--success); }
.school-stat--bad strong { color: var(--error); }
.school-stat--money strong { color: var(--brand); }

/* Veli listesi: ad altındaki telefon satırı + WhatsApp kısayolu */
.veli-phone {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 2px;
    font-size: 0.82rem;
}

.veli-wa {
    display: inline-flex;
    color: #1E8E5A;
}

.veli-wa:hover {
    color: #14663F;
}

/* Ayrılan öğrenci grafiği: kayıp olduğu için kırmızı */
.grade-bars__fill--danger {
    background: #C0392B;
}

/* Dashboard: uzun etiketli bar satırları (ay/mahalle adları) */
.grade-bars__row--wide {
    grid-template-columns: 150px 1fr 34px;
}

.grade-bars__row--wide > span:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chart-title {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 0 0 0.75rem;
}

.nbhd-district-title {
    margin: 1.25rem 0 0.25rem;
    font-size: 1rem;
    color: var(--brand);
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.35rem;
}

/* Sözleşme / KVKK onay modalları */
.link-button {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    color: var(--brand);
    text-decoration: underline;
    cursor: pointer;
    font-weight: 600;
}

.modal--wide {
    max-width: 620px;
}

.modal__scroll {
    max-height: 55vh;
    overflow-y: auto;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1rem 1.1rem;
    font-size: 0.93rem;
}

.modal__scroll h4 {
    margin: 1rem 0 0.25rem;
    font-size: 0.98rem;
}

.modal__scroll h4:first-child {
    margin-top: 0;
}

.modal__scroll p {
    margin: 0 0 0.6rem;
    color: var(--ink);
}

.modal__terms {
    margin: 0.5rem 0;
    padding-left: 1.25rem;
    display: grid;
    gap: 0.45rem;
}

.modal__actions {
    display: grid;
    gap: 0.5rem;
}

.cta-band__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.btn__icon {
    width: 18px;
    height: 18px;
    vertical-align: -3px;
}

.site-footer__address svg {
    width: 14px;
    height: 14px;
    vertical-align: -2px;
    color: var(--accent);
}

/* ---------- İletişim sayfası ---------- */

.contact-grid {
    display: grid;
    gap: 2rem;
}

@media (min-width: 900px) {
    .contact-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

.contact-grid__title {
    font-size: 1.25rem;
    margin: 0 0 1rem;
}

.contact-channels {
    display: grid;
    gap: 0.6rem;
}

.contact-channel {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0.8rem 1rem;
    text-decoration: none;
    color: var(--ink);
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.contact-channel:hover {
    box-shadow: var(--shadow);
    transform: translateY(-1px);
}

.contact-channel svg {
    width: 22px;
    height: 22px;
    color: var(--accent-dark);
    flex-shrink: 0;
}

.contact-channel--wa svg {
    color: #1E8E5A;
}

.contact-channel span {
    display: grid;
    line-height: 1.35;
}

.contact-channel small {
    color: var(--muted);
}

.contact-map {
    margin-top: 1.25rem;
}

.contact-map iframe {
    width: 100%;
    height: 260px;
    border: 0;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.contact-map p {
    margin: 0.5rem 0 0;
}

/* Ana sayfa konum haritası: geniş ve yüksek */
.home-map iframe {
    width: 100%;
    height: 320px;
    border: 0;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: block;
}

@media (min-width: 860px) {
    .home-map iframe {
        height: 440px;
    }
}

/* Admin liste sayfalaması */
.pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.pagination__info {
    color: var(--muted);
    font-size: 0.9rem;
}

/* Öğrenci detay: solda adres, sağda öğrenci bilgisi iki kolon */
.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    align-items: start;
}

@media (max-width: 900px) {
    .detail-grid {
        grid-template-columns: 1fr;
    }
}

/* Dashboard: Google API kullanım çubukları */
.api-usage {
    display: grid;
    gap: 0.6rem;
}

.api-usage__row {
    display: grid;
    grid-template-columns: 240px 1fr 180px;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
}

.api-usage__name { color: var(--ink); }

.api-usage__bar {
    height: 10px;
    background: var(--brand-wash);
    border-radius: 999px;
    overflow: hidden;
}

.api-usage__fill {
    display: block;
    height: 100%;
    border-radius: 999px;
    transition: width 0.3s;
}

.api-usage__fill--ok { background: var(--brand); }
.api-usage__fill--warn { background: var(--accent); }
.api-usage__fill--danger { background: var(--error, #C0392B); }

.api-usage__count {
    color: var(--muted);
    text-align: right;
    white-space: nowrap;
}

.api-usage__note {
    margin: 0.9rem 0 0;
    font-size: 0.85rem;
    color: var(--muted);
}

.api-usage__note a { color: var(--brand); }

@media (max-width: 760px) {
    .api-usage__row {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }
    .api-usage__count { text-align: left; }
}

/* Öğrenci detay: ev ↔ okul haritası */
.detail-map {
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
}

/* Sol: sayfa boyutu seçimi (10/20/50/100) */
.pagination__sizes {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--muted);
    font-size: 0.9rem;
}

.pagination__sizes a {
    color: var(--brand);
    text-decoration: underline;
}

.pagination__sizes strong {
    color: var(--ink);
    background: var(--brand-wash);
    border-radius: 6px;
    padding: 0.1rem 0.45rem;
}

/* Sağ: İlk/Önceki/Sonraki/Son butonları */
.pagination__nav {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

/* Dar ekranda düğme yazısı ("« İlk") iki satıra bölünmesin */
.pagination__nav .btn {
    white-space: nowrap;
}

.pagination .is-disabled,
.pagination .btn:disabled {
    opacity: 0.35;
    pointer-events: none;
}

/* Dashboard sekmeleri (CSS-only, radio tabanlı) */
.dash-tabs__radio { position: absolute; opacity: 0; pointer-events: none; }
.dash-tabs__bar { display: flex; gap: 4px; border-bottom: 2px solid #E5E7EB; margin-bottom: 12px; }
.dash-tabs__bar label {
    padding: 8px 16px; font-weight: 700; font-size: 0.9rem; color: #6B7280;
    cursor: pointer; border-radius: 8px 8px 0 0; border-bottom: 2px solid transparent; margin-bottom: -2px;
}
.dash-tabs__bar label:hover { color: var(--brand); background: var(--brand-wash); }
.dash-tabs__radio--son:checked ~ .dash-tabs__bar label[for="tab-son"],
.dash-tabs__radio--onkayit:checked ~ .dash-tabs__bar label[for="tab-onkayit"] {
    color: var(--brand); border-bottom-color: var(--accent); background: var(--brand-wash);
}
.dash-tabs__panel { display: none; }
.dash-tabs__radio--son:checked ~ .dash-tabs__panel--son { display: block; }
.dash-tabs__radio--onkayit:checked ~ .dash-tabs__panel--onkayit { display: block; }
.dash-tabs__more { margin: 10px 0 0; font-size: 0.88rem; }
.dash-tabs__more a { color: var(--brand); font-weight: 600; }

/* Kayıt sihirbazı bilgi notu (kardeş ekleme yönlendirmesi vb.) */
.wizard-note {
    background: var(--brand-wash);
    border-left: 3px solid var(--brand);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 0.6rem 0.9rem;
    font-size: 0.9rem;
    color: var(--brand);
    margin: 0 0 1rem;
}

/* Başarı sayfası: kardeş kayıtları (her kardeşin kendi kodu + sözleşmesi) */
.success-card__siblings {
    text-align: left;
    background: var(--bg-alt);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    margin: 0 0 1.5rem;
}

.success-card__siblings h2 {
    font-size: 1.1rem;
    margin: 0 0 0.25rem;
}

.success-card__siblings > p {
    font-size: 0.9rem;
    color: var(--muted);
    margin: 0 0 0.75rem;
}

.success-card__sibling {
    border-top: 1px solid var(--border);
    padding: 0.75rem 0;
}

.success-card__sibling-name {
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.success-card__sibling-code {
    font-weight: 800;
    color: var(--brand);
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

/* Admin öğrenci detayı: şifre onaylı fiyat değiştirme kutusu */
.price-change {
    margin-top: 0.75rem;
}

.price-change summary {
    display: inline-block;
    list-style: none;
    cursor: pointer;
}

.price-change summary::-webkit-details-marker {
    display: none;
}

.price-change__form {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.75rem;
    margin-top: 0.75rem;
    padding: 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-alt);
}

.price-change__form .form-group {
    margin-bottom: 0;
}

.price-change__form label {
    white-space: nowrap;
}

/* Veli satırı: alanlar tek satırda kalsın (Ad, Soyad, Telefon, E-posta, Birincil) */
.parent-row .form-row .form-group {
    flex: 1 1 140px;
    min-width: 120px;
}

.parent-row .form-row .form-group--checkbox {
    flex: 0 0 auto;
    min-width: 0;
    white-space: nowrap;
}

/* Birincil iletişim: veli satırında alanların altında, Ad kolonunun hizasında durur */
.parent-primary-label {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 0.25rem;
    font-weight: 600;
    font-size: 0.92rem;
    cursor: pointer;
}

.parent-primary-label input {
    width: 17px;
    height: 17px;
    accent-color: var(--brand);
}

/* Öğrenci detayı yerinde düzenleme */
.detail-edit-bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.75rem;
}

.detail-edit-bar__note {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--accent);
}

.detail-edit__price {
    max-width: 160px;
}

/* Ücret değişince: ödenmemiş taksitler de değişsin mi (Tahsilat) */
.detail-edit__taksit {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem 0.5rem;
    margin-top: 0.5rem;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
}

.detail-edit__taksit small {
    flex-basis: 100%;
    font-weight: 400;
    color: var(--muted);
}

.detail-edit__hint {
    font-size: 0.85rem;
    margin: 0.5rem 0 0;
}

.detail-edit__addr {
    margin-bottom: 0.75rem;
}

.detail-edit__dirty {
    margin-left: 0.6rem;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--error, #C0392B);
}

.detail-map-search {
    margin-bottom: 0.6rem;
}

.detail-map-search gmp-place-autocomplete {
    width: 100%;
}

.detail-map-search__hint {
    font-size: 0.85rem;
    margin: 0.35rem 0 0;
}

/* Durum satırı: solda durum butonları, en sağda Düzenle/Kaydet */
.detail-status-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.detail-status-row__right {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
}

/* Harita üstü adres kutusu: seçili konumun Google adresi; tıklayınca arama açılır */
.detail-map-search__display {
    cursor: pointer;
    background: var(--bg-alt, #f7f5f0);
    font-weight: 600;
}

/* Adres düzenlemede eski -> yeni mesafe/fiyat karşılaştırması */
.detail-edit__compare {
    margin-top: 0.6rem;
    display: grid;
    gap: 0.25rem;
    font-size: 0.92rem;
}

/* Okul ekleme/düzenleme formu: alanlar toplam 2 satıra oturur
   (1. satır: Ad | İlçe | Adres[2 kolon], 2. satır: Enlem | Boylam | Son Kayıt | Kademe) */
.school-form {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem 1.25rem;
    align-items: end;
}

.school-form .form-group {
    margin-bottom: 0;
}

.school-form__wide {
    grid-column: span 2;
}

.school-form__actions {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 0.9rem;
    flex-wrap: wrap;
    margin-top: 0.25rem;
}

.school-form__active {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
    cursor: pointer;
}

@media (max-width: 900px) {
    .school-form {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 640px) {
    .school-form {
        grid-template-columns: 1fr;
    }

    .school-form__wide {
        grid-column: auto;
    }
}

/* Admin üst sekmeleri (Fiyatlandırma sayfası): altı çizgili tab bar, grup pillerinden ayrışır */
.admin-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    border-bottom: 2px solid var(--border);
    margin-bottom: 1.25rem;
}

.admin-tabs__tab {
    padding: 0.6rem 1.15rem;
    font-weight: 600;
    color: var(--muted);
    text-decoration: none;
    border-radius: 10px 10px 0 0;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: color 0.15s ease, background 0.15s ease;
}

.admin-tabs__tab:hover {
    color: var(--brand);
    background: var(--brand-wash);
}

.admin-tabs__tab.is-active {
    color: var(--brand);
    background: #fff;
    border-bottom-color: var(--accent);
}

/* Ayarlar üst sekmeleri: dosya sekmesi görünümü (kutulu; etkin olan alttaki yeşil çizgiye bitişik) */
.admin-tabs--kutu {
    gap: 6px;
    padding: 0 6px;
    border-bottom: 3px solid var(--brand);
    margin-bottom: 0;
}

.admin-tabs--kutu .admin-tabs__tab {
    margin-bottom: 0;
    padding: 0.7rem 1.4rem;
    border: 1px solid var(--border);
    border-bottom: 0;
    border-radius: 12px 12px 0 0;
    background: #F3EFE8;
    color: var(--muted);
}

.admin-tabs--kutu .admin-tabs__tab:hover {
    background: var(--brand-wash);
    color: var(--brand);
}

.admin-tabs--kutu .admin-tabs__tab.is-active {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

/* İkincil sekme çubuğu (Ayarlar bölümleri): üst sekmeye bitişik açık yeşil bant içinde hap düğmeler */
.admin-tabs--alt {
    gap: 0.4rem;
    margin: 0 0 1.1rem;
    padding: 0.65rem 0.75rem;
    background: var(--brand-wash);
    border: 1px solid var(--border);
    border-top: 0;
    border-bottom: 1px solid var(--border);
    border-radius: 0 0 12px 12px;
}

.admin-tabs--alt .admin-tabs__tab {
    padding: 0.42rem 0.95rem;
    font-size: 0.9rem;
    border: 1.5px solid var(--border);
    border-radius: 999px;
    margin-bottom: 0;
    background: #fff;
}

.admin-tabs--alt .admin-tabs__tab:hover:not(.is-active) {
    border-color: var(--brand);
    background: #fff;
}

.admin-tabs--alt .admin-tabs__tab.is-active {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

/* Tablet ve telefon: iki sekme çubuğu da tek satırda kalır, sığmazsa yana kayar (sayfa yana kaymaz) */
@media (max-width: 960px) {
    .admin-tabs--kutu,
    .admin-tabs--alt {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .admin-tabs--kutu::-webkit-scrollbar,
    .admin-tabs--alt::-webkit-scrollbar {
        display: none;
    }

    .admin-tabs--kutu {
        border-bottom: 0;
        box-shadow: inset 0 -3px 0 var(--brand);
    }

    .admin-tabs--kutu .admin-tabs__tab,
    .admin-tabs--alt .admin-tabs__tab {
        flex: none;
        white-space: nowrap;
    }
}


/* Etüt servisi seçeneği (kayıt 1. adım): dikkat çeken turuncu kart */
.etut-option {
    background: var(--accent-wash);
    border: 2px solid var(--accent);
    border-radius: var(--radius);
    padding: 1rem 1.15rem;
    margin: 1rem 0 1.25rem;
    box-shadow: 0 3px 14px rgba(230, 140, 30, 0.14);
}

.etut-option__label {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    cursor: pointer;
    margin: 0;
}

.etut-option__check {
    width: 22px;
    height: 22px;
    margin-top: 0.15rem;
    flex: 0 0 auto;
    accent-color: var(--accent);
    cursor: pointer;
}

.etut-option__title {
    display: block;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--ink);
}

.etut-option__fee {
    color: var(--accent-dark);
    font-weight: 800;
}

.etut-option__desc {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.9rem;
    color: var(--muted);
}


/* Satır işlem menüsü (öğrenci listesi): ⋮ ikonu -> Detay/Onayla/PDF; JS'siz <details> */
.admin-table__menu {
    text-align: right;
    width: 1%;
}

.row-menu {
    position: relative;
    display: inline-block;
}

.row-menu > summary {
    list-style: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--brand);
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.row-menu > summary::-webkit-details-marker {
    display: none;
}

.row-menu > summary:hover {
    background: var(--brand-wash);
    border-color: var(--brand);
}

/* Menü açıkken görünmez tam ekran katman: dışarı tıklanınca menü kapanır */
.row-menu[open] > summary::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 40;
    cursor: default;
}

.row-menu__panel {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    z-index: 50;
    min-width: 180px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow-lift);
    padding: 0.4rem;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.row-menu__form {
    display: block;
}

.row-menu__item {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.65rem 0.85rem;
    border: none;
    background: none;
    border-radius: 8px;
    font: inherit;
    font-weight: 600;
    color: var(--ink);
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
}

.row-menu__item:hover {
    background: var(--brand-wash);
    color: var(--brand);
}

.row-menu__item--success {
    color: var(--success);
}

.row-menu__item--success:hover {
    background: #F0F9F4;
    color: var(--success);
}


/* Satır işlem ikonları: ✓ onayla, ✕ iptal, → detay, PDF indir (öğrenciler + ön kayıtlar) */
.icon-actions {
    display: inline-flex;
    gap: 0.3rem;
    align-items: center;
}

.icon-actions form {
    display: inline-flex;
}

/* Dolu daire + beyaz simge stili (referans: yeşil daire içinde beyaz tik) */
.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: var(--accent);
    color: #fff;
    cursor: pointer;
    padding: 0;
    flex: 0 0 auto;
    box-shadow: 0 2px 6px rgba(28, 43, 38, 0.18);
    transition: transform 0.12s ease, filter 0.12s ease;
}

.icon-btn:hover {
    filter: brightness(1.08);
    transform: scale(1.08);
    color: #fff;
}

.icon-btn--success {
    background: var(--success);
}

.icon-btn--danger {
    background: var(--error);
}

.icon-btn--brand {
    background: var(--brand);
}

/* Öğrenciler/Ön Kayıtlar listesi: satırlar ekrana sığsın diye bir tık küçük yazı ve dar dolgu */
.admin-table--compact {
    font-size: 0.85rem;
}

.admin-table--compact th,
.admin-table--compact td {
    padding: 0.5rem 0.4rem;
}


/* Öğrenciler listesi: onaylı satırlar hafif yeşil, iptaller hafif kırmızı zeminli */
.admin-table tr.row--approved > td {
    background: #F1F9F4;
}

.admin-table tr.row--cancelled > td {
    background: #FCF0EE;
}

.admin-table tr.row--season-ended > td {
    color: var(--muted);
}


/* Kenar menüsü gizle/aç (güzergah planlayıcı gibi geniş ekran isteyen sayfalar için) */
.sidebar-hide {
    position: absolute;
    top: 14px;
    right: 10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: transparent;
    color: #cfd2da;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.sidebar-hide:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.sidebar-show {
    display: none;
}

.admin-shell--collapsed .admin-sidebar {
    display: none;
}

.admin-shell--collapsed .sidebar-show {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 68px;
    border: none;
    border-radius: 0 10px 10px 0;
    background: var(--ink);
    color: #fff;
    cursor: pointer;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.25);
    padding: 0;
}


/* Kayıt gönderim bekleme katmanı */
.submit-overlay {
    position: fixed;
    inset: 0;
    z-index: 300;
    background: rgba(254, 251, 248, 0.94);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.9rem;
    padding: 1.5rem;
    text-align: center;
}

.submit-overlay[hidden] {
    display: none;
}

.submit-overlay__spinner {
    width: 52px;
    height: 52px;
    border: 6px solid var(--accent-wash);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: submit-spin 0.9s linear infinite;
}

@keyframes submit-spin {
    to { transform: rotate(360deg); }
}

.submit-overlay__title {
    margin: 0;
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--brand);
}

.submit-overlay__text {
    margin: 0;
    max-width: 420px;
    color: var(--muted);
    font-size: 0.95rem;
}


/* Öğrenciler filtresi: Başlangıç/Bitiş tek grupta yan yana (ad aramasına yer açar) */
.filter-form__dates {
    display: flex;
    gap: 6px;
}

.filter-form__dates .form-control {
    min-width: 0;
}

/* Geniş filtrede iki tarihli alan diğerlerinden geniş durur (100px'e sıkışıp tarih okunmuyordu) */
.filter-form--wide .form-group:has(.filter-form__dates) {
    flex: 2 1 250px;
    min-width: 230px;
}

/* Araç Takibi: plaka rozeti (TR plakası görünümü: solda mavi şerit) */
.plaka {
    display: inline-flex;
    align-items: stretch;
    border: 1.5px solid #2b2b2b;
    border-radius: 4px;
    background: #fff;
    color: #111;
    font: 700 0.82rem/1 ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    letter-spacing: 0.04em;
    white-space: nowrap;
    text-decoration: none;
    overflow: hidden;
    vertical-align: middle;
}

.plaka::before {
    content: "TR";
    background: #1f4fa3;
    color: #fff;
    font-size: 0.5rem;
    letter-spacing: 0;
    padding: 0 3px 2px;
    display: flex;
    align-items: flex-end;
}

.plaka span {
    padding: 4px 7px;
    /* Türk plakası boşluklarla en çok 10 karakter: kısa plakalar da aynı genişlikte. Yazı plakaYaz() ile 10 karaktere
       tamamlanır (il kodu + harfler solda, rakamlar sağda: "06 SVG  46") */
    min-width: calc(10ch + 0.4em + 14px);
    text-align: left;
}

a.plaka:hover {
    box-shadow: 0 0 0 3px var(--accent-wash);
}

.plaka--buyuk {
    font-size: 1.45rem;
    border-width: 2px;
    border-radius: 6px;
}

.plaka--buyuk::before {
    font-size: 0.7rem;
    padding: 0 5px 4px;
}

.plaka--buyuk span {
    padding: 7px 14px;
    min-width: calc(10ch + 0.4em + 28px);
}

.plaka--eski {
    opacity: 0.6;
}

/* Gri rozet: iptal / pasif durumlar */
.badge--muted {
    background: #EEF0F1;
    color: #5F6B73;
}

/* Kayıt detay sayfaları (servis, hasar): etiketli bilgi ızgarası ve kayıt izi satırı */
.detay-ozet {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 14px 20px;
    margin: 0 0 18px;
}

.detay-ozet > div {
    min-width: 0;
}

.detay-ozet dt,
.detay-etiket {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0 0 2px;
}

.detay-ozet dd {
    margin: 0;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.detay-iz {
    margin: 12px 0 0;
    font-size: 0.85rem;
    color: var(--muted);
}

/* Tablo satırındaki düğme grubu (Çıkışı gir · Düzenle · Sil) */
/* Gider listesinde taksit planı: "Diğer N taksit" düğmesi ve açılan taksit satırları (giderler/tablo.js) */
.taksit-ac {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
    padding: 3px 10px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: #fff;
    color: var(--brand);
    font: inherit;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}
.taksit-ac:hover { border-color: var(--brand); background: var(--brand-wash); }
.taksit-ac[aria-expanded="true"] { background: var(--brand-wash); border-color: var(--brand); }
.admin-table tr.taksit-alt td { background: #FAF8F5; font-size: 0.9rem; }
.admin-table .olusturma-hucre { padding-left: 22px; }
.admin-table td.olusturma-hucre { white-space: nowrap; font-size: 0.85rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.admin-table td.olusturma-hucre small { display: block; color: var(--ink); font-size: 0.85rem; font-weight: 600; }
.admin-table tr.taksit-alt td:first-child { box-shadow: inset 3px 0 0 var(--brand-wash); }

.satir-eylem {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    flex-wrap: nowrap;
}

/* Araç Takibi: ekspertiz şeması (hasar formu + araç kartındaki hasar haritası) */
.sema {
    width: 100%;
    max-width: 360px;
    height: auto;
    display: block;
}

.sema__yon {
    font: 700 10px "Outfit", sans-serif;
    letter-spacing: 0.14em;
    fill: var(--muted);
}

.sema__govde {
    fill: none;
    stroke: #d6cec2;
    stroke-dasharray: 4 4;
}

.sema__teker {
    fill: var(--muted);
    opacity: 0.45;
}

.sema .pr rect {
    fill: #f4efe7;
    stroke: #cfc5b6;
    stroke-width: 1.2;
    transition: fill 0.15s;
}

.sema .pr text {
    fill: var(--muted);
    font: 600 10.5px "Source Sans 3", sans-serif;
    pointer-events: none;
}

.sema .pr.is-click {
    cursor: pointer;
}

.sema .pr.is-click:hover rect {
    fill: #eadfcd;
}

.sema .pr:focus {
    outline: none;
}

.sema .pr:focus-visible rect {
    stroke: var(--accent);
    stroke-width: 2.6;
}

.sema .pr.is-sel rect {
    stroke: var(--ink);
    stroke-width: 2.6;
}

.sema .pr.k-cizik rect { fill: #e7b83a; }
.sema .pr.k-cizik text { fill: #3b2c00; }
.sema .pr.k-gocuk rect { fill: #e68c1e; }
.sema .pr.k-gocuk text { fill: #fff; }
.sema .pr.k-kirik rect { fill: #c0392b; }
.sema .pr.k-kirik text { fill: #fff; }
.sema .pr.k-degis rect { fill: #6b4fbb; }
.sema .pr.k-degis text { fill: #fff; }
.sema .pr.k-onarildi rect { fill: #d6e6f6; stroke: #2b6cb0; stroke-dasharray: 3 2; }
.sema .pr.k-onarildi text { fill: #1a4a7a; }
.sema__rozet circle { fill: var(--ink); stroke: #fff; stroke-width: 1.5; }
.sema__rozet text { fill: #fff; font: 700 9.5px "Outfit", sans-serif; text-anchor: middle; }
.sema .pr.h-1 rect { fill: #f7d6cf; }
.sema .pr.h-2 rect { fill: #e58b7d; }
.sema .pr.h-2 text { fill: #fff; }
.sema .pr.h-3 rect { fill: #b42318; }
.sema .pr.h-3 text { fill: #fff; }

.sema-lejant {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    font-size: 0.82rem;
    color: var(--muted);
    justify-content: center;
}

.sema-lejant span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.sema-lejant i {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    display: inline-block;
    border: 1px solid #cfc5b6;
}

.sw-cizik { background: #e7b83a; }
.sw-gocuk { background: #e68c1e; }
.sw-kirik { background: #c0392b; }
.sw-degis { background: #6b4fbb; }
.sw-h0 { background: #f4efe7; }
.sw-h1 { background: #f7d6cf; }
.sw-h2 { background: #e58b7d; }
.sw-h3 { background: #b42318; }

@media (max-width: 760px) {
    .kart-harita {
        grid-template-columns: 1fr !important;
    }
}

/* Araç Takibi panosu */
.pano-kartlar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 12px;
    margin-bottom: 1.25rem;
}

.pano-kart {
    display: grid;
    gap: 2px;
    background: #fff;
    border: 1px solid var(--border);
    border-top: 4px solid var(--success);
    border-radius: var(--radius);
    padding: 14px 16px;
    color: var(--ink);
    text-decoration: none;
}

.pano-kart:hover {
    box-shadow: var(--shadow);
}

.pano-kart--uyari {
    border-top-color: var(--accent);
}

.pano-kart--kotu {
    border-top-color: var(--error);
}

.pano-kart.is-on {
    outline: 2px solid var(--brand);
    outline-offset: -1px;
}

.pano-kart__t {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--muted);
}

.pano-kart__n {
    font-family: "Outfit", sans-serif;
    font-size: 1.9rem;
    font-weight: 700;
    line-height: 1.15;
}

.pano-kart--uyari .pano-kart__n {
    color: var(--accent-dark);
}

.pano-kart--kotu .pano-kart__n {
    color: var(--error);
}

.pano-kart__a {
    font-size: 0.82rem;
    color: var(--muted);
}

.pano-iki {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1rem;
}

@media (max-width: 1000px) {
    .pano-iki {
        grid-template-columns: 1fr;
    }
}

.bakim-liste {
    display: grid;
    gap: 12px;
}

.bakim-satir {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 4px 12px;
    align-items: center;
}

.bakim-satir__bilgi {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 2px 10px;
    font-size: 0.88rem;
}

.bakim-cubuk {
    grid-column: 2;
    height: 8px;
    border-radius: 999px;
    background: var(--bg-alt);
    overflow: hidden;
}

.bakim-cubuk i {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: var(--success);
}

.bakim-cubuk--yakin i {
    background: var(--accent);
}

.bakim-cubuk--gecmis i {
    background: var(--error);
}

.hareket-liste {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
}

.hareket-liste li {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 2px 10px;
    padding: 9px 0;
    border-bottom: 1px solid var(--border);
    align-items: start;
    font-size: 0.9rem;
}

.hareket-liste li:last-child {
    border-bottom: 0;
}

.hareket-liste small {
    grid-column: 2;
    color: var(--muted);
}


/* ---------- Telefon ve tablet: yönetim paneli ve site ---------- */

/* Flex/grid içeriği kendi genişliğini aşıp sayfayı yana itmesin */
.admin-content,
.admin-main,
.detail-grid > *,
.stat-grid > * {
    min-width: 0;
}

/* Dar ekranın üst çubuğu ve menü paneli. Masaüstünde üst çubuk yalnız bildirim zilini taşıyan ince bir şerittir
   (içeriğin sağ üstü); menü düğmesi, marka ve sayfa adı orada görünmez. */
.admin-sidebar__kapat,
.admin-perde {
    display: none;
}

@media (min-width: 960px) {
    .admin-topbar {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        padding: 0.85rem 1.5rem 0;
    }

    .admin-topbar__menu,
    .admin-topbar__marka,
    .admin-topbar__sayfa {
        display: none;
    }

    .admin-main {
        padding-top: 0.15rem;
    }
}

@media (max-width: 959px) {
    .admin-topbar {
        position: sticky;
        top: 0;
        z-index: 70;
        display: flex;
        align-items: center;
        gap: 0.75rem;
        min-height: 56px;
        padding: calc(0.5rem + env(safe-area-inset-top, 0px)) 1rem 0.5rem;
        background: var(--ink);
        color: #fff;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
    }

    .admin-topbar__menu {
        display: inline-flex;
        align-items: center;
        gap: 0.45rem;
        flex: none;
        padding: 0.45rem 0.9rem;
        border: 1px solid rgba(255, 255, 255, 0.28);
        border-radius: 999px;
        background: transparent;
        color: #fff;
        font: inherit;
        font-size: 0.88rem;
        font-weight: 700;
        cursor: pointer;
    }

    .admin-topbar__menu:hover,
    .admin-topbar__menu:focus-visible {
        background: rgba(255, 255, 255, 0.12);
    }

    .admin-topbar__marka {
        flex: none;
        color: #fff;
        font-family: "Outfit", sans-serif;
        font-size: 1.02rem;
        font-weight: 800;
        text-decoration: none;
        white-space: nowrap;
    }

    .admin-topbar__marka span {
        color: var(--accent);
    }

    .admin-topbar__sayfa {
        min-width: 0;
        margin-left: auto;
        overflow: hidden;
        color: #cfd2da;
        font-size: 0.85rem;
        font-weight: 600;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    /* Menü soldan açılan panel */
    .admin-sidebar {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        z-index: 90;
        width: min(300px, 86vw);
        padding-top: calc(1.25rem + env(safe-area-inset-top, 0px));
        padding-bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
        overflow-y: auto;
        overscroll-behavior: contain;
        transform: translateX(-100%);
        visibility: hidden;
        transition: transform 0.22s ease, visibility 0s linear 0.22s;
    }

    .admin-shell--menu-acik .admin-sidebar {
        transform: none;
        visibility: visible;
        box-shadow: 8px 0 30px rgba(0, 0, 0, 0.3);
        transition: transform 0.22s ease;
    }

    /* Masaüstündeki "menüyü gizle" tercihi dar ekranda geçmez */
    .admin-shell--collapsed .admin-sidebar {
        display: flex;
    }

    .sidebar-hide,
    .sidebar-show,
    .admin-shell--collapsed .sidebar-show {
        display: none;
    }

    .admin-sidebar__kapat {
        position: absolute;
        top: calc(14px + env(safe-area-inset-top, 0px));
        right: 10px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 34px;
        height: 34px;
        padding: 0;
        border: 1px solid rgba(255, 255, 255, 0.25);
        border-radius: 50%;
        background: transparent;
        color: #cfd2da;
        cursor: pointer;
    }

    .admin-sidebar__kapat:hover {
        background: rgba(255, 255, 255, 0.12);
        color: #fff;
    }

    .admin-perde {
        position: fixed;
        inset: 0;
        z-index: 80;
        display: block;
        background: rgba(15, 22, 20, 0.5);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease;
    }

    .admin-shell--menu-acik .admin-perde {
        opacity: 1;
        pointer-events: auto;
    }

    .admin-main {
        padding: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .admin-sidebar,
    .admin-perde {
        transition: none !important;
    }
}

/* Ana sayfa slaytı: telefonda oklar yazının üstüne binmesin, alta noktaların yanına iner */
@media (max-width: 640px) {
    .hero-slider__arrow {
        top: auto;
        bottom: 0.45rem;
        transform: none;
        width: 36px;
        height: 36px;
        font-size: 0.95rem;
    }
}

/* Tablonun sağında / solunda kaydırılacak içerik varsa kenarda hafif gölge görünür (kaydırınca kaybolur) */
.tablo-kutu {
    background:
        linear-gradient(to right, #fff 30%, rgba(255, 255, 255, 0)) left center / 28px 100% no-repeat local,
        linear-gradient(to left, #fff 30%, rgba(255, 255, 255, 0)) right center / 28px 100% no-repeat local,
        radial-gradient(farthest-side at 0 50%, rgba(28, 43, 38, 0.16), rgba(28, 43, 38, 0)) left center / 12px 100% no-repeat scroll,
        radial-gradient(farthest-side at 100% 50%, rgba(28, 43, 38, 0.16), rgba(28, 43, 38, 0)) right center / 12px 100% no-repeat scroll;
}

@media (max-width: 720px) {
    /* Sekmeler tek satırda kalır, sığmazsa yana kayar */
    .admin-tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        border-bottom: 0;
        box-shadow: inset 0 -2px 0 var(--border);
        scrollbar-width: none;
    }

    .admin-tabs::-webkit-scrollbar {
        display: none;
    }

    .admin-tabs--alt {
        box-shadow: none;
    }

    .admin-tabs--kutu {
        box-shadow: inset 0 -3px 0 var(--brand);
    }

    .admin-tabs__tab {
        flex: none;
        margin-bottom: 0;
        padding: 0.55rem 0.85rem;
        white-space: nowrap;
    }

    /* Sığmayan sekmeler olduğu sağ kenardaki solmadan anlaşılır; sona kayınca solma boşluğa düşer */
    .admin-tabs {
        padding-right: 24px;
        -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 24px), transparent);
        mask-image: linear-gradient(to right, #000 calc(100% - 24px), transparent);
    }

    /* Anahtar–değer tabloları (başlık satırı yok) dar ekranda alt satıra kırılır; liste tabloları kayar */
    .admin-table:not(:has(thead)) {
        white-space: normal;
    }

    .admin-table:not(:has(thead)) td {
        overflow-wrap: anywhere;
    }

    /* Özet kartları iki sütun, tutar tek satırda */
    .stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.65rem;
    }

    .stat-card {
        padding: 0.85rem 0.9rem;
    }

    .stat-card__value {
        font-size: 1.3rem;
        line-height: 1.25;
    }

    .admin-page-title {
        font-size: 1.3rem;
    }

    .admin-panel {
        padding: 1rem;
        margin-bottom: 1rem;
    }

    .detay-ozet {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px 14px;
    }
}
