:root {
    --orange: #f59a16;
    --orange-dark: #d97b00;
    --black: #080b10;
    --dark: #10151c;
    --dark-card: #171e27;
    --text: #20252d;
    --muted: #68717d;
    --border: #e2e6eb;
    --white: #ffffff;
    --max-width: 1000px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;

    color: var(--text);
    background: #f6f7f9;

    line-height: 1.6;
}

a {
    text-decoration: none;
    color: inherit;
}


/* HEADER */

.site-header {
    background: var(--black);
    color: white;

    border-bottom:
        1px solid rgba(255,255,255,.08);
}

.header-inner {
    width: min(92%, 1180px);
    margin: auto;

    min-height: 72px;

    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-mark {
    font-size: 28px;
}

.brand strong {
    display: block;

    font-size: 15px;
    letter-spacing: 1px;
}

.brand small {
    display: block;

    color: var(--orange);

    letter-spacing: 4px;
    font-size: 11px;
}

.site-header nav {
    display: flex;
    gap: 28px;
}

.site-header nav a {
    color: #d6dbe2;
    font-size: 14px;
}

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

.brand-logo {
    width: 170px;
    height: 52px;
    object-fit: contain;
    object-position: left center;
}


/* HERO */

.tool-hero {
    background:
        radial-gradient(
            circle at 75% 20%,
            rgba(245,154,22,.14),
            transparent 30%
        ),
        var(--black);

    color: white;

    padding:
        35px 0 70px;
}

.container {
    width: min(92%, var(--max-width));
    margin: auto;
}

.breadcrumb {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;

    color: #8f99a5;

    font-size: 13px;

    margin-bottom: 45px;
}

.breadcrumb a {
    color: var(--orange);
}

.hero-content {
    max-width: 760px;
}

.eyebrow,
.section-label {
    color: var(--orange);

    font-size: 12px;
    font-weight: 800;

    letter-spacing: 2px;
}

.hero-content h1 {
    font-size: clamp(38px, 6vw, 62px);

    line-height: 1.05;

    margin:
        12px 0 20px;
}

.hero-content p {
    color: #b9c1cb;

    font-size: 18px;

    max-width: 720px;
}


/* CONVERTER */

.converter-section {
    padding: 70px 0;
}

.converter-card {
    background: white;

    border:
        1px solid var(--border);

    border-radius: 16px;

    padding: 35px;

    box-shadow:
        0 20px 50px rgba(0,0,0,.07);
}

.converter-header h2 {
    margin:
        7px 0 25px;

    font-size: 28px;
}


/* MODE */

.mode-switch {
    display: grid;
    grid-template-columns: 1fr 1fr;

    margin-bottom: 30px;

    border:
        1px solid var(--border);

    border-radius: 9px;

    padding: 4px;

    background: #f5f6f8;
}

.mode-button {
    border: 0;

    background: transparent;

    padding: 13px;

    border-radius: 6px;

    font-weight: 600;

    cursor: pointer;

    color: #66707c;
}

.mode-button.active {
    background: var(--black);
    color: white;
}


/* FORM */

.form-grid {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 18px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;

    font-size: 14px;

    font-weight: 700;

    margin-bottom: 7px;
}

.form-group input,
.form-group select {
    width: 100%;

    padding: 13px 14px;

    border:
        1px solid #ccd2d9;

    border-radius: 7px;

    background: white;

    font-size: 16px;

    outline: none;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--orange);

    box-shadow:
        0 0 0 3px rgba(245,154,22,.12);
}

.form-group small {
    display: block;

    color: #7b8490;

    font-size: 12px;

    margin-top: 5px;
}


/* BUTTONS */

.button-row {
    display: flex;
    gap: 12px;

    margin-top: 10px;
}

.convert-button,
.reset-button,
.copy-button {
    border: 0;

    padding: 13px 20px;

    border-radius: 7px;

    font-weight: 700;

    cursor: pointer;
}

.convert-button {
    background: var(--orange);
    color: #111;
}

.convert-button:hover {
    background: #ffab2b;
}

.reset-button {
    background: #e9edf1;
    color: #353b43;
}


/* RESULT */

.result-box {
    margin-top: 35px;

    padding: 25px;

    background: #0d131a;

    color: white;

    border-radius: 12px;

    border:
        1px solid #26313d;
}

.result-header {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 25px;
}

.result-header h3 {
    margin:
        5px 0 0;
}

.copy-button {
    background: var(--orange);
    color: #111;
}

.result-content {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 14px;
}

.result-item {
    padding: 18px;

    background: #161e27;

    border-radius: 8px;
}

.result-item span {
    display: block;

    color: #8994a0;

    font-size: 12px;

    text-transform: uppercase;

    letter-spacing: 1px;
}

.result-item strong {
    display: block;

    color: white;

    font-size: 20px;

    margin-top: 5px;
}


/* ERROR */

.error-message {
    margin-top: 20px;

    padding: 14px 16px;

    background: #fff0f0;

    color: #a52222;

    border:
        1px solid #f1caca;

    border-radius: 7px;
}

.hidden {
    display: none !important;
}


/* CONTENT */

.content-section {
    background: white;

    padding: 80px 0;
}

.content-container {
    max-width: 820px;
}

.content-container h2 {
    margin-top: 45px;

    font-size: 30px;
}

.content-container h2:first-child {
    margin-top: 0;
}

.content-container h3 {
    margin-top: 30px;

    font-size: 20px;
}

.content-container p,
.content-container li {
    color: #58616d;

    font-size: 16px;
}

.content-container li {
    margin-bottom: 8px;
}


/* FOOTER */

.site-footer {
    background: var(--black);

    color: #a8b0ba;

    padding-top: 40px;
}

.site-footer strong {
    color: white;

    letter-spacing: 1px;
}

.site-footer p {
    font-size: 14px;
}

.footer-links {
    display: flex;

    gap: 20px;

    margin-top: 20px;
}

.footer-links a:hover {
    color: var(--orange);
}

.copyright {
    margin-top: 35px;

    padding: 18px;

    text-align: center;

    border-top:
        1px solid #1c232c;

    font-size: 12px;
}


/* MOBILE */

@media (max-width: 700px) {

    .site-header nav {
        display: none;
    }

    .converter-card {
        padding: 22px;
    }

    .mode-switch {
        grid-template-columns: 1fr;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .result-content {
        grid-template-columns: 1fr;
    }

    .result-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .button-row {
        flex-direction: column;
    }

    .convert-button,
    .reset-button {
        width: 100%;
    }
}

/* MAP PREVIEW */

.map-preview {
    margin-top: 32px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 28px;
}

.map-preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.map-preview-header h2 {
    margin: 6px 0 0;
    font-size: 24px;
}

.section-label {
    color: #f59e0b;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
}

#mapCoordinates {
    color: #6b7280;
    font-size: 14px;
}

#map {
    width: 100%;
    height: 420px;
    border-radius: 14px;
    overflow: hidden;
}

@media (max-width: 700px) {

    .map-preview {
        padding: 18px;
    }

    .map-preview-header {
        align-items: flex-start;
        flex-direction: column;
    }

    #map {
        height: 320px;
    }
}