:root {
    --bg-main: #0f1113;
    --bg-card: #1a1d21;
    --primary: #1db954;
    --primary-hover: #17a74a;
    --text-main: #f1f1f1;
    --text-muted: #9aa0a6;
    --text-remove: #ff4d4d;
    --border: #2c3136;
    --border-error: #ff4d4d;
    --input-bg: #22262b;
    --input-bg-focus: #2a2f35;
    --default-font-family: "Montserrat", sans-serif;

    --switch-bg: var(--input-bg);
    --switch-border: var(--border);
    --switch-knob: #cfd6dd;
    --switch-active-bg: rgba(29,185,84,0.25);
    --switch-active-border: rgba(29,185,84,0.55);
    --switch-active-knob: var(--primary);

    /* Status colors – dark theme */
    --status-green-bg:     rgba(29, 185, 84,  0.12);
    --status-green-border: rgba(29, 185, 84,  0.30);
    --status-green-text:   #4ade80;
    --status-orange-bg:    rgba(251, 146, 60, 0.12);
    --status-orange-border:rgba(251, 146, 60, 0.30);
    --status-orange-text:  #fb923c;
    --status-red-bg:       rgba(248, 113, 113, 0.12);
    --status-red-border:   rgba(248, 113, 113, 0.30);
    --status-red-text:     #f87171;

    /* Quality colors – dark theme */
    --quality-basic-bg:     rgba(251, 146, 60, 0.10);
    --quality-basic-border: rgba(251, 146, 60, 0.25);
    --quality-basic-text:   #fb923c;
    --quality-full-bg:      rgba(29, 185, 84,  0.10);
    --quality-full-border:  rgba(29, 185, 84,  0.25);
    --quality-full-text:    #4ade80;

    /* Offer box – dark theme */
    --offer-bg:     rgba(255,255,255,0.04);
    --offer-border: var(--border);

    /* Positive / negative delta colors */
    --color-positive: #4ade80;
    --color-negative: #f87171;

    /* Warn – dark theme */
    --warn-bg:     rgba(251, 146, 60, 0.10);
    --warn-border: rgba(251, 146, 60, 0.25);
    --warn-text:   #fb923c;

    /* Breakdown row divider */
    --breakdown-divider: rgba(255,255,255,0.06);

    /* Shared */
    --text-white: #ffffff;
    --anim-bg: #101317;
    --anim-track-bg: #0a0c0e;
    --placeholder-color: #525c6a;
}

[data-theme="light"] {
    --bg-main: #FFFFFF;
    --bg-card: #ffffff;
    --primary: #111c43;
    --primary-hover: #071246;
    --text-main: #333335;
    --text-muted: #8c9097;
    --text-remove: #e6533c;
    --text-white: #ffffff;
    --border: #091756;
    --border-error: #e6533c;
    --input-bg: #ffffff;
    --input-bg-focus: #f3f4f6;
    --input-border: #d9dee7;
    --input-border-focus: #13244b;
    --default-font-family: "Montserrat", sans-serif;

    --switch-bg: #e9edf6;
    --switch-border: #cfd6e4;
    --switch-knob: #ffffff;
    --switch-active-bg: rgba(19,36,75,0.20);
    --switch-active-border: rgba(19,36,75,0.45);
    --switch-active-knob: #13244b;

    /* Status colors – light theme */
    --status-green-bg:     rgba(21, 128, 61,  0.10);
    --status-green-border: rgba(21, 128, 61,  0.30);
    --status-green-text:   #155d2a;
    --status-orange-bg:    rgba(180, 100, 0,  0.10);
    --status-orange-border:rgba(180, 100, 0,  0.30);
    --status-orange-text:  #7a4200;
    --status-red-bg:       rgba(185, 28, 28,  0.10);
    --status-red-border:   rgba(185, 28, 28,  0.30);
    --status-red-text:     #991b1b;

    /* Quality colors – light theme */
    --quality-basic-bg:     rgba(180, 100, 0, 0.08);
    --quality-basic-border: rgba(180, 100, 0, 0.25);
    --quality-basic-text:   #7a4200;
    --quality-full-bg:      rgba(21, 128, 61, 0.08);
    --quality-full-border:  rgba(21, 128, 61, 0.25);
    --quality-full-text:    #155d2a;

    /* Offer box – light theme */
    --offer-bg:     var(--input-bg-focus);
    --offer-border: var(--border);

    /* Positive / negative delta colors */
    --color-positive: #155d2a;
    --color-negative: #991b1b;

    /* Warn – light theme */
    --warn-bg:     rgba(180, 100, 0, 0.07);
    --warn-border: rgba(180, 100, 0, 0.22);
    --warn-text:   #7a4200;

    /* Breakdown row divider */
    --breakdown-divider: rgba(0, 0, 0, 0.05);

    /* Shared */
    --anim-bg: #e8edf5;
    --anim-track-bg: #d8dfe9;
    --placeholder-color: #b8c0cb;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    background: var(--bg-main);
    color: var(--text-main);
    padding: 20px;
    font-family: var(--default-font-family), serif;
    font-size: 14px;
    line-height: 1.4;

}

.app-title {
    text-align: center;
    margin-bottom: 20px;
    color: var(--primary);
}



.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 26px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}

.form-group {
    margin-top: 6px;
    margin-bottom: 10px;
}

label {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 6px;
    display: block;
}




input,
select {
    width: 100%;
    padding: 11px 12px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--input-bg);
    color: var(--text-main);
    font-size: 14px;
    transition: border 0.15s ease, box-shadow 0.15s ease;
}

input:focus,
select:focus {
    background: var(--input-bg-focus);
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(9,23,86,0.12);
}

input::placeholder {
    color: var(--placeholder-color);
    opacity: 1;
}


select:invalid { color: var(--text-muted); }
select option { color: var(--text-main); }

.btn-primary {
    width: 100%;
    padding: 12px;
    background: var(--primary);
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    color: var(--text-white);
}

.btn-primary:hover {
    background: var(--primary-hover);
}

.form-group {
    margin-bottom: 16px;
}

.result {
    margin-top: 20px;
    padding: 15px;
    background: var(--bg-card);
    border-radius: 10px;
    border: 1px solid var(--border);
}

.hidden {
    display: none;
}

/* TABLET + DESKTOP */
@media (min-width: 768px) {
    .card {
        max-width: 600px;
        margin: 0 auto;
    }
    .app-logo {
        max-width: 240px;
    }
    .spec-row {
        grid-template-columns: 1fr 160px;
        align-items: end;
    }
}

/* TABLET + DESKTOP */
@media (min-width: 1400px) {
    .card {
        max-width: 1000px;
        margin: 0 auto;
    }
    .app-logo {
        max-width: 600px;
    }
    .spec-row {
        grid-template-columns: 1fr 300px;
        align-items: end;
    }
}

#rezultat,
.calc-anim {
    text-align: center;
    margin-top: 24px;
}


#rezultat.is-error {
    border-color: var(--border-error);
}

.field-error {
    border-color: var(--border-error) !important;
}

.field-msg {
    margin-top: 6px;
    font-size: 12px;
    color: var(--border-error);
}

.block {
    margin-top: 30px;
}

.block:first-child {
    margin-top: 10px;
}
.block-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 18px;
    color: var(--text-main);
}
label {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 6px;
}



.calc-anim {
    margin-top: 14px;
    padding: 14px;
    background: var(--anim-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
}

.calc-track {
    position: relative;
    height: 44px;
    border-radius: 10px;
    background: var(--anim-track-bg);
    border: 1px solid var(--border);
    overflow: hidden;
}

.calc-track::before {
    content: "";
    position: absolute;
    left: 12px;
    right: 46px;
    top: 50%;
    height: 2px;
    transform: translateY(-50%);
    background: rgba(29,185,84,0.35);
}

.calc-truck,
.calc-pin {
    position: absolute;
    top: 50%;
    font-size: 22px;
    line-height: 1;
}

.calc-pin {
    right: 10px;
    transform: translateY(-50%);
}

.calc-truck {
    left: 12px;
    transform: translateY(-50%) scaleX(-1);  /* <-- flip da ne ide u rikverc */
}

.calc-anim.running .calc-truck {
    animation: truckMove var(--anim-duration, 2.2s) cubic-bezier(.22,.61,.36,1) forwards;
}

@keyframes truckMove {
    from { left: 12px; }
    to   { left: calc(100% - 66px); }
}

.calc-text {
    margin-top: 10px;
    font-size: 13px;
    color: var(--text-muted);
}

.calc-anim.is-error {
    border-color: var(--border-error);
}

.card {
    background: var(--bg-card);
    padding: 24px;          /* povećan padding */
    border-radius: 12px;
    margin-bottom: 24px;    /* veći razmak između blokova */
}

.form-header {
    margin-bottom: 20px;    /* razmak ispod Nazad dugmeta */
}

.form-group {
    margin-bottom: 20px;    /* veći razmak između polja */
}

.form-actions {
    margin-top: 30px;       /* razmak pre dugmeta Izračunaj */
}

.btn-primary {
    padding: 14px 16px;     /* veći tap target (mobile) */
}

.link-btn {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 14px;
    cursor: pointer;
    padding: 0;
}

.link-btn:hover {
    text-decoration: underline;
}

.mode-badge {
    margin-bottom: 20px;
    padding: 10px 14px;
    border-radius: 8px;
    background: var(--primary);
    color: var(--text-white);
    font-weight: 600;
    font-size: 14px;
    text-align: center;
    border: var(--border);
}



.result-box {
    margin: 24px auto 0 auto;
    padding: 24px;
    border-radius: 12px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    text-align: left;
    max-width: 720px;
}

.result-box.is-error {
    border-color: var(--border-error);
}

.result-error {
    color: var(--border-error);
    font-size: 14px;
}

/* --- Hero block --- */
.result-hero {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.result-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 5px 0;
}

.result-highlight {
    padding: 8px 0;
}

.result-label {
    font-size: 13px;
    color: var(--text-muted);
    flex-shrink: 0;
}

.result-value-num {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-main);
    text-align: right;
}

.result-highlight .result-value-num,
.result-min-km {
    font-size: 20px;
    color: var(--primary);
}

/* --- Status: red / orange / green --- */
.result-status {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    margin: 16px 0;
    line-height: 1.5;
}

.status-green {
    background: var(--status-green-bg);
    border: 1px solid var(--status-green-border);
    color: var(--status-green-text);
}

.status-orange {
    background: var(--status-orange-bg);
    border: 1px solid var(--status-orange-border);
    color: var(--status-orange-text);
}

.status-red {
    background: var(--status-red-bg);
    border: 1px solid var(--status-red-border);
    color: var(--status-red-text);
}

/* --- Offer comparison --- */
.result-offer {
    padding: 14px 16px;
    background: var(--offer-bg);
    border-radius: 8px;
    margin: 16px 0;
    border: 1px solid var(--offer-border);
}

.positive {
    color: var(--color-positive);
}

.negative {
    color: var(--color-negative);
}

/* --- Cost breakdown --- */
.result-breakdown {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.breakdown-title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.breakdown-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 0;
    font-size: 13px;
    border-bottom: 1px solid var(--breakdown-divider);
}

.breakdown-row:last-child {
    border-bottom: none;
}

.breakdown-row span:first-child {
    color: var(--text-muted);
}

.breakdown-row span:last-child {
    font-weight: 600;
    color: var(--text-main);
    white-space: nowrap;
}

/* --- Quality indicator --- */
.result-quality {
    margin-top: 16px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.55;
}

.quality-basic {
    background: var(--quality-basic-bg);
    border: 1px solid var(--quality-basic-border);
    color: var(--quality-basic-text);
}

.quality-full {
    background: var(--quality-full-bg);
    border: 1px solid var(--quality-full-border);
    color: var(--quality-full-text);
}

/* --- Warnings --- */
.result-warn {
    margin-top: 8px;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    line-height: 1.5;
    background: var(--warn-bg);
    border: 1px solid var(--warn-border);
    color: var(--warn-text);
}

/* --- PDV note --- */
.result-note {
    margin-top: 16px;
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
    border-top: 1px solid var(--border);
    padding-top: 12px;
}

/*
LOGO
 */

.app-header {
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    background-color: var(--primary);
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.logo-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Theme toggle button */
.btn-theme {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.90);
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
    flex-shrink: 0;
}

.btn-theme:hover {
    background: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.45);
}

.btn-theme svg {
    display: block;
    pointer-events: none;
}

.app-logo {
    max-width: 180px;   /* mobile limit */
    width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(29,185,84,0.25));
}

.app {
    max-width: 720px;
    margin: 40px auto;
    padding: 0 20px;
}

.btn-secondary {
    width: 100%;
    padding: 12px 14px;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--primary);
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
}

.block-title-note {
    font-size: 13px;
    font-weight: 400;
    color: var(--text-muted);
}

.btn-secondary:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.spec-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 14px;
}
.footnote {
    margin-top: 10px;
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.45;
    opacity: 0.95;
}

.spec-remove {
    margin-top: 6px;
}

.btn-remove {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.18);
    color: var(--text-remove);
    padding: 10px 12px;
    border-radius: 10px;
    width: 100%;
}

.btn-remove:hover {
    border-color: rgba(255,255,255,0.35);
    color: #fff;
}

.form-note {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 6px;
}

.switch-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.switch-label {
    cursor: pointer;
    user-select: none;
    color: var(--text-main);
    font-size: 14px;
    line-height: 1.2;
}

.switch {
    position: relative;
    width: 44px;
    height: 26px;
    flex: 0 0 auto;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}
.switch input:checked + .slider {
    box-shadow: 0 0 0 2px var(--switch-active-bg);
}

.slider {
    position: absolute;
    inset: 0;
    background: var(--switch-bg);
    border: 1px solid var(--switch-border);
    border-radius: 999px;
    transition: 180ms ease;
}

.slider::before {
    content: "";
    position: absolute;
    height: 20px;
    width: 20px;
    left: 3px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--switch-knob);
    border-radius: 50%;
    transition: 180ms ease;
}

.switch input:checked + .slider {
    background: var(--switch-active-bg);
    border-color: var(--switch-active-border);
}

.switch input:checked + .slider::before {
    transform: translate(18px, -50%);
    background: var(--switch-active-knob);
}

/*
    OBAVESTENJE KORISNIKU O PROMENI REZIMA
 */
.toast {
    position: fixed;
    left: 50%;
    bottom: 18px;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 520px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text-main);
    font-size: 13px;
    line-height: 1.35;
    z-index: 9999;
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
    backdrop-filter: blur(6px);
}

.toast.hidden {
    display: none;
}

.toast.show {
    animation: toastIn 180ms ease-out;
}

@keyframes toastIn {
    from { transform: translateX(-50%) translateY(10px); opacity: 0; }
    to   { transform: translateX(-50%) translateY(0); opacity: 1; }
}

/* =============================================================================
   Google Maps section
   ============================================================================= */

/* Wider wrapper for the map card so the layout has room */
.map-section {
    max-width: 1200px;
    margin: 0 auto 24px auto;
}

@media (min-width: 768px) {
    .map-section { max-width: 960px; }
}

@media (min-width: 1400px) {
    .map-section { max-width: 1200px; }
}

.map-section__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.map-section__title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 4px 0;
}

.map-section__desc {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.4;
}

.map-collapse-btn {
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-muted);
    padding: 4px 10px;
    cursor: pointer;
    font-size: 14px;
    flex-shrink: 0;
    transition: border-color 0.15s ease, color 0.15s ease;
}

.map-collapse-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* Two-column layout: controls | map */
.map-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
}

@media (min-width: 900px) {
    .map-layout {
        grid-template-columns: 300px minmax(0, 1fr);
    }
}

.map-controls {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

/* PlaceAutocompleteElement wrapper */
.autocomplete-wrap {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin-bottom: 4px;
}
.autocomplete-wrap gmp-place-autocomplete {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}
.autocomplete-wrap gmp-place-autocomplete * {
    max-width: 100%;
    box-sizing: border-box;
}

/* Map display – must have explicit height so Google Maps renders */
.map-display {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    height: 360px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    background: var(--input-bg);
    border: 1px solid var(--border);
}

.map-el {
    width: 100%;
    max-width: 100%;
    height: 360px;
}

.map-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    padding: 20px;
    pointer-events: none;
    line-height: 1.8;
}

/* "Find route" button variant */
.map-find-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 0;
}

/* Route alternatives */
.map-route-alts {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.map-alts-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 8px 0;
}

.map-route-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.map-route-item {
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--input-bg);
    cursor: pointer;
    font-size: 13px;
    color: var(--text-main);
    transition: border-color 0.15s ease, background 0.15s ease;
}

.map-route-item:hover {
    border-color: var(--primary);
    background: var(--input-bg-focus);
}

.map-route-item.active {
    border-color: var(--primary);
    background: var(--input-bg-focus);
    font-weight: 600;
}

.map-route-item__name {
    font-weight: 600;
    margin-bottom: 2px;
}

.map-route-item__meta {
    font-size: 12px;
    color: var(--text-muted);
}

/* Route info panel */
.map-route-info {
    margin-top: 14px;
    padding: 14px;
    border-radius: 8px;
    background: var(--input-bg-focus);
    border: 1px solid var(--border);
}

.map-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 12px;
}

.map-info-item--wide {
    grid-column: 1 / -1;
}

.map-info-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.map-info-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.map-info-value {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-main);
}

.map-info-value.has-tolls {
    color: var(--status-orange-text);
}

.map-info-value.no-tolls {
    color: var(--color-positive);
}

/* "Use distance" button */
.map-use-dist-btn {
    margin-top: 0;
    font-size: 13px;
    padding: 10px 14px;
}

/* Error message */
.map-error {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
    color: var(--status-red-text);
    background: var(--status-red-bg);
    border: 1px solid var(--status-red-border);
}

/* =============================================================================
   Mobile responsive – Map section (≤ 899px = single column layout)
   ============================================================================= */
@media (max-width: 899px) {
    .map-section {
        max-width: 100%;
        margin: 0 0 16px 0;
    }

    .map-section__header {
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 12px;
    }

    .map-layout {
        gap: 14px;
    }

    .map-display,
    .map-el {
        height: 280px;
    }

    .map-route-info {
        padding: 12px;
    }

    .map-info-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .map-info-item--wide {
        grid-column: auto;
    }
}

@media (max-width: 600px) {
    .map-section__title {
        font-size: 15px;
    }

    .map-section__desc {
        font-size: 12px;
    }

    .map-display,
    .map-el {
        height: 240px;
    }

    .map-placeholder {
        font-size: 12px;
        padding: 14px;
        line-height: 1.5;
    }

    .map-info-value {
        font-size: 14px;
    }

    .map-info-label {
        font-size: 10px;
    }

    .autocomplete-wrap gmp-place-autocomplete {
        max-width: 100%;
    }
}

@media (max-width: 420px) {
    .map-display,
    .map-el {
        height: 200px;
    }

    .map-collapse-btn {
        padding: 3px 8px;
        font-size: 13px;
    }
}

/* =============================================================================
   Mobile responsive – page chrome (body, cards, header)
   ============================================================================= */
@media (max-width: 600px) {
    body {
        padding: 10px;
    }

    .card {
        padding: 16px;
        border-radius: 12px;
        margin-bottom: 14px;
    }

    .app {
        margin: 20px auto;
        padding: 0 4px;
    }

    .app-header {
        padding: 12px 14px;
        margin-bottom: 8px;
    }

    .app-logo {
        max-width: 140px;
    }

    .btn-theme {
        right: 12px;
        width: 32px;
        height: 32px;
    }

    .block-title {
        font-size: 17px;
        margin-bottom: 14px;
    }

    .block {
        margin-top: 22px;
    }
}

@media (max-width: 420px) {
    body {
        padding: 8px;
    }

    .card {
        padding: 14px;
    }

    .app-logo {
        max-width: 120px;
    }
}
