/* Agadir Pharmacies - Frontend Styles */

.agadir-pharmacies-frontend {
    background: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
}

/* Header */
.pharmacies-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 3px solid #48bb78;
}

.pharmacies-title {
    font-size: 28px;
    color: #1f2937;
    margin: 0 0 10px 0;
    font-weight: 700;
}

.pharmacy-icon {
    font-size: 32px;
    margin-right: 10px;
    vertical-align: middle;
}

.pharmacies-date {
    font-size: 18px;
    color: #6b7280;
    font-weight: 500;
}

/* Count */
.pharmacies-count {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: #ffffff;
    padding: 15px 25px;
    border-radius: 8px;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Map */
.pharmacies-map {
    height: 400px;
    width: 100%;
    border-radius: 8px;
    margin-bottom: 30px;
    border: 2px solid #e5e7eb;
}

/* Pharmacies List */
.pharmacies-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* Pharmacy Card */
.pharmacy-card {
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    padding: 20px;
    transition: all 0.3s ease;
}

.pharmacy-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-color: #48bb78;
}

.pharmacy-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e5e7eb;
}

.pharmacy-name {
    font-size: 20px;
    color: #1f2937;
    margin: 0;
    font-weight: 700;
    flex: 1;
}

.on-duty-badge {
    background: #48bb78;
    color: #ffffff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Pharmacy Details */
.pharmacy-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pharmacy-detail {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.detail-icon {
    font-size: 18px;
    flex-shrink: 0;
    width: 24px;
}

.detail-label {
    font-weight: 600;
    color: #6b7280;
    font-size: 13px;
    min-width: 70px;
}

.detail-value {
    color: #1f2937;
    font-size: 14px;
    flex: 1;
}

.phone-link {
    color: #48bb78;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.phone-link:hover {
    color: #38a169;
    text-decoration: underline;
}

.map-link {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.map-link:hover {
    color: #2563eb;
    text-decoration: underline;
}

/* No Pharmacies Message */
.no-pharmacies-message {
    background: #fef3c7;
    border: 2px solid #fbbf24;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
}

.no-pharmacies-message p {
    font-size: 18px;
    color: #92400e;
    margin: 0;
}

/* Map Popup */
.pharmacy-popup {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
}

.pharmacy-popup strong {
    display: block;
    margin-bottom: 5px;
    color: #1f2937;
}

.pharmacy-popup a {
    color: #48bb78;
    text-decoration: none;
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .agadir-pharmacies-frontend {
        padding: 20px;
    }

    .pharmacies-title {
        font-size: 22px;
    }

    .pharmacy-icon {
        font-size: 24px;
    }

    .pharmacies-date {
        font-size: 16px;
    }

    .pharmacies-list {
        grid-template-columns: 1fr;
    }

    .pharmacies-map {
        height: 300px;
    }

    .pharmacy-header {
        flex-direction: column;
        gap: 10px;
    }

    .on-duty-badge {
        align-self: flex-start;
    }
}

@media (max-width: 480px) {
    .pharmacy-name {
        font-size: 18px;
    }

    .detail-label {
        min-width: 60px;
        font-size: 12px;
    }

    .detail-value {
        font-size: 13px;
    }
}
