/* District archive page */

.sfbx-district-page,
.sfbx-district-page * {
    box-sizing: border-box;
}

.sfbx-district-page {
    background: #f5f3ef;
    padding: 56px 20px 80px;
}

.sfbx-district-wrap {
    width: 100%;
    max-width: 1120px;
    margin-inline: auto;
}

.sfbx-district-header {
    max-width: 760px;
    margin-bottom: 36px;
}

.sfbx-district-kicker {
    display: inline-flex;
    margin: 0 0 14px;
    padding: 7px 13px;
    border-radius: 999px;
    background: #dcfce7;
    color: #166534;
    font-size: 14px;
    font-weight: 700;
}

.sfbx-district-header h1 {
    margin: 0 0 16px;
    color: #1c1917;
    font-size: clamp(38px, 6vw, 64px);
    line-height: 1.05;
    letter-spacing: -0.045em;
}

.sfbx-district-header p {
    margin: 0;
    color: #57534e;
    font-size: 18px;
    line-height: 1.8;
}

.sfbx-district-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.sfbx-place-card {
    background: #fffaf3;
    border: 1px solid rgba(120, 113, 108, 0.18);
    border-radius: 26px;
    overflow: hidden;
    box-shadow: 0 16px 45px rgba(68, 64, 60, 0.08);
}

.sfbx-place-card-photo {
    display: block;
    aspect-ratio: 4 / 3;
    background: #e7e5e4;
    overflow: hidden;
    text-decoration: none;
}

.sfbx-place-card-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sfbx-place-card-photo span {
    display: grid;
    place-items: center;
    height: 100%;
    color: #78716c;
}

.sfbx-place-card-body {
    padding: 22px;
}

.sfbx-place-card h2 {
    margin: 0 0 8px;
    font-size: 22px;
    line-height: 1.25;
}

.sfbx-place-card h2 a {
    color: #1c1917;
    text-decoration: none;
}

.sfbx-place-card h2 a:hover {
    color: #166534;
}

.sfbx-place-card-en {
    margin: 0 0 12px;
    color: #78716c;
    font-size: 15px;
}

.sfbx-place-card-address {
    margin: 0 0 18px;
    color: #44403c;
    font-size: 15px;
    line-height: 1.65;
}

.sfbx-place-card-footer {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid #ede9e2;
    font-size: 14px;
}

.sfbx-place-card-footer span {
    color: #78716c;
}

.sfbx-place-card-footer a {
    color: #166534;
    font-weight: 700;
    text-decoration: none;
}

.sfbx-place-card-footer a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.sfbx-pagination {
    margin-top: 36px;
}

.sfbx-empty {
    background: #fffaf3;
    border: 1px solid rgba(120, 113, 108, 0.18);
    border-radius: 24px;
    padding: 28px;
}

@media (max-width: 980px) {
    .sfbx-district-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .sfbx-district-page {
        padding: 32px 14px 56px;
    }
    
    .sfbx-district-grid {
        grid-template-columns: 1fr;
    }
    
    .sfbx-district-header h1 {
        font-size: 40px;
    }
}

.sfbx-district-map-section {
    background: #fffaf3;
    border: 1px solid rgba(120, 113, 108, 0.18);
    border-radius: 26px;
    padding: 14px;
    margin-bottom: 30px;
    box-shadow: 0 16px 45px rgba(68, 64, 60, 0.06);
}

#sfbx-district-map {
    width: 100%;
    height: 460px;
    border-radius: 20px;
    overflow: hidden;
    background: #e7e5e4;
}

.sfbx-map-popup {
    display: grid;
    gap: 6px;
    min-width: 180px;
}

.sfbx-map-popup strong {
    color: #1c1917;
    font-size: 15px;
}

.sfbx-map-popup span {
    color: #57534e;
    font-size: 13px;
    line-height: 1.5;
}

.sfbx-map-popup a {
    color: #166534;
    font-weight: 700;
    text-decoration: none;
}

.sfbx-map-popup a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 620px) {
    #sfbx-district-map {
        height: 360px;
    }
}   