/* ===================================
   Pharmacies Page Styles
   =================================== */

/* Pharmacies Header Section */
.pharmacies-section {
    background: var(--bg-white);
    padding: var(--spacing-xl) 0;
}

.pharmacies-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.pharmacies-header .section-badge {
    display: inline-block;
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: var(--primary-color);
    padding: 8px 18px;
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: var(--spacing-md);
    border: 1px solid rgba(37, 99, 235, 0.1);
}

.pharmacies-header h1 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 2.75rem);
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-dark);
    margin: 0 0 var(--spacing-md) 0;
}

.pharmacies-header p {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--text-gray);
    margin: 0;
}

/* Map Section */
.map-section {
    background: var(--bg-light);
    padding: var(--spacing-xl) 0;
}

.map-intro {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.map-intro h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 var(--spacing-sm) 0;
}

.map-intro p {
    font-size: 1rem;
    color: var(--text-gray);
    margin: 0;
}

.pharmacy-map {
    width: 100%;
    height: 500px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

/* Pharmacy List Section */
.pharmacy-list-section {
    background: var(--bg-white);
    padding: var(--spacing-xl) 0;
}

.pharmacy-list-section .section-title {
    text-align: left;
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    /* margin-bottom inherited from layout.css for consistency */
}

.pharmacy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
}

.pharmacy-grid > * {
    min-width: 0;
    max-width: 100%;
}

/* Pharmacy Card */
.pharmacy-card {
    background: white;
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
    min-height: 160px;
    transition: all var(--transition-normal);
    cursor: pointer;
}

.pharmacy-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.pharmacy-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: rgba(0, 48, 135, 0.08);
    border-radius: var(--radius-lg);
    color: var(--primary-color);
    flex-shrink: 0;
}

.pharmacy-card:hover .pharmacy-icon {
    background: var(--primary-color);
    color: white;
}

.pharmacy-name {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.4;
}

.pharmacy-location {
    font-size: 0.9375rem;
    color: var(--text-gray);
    margin: 0;
    line-height: 1.5;
}

.pharmacy-phone {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    color: var(--primary-color);
    text-decoration: none;
    margin-top: var(--spacing-xs);
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-md);
    background: rgba(37, 99, 235, 0.05);
    transition: all var(--transition-fast);
}

.pharmacy-phone:hover {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-dark);
}

.pharmacy-phone svg {
    flex-shrink: 0;
}

/* More Locations Card */
.pharmacy-card-more {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-style: dashed;
    border-color: var(--primary-color);
}

.pharmacy-card-more .pharmacy-icon {
    background: white;
    border: 2px dashed var(--primary-color);
}

.pharmacy-card-more:hover .pharmacy-icon {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

/* Responsive */
@media (max-width: 992px) {
    .pharmacy-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }
}

@media (max-width: 768px) {
    .pharmacies-section {
        padding: var(--spacing-xl) 0;
    }

    .pharmacies-header h1 {
        font-size: 1.75rem;
    }

    .pharmacies-header p {
        font-size: 1rem;
    }

    .map-section {
        padding: var(--spacing-xl) 0;
    }

    .map-intro h2 {
        font-size: 1.5rem;
    }

    .pharmacy-map {
        height: 400px;
    }

    .pharmacy-list-section {
        padding: var(--spacing-xl) 0;
    }

    .pharmacy-list-section .section-title {
        font-size: 1.5rem;
        /* Keep base margin-bottom from layout.css for consistency */
    }

    .pharmacy-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }

    .pharmacy-card {
        padding: var(--spacing-md);
        min-height: 140px;
    }

    .pharmacy-icon {
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 480px) {
    .pharmacy-map {
        height: 300px;
        border-radius: var(--radius-lg);
    }

    .pharmacy-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-sm);
    }
}
