/**
 * Maps & Facilities - Unations FC
 * External stylesheet for facility location pages and map displays
 */

/* ═══════════════════════════════════════════════════
   Facilities Page - Hero & Layout
   ═══════════════════════════════════════════════════ */

.facilities-hero-title {
    background: linear-gradient(135deg, #1a365d 0%, #2c5282 40%, #c53030 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.facilities-subtitle {
    color: var(--bs-secondary) !important;
    font-size: 1.1rem;
}

/* ═══════════════════════════════════════════════════
   Map Containers
   ═══════════════════════════════════════════════════ */

.map-wrap {
    position: relative;
    overflow: hidden;
    border-radius: 0.75rem;
}

.map {
    min-height: 420px;
    height: 420px;
    width: 100%;
    border-radius: 0.75rem;
}

.map-badge {
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(8px);
}

.map-badge-training {
    background: linear-gradient(135deg, #2c5282, #2b6cb0);
    color: #fff;
}

.map-badge-home {
    background: linear-gradient(135deg, #c53030, #e53e3e);
    color: #fff;
}

/* ═══════════════════════════════════════════════════
   Facility Cards
   ═══════════════════════════════════════════════════ */

.facility-card {
    border: none;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.35s ease;
}

.facility-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12), 0 4px 16px rgba(0, 0, 0, 0.06);
}

.facility-card-body {
    padding: 2rem 2.5rem;
}

.facility-card-title {
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 1.25rem;
}

.facility-amenities-list {
    list-style: none;
    padding-left: 0;
}

.facility-amenities-list li {
    padding: 0.4rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.facility-amenities-list .bi {
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════
   Address Block
   ═══════════════════════════════════════════════════ */

.facility-address-block {
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.facility-address-block .bi {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.facility-address-block h6 {
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.facility-address-block p {
    margin: 0;
    opacity: 0.9;
}

/* Theme variants */
.facility-address-primary {
    background: rgba(44, 82, 130, 0.12);
}

.facility-address-primary .bi {
    color: #2c5282;
}

.facility-address-danger {
    background: rgba(197, 48, 48, 0.12);
}

.facility-address-danger .bi {
    color: #c53030;
}

/* ═══════════════════════════════════════════════════
   Facility Badges (amenities)
   ═══════════════════════════════════════════════════ */

.facility-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.facility-badge {
    font-weight: 500;
    font-size: 0.8rem;
    padding: 0.4rem 0.9rem;
    border-radius: 2rem;
}

.facility-badge-primary {
    background: rgba(44, 82, 130, 0.15);
    color: #2c5282;
}

.facility-badge-danger {
    background: rgba(197, 48, 48, 0.15);
    color: #c53030;
}

/* ═══════════════════════════════════════════════════
   Facility Images & Buttons
   ═══════════════════════════════════════════════════ */

.facility-img-wrap {
    border-radius: 0.75rem;
    overflow: hidden;
}

.facility-img {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

.facility-btn {
    padding: 0.5rem 1.25rem;
    border-radius: 2rem;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
}

.facility-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ═══════════════════════════════════════════════════
   Facility Detail Pages (NEFC, Foley standalone)
   ═══════════════════════════════════════════════════ */

.facility-detail-title {
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.facility-detail-map-card {
    border: none;
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), 0 2px 12px rgba(0, 0, 0, 0.06);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.facility-detail-map-card:hover {
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.12), 0 4px 20px rgba(0, 0, 0, 0.08);
}

.facility-detail-map-wrap {
    position: relative;
    overflow: hidden;
}

.facility-detail-map-wrap .map {
    display: block;
}

.facility-detail-map-wrap .map-overlay-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 0.5rem 1.25rem;
    border-radius: 2rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    z-index: 1;
}

.facility-detail-map-wrap.map-card-nefc .map-overlay-badge {
    background: linear-gradient(135deg, #1e3a5f 0%, #2c5282 100%);
    color: #fff;
}

.facility-detail-map-wrap.map-card-foley .map-overlay-badge {
    background: linear-gradient(135deg, #9b2c2c 0%, #c53030 100%);
    color: #fff;
}

.facility-detail-map-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.facility-detail-address {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.facility-detail-address .bi {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.facility-detail-address .address-text strong {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 0.15rem;
}

.facility-detail-address .address-text span {
    font-size: 0.875rem;
    color: var(--bs-secondary);
}

.facility-detail-map-card.map-card-nefc .facility-detail-map-footer {
    background: linear-gradient(180deg, rgba(44, 82, 130, 0.04) 0%, rgba(255, 255, 255, 0) 100%);
}

.facility-detail-map-card.map-card-nefc .facility-detail-address .bi {
    color: #2c5282;
}

.facility-detail-map-card.map-card-foley .facility-detail-map-footer {
    background: linear-gradient(180deg, rgba(197, 48, 48, 0.04) 0%, rgba(255, 255, 255, 0) 100%);
}

.facility-detail-map-card.map-card-foley .facility-detail-address .bi {
    color: #c53030;
}

.facility-detail-directions-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.facility-detail-directions-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
}

.map-card-nefc .facility-detail-directions-btn {
    background: linear-gradient(135deg, #2c5282, #2b6cb0);
    color: #fff;
}

.map-card-foley .facility-detail-directions-btn {
    background: linear-gradient(135deg, #c53030, #e53e3e);
    color: #fff;
}

@media (max-width: 576px) {
    .facility-detail-map-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .facility-detail-directions-btn {
        width: 100%;
        justify-content: center;
    }
}
