/* Şu An Neredeyim — layout sistemi */

:root {
    --ink: #0f1419;
    --ink-soft: #5a6470;
    --paper: #f7f6f3;
    --paper-2: #eceae5;
    --cream: #fdfcfa;
    --teal: #1a3a5c;
    --teal-deep: #0f2740;
    --teal-soft: #e8eef5;
    --sand: #b8892a;
    --sand-soft: #f3ead8;
    --line: rgba(15, 20, 25, 0.09);
    --line-strong: rgba(15, 20, 25, 0.16);
    --night: #0c1118;
    --night-mid: #141c28;
    --night-card: #1a2433;
    --gold: #c9a24e;
    --gold-light: #e8d4a8;
    --font-display: "Fraunces", ui-serif, Georgia, "Times New Roman", serif;
    --font-body: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
    --radius: 0.75rem;
    --radius-lg: calc(var(--radius) + 0.25rem);
    --radius-sm: 0.5rem;
    --radius-pill: 999px;
    --shadow: 0 1px 2px rgba(15, 20, 25, 0.04), 0 16px 48px rgba(15, 20, 25, 0.07);
    --shadow-soft: 0 8px 30px rgba(15, 20, 25, 0.05);
    --shadow-lg: 0 24px 64px rgba(15, 20, 25, 0.18);
    /* uyumluluk */
    --font: var(--font-body);
    --bg: var(--paper);
    --surface: #ffffff;
    --surface-muted: rgba(255, 255, 255, 0.55);
    --surface-2: var(--paper-2);
    --text: var(--ink);
    --text-muted: var(--ink-soft);
    --border: var(--line);
    --primary: var(--teal);
    --primary-hover: var(--teal-deep);
    --primary-soft: var(--teal-soft);
    --success: #0d7a4e;
    --success-bg: #ecfdf5;
    --warning: #b45309;
    --warning-bg: #fffbeb;
    --danger: #a63d32;
    --danger-bg: #fef2f2;
    --header-h: 64px;
    --content-width: 38rem;
    --page-width: 1140px;
    --tool-width: 100%;
}

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

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

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.65;
    color: var(--ink);
    background:
        radial-gradient(ellipse 100% 80% at 50% -30%, rgba(26, 58, 92, 0.06), transparent 55%),
        radial-gradient(ellipse 60% 50% at 100% 0, rgba(184, 137, 42, 0.05), transparent 50%),
        linear-gradient(180deg, var(--cream) 0, var(--paper) 45%, var(--paper-2) 100%);
    background-attachment: fixed;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.4;
    background-image: radial-gradient(circle at 1px 1px, rgba(15, 20, 25, 0.04) 1px, transparent 0);
    background-size: 24px 24px;
    z-index: 0;
}

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

a { color: var(--teal); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--teal-deep); }

.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    background: var(--teal-deep);
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: var(--radius);
    z-index: 10000;
    font-weight: 600;
    text-decoration: none;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.site-header,
.site-footer,
main {
    position: relative;
    z-index: 1;
}

main {
    flex: 1 0 auto;
}

/* ─── Header (kiblenerede) ─── */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(20px) saturate(1.2);
    -webkit-backdrop-filter: blur(20px) saturate(1.2);
    background: rgba(253, 252, 250, 0.82);
    border-bottom: 1px solid var(--line);
}

.site-header .navbar {
    padding: 0.85rem 0;
}

.site-header a {
    text-decoration: none;
}

.site-header .navbar-toggler {
    border: 1px solid var(--line-strong);
    padding: 0.4rem 0.55rem;
    border-radius: var(--radius);
}

.site-header .navbar-toggler:focus {
    box-shadow: none;
}

.site-header .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='%230f1419' stroke-width='1.5' stroke-linecap='round' d='M5 8h20M5 15h20M5 22h20'/%3E%3C/svg%3E");
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
    color: var(--ink);
}

.brand-mark {
    color: var(--sand);
    display: flex;
    flex-shrink: 0;
}

.brand-text {
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    white-space: nowrap;
    color: var(--ink);
    line-height: 1.2;
}

.brand-text strong {
    font-weight: 700;
    color: var(--ink);
}

.site-header .nav-link,
.site-header .dropdown-item {
    color: var(--ink-soft) !important;
    font-weight: 500;
    font-size: 0.92rem;
    padding: 0.4rem 0.15rem !important;
    margin: 0 0.45rem;
    border-radius: 0;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.site-header .nav-link:hover,
.site-header .nav-link:focus,
.site-header .dropdown-item:hover,
.site-header .dropdown-item:focus {
    color: var(--ink) !important;
    background: transparent !important;
    border-bottom-color: var(--sand);
}

.site-header .nav-link.active,
.site-header .dropdown-item.active {
    color: var(--ink) !important;
    background: transparent !important;
    border-bottom-color: var(--teal);
    font-weight: 600;
}

@media (max-width: 991.98px) {
    /* sticky + backdrop-filter, menü açılırken jank yaratır */
    .site-header {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: var(--cream);
    }

    /* Bootstrap Collapse yok — anında göster/gizle */
    .site-header .navbar-collapse {
        display: none;
        flex-basis: 100%;
        flex-grow: 1;
        padding-top: 0.75rem;
        padding-bottom: 0.5rem;
    }

    .site-header .navbar-collapse.is-open {
        display: block;
    }

    .site-header .nav-link,
    .site-header .dropdown-item {
        margin: 0;
        padding: 0.65rem 0.25rem !important;
        border-bottom: none;
    }

    .site-header .dropdown-menu {
        border: none;
        padding: 0;
        margin-top: 0;
        box-shadow: none;
        background: transparent;
    }

    body {
        background-attachment: scroll;
    }
}

@media (min-width: 992px) {
    .site-header .navbar-collapse {
        display: flex !important;
    }
}

/* ─── Tool shell (kiblenerede) ─── */
.tool-section {
    padding: 1.75rem 0 2.75rem;
}

.tool-shell {
    background:
        radial-gradient(ellipse 70% 50% at 0% 0%, rgba(26, 58, 92, 0.06), transparent 55%),
        radial-gradient(ellipse 50% 40% at 100% 100%, rgba(184, 137, 42, 0.07), transparent 50%),
        linear-gradient(180deg, #ffffff 0%, var(--cream) 100%);
    color: var(--ink);
    border-radius: calc(var(--radius) + 0.5rem);
    padding: 1.5rem;
    border: 1px solid var(--line-strong);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

.tool-shell::after {
    content: none;
}

.tool-top {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
    position: relative;
    z-index: 1;
}

.status-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: var(--teal-soft);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    padding: 0.4rem 0.85rem;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--teal-deep);
}

.status-chip .status-dot {
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 0 3px rgba(201, 162, 78, 0.2);
    flex-shrink: 0;
}

.status-chip .status-dot.is-live {
    background: #6ecf9a;
    box-shadow: 0 0 0 3px rgba(110, 207, 154, 0.25);
}

/* ─── Sections (kiblenerede) ─── */
.section {
    padding: 3.5rem 0;
}

.section-muted {
    background: rgba(255, 255, 255, 0.55);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.section-eyebrow {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--sand);
    margin-bottom: 0.65rem;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.85rem, 3.5vw, 2.75rem);
    font-weight: 600;
    letter-spacing: -0.035em;
    line-height: 1.12;
    margin-bottom: 0.85rem;
    color: var(--ink);
}

.section-lead {
    color: var(--ink-soft);
    max-width: 38rem;
    font-size: 1.05rem;
    line-height: 1.7;
}

.content-prose {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: calc(var(--radius) + 0.15rem);
    padding: 1.75rem;
    box-shadow: var(--shadow-soft);
}

.content-prose h2,
.content-prose h3 {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-top: 1.5rem;
}

.content-prose p {
    color: var(--ink-soft);
}

.btn-teal {
    background: var(--teal-deep);
    color: #fff;
    border: 0;
    border-radius: var(--radius);
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 0.92rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 14px rgba(15, 39, 64, 0.2);
}

.btn-teal:hover {
    background: var(--teal);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(15, 39, 64, 0.25);
}

.btn-ghost {
    background: transparent;
    color: var(--ink);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    font-size: 0.92rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: border-color 0.2s, background 0.2s;
}

.btn-ghost:hover {
    background: #fff;
    border-color: var(--ink-soft);
    color: var(--ink);
}

.metric-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-top: 2rem;
}

.metric {
    text-align: center;
    padding: 1.25rem 1rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}

.metric .num {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--teal-deep);
    display: block;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.metric .lbl {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--ink-soft);
    margin-top: 0.25rem;
    display: block;
}

@media (max-width: 991.98px) {
    .metric-strip {
        grid-template-columns: 1fr;
        margin-top: 1.5rem;
    }
}

/* ─── Breadcrumb ─── */
.breadcrumb-nav { padding: 14px 0 0; }
.breadcrumb {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
}
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb li:not(:last-child)::after {
    content: "›";
    margin-left: 6px;
    color: var(--border);
}

/* ─── Page hero ─── */
.page-hero {
    background: linear-gradient(180deg, #1a4a8a 0%, #1d6fd4 100%);
    color: #fff;
    padding: 36px 0 48px;
}

.page-hero-kicker {
    margin: 0 0 10px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.85;
}

.page-hero h1 {
    margin: 0 0 12px;
    font-size: clamp(1.75rem, 4.5vw, 2.25rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.page-hero-lead {
    margin: 0;
    max-width: 36em;
    font-size: 1.05rem;
    line-height: 1.55;
    opacity: 0.92;
}

.page-hero + .tool-wrap { margin-top: -24px; }

@media (max-width: 899px) {
    .page-hero {
        text-align: center;
    }

    .page-hero-lead {
        margin-left: auto;
        margin-right: auto;
    }
}

.page-head {
    padding: 2rem 0 0.5rem;
}
.page-head h1 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.03em;
    color: var(--ink);
}

/* ─── Tool card ─── */
.tool-wrap {
    padding-bottom: 32px;
    box-sizing: border-box;
}

.tool-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
    box-sizing: border-box;
}

.tool-main {
    display: grid;
    gap: 0;
    border-bottom: 1px solid var(--border);
    min-width: 0;
}

@media (max-width: 899px) {
    .tool-main {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
    }

    .tool-controls {
        order: -1;
        padding: 14px 16px;
        gap: 10px;
        width: 100%;
        box-sizing: border-box;
    }

    .tool-map-block {
        padding: 12px 16px;
        width: 100%;
        box-sizing: border-box;
    }

    .map-frame {
        width: 100%;
        max-width: 100%;
        min-height: 180px;
        aspect-ratio: 16 / 9;
        margin: 0 auto;
        box-sizing: border-box;
    }

    .map-attribution {
        text-align: center;
        margin: 10px 0 0;
    }

    .map-placeholder-inner {
        padding: 16px;
    }

    .map-pin-icon {
        width: 40px;
        height: 40px;
    }

    .btn-locate {
        padding: 14px 16px;
        font-size: 1rem;
        gap: 8px;
    }

    .btn-locate .btn-icon {
        width: 20px;
        height: 20px;
    }

    .tool-status {
        padding: 10px 12px;
        font-size: 0.85rem;
        gap: 8px;
        word-break: break-word;
    }

    .tool-chips {
        gap: 6px;
        justify-content: center;
    }

    .chip {
        padding: 8px 12px;
        font-size: 0.8rem;
        flex: 1 1 auto;
        min-width: 0;
        text-align: center;
    }

    .tool-card {
        border-radius: var(--radius);
    }

    .tool-results {
        padding: 20px 16px 24px;
    }

    .results-head {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .accuracy-badge {
        align-self: center;
    }
}

@media (max-width: 899px) {
    body {
        overflow-x: hidden;
    }

    .container {
        padding-left: 16px;
        padding-right: 16px;
    }
}

@media (max-width: 480px) {
    .container {
        padding-left: 14px;
        padding-right: 14px;
    }

    .tool-controls {
        padding: 12px 14px;
    }

    .tool-map-block {
        padding: 12px 14px;
    }

    .tool-chips {
        flex-direction: column;
    }

    .chip {
        width: 100%;
        flex: none;
    }

    .btn-locate {
        padding: 13px 14px;
        font-size: 0.95rem;
    }
}

@media (min-width: 900px) {
    .tool-main {
        grid-template-columns: 1fr 280px;
    }

    .tool-wrap {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .tool-card {
        width: 100%;
        max-width: var(--tool-width);
    }

    .page-hero-inner {
        max-width: var(--tool-width);
    }
}

.tool-map-block {
    padding: 16px;
    background: var(--surface-muted);
    min-width: 0;
    box-sizing: border-box;
}

.map-frame {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: #dce4ee;
    border: 1px solid var(--border);
    min-height: 260px;
    aspect-ratio: 16 / 10;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

@media (min-width: 900px) {
    .map-frame {
        min-height: 360px;
        aspect-ratio: auto;
        height: 360px;
    }
}

.map-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    inset: 0;
    z-index: 1;
}

.map-placeholder-inner {
    text-align: center;
    padding: 24px;
}

.map-pin-icon {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    color: var(--primary);
    opacity: 0.5;
}

.map-placeholder-inner p {
    margin: 0 0 4px;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text);
}

.map-placeholder-inner span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.map-container {
    position: absolute;
    inset: 0;
    z-index: 2;
    width: 100% !important;
    height: 100% !important;
    max-width: 100%;
    left: 0;
    right: 0;
}
.map-container[hidden] { display: none !important; }

/* Leaflet harita taşmasını önle */
.map-frame .leaflet-container,
.map-frame .leaflet-map-pane,
.map-frame .leaflet-tile-pane {
    width: 100% !important;
    max-width: 100%;
}
.map-frame .leaflet-container {
    height: 100% !important;
    margin: 0;
    left: 0;
    right: 0;
}

.map-attribution {
    margin: 10px 2px 0;
    font-size: 0.75rem;
    color: var(--text-muted);
}
.map-attribution a { color: var(--text-muted); }

/* Controls */
.tool-controls {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-self: stretch;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

@media (min-width: 900px) {
    .tool-controls {
        padding: 24px;
        border-left: 1px solid var(--border);
    }
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    padding: 16px 20px;
    border: none;
    border-radius: var(--radius);
    background: var(--primary);
    color: #fff;
    font-family: var(--font);
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s;
    box-sizing: border-box;
    line-height: 1.25;
}
.btn-primary:hover {
    background: var(--primary-hover);
    color: #fff;
}
.btn-icon { width: 22px; height: 22px; flex-shrink: 0; }

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text);
    font-family: var(--font);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: border-color 0.15s, background 0.15s;
}
.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-soft);
    text-decoration: none;
}

.tool-status {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    padding: 12px 14px;
    font-size: 0.9rem;
    color: var(--text-muted);
    background: var(--surface-muted);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    line-height: 1.45;
    max-width: 100%;
    box-sizing: border-box;
}
.status-dot {
    width: 8px;
    height: 8px;
    margin-top: 6px;
    border-radius: 50%;
    background: var(--text-muted);
    flex-shrink: 0;
}
.tool-status-text {
    flex: 1;
    min-width: 0;
    word-break: break-word;
}
.tool-status.is-success {
    background: var(--success-bg);
    border-color: #a7f3d0;
    color: var(--success);
}
.tool-status.is-success .status-dot { background: var(--success); }
.tool-status.is-warning {
    background: var(--warning-bg);
    border-color: #fde68a;
    color: var(--warning);
}
.tool-status.is-warning .status-dot { background: var(--warning); }
.tool-status.is-error {
    background: var(--danger-bg);
    border-color: #fecaca;
    color: var(--danger);
}
.tool-status.is-error .status-dot { background: var(--danger); }

.tool-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip {
    padding: 8px 14px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface);
    color: var(--text);
    font-family: var(--font);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}
.chip:hover:not(:disabled) {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-soft);
}
.chip:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}
.chip-outline { color: var(--text-muted); }

.location-badge-wrap { margin: 0; }
.location-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
}
.location-badge.gps {
    background: var(--success-bg);
    color: var(--success);
    border: 1px solid #a7f3d0;
}
.location-badge.ip {
    background: var(--warning-bg);
    color: var(--warning);
    border: 1px solid #fde68a;
}

/* ─── Results (tam genişlik, scroll yok) ─── */
.tool-results {
    padding: 24px 20px 28px;
}

@media (min-width: 900px) {
    .tool-results { padding: 28px 32px 32px; }
}

.results-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}

.results-head h2 {
    margin: 0 0 6px;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.results-place {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
    line-height: 1.4;
}
.results-place.is-filled { color: var(--text); }

.accuracy-badge {
    flex-shrink: 0;
    padding: 6px 12px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--primary);
    background: var(--primary-soft);
    border-radius: 999px;
    border: 1px solid #c5daf5;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 20px;
    font-size: 0.95rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.data-table-caption {
    caption-side: top;
    padding: 10px 14px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    text-align: left;
    background: var(--surface-muted);
    border-bottom: 1px solid var(--border);
}

.data-table th,
.data-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}

.data-table tr:last-child th,
.data-table tr:last-child td { border-bottom: none; }

.data-table th {
    width: 32%;
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-muted);
    background: var(--surface-muted);
}

.data-table td {
    font-weight: 600;
    color: var(--text);
    font-variant-numeric: tabular-nums;
    line-height: 1.45;
}

.data-table td:not(.is-filled) {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.9rem;
}

@media (min-width: 900px) {
    .data-table th { width: 22%; }
}

.results-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.results-actions .btn-primary,
.results-actions .btn-secondary { width: auto; }

.action-btn.is-disabled,
.action-btn:disabled {
    opacity: 0.45;
    pointer-events: none;
    cursor: not-allowed;
}

.fine-print {
    margin: 16px 0 0;
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.tool-results.has-data .results-place { color: var(--text); }

/* ─── Content (SEO okunabilirlik) ─── */
.page-content {
    padding-bottom: 0;
}

.prose {
    max-width: none;
    padding: 0;
}

.prose h2 {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 600;
    margin: 1.5rem 0 0.75rem;
    letter-spacing: -0.02em;
    line-height: 1.3;
    color: var(--ink);
}
.prose h2:first-child { margin-top: 0; }

.prose h3 {
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 1.25rem 0 0.5rem;
    color: var(--ink);
}

.prose p {
    margin: 0 0 1rem;
    color: var(--ink-soft);
    line-height: 1.7;
}

.prose ul,
.prose ol {
    margin: 0 0 1rem;
    padding-left: 1.35rem;
    color: var(--ink-soft);
}

.prose li { margin-bottom: 0.5rem; }

.prose a { font-weight: 500; }

.compare-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: 0.9rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.compare-table th,
.compare-table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.compare-table th {
    background: var(--surface-muted);
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.compare-table tr:last-child td { border-bottom: none; }

/* FAQ */
.faq-block {
    max-width: none;
    padding: 0;
}

.faq-block h2,
.faq-block .section-title {
    margin: 0 0 1rem;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.faq-item {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.faq-item summary {
    cursor: pointer;
    padding: 1rem 1.25rem;
    font-weight: 600;
    font-size: 0.95rem;
    list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
    content: "+";
    float: right;
    color: var(--sand);
    font-weight: 400;
    font-size: 1.2rem;
    line-height: 1;
}

.faq-item[open] summary::after {
    content: "−";
}

.faq-body {
    padding: 0 1.25rem 1.15rem;
    color: var(--ink-soft);
    font-size: 0.95rem;
    line-height: 1.65;
}

/* Related links */
.related-section {
    max-width: var(--content-width);
    padding: 16px 0;
}

.related-section h2 {
    margin: 0 0 12px;
    font-size: 1.1rem;
    font-weight: 800;
}

.related-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}

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

.related-list a {
    display: block;
    padding: 12px 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
}
.related-list a:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-soft);
}

.page-nav {
    max-width: var(--content-width);
    padding: 16px 0;
}
.page-nav a {
    font-weight: 600;
    text-decoration: none;
}
.page-nav a:hover { text-decoration: underline; }

/* ─── Footer (kiblenerede) ─── */
.site-footer {
    margin-top: auto;
    background: var(--night);
    color: rgba(240, 236, 228, 0.88);
    padding: 3.5rem 0 1.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}

.brand-footer .brand-text {
    color: #f0ece4;
}

.footer-lead {
    max-width: 26rem;
    font-size: 0.92rem;
    line-height: 1.65;
    color: rgba(240, 236, 228, 0.72);
}

.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1.25rem;
}

.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    color: rgba(240, 236, 228, 0.85);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: color 0.2s, background 0.2s, border-color 0.2s, transform 0.2s;
}

.footer-social a:hover,
.footer-social a:focus-visible {
    color: var(--gold-light);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(201, 162, 78, 0.45);
    transform: translateY(-1px);
}

.footer-social svg {
    width: 1rem;
    height: 1rem;
    fill: currentColor;
}

.footer-title {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--gold);
    margin-bottom: 1rem;
    font-weight: 600;
}

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

.footer-links a,
.footer-col a {
    color: rgba(240, 236, 228, 0.78);
    text-decoration: none;
    display: inline-block;
    padding: 0.25rem 0;
    font-size: 0.92rem;
    transition: color 0.2s;
}

.footer-links a:hover,
.footer-col a:hover {
    color: var(--gold-light);
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.85rem;
    color: rgba(240, 236, 228, 0.55);
}

.footer-bottom small {
    font-size: inherit;
    color: inherit;
}

.footer-note {
    margin: 0.35rem 0 0;
    color: rgba(240, 236, 228, 0.65);
    font-size: 0.85rem;
    line-height: 1.55;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.footer-col-title {
    margin: 0 0 0.5rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--gold);
}

/* Error */
.error-page {
    padding: 64px 20px;
    max-width: 520px;
    margin: 0 auto;
}
.error-page h1 {
    font-weight: 800;
    letter-spacing: -0.02em;
}
.error-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}
.error-actions .btn-primary,
.error-actions .btn-secondary { width: auto; }

/* Toast — Bootstrap .toast ile çakışmasın diye site-toast */
.site-toast {
    position: fixed;
    bottom: max(24px, env(safe-area-inset-bottom, 0px));
    left: 50%;
    transform: translateX(-50%);
    background: var(--teal-deep);
    color: #fff;
    padding: 12px 20px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 10050;
    box-shadow: var(--shadow-lg);
    pointer-events: none;
    opacity: 1;
}
.site-toast[hidden] { display: none !important; }

/* ─── Standalone tools ─── */
.standalone-tool { padding-bottom: 24px; }
.tool-page-head { padding: 20px 0 12px; }
.tool-page-head h1 {
    margin: 0;
    font-size: clamp(1.4rem, 4vw, 1.85rem);
    font-weight: 800;
}
.page-head-inline { padding: 0 0 16px; }
.page-head-inline h1 { margin: 0; font-size: 1.35rem; font-weight: 800; }
.tool-card--standalone { padding: 20px; margin-bottom: 8px; }
.tool-form-grid {
    display: grid;
    gap: 12px;
    margin-bottom: 16px;
}
.tool-form-grid--2 {
    grid-template-columns: 1fr;
}
@media (min-width: 700px) {
    .tool-form-grid--2 { grid-template-columns: 1fr 1fr; }
}
.tool-field { display: flex; flex-direction: column; gap: 6px; }
.tool-field--full { margin-bottom: 12px; }
.tool-field span { font-size: 0.85rem; font-weight: 600; color: var(--text-muted); }
.tool-field input,
.tool-field select,
.tool-field-input {
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: var(--font);
    font-size: 1rem;
    width: 100%;
    box-sizing: border-box;
    background: var(--surface);
    min-height: 44px;
}
.tool-output { margin-top: 16px; }
.tool-error { color: var(--danger); font-weight: 600; }
.tool-intro { margin: 0 0 16px; color: var(--text-muted); }
.finder-list { list-style: none; padding: 0; margin: 0; }
.finder-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}
.map-frame--tool {
    position: relative;
    min-height: 280px;
    margin-top: 16px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}
.map-frame--tool .map-placeholder,
.conv-map-placeholder {
    position: absolute;
    inset: 0;
    z-index: 1;
}
.map-frame--tool .map-container {
    position: absolute;
    inset: 0;
    min-height: 280px;
    width: 100%;
    height: 100%;
}
.conv-results { margin-top: 20px; }
.conv-results-title {
    margin: 0 0 14px;
    font-size: 1.15rem;
    font-weight: 800;
}
.conv-map-wrap { margin-bottom: 0; margin-top: 0; }
.conv-map-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 280px;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
}
.conv-results .map-attribution { margin: 8px 0 16px; }

.conv-tool-head { margin-bottom: 20px; }
.conv-tool-lead {
    margin: 8px 0 0;
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.5;
}
.conv-tool-note {
    margin: 8px 0 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.conv-input-section { display: flex; flex-direction: column; gap: 14px; }
.conv-panel-grid,
.conv-utm-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr 1fr;
}
.conv-ang-block {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 14px;
    margin-bottom: 12px;
    background: var(--surface-muted);
}
.conv-ang-block:last-child { margin-bottom: 0; }
.conv-ang-title {
    margin: 0 0 10px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text);
}
.conv-compact-grid {
    display: grid;
    gap: 10px;
    align-items: end;
}
.conv-compact-grid--dms {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.conv-compact-grid--ddm {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 0.85fr);
}
.conv-compact-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}
.conv-compact-field span {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
    line-height: 1.2;
}
.conv-compact-field input,
.conv-compact-field select {
    padding: 10px 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-family: var(--font);
    font-size: 1rem;
    width: 100%;
    box-sizing: border-box;
    background: var(--surface);
    min-height: 44px;
    color: var(--text);
}
.conv-compact-field input:focus,
.conv-compact-field select:focus,
.tool-field input:focus,
.tool-field select:focus {
    outline: 2px solid var(--primary-soft);
    border-color: var(--primary);
}
.conv-compact-field--dir select {
    font-weight: 700;
    text-align: center;
    padding-left: 8px;
    padding-right: 8px;
}
.conv-compact-field input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}
.conv-compact-field input[type="number"]::-webkit-outer-spin-button,
.conv-compact-field input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.conv-select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    background: var(--surface);
    min-height: 44px;
    box-sizing: border-box;
}
.conv-select--sm { width: auto; min-width: 140px; }
.conv-error {
    margin: 0;
    color: var(--danger);
    font-size: 0.9rem;
    font-weight: 600;
}
.conv-actions {
    align-items: stretch;
}
.conv-actions-row {
    display: flex;
    flex: 1 1 100%;
    gap: 10px;
    align-items: center;
    min-width: 0;
}
.conv-actions-row .btn-secondary {
    flex: 1 1 auto;
    min-width: 0;
    white-space: nowrap;
}
.conv-examples {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1 1 auto;
    min-width: 0;
}
.conv-example-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    flex-shrink: 0;
}
.conv-actions-row .conv-select--sm {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
}
.conv-result-table-wrap {
    overflow-x: visible;
    margin-bottom: 16px;
    max-width: 100%;
}
.conv-result-table {
    table-layout: fixed;
}
.conv-result-table:not(.location-result-table):not(.nearby-places-table) th:first-child,
.conv-result-table:not(.location-result-table):not(.nearby-places-table) td:first-child { width: 14%; }
.conv-result-table .conv-col-value { width: 34%; }
.conv-result-table .conv-col-action { width: 14%; }
.conv-result-table td,
.conv-result-table th[scope="row"] + td {
    word-break: break-word;
    overflow-wrap: anywhere;
    hyphens: auto;
}
.conv-result-table .btn-copy {
    white-space: nowrap;
}
.conv-fmt-short { display: none; }
@media (max-width: 768px) {
    .conv-result-table:not(.location-result-table):not(.nearby-places-table) {
        border: none;
        table-layout: auto;
    }
    .conv-result-table:not(.location-result-table):not(.nearby-places-table) caption {
        padding: 8px 12px;
        font-size: 0.75rem;
        border: 1px solid var(--border);
        border-radius: var(--radius) var(--radius) 0 0;
    }
    .conv-result-table:not(.location-result-table):not(.nearby-places-table) thead {
        display: none;
    }
    .conv-result-table:not(.location-result-table):not(.nearby-places-table) tbody {
        display: block;
        border: 1px solid var(--border);
        border-top: none;
        border-radius: 0 0 var(--radius) var(--radius);
        overflow: hidden;
    }
    .conv-result-table:not(.location-result-table):not(.nearby-places-table) tr {
        display: grid;
        grid-template-columns: auto 1fr auto;
        column-gap: 8px;
        row-gap: 1px;
        padding: 7px 10px;
        border-bottom: 1px solid var(--border);
        align-items: center;
    }
    .conv-result-table:not(.location-result-table):not(.nearby-places-table) tr:last-child {
        border-bottom: none;
    }
    .conv-result-table:not(.location-result-table):not(.nearby-places-table) th,
    .conv-result-table:not(.location-result-table):not(.nearby-places-table) td {
        display: block;
        width: auto;
        padding: 0;
        border: none;
        background: transparent;
        box-sizing: border-box;
        margin: 0;
    }
    .conv-result-table:not(.location-result-table):not(.nearby-places-table) th[scope="row"] {
        grid-column: 1;
        grid-row: 1 / -1;
        align-self: center;
        font-size: 0.7rem;
        font-weight: 800;
        letter-spacing: 0.02em;
        text-transform: uppercase;
        color: var(--primary);
        line-height: 1.2;
    }
    .conv-fmt-full { display: none; }
    .conv-fmt-short { display: inline; }
    .conv-result-table:not(.location-result-table):not(.nearby-places-table) td[data-label]:nth-child(2) {
        grid-column: 2;
        grid-row: 1;
    }
    .conv-result-table:not(.location-result-table):not(.nearby-places-table) td[data-label]:nth-child(3) {
        grid-column: 2;
        grid-row: 2;
    }
    .conv-result-table:not(.location-result-table):not(.nearby-places-table) td[colspan="2"] {
        grid-column: 2;
        grid-row: 1;
    }
    .conv-result-table:not(.location-result-table):not(.nearby-places-table) .conv-result-action {
        grid-column: 3;
        grid-row: 1 / -1;
        align-self: center;
    }
    .conv-result-table:not(.location-result-table):not(.nearby-places-table) td {
        font-size: 0.78rem;
        line-height: 1.35;
        min-width: 0;
    }
    .conv-result-table:not(.location-result-table):not(.nearby-places-table) td[data-label]::before {
        content: attr(data-label) "\00a0";
        display: inline;
        font-size: 0.68rem;
        font-weight: 700;
        color: var(--text-muted);
    }
    .conv-result-table:not(.location-result-table):not(.nearby-places-table) td[colspan]::before {
        content: none;
    }
    .conv-result-table:not(.location-result-table):not(.nearby-places-table) .conv-result-action:empty {
        display: none;
    }
    .conv-result-table:not(.location-result-table):not(.nearby-places-table) .btn-copy {
        width: auto;
        padding: 5px 8px;
        font-size: 0.7rem;
        line-height: 1.2;
    }
}
.conv-addr-table { margin-bottom: 16px; }
.conv-map-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}
.conv-copy-order-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
}
.conv-related {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}
.conv-related-title {
    margin: 0 0 12px;
    font-size: 1.1rem;
    font-weight: 800;
}
.related-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
}
.related-list a {
    font-weight: 600;
    color: var(--primary);
}

/* Koordinat Bul */
.finder-tool .finder-block {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px;
    margin-bottom: 12px;
    background: var(--surface-muted);
}
.finder-tool .finder-block--primary {
    background: var(--surface);
    border-color: var(--primary-soft);
}
.finder-block-title {
    margin: 0 0 10px;
    font-size: 0.9rem;
    font-weight: 800;
    color: var(--text);
}
.finder-map-section { margin-top: 16px; }
.finder-map-hint {
    margin: 0 0 8px;
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
}
.finder-map-wrap { margin-bottom: 0; }
.finder-result-card {
    margin-bottom: 16px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface-muted);
}
.finder-result-label {
    margin: 0 0 6px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.finder-result-value {
    margin: 0 0 10px;
    font-size: 0.95rem;
    line-height: 1.45;
    font-weight: 600;
}
.finder-pick-title { margin: 0 0 8px; font-size: 0.9rem; }
.finder-pick-items {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.finder-pick-btn {
    width: 100%;
    text-align: left;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    font-family: var(--font);
    font-size: 0.9rem;
    cursor: pointer;
    line-height: 1.4;
}
.finder-pick-btn:hover { background: var(--surface-2); }
.conv-how {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}
.finder-how-title {
    margin: 0 0 10px;
    font-size: 1rem;
    font-weight: 800;
}
.finder-how-list {
    margin: 0;
    padding-left: 1.2rem;
    color: var(--text-muted);
    line-height: 1.5;
    font-size: 0.92rem;
}
.finder-result-table th { width: 28%; }
@media (max-width: 768px) {
    .finder-result-table thead { display: none; }
    .finder-result-table tbody { display: block; }
    .finder-result-table tr {
        display: grid;
        grid-template-columns: auto 1fr;
        gap: 4px 10px;
        padding: 8px 12px;
        border-bottom: 1px solid var(--border);
    }
    .finder-result-table th,
    .finder-result-table td {
        display: block;
        padding: 0;
        border: none;
        background: transparent;
    }
    .finder-result-table th { font-size: 0.75rem; }
    .finder-result-table td[colspan] { grid-column: 1 / -1; }
}
.btn-copy {
    padding: 6px 12px;
    font-size: 0.8rem;
    font-weight: 700;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--surface);
    cursor: pointer;
}
.btn-copy:hover { background: var(--surface-2); }
@media (max-width: 640px) {
    .conv-panel-grid,
    .conv-utm-grid { grid-template-columns: 1fr; }
    .conv-compact-grid--dms {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .conv-compact-grid--ddm {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }
    .conv-compact-field--dir {
        grid-column: 1 / -1;
    }
    .conv-actions .btn-primary,
    .conv-actions .btn-secondary#conv-clear {
        flex: 1 1 calc(50% - 5px);
        min-width: 0;
    }
    .conv-actions-row {
        flex: 1 1 100%;
        width: 100%;
    }
    .conv-actions-row .btn-secondary,
    .conv-actions-row .conv-select--sm {
        min-height: 44px;
    }
}
.tool-form-grid fieldset {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px;
    margin: 0;
}
.tool-form-grid legend {
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0 4px;
}

.tool-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}
.tool-action-row .btn-primary,
.tool-action-row .btn-secondary { width: auto; flex: 1 1 auto; min-width: 140px; }
.btn-icon-sm { width: 18px; height: 18px; flex-shrink: 0; }
.tool-hint {
    margin: 0;
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.45;
}
.tool-hint.is-success { color: var(--success); }
.tool-hint.is-error { color: var(--danger); }

/* ─── Location tool (conv-tool theme) ─── */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.location-conv-tool .location-cta-section {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.location-conv-tool .btn-locate-large {
    width: 100%;
    padding: 16px 20px;
    font-size: 1.1rem;
    font-weight: 700;
    justify-content: center;
}

.location-conv-tool .location-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.location-conv-tool .location-map-section {
    padding: 0 16px 8px;
}

.location-conv-tool .location-results {
    padding: 16px;
    border-top: 1px solid var(--border);
}

.location-conv-tool .location-map-wrap {
    min-height: 280px;
}

.location-conv-tool .location-results-head {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 14px;
}

.location-conv-tool .location-results-head > div {
    width: 100%;
}

.location-conv-tool .location-results-head .conv-results-title {
    margin: 0;
}

.location-conv-tool .location-results-head .results-place {
    margin-top: 6px;
}

.location-conv-tool .location-results-head .accuracy-badge {
    align-self: center;
}

.location-conv-tool .location-address-card {
    margin-bottom: 16px;
}

.location-conv-tool .location-fine-print {
    margin: 16px 0 0;
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.45;
}

@media (min-width: 900px) {
    .location-conv-tool .location-cta-section {
        padding: 20px 24px;
    }

    .location-conv-tool .location-map-section {
        padding: 0 24px 16px;
    }

    .location-conv-tool .location-results {
        padding: 20px 24px 24px;
    }
}

/* ─── Location tool in light shell (home) ─── */
.location-tool-shell {
    position: relative;
    z-index: 1;
    overflow: hidden;
    max-width: 100%;
}

.location-tool-shell .location-cta-section,
.location-tool-shell .location-map-section,
.location-tool-shell .location-results {
    position: relative;
    z-index: 1;
}

.location-tool-shell .location-cta-section {
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 1.25rem;
}

.location-tool-shell .btn-locate-large {
    background: var(--teal-deep);
    color: #fff;
    border: none;
    box-shadow: 0 4px 14px rgba(15, 39, 64, 0.22);
}

.location-tool-shell .btn-locate-large:hover {
    background: var(--teal);
    color: #fff;
}

.location-tool-shell .tool-status {
    background: #fff;
    border: 1px solid var(--line-strong);
    color: var(--ink);
}

.location-tool-shell .tool-status .tool-status-text {
    color: var(--ink);
}

.location-tool-shell .location-cta-actions {
    justify-content: flex-start;
}

.location-tool-shell .chip {
    background: #fff;
    border: 1px solid var(--line-strong);
    color: var(--ink);
}

.location-tool-shell .chip:hover:not(:disabled) {
    background: var(--teal-soft);
    border-color: var(--teal);
    color: var(--teal-deep);
}

.location-tool-shell .chip:disabled {
    opacity: 1;
    background: var(--paper-2);
    border-color: var(--line);
    color: var(--ink-soft);
}

.location-tool-shell .chip-outline {
    color: var(--ink-soft);
}

.location-tool-shell .location-map-section {
    padding: 0;
    margin-bottom: 1.25rem;
}

.location-tool-shell .finder-map-hint,
.location-tool-shell .map-attribution {
    color: var(--ink-soft);
}

.location-tool-shell .map-attribution a {
    color: var(--teal);
}

.location-tool-shell .map-frame {
    border: 1px solid var(--line-strong);
    background: #fff;
    min-height: 300px;
}

.location-tool-shell .map-placeholder-inner p {
    color: var(--ink);
}

.location-tool-shell .map-placeholder-inner span {
    color: var(--ink-soft);
}

.location-tool-shell .map-pin-icon {
    color: var(--teal);
}

.location-tool-shell .location-results {
    padding: 0;
    border-top: 1px solid var(--line);
    padding-top: 1.25rem;
}

.location-tool-shell .location-results-head .conv-results-title {
    font-family: var(--font-display);
    color: var(--ink);
}

.location-tool-shell .location-results-head .results-place {
    color: var(--ink-soft);
}

.location-tool-shell .accuracy-badge {
    background: var(--teal-soft);
    border-color: var(--line-strong);
    color: var(--teal-deep);
}

.location-tool-shell .finder-result-card,
.location-tool-shell .location-address-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1rem;
}

.location-tool-shell .finder-result-label {
    color: var(--ink-soft);
}

.location-tool-shell .finder-result-value {
    color: var(--ink);
}

.location-tool-shell .data-table {
    border-color: var(--line);
    background: #fff;
}

.location-tool-shell .data-table-caption,
.location-tool-shell .data-table th {
    background: var(--paper);
    border-color: var(--line);
    color: var(--ink-soft);
}

.location-tool-shell .data-table td {
    border-color: var(--line);
    color: var(--ink);
}

.location-tool-shell .data-table td:not(.is-filled) {
    color: var(--ink-soft);
}

.location-tool-shell .btn-copy {
    background: #fff;
    border-color: var(--line-strong);
    color: var(--ink);
}

.location-tool-shell .btn-secondary.action-btn {
    background: #fff;
    border-color: var(--line-strong);
    color: var(--ink);
}

.location-tool-shell .btn-secondary.action-btn.is-disabled,
.location-tool-shell .btn-secondary.action-btn:disabled {
    color: var(--ink-soft);
    background: var(--paper-2);
}

.location-tool-shell .location-fine-print {
    color: var(--ink-soft);
}

/* ─── Nearby places ─── */
.nearby-places {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--line);
}

.nearby-places-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    margin-bottom: 0.85rem;
}

.nearby-places-head .conv-results-title {
    margin: 0;
}

.nearby-places-status {
    margin: 0;
    font-size: 0.85rem;
    color: var(--ink-soft);
}

.nearby-places-table .nearby-name.is-filled {
    font-weight: 600;
    color: var(--ink);
}

.nearby-places-table .nearby-distance.is-filled {
    color: var(--teal-deep);
    font-weight: 600;
    white-space: nowrap;
}

.nearby-maps-link {
    text-decoration: none;
    white-space: nowrap;
}

.nearby-fine-print {
    margin: 0.85rem 0 0;
}

.location-tool-shell .nearby-places {
    border-top-color: var(--line);
}

.location-tool-shell .nearby-places-status,
.location-tool-shell .nearby-fine-print {
    color: var(--ink-soft);
}

@media (max-width: 640px) {
    .nearby-places-table thead {
        display: none;
    }
    .nearby-places-table tbody {
        display: block;
    }
    .nearby-places-table tr.nearby-row {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 0.25rem 0.75rem;
        padding: 0.85rem 0;
        border-bottom: 1px solid var(--line);
    }
    .nearby-places-table th {
        grid-column: 1 / -1;
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        color: var(--ink-soft);
        border: 0;
        padding: 0;
        background: transparent;
    }
    .nearby-places-table td {
        border: 0;
        padding: 0;
    }
    .nearby-places-table .nearby-action {
        grid-column: 2;
        grid-row: 2 / 4;
        align-self: center;
    }
}

/* ─── Home location tables: mobile cards ─── */
.location-result-table,
.nearby-places-table {
    table-layout: auto;
}

.location-result-table th:first-child,
.location-result-table td:first-child,
.nearby-places-table th:first-child,
.nearby-places-table td:first-child {
    width: auto;
}

.location-result-action:empty,
.location-result-action:not(:has(button)):not(:has(a)) {
    display: none;
}

@media (max-width: 767.98px) {
    .location-conv-tool .location-results,
    .location-tool-shell .location-results {
        padding-left: 12px;
        padding-right: 12px;
    }

    .location-results-head,
    .location-conv-tool .location-results-head {
        align-items: flex-start;
        text-align: left;
    }

    .location-conv-tool .location-results-head .accuracy-badge,
    .accuracy-badge {
        align-self: flex-start;
        max-width: 100%;
        white-space: normal;
        line-height: 1.35;
        border-radius: var(--radius);
    }

    .location-address-card {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .location-address-card .btn-copy {
        width: auto;
        align-self: flex-start;
        justify-content: center;
    }

    .location-result-table,
    .nearby-places-table {
        border: 0;
        margin-bottom: 0;
        font-size: 0.92rem;
    }

    .location-result-table caption,
    .nearby-places-table caption {
        display: none;
    }

    .location-result-table thead,
    .nearby-places-table thead {
        display: none;
    }

    .location-result-table tbody,
    .nearby-places-table tbody {
        display: flex;
        flex-direction: column;
        gap: 8px;
        border: 0;
        border-radius: 0;
        overflow: visible;
        background: transparent;
    }

    .location-result-table tr,
    .nearby-places-table tr.nearby-row {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 2px 10px;
        align-items: start;
        padding: 10px 12px;
        margin: 0;
        background: #fff;
        border: 1px solid var(--line);
        border-radius: var(--radius);
        box-shadow: none;
    }

    .location-result-table th,
    .location-result-table td,
    .nearby-places-table th,
    .nearby-places-table td {
        display: block;
        width: auto;
        max-width: 100%;
        padding: 0;
        margin: 0;
        border: 0;
        background: transparent;
        text-transform: none;
        letter-spacing: 0;
    }

    .location-result-table th[scope="row"],
    .nearby-places-table th[scope="row"] {
        grid-column: 1;
        grid-row: 1;
        align-self: start;
        font-size: 0.72rem;
        font-weight: 700;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        color: var(--ink-soft);
        line-height: 1.3;
    }

    .location-result-table tr {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .location-result-table td {
        grid-column: 1;
        grid-row: 2;
        font-size: 0.95rem;
        font-weight: 600;
        color: var(--ink);
        word-break: break-word;
        overflow-wrap: anywhere;
        line-height: 1.45;
    }

    .location-result-table td[colspan] {
        grid-column: 1;
        grid-row: 2;
    }

    .location-result-table .location-result-action {
        grid-column: 1;
        grid-row: 3;
        justify-self: start;
        align-self: start;
        margin-top: 4px;
    }

    .location-result-table .location-result-action:empty,
    .location-result-table .location-result-action:not(:has(button)):not(:has(a)) {
        display: none;
    }

    .location-result-table .btn-copy,
    .nearby-places-table .nearby-maps-link {
        width: auto;
        white-space: nowrap;
        padding: 7px 10px;
        font-size: 0.75rem;
        line-height: 1.2;
    }

    .nearby-places-table tr.nearby-row {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 4px 8px;
    }

    .nearby-places-table .nearby-name {
        grid-column: 1 / -1;
        grid-row: 2;
        font-size: 0.95rem;
        font-weight: 600;
        color: var(--ink);
        word-break: break-word;
        overflow-wrap: anywhere;
        min-width: 0;
    }

    .nearby-places-table .nearby-distance {
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
        font-size: 0.82rem;
        font-weight: 700;
        color: var(--teal-deep);
        white-space: nowrap;
    }

    .nearby-places-table .nearby-action {
        grid-column: 1 / -1;
        grid-row: 3;
        justify-self: start;
        align-self: start;
        margin-top: 2px;
    }

    .nearby-places-table .nearby-maps-link[hidden],
    .nearby-places-table .nearby-maps-link.is-disabled {
        display: none;
    }

    .location-results .results-actions,
    .conv-map-actions {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .location-results .results-actions .action-btn,
    .location-results .conv-map-actions .action-btn {
        width: 100%;
        justify-content: center;
    }

    .location-cta-actions,
    .location-conv-tool .location-cta-actions {
        justify-content: stretch;
    }

    .location-cta-actions .chip {
        flex: 1 1 calc(50% - 8px);
        justify-content: center;
        text-align: center;
    }
}
