/* /public_html/home/locations/locations.css */

/* HERO – now centered like home banner */
.hero-header {
    position: relative;
    width: 100%;
    max-width: 1200px;
    height: 320px;
    overflow: hidden;
    border-radius: 20px;
    margin: 1rem auto 0;              /* centre with side margin */
    background: radial-gradient(circle at top left, #ffffff, #f0f0f0 50%, #e0e0e0 100%);
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,.55), rgba(0,0,0,.15));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    color: #fff;
}

.hero-title {
    font-size: 2rem;
    font-weight: 800;
    margin: 0;
}

.hero-subtitle {
    margin-top: .4rem;
    font-size: 1rem;
    opacity: .9;
}

/* PAGE TITLE */
.page-title {
    margin: 0;
    font-size: 1.6rem;
    font-weight: 700;
}

.page-subtitle {
    margin: .2rem 0 1.8rem;
    color: #6b7280;
}

/* GRID */
.locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.4rem;
}

/* LOCATION CARD */
.location-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
    overflow: hidden;
    transition: .25s;
}

.location-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0,0,0,.14);
}

/* HEADER */
.location-header {
    background: #0f172a;
    color: #fff;
    padding: 1rem 1rem .6rem;
}

.location-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 700;
}

.loc-sub {
    margin: .2rem 0 0;
    font-size: .85rem;
    opacity: .8;
}

/* BODY */
.location-body {
    padding: 1rem;
    font-size: .95rem;
}

.loc-address {
    margin: 0 0 .6rem;
    color: #374151;
}

.loc-phone {
    margin: 0;
    color: #111827;
    font-weight: 600;
}

/* ACTIONS */
.location-actions {
    padding: .8rem 1rem 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.btn-pill {
    padding: .45rem 1rem;
    border-radius: 999px;
    font-size: .85rem;
    font-weight: 600;
    border: 1px solid #d1d5db;
    background: #f9fafb;
    color: #111827;
    text-decoration: none;
    display: inline-block;
    transition: background .2s ease, border-color .2s ease, transform .1s ease;
}

.btn-pill:hover {
    background: #fff;
    border-color: #9ca3af;
    transform: translateY(-1px);
}

.btn-wa {
    background: #e7fbe8;
    border-color: #34d399;
}

.btn-wa:hover {
    background: #d1fae5;
}

.btn-map {
    background: #fff7e6;
    border-color: #fbbf24;
}

.btn-map:hover {
    background: #fff3c8;
}

/* ---------- Mobile tweaks to match home-page feel ---------- */
@media (max-width: 768px) {
    .hero-header {
        height: 230px;
        margin: 1rem 1rem 0;
        border-radius: 18px;
    }

    .hero-overlay {
        padding: 1.4rem;
    }

    .hero-title {
        font-size: 1.6rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .locations-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .location-card {
        border-radius: 18px;
    }
}

@media (max-width: 480px) {
    .hero-header {
        margin: 0.8rem 0.8rem 0;
    }

    .hero-overlay {
        padding: 1.2rem;
    }
}
