* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    font-family: Verdana, Arial, sans-serif;
    background: #f3f6fb;
    color: #1f2937;
}

body {
    min-height: 100vh;
}

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

/* HEADER */

.site-header {
    background: #ffffff;
    border-bottom: 1px solid #e5eaf2;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

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

.brand-logo {
    width: 70px;
    height: 70px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.brand-name {
    font-size: 34px;
    font-weight: 700;
    color: #111827;
    letter-spacing: -1px;
    line-height: 1;
}

.brand-subtitle {
    font-size: 14px;
    color: #6b7280;
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.main-nav a {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    padding: 11px 15px;
    border-radius: 14px;
    transition: 0.2s;
}

.main-nav a:hover {
    background: #edf4ff;
    color: #0b5ed7;
}

.main-nav .add-link {
    background: #7ca629;
    color: #ffffff;
    font-weight: 700;
    padding: 13px 20px;
    border-radius: 16px;
}

.main-nav .add-link:hover {
    background: #66891f;
    color: #ffffff;
}

/* HERO */

.hero {
    background:
        linear-gradient(135deg, rgba(11, 47, 107, 0.96), rgba(25, 118, 210, 0.9)),
        radial-gradient(circle at top right, rgba(244, 180, 0, 0.35), transparent 35%);
    color: #ffffff;
    padding: 46px 20px;
}

.hero-content {
    max-width: 1240px;
    margin: 0 auto;
}

.hero-text {
    max-width: 900px;
}

.hero h1 {
    margin: 0 0 14px;
    font-size: 42px;
    line-height: 1.15;
    letter-spacing: -1px;
}

.hero p {
    margin: 0 0 26px;
    font-size: 17px;
    color: #dbeafe;
}

.search-panel {
    display: flex;
    max-width: 900px;
    background: #ffffff;
    padding: 8px;
    border-radius: 24px;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
}

.search-panel input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 18px;
    padding: 18px 22px;
    border-radius: 20px;
    font-family: Verdana, Arial, sans-serif;
    color: #111827;
    min-width: 0;
}

.search-panel button {
    border: none;
    background: #f4b400;
    color: #1f2937;
    font-weight: 700;
    font-size: 17px;
    padding: 0 30px;
    border-radius: 18px;
    cursor: pointer;
    font-family: Verdana, Arial, sans-serif;
    transition: 0.2s;
}

.search-panel button:hover {
    background: #ffc928;
}

/* FILTER BUTTONS */

.type-filters {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 22px;
    align-items: center;
}

.type-filters .filter-btn {
    border: 1px solid rgba(255, 255, 255, 0.55);
    background: #ffffff;
    color: #0b2f6b;
    border-radius: 999px;
    padding: 14px 28px;
    cursor: pointer;
    font-family: Verdana, Arial, sans-serif;
    font-size: 17px;
    font-weight: 700;
    line-height: 1;
    min-height: 50px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
    transition: 0.2s;
}

.type-filters .filter-btn:hover {
    transform: translateY(-1px);
    background: #f8fafc;
}

.type-filters .filter-btn.active {
    background: #f4b400;
    color: #1f2937;
    border-color: #f4b400;
}

/* LAYOUT */

.page-layout {
    max-width: 1240px;
    margin: 24px auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(320px, 0.8fr);
    gap: 22px;
}

.map-card,
.results-card {
    background: #ffffff;
    border: 1px solid #e5eaf2;
    border-radius: 22px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    overflow: hidden;
}

.map-header {
    padding: 18px 20px;
    border-bottom: 1px solid #e5eaf2;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
}

.map-header h2,
.results-card h2 {
    margin: 0;
    font-size: 22px;
    color: #0b2f6b;
}

.map-header p {
    margin: 5px 0 0;
    color: #6b7280;
    font-size: 14px;
}

.legend {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 13px;
    color: #4b5563;
}

.legend span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    display: inline-block;
}

.dot.blue {
    background: #1976d2;
}

.dot.yellow {
    background: #f4b400;
}

.dot.green {
    background: #7ca629;
}

/* MAP */

#map {
    width: 100%;
    height: 620px;
    min-height: 620px;
    background: #dbeafe;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.leaflet-container {
    width: 100%;
    height: 100%;
    font-family: Verdana, Arial, sans-serif;
}

.leaflet-container img,
.leaflet-tile {
    max-width: none !important;
    max-height: none !important;
}

.map-loading {
    padding: 24px;
    color: #374151;
    font-size: 16px;
}

.map-error {
    margin: 20px;
    padding: 20px;
    background: #fee2e2;
    border: 1px solid #fecaca;
    color: #991b1b;
    border-radius: 14px;
    font-size: 15px;
}

.custom-marker {
    background: transparent;
    border: none;
}

.map-pin {
    width: 30px;
    height: 30px;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    border: 3px solid #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.map-pin-center {
    width: 10px;
    height: 10px;
    background: #ffffff;
    border-radius: 50%;
    margin: 7px;
}

.popup-box {
    font-size: 13px;
    line-height: 1.5;
}

/* RESULTS */

.results-card {
    padding: 18px;
    max-height: 720px;
    overflow-y: auto;
}

.results-card h2 {
    margin-bottom: 16px;
}

.result-item {
    border: 1px solid #e5eaf2;
    border-radius: 18px;
    padding: 15px;
    margin-bottom: 14px;
    background: #fbfdff;
    transition: 0.2s;
}

.result-item:hover {
    border-color: #b8d4ff;
    box-shadow: 0 8px 18px rgba(25, 118, 210, 0.12);
}

.result-type {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    color: #0b5ed7;
    background: #eaf3ff;
    border-radius: 999px;
    padding: 5px 9px;
    margin-bottom: 8px;
}

.result-item h3 {
    margin: 0 0 10px;
    font-size: 17px;
    color: #111827;
}

.result-item p {
    margin: 5px 0;
    font-size: 13px;
    color: #4b5563;
    line-height: 1.45;
}

.result-bottom {
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.result-bottom span {
    font-weight: 700;
    color: #0b2f6b;
}

.result-bottom button {
    border: none;
    background: #0b5ed7;
    color: #ffffff;
    border-radius: 10px;
    padding: 8px 10px;
    cursor: pointer;
    font-family: Verdana, Arial, sans-serif;
    font-size: 13px;
}

.result-bottom button:hover {
    background: #084aad;
}

.empty-result {
    color: #6b7280;
    background: #f9fafb;
    border: 1px dashed #cbd5e1;
    border-radius: 14px;
    padding: 16px;
    font-size: 14px;
    line-height: 1.5;
}

/* INFO */

.info-section {
    max-width: 1240px;
    margin: 0 auto 28px;
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.info-card {
    background: #ffffff;
    border: 1px solid #e5eaf2;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.06);
}

.info-card h3 {
    margin: 0 0 10px;
    color: #0b2f6b;
    font-size: 18px;
}

.info-card p {
    margin: 0;
    color: #6b7280;
    line-height: 1.5;
    font-size: 14px;
}

/* FOOTER */

.site-footer {
    background: #0b2f6b;
    color: #dbeafe;
    padding: 22px 20px;
    display: flex;
    justify-content: center;
    gap: 22px;
    flex-wrap: wrap;
    font-size: 14px;
}

/* MOBILE */

@media (max-width: 980px) {
    .header-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .page-layout {
        grid-template-columns: 1fr;
    }

    #map {
        height: 520px;
        min-height: 520px;
    }

    .info-section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .brand-logo {
        width: 58px;
        height: 58px;
    }

    .brand-name {
        font-size: 25px;
    }

    .brand-subtitle {
        font-size: 12px;
    }

    .main-nav {
        width: 100%;
    }

    .main-nav a {
        font-size: 14px;
        padding: 9px 12px;
    }

    .hero {
        padding: 34px 16px;
    }

    .hero h1 {
        font-size: 29px;
    }

    .hero p {
        font-size: 15px;
    }

    .search-panel {
        flex-direction: column;
        border-radius: 20px;
    }

    .search-panel button {
        width: 100%;
        padding: 14px;
    }

    .type-filters .filter-btn {
        font-size: 15px;
        padding: 12px 18px;
        min-height: 44px;
    }

    .page-layout {
        padding: 0 14px;
    }

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

    #map {
        height: 430px;
        min-height: 430px;
    }

    .site-footer {
        text-align: center;
    }
}
.call-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #7ca629;
    color: #ffffff;
    border-radius: 12px;
    padding: 9px 12px;
    font-size: 13px;
    font-weight: 700;
    margin: 8px 0;
    text-decoration: none;
}

.call-btn:hover {
    background: #66891f;
    color: #ffffff;
}
.call-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #7ca629;
    color: #ffffff;
    border-radius: 12px;
    padding: 9px 12px;
    font-size: 13px;
    font-weight: 700;
    margin: 8px 0;
    text-decoration: none;
}

.call-btn:hover {
    background: #66891f;
    color: #ffffff;
}
.call-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #7ca629;
    color: #ffffff;
    border-radius: 12px;
    padding: 9px 12px;
    font-size: 13px;
    font-weight: 700;
    margin: 8px 0;
    text-decoration: none;
}

.call-btn:hover {
    background: #66891f;
    color: #ffffff;
}