:root {
    --bg: #F5F5F7;
    --surface: #FFFFFF;
    --border: #D2D2D7;
    --border-soft: #E8E8ED;
    --text: #1D1D1F;
    --text-2: #6E6E73;
    --text-3: #AEAEB2;
    --accent: #0071E3;
    --accent-hover: #0062C4;
    --green: #34C759;
    --green-bg: rgba(52,199,89,0.10);
    --green-border: rgba(52,199,89,0.30);
    --green-text: #1A7F36;
    --red: #FF3B30;
    --red-bg: rgba(255,59,48,0.08);
    --red-border: rgba(255,59,48,0.22);
    --red-text: #C0392B;
    --blue-bg: rgba(0,113,227,0.07);
    --blue-border: rgba(0,113,227,0.22);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 8px 32px rgba(0,0,0,0.08);
    --shadow-lg: 0 16px 48px rgba(0,0,0,0.10);
    --radius-xl: 20px;
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --radius-pill: 100px;
    --font-ui: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'DM Serif Display', Georgia, 'Times New Roman', serif;
    --max-w: 1100px;
    --hero-max: 640px;
}
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}
body {
    font-family: var(--font-ui);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img, svg {
    display: block;
    max-width: 100%;
}
a {
    color: var(--accent);
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}
.site-header {
    position: sticky;
    top: 0;
    z-index: 200;
    background: rgba(255,255,255,0.88);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--border-soft);
}
.header-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 28px;
    height: 60px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.logo {
    font-family: var(--font-ui);
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    letter-spacing: -0.2px;
    white-space: nowrap;
    flex-shrink: 0;
}
.logo span {
    color: var(--accent);
}
.logo:hover {
    text-decoration: none;
    opacity: 0.85;
}
.main-nav {
    margin-left: auto;
}
.nav-links {
    display: flex;
    list-style: none;
    gap: 2px;
    align-items: center;
}
.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-2);
    text-decoration: none;
    padding: 6px 10px;
    border-radius: var(--radius-sm);
    transition: color 0.15s ease, background 0.15s ease;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.nav-links a:hover {
    color: var(--text);
    background: rgba(0,0,0,0.04);
    text-decoration: none;
}
.nav-links a[aria-current="page"] {
    color: var(--accent);
    background: var(--blue-bg);
}
.nav-external svg {
    width: 11px;
    height: 11px;
    opacity: 0.55;
    flex-shrink: 0;
}
.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin-left: auto;
    border-radius: var(--radius-sm);
}
.nav-toggle span {
    display: block;
    width: 20px;
    height: 1.5px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}
.mobile-nav {
    background: var(--surface);
    border-bottom: 1px solid var(--border-soft);
    padding: 8px 20px 16px;
}
.mobile-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.mobile-nav a {
    display: block;
    padding: 10px 12px;
    color: var(--text);
    font-size: 15px;
    font-weight: 500;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: background 0.15s ease;
}
.mobile-nav a:hover {
    background: var(--bg);
    text-decoration: none;
}
.hero {
    padding: 20px 28px 16px;
    text-align: left;
}
.hero-inner {
    max-width: var(--max-w);
    margin: 0 auto;
}
.eyebrow {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 4px;
}
.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(22px, 3vw, 30px);
    line-height: 1.1;
    letter-spacing: -0.3px;
    color: var(--text);
    margin-bottom: 6px;
}
.hero h1 .accent {
    color: var(--accent);
}
.map-section {
    padding: 0 28px 0;
}
.map-wrap {
    max-width: var(--max-w);
    margin: 0 auto;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-soft);
    border-bottom: none;
    background: #E8E8ED;
}
#map {
    width: 100%;
    height: 540px;
    display: block;
}
.control-center-section {
    padding: 0 28px 64px;
}
.control-center-inner {
    max-width: var(--max-w);
    margin: 0 auto;
}
.control-center-panel {
    display: grid;
    grid-template-columns: minmax(320px, 420px) auto 1fr;
    gap: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-top: none;
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}
.cc-search-col {
    padding: 28px 32px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}
.cc-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--text-3);
}
.cc-divider {
    width: 1px;
    background: var(--border-soft);
    align-self: stretch;
    margin: 20px 0;
}
.cc-overlays-col {
    padding: 28px 32px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}
.search-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 10px 14px 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.autocomplete-wrap {
    width: 100%;
    position: relative;
}
.autocomplete-wrap gmp-placeautocomplete {
    width: 100%;
    display: block;
}
#place-autocomplete-container input,
.autocomplete-wrap input {
    width: 100%;
    font-family: var(--font-ui);
    font-size: 15px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    background: var(--surface);
    outline: none;
    transition: border-color 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}
#place-autocomplete-container input:focus,
.autocomplete-wrap input:focus {
    outline: none;
    border-color: var(--accent);
}
.btn-check {
    width: 100%;
    flex-shrink: 0;
    padding: 11px 18px;
    background: var(--accent);
    color: #ffffff;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-ui);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    letter-spacing: -0.1px;
    transition: background 0.2s ease, transform 0.1s ease;
    -webkit-appearance: none;
    appearance: none;
}
.btn-check:hover {
    background: var(--accent-hover);
}
.btn-check:active {
    transform: scale(0.98);
}
.result-badge {
    min-height: 0;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
    border-radius: var(--radius-md);
    transition: padding 0.25s ease, border 0.25s ease, background 0.25s ease;
}
.result-badge.inside {
    padding: 12px 16px;
    background: var(--green-bg);
    border: 1px solid var(--green-border);
    color: var(--green-text);
}
.result-badge.outside {
    padding: 12px 16px;
    background: var(--red-bg);
    border: 1px solid var(--red-border);
    color: var(--red-text);
}
.result-badge.checking {
    padding: 12px 16px;
    background: var(--blue-bg);
    border: 1px solid var(--blue-border);
    color: var(--accent);
}
.chip-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.chip {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: var(--bg);
    border: 1.5px solid var(--border-soft);
    border-radius: var(--radius-md);
    cursor: pointer;
    text-align: left;
    font-family: var(--font-ui);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.chip:hover {
    border-color: #B8B8BF;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}
.chip[aria-pressed="true"] {
    border-color: var(--chip-color, var(--accent));
    box-shadow: 0 0 0 1px var(--chip-color, var(--accent));
    background: var(--surface);
}
.chip-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}
.chip[aria-pressed="true"] .chip-dot {
    transform: scale(1.35);
}
.chip-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.chip-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.1px;
}
.chip-sub {
    font-size: 11px;
    color: var(--text-3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.overlay-status {
    font-size: 12px;
    color: var(--text-3);
    min-height: 18px;
    font-style: italic;
}
.seo-section {
    padding: 48px 28px 72px;
    border-top: 1px solid var(--border-soft);
}
.seo-inner {
    max-width: var(--max-w);
    margin: 0 auto;
}
.seo-inner h2 {
    font-family: var(--font-display);
    font-size: 32px;
    letter-spacing: -0.3px;
    color: var(--text);
    line-height: 1.15;
    margin-bottom: 16px;
}
.seo-inner > p {
    font-size: 15px;
    color: var(--text-2);
    max-width: 700px;
    margin-bottom: 12px;
    line-height: 1.7;
}
.seo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 32px;
}
.seo-card {
    background: var(--surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-lg);
    padding: 22px 24px;
}
.seo-card h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
    letter-spacing: -0.1px;
}
.seo-card p {
    font-size: 13px;
    color: var(--text-2);
    line-height: 1.65;
}
.seo-card a {
    color: var(--accent);
    text-decoration: none;
}
.seo-card a:hover {
    text-decoration: underline;
}
.site-footer {
    background: var(--surface);
    border-top: 1px solid var(--border-soft);
}
.footer-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 28px;
}
.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 56px;
    padding: 60px 0 52px;
    border-bottom: 1px solid var(--border-soft);
}
.footer-brand .logo {
    display: inline-block;
    margin-bottom: 16px;
    font-size: 15px;
}
.footer-brand p {
    font-size: 14px;
    color: var(--text-2);
    line-height: 1.65;
    max-width: 300px;
}
.footer-nav h3 {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-3);
    margin-bottom: 18px;
}
.footer-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.footer-nav a {
    font-size: 14px;
    color: var(--text-2);
    text-decoration: none;
    transition: color 0.15s ease;
}
.footer-nav a:hover {
    color: var(--text);
    text-decoration: none;
}
.footer-bottom {
    padding: 28px 0 40px;
}
.footer-desc {
    font-size: 13px;
    color: var(--text-2);
    line-height: 1.7;
    max-width: 800px;
    margin-bottom: 16px;
}
.disclaimer {
    font-size: 13px;
    color: var(--text-3);
    line-height: 1.7;
    max-width: 800px;
    margin-bottom: 14px;
}
.disclaimer a {
    color: var(--accent);
    text-decoration: none;
}
.disclaimer a:hover {
    text-decoration: underline;
}
.footer-gis-note {
    font-size: 12px;
    color: var(--text-3);
    line-height: 1.6;
    margin-bottom: 14px;
    max-width: 800px;
}
.copyright {
    font-size: 13px;
    color: var(--text-3);
}
@media (max-width: 1024px) {
    .control-center-panel {
        grid-template-columns: 1fr;
    }
    .cc-divider {
        width: auto;
        height: 1px;
        margin: 0 20px;
        align-self: auto;
    }
    .chip-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 900px) {
    .chip-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .seo-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 36px;
    }
    .footer-brand {
        grid-column: 1 / -1;
    }
}
@media (max-width: 768px) {
    .main-nav {
        display: none;
    }
    .nav-toggle {
        display: flex;
    }
    .header-inner {
        padding: 0 20px;
    }
    .hero {
        padding: 16px 20px 12px;
    }
    .map-section {
        padding: 0 20px 0;
    }
    .map-wrap {
        border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    }
    #map {
        height: 400px;
    }
    .control-center-section {
        padding: 0 20px 48px;
    }
    .control-center-panel {
        border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    }
    .cc-search-col {
        padding: 24px 24px 20px;
    }
    .cc-overlays-col {
        padding: 20px 24px 24px;
    }
    .seo-section {
        padding: 36px 20px 56px;
    }
    .footer-inner {
        padding: 0 20px;
    }
    .footer-top {
        grid-template-columns: 1fr;
        gap: 32px;
        padding: 44px 0 36px;
    }
    .footer-brand {
        grid-column: auto;
    }
}
@media (max-width: 540px) {
    .chip-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .seo-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 400px) {
    .chip-grid {
        grid-template-columns: 1fr;
    }
}
