* {
    box-sizing: border-box;
}

/* ---------- Layout ---------- */
.hero-map-row {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-bottom: 28px;
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 16px;
    padding: 32px;
}

.selector-side {
    width: 360px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

.map-side {
    flex: 1;
    min-width: 0;
}

/* ---------- Title ---------- */
.selector-side h1 {
    margin: 0 0 28px;
    font-size: 26px;
    line-height: 1.25;
    text-transform: uppercase;
    font-weight: 800;
    font-family: 'Gotham', Arial, sans-serif;
    color: #1f1f1f;
}

.accent {
    color: #D62598;
}

/* ---------- Finder form ---------- */
.finder-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.finder-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.finder-label {
    font-size: 11px;
    font-weight: 700;
    color: #53565A;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-family: 'Gotham', Arial, sans-serif;
}

.select-wrap {
    position: relative;
}

.select-wrap::after {
    content: '';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 12px;
    height: 7px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2353565A' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    pointer-events: none;
}

.select-wrap select {
    width: 100%;
    padding: 10px 36px 10px 12px;
    border: 1px solid #d0d0d0;
    border-radius: 8px;
    font-family: 'Gotham', Arial, sans-serif;
    font-size: 14px;
    color: #1f1f1f;
    background: #fff;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    outline: none;
}

.select-wrap select:focus {
    border-color: #D62598;
}

.select-wrap select:disabled {
    background: #f5f5f5;
    color: #aaa;
    cursor: not-allowed;
}

#btn-find {
    width: 100%;
    padding: 14px;
    margin-top: 4px;
    background: #D62598;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-family: 'Gotham', Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.15s ease;
}

#btn-find:hover:not(:disabled) {
    opacity: 0.85;
}

#btn-find:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ---------- Map ---------- */
.map-wrap {
    position: relative;
    width: 100%;
}

#map-container {
    width: 100%;
}

.map-wrap svg,
#map-container svg {
    width: 100%;
    height: auto;
    display: block;
}

.map-tooltip {
    position: absolute;
    display: none;
    border-radius: 12px;
    overflow: hidden;
    pointer-events: none;
    transform: translate(12px, 12px);
    z-index: 20;
    min-width: 180px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}

.map-tooltip-header {
    background: #53565A;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 10px 14px;
    font-family: 'Gotham', Arial, sans-serif;
    text-align: center;
}

.map-tooltip-body {
    background: #fff;
    padding: 10px 14px 12px;
    font-size: 13px;
    color: #53565A;
    font-family: 'Gotham', Arial, sans-serif;
    line-height: 1.4;
    text-align: center;
}

.map-tooltip-count {
    display: block;
    font-size: 26px;
    font-weight: 800;
    color: #D62598;
    line-height: 1.1;
    margin-top: 2px;
}

#map-container path {
    transition: fill 0.18s ease;
}

.estado-clickable {
    cursor: pointer;
}

.estado-clickable:hover path {
    fill: #D62598 !important;
}

.estado-selected path {
    fill: #D62598 !important;
}

/* ---------- List panel ---------- */
.list-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 16px;
    padding: 20px;
}

.state-section {
    display: none;
}

.state-section.is-active {
    display: block;
}

.state-section h2 {
    margin: 0 0 4px;
    font-size: 24px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    font-family: 'Gotham', Arial, sans-serif;
    color: #1f1f1f;
}

.state-section .count {
    margin: 0 0 16px;
    color: #666;
    font-size: 14px;
    font-family: 'Gotham', Arial, sans-serif;
}

.units {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.units li {
    border: 1px solid #e8e8e8;
    border-radius: 16px;
    padding: 20px;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.unit-name {
    font-size: 14px;
    font-weight: 700;
    color: #1f1f1f;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin: 0 0 16px;
    line-height: 1.3;
    font-family: 'Gotham', Arial, sans-serif;
}

.unit-info-rows {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.unit-info-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: #444;
    text-decoration: none;
    font-family: 'Gotham', Arial, sans-serif;
}

.unit-info-row a {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    color: #444;
    text-decoration: none;
    font-family: 'Gotham', Arial, sans-serif;
}

.unit-info-row a:hover {
    color: #D62598;
}

.unit-icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    color: #D62598;
    margin-top: 1px;
}

.unit-socials {
    display: flex;
    gap: 12px;
    margin-top: 4px;
}

.unit-socials a {
    color: #D62598;
    transition: opacity 0.15s ease;
}

.unit-socials a:hover {
    opacity: 0.7;
}

.unit-socials svg {
    width: 18px;
    height: 18px;
}

.unit-cta {
    display: block;
    margin-top: 20px;
    padding: 12px;
    background: #D62598;
    color: #fff;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 8px;
    transition: opacity 0.15s ease;
    font-family: 'Gotham', Arial, sans-serif;
}

.unit-cta:hover {
    opacity: 0.85;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .hero-map-row {
        flex-direction: column;
        padding: 20px;
        gap: 24px;
    }

    .selector-side {
        width: 100%;
    }

    .finder-fields {
        grid-template-columns: 1fr;
    }
}
