/* ==========================================================================
   ABQ Neighborhood Guide - Front-end Styles
   ========================================================================== */

/* ---------- Variables ---------- */
:root {
    --abq-navy: #1e3a5f;
    --abq-navy-light: #2a5080;
    --abq-gray-100: #f7f8fa;
    --abq-gray-200: #e5e7eb;
    --abq-gray-400: #9ca3af;
    --abq-gray-500: #6b7280;
    --abq-gray-700: #374151;
    --abq-gray-900: #111827;
    --abq-radius: 8px;
    --abq-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --abq-shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* ---------- Archive Header ---------- */
.abq-archive-header {
    text-align: center;
    margin-bottom: 30px;
}

.abq-archive-header .page-title {
    font-size: 2.2rem;
    color: var(--abq-navy);
    margin-bottom: 8px;
}

.abq-archive-intro {
    font-size: 1.05rem;
    color: var(--abq-gray-500);
    max-width: 600px;
    margin: 0 auto;
}

/* ---------- Zone Filter Tabs ---------- */
.abq-zone-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
    padding: 0;
    justify-content: center;
}

.abq-zone-tab {
    padding: 8px 18px;
    border: 2px solid var(--abq-gray-200);
    background: #fff;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--abq-gray-700);
    transition: all 0.2s ease;
    line-height: 1.4;
}

.abq-zone-tab:hover {
    border-color: var(--abq-navy);
    color: var(--abq-navy);
}

.abq-zone-tab.active {
    background: var(--abq-navy);
    color: #fff;
    border-color: var(--abq-navy);
}

/* ---------- Map ---------- */
.abq-map-container {
    width: 100%;
    height: 400px;
    margin-bottom: 30px;
    border-radius: var(--abq-radius);
    z-index: 1;
    border: 1px solid var(--abq-gray-200);
}

.abq-popup strong {
    font-size: 14px;
}

.abq-popup a {
    color: var(--abq-navy);
    text-decoration: none;
}

.abq-popup a:hover {
    text-decoration: underline;
}

/* ---------- Card Grid ---------- */
.abq-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.abq-card {
    background: #fff;
    border-radius: var(--abq-radius);
    overflow: hidden;
    box-shadow: var(--abq-shadow);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.abq-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--abq-shadow-hover);
}

.abq-card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.abq-card-body {
    padding: 16px;
}

.abq-card-zone {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--abq-navy);
    background: var(--abq-gray-100);
    padding: 2px 8px;
    border-radius: 3px;
    margin-bottom: 6px;
}

.abq-card-title {
    font-size: 1.15rem;
    margin: 0 0 8px;
    line-height: 1.3;
}

.abq-card-title a {
    color: var(--abq-gray-900);
    text-decoration: none;
}

.abq-card-title a:hover {
    color: var(--abq-navy);
}

.abq-card-stats {
    display: flex;
    gap: 16px;
    margin-bottom: 8px;
}

.abq-stat {
    display: flex;
    flex-direction: column;
}

.abq-stat-label {
    font-size: 11px;
    color: var(--abq-gray-400);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.abq-stat-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--abq-navy);
}

.abq-card-excerpt {
    font-size: 13px;
    color: var(--abq-gray-500);
    margin: 0;
    line-height: 1.5;
}

.abq-no-results {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--abq-gray-500);
    padding: 40px 0;
}

/* ---------- Single: Header ---------- */
.abq-single-header {
    margin-bottom: 20px;
}

.abq-single-zone {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #fff;
    background: var(--abq-navy);
    padding: 4px 12px;
    border-radius: 3px;
    margin-bottom: 8px;
}

.abq-single-header .entry-title {
    margin-top: 0;
}

/* ---------- Single: Hero Image ---------- */
.abq-single-hero {
    margin-bottom: 24px;
}

.abq-single-hero img {
    width: 100%;
    height: auto;
    border-radius: var(--abq-radius);
    display: block;
}

/* ---------- Single: Housing Stats ---------- */
.abq-housing-stats {
    background: var(--abq-gray-100);
    padding: 24px;
    border-radius: var(--abq-radius);
    margin-bottom: 28px;
}

.abq-housing-stats h2 {
    font-size: 1.2rem;
    margin: 0 0 16px;
    color: var(--abq-navy);
}

.abq-housing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.abq-housing-stat {
    text-align: center;
}

.abq-housing-label {
    display: block;
    font-size: 13px;
    color: var(--abq-gray-500);
    margin-bottom: 4px;
}

.abq-housing-value {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--abq-navy);
}

.abq-housing-disclaimer {
    margin: 0;
    color: var(--abq-gray-500);
    font-size: 13px;
    line-height: 1.4;
}

.abq-housing-disclaimer a {
    color: var(--abq-navy);
    text-decoration: underline;
}

.abq-housing-types .abq-housing-value {
    font-size: 1rem;
    font-weight: 600;
}

/* ---------- Single: Map ---------- */
.abq-single-map-section {
    margin: 32px 0;
}

.abq-single-map-section h2 {
    font-size: 1.2rem;
    color: var(--abq-navy);
    margin-bottom: 12px;
}

.abq-single-map-section .abq-map-container {
    height: 350px;
}

/* ---------- Single: Local Spots ---------- */
.abq-local-spots {
    margin-top: 32px;
}

.abq-local-spots > h2 {
    font-size: 1.4rem;
    color: var(--abq-navy);
    margin-bottom: 20px;
}

.abq-spot-category {
    margin-bottom: 28px;
}

.abq-spot-category h3 {
    font-size: 1.05rem;
    color: var(--abq-gray-700);
    margin-bottom: 12px;
    padding-bottom: 6px;
    border-bottom: 2px solid var(--abq-gray-200);
}

.abq-spot-item {
    padding: 12px 0;
    border-bottom: 1px solid var(--abq-gray-200);
}

.abq-spot-item:last-child {
    border-bottom: none;
}

.abq-spot-name {
    display: block;
    font-size: 15px;
    color: var(--abq-gray-900);
}

.abq-spot-address {
    display: block;
    font-size: 13px;
    color: var(--abq-gray-400);
    margin-top: 2px;
}

.abq-spot-desc {
    font-size: 14px;
    color: var(--abq-gray-500);
    margin: 4px 0 0;
    line-height: 1.5;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .abq-card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .abq-card-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .abq-map-container {
        height: 250px;
    }

    .abq-archive-header .page-title {
        font-size: 1.6rem;
    }

    .abq-zone-filter {
        gap: 6px;
    }

    .abq-zone-tab {
        padding: 6px 12px;
        font-size: 13px;
    }

    .abq-housing-grid {
        grid-template-columns: 1fr;
    }

    .abq-housing-value {
        font-size: 1.2rem;
    }
}
