/* ==========================================================================
   PHARMACY FINDER - MODERN STYLES
   Color Palette: Teal/Emerald primary, Coral accent, Slate neutrals
   ========================================================================== */

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInScale {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(13, 148, 136, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(13, 148, 136, 0); }
}

/* ==========================================================================
   CONTAINER
   ========================================================================== */
#pharmacy-finder-container {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    color: #1e293b;
}

#pharmacy-finder-container * {
    box-sizing: border-box;
}

#pharmacy-finder-container > * {
    margin-bottom: 10px;
}

#pharmacy-finder-container > *:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   BREADCRUMBS
   ========================================================================== */
.pharmacy-breadcrumbs {
    margin: clamp(12px, 2vw, 20px) 0;
    padding: 0;
}

/* Integrated breadcrumb — first child of .pharmacy-city-header.
   Rendered as a full-width top strip with a subtle divider below.
   Scoped to the header so the standalone fallback (show_city_info="false")
   retains the original spacing above. */
.pharmacy-city-header > .pharmacy-breadcrumbs {
    margin: 0;
    padding: 5px clamp(0.75rem, 2vw, 1.25rem);
    border-bottom: 1px solid rgba(13, 148, 136, 0.15);
    text-align: left;
    position: relative;
    z-index: 2;
}

.breadcrumb-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
}

.breadcrumb-item {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    font-size: 12px;
    color: #64748b;
}

.breadcrumb-item::before {
    content: '›';
    margin: 0 2px;
    color: #cbd5e1;
    font-weight: 600;
    font-size: 12px;
}

.breadcrumb-item:first-child::before {
    content: none;
}

.breadcrumb-item a {
    color: #0d9488;
    text-decoration: none;
    padding: 1px 4px;
    border-radius: 4px;
    font-weight: 500;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 12px;
}

.breadcrumb-item a:hover {
    color: #0f766e;
    background-color: rgba(13, 148, 136, 0.08);
}

.breadcrumb-item.active span {
    color: #0f172a;
    font-weight: 700;
    padding: 1px 4px;
    background-color: rgba(13, 148, 136, 0.12);
    border-radius: 4px;
    font-size: 12px;
}

/* ==========================================================================
   CITY HEADER
   ========================================================================== */
/* [HIGHLIGHT-MODIFIED] Compact header: white, centered, light shadow
   (was a teal/pink gradient card with two decorative blobs). */
.pharmacy-city-header {
    background: #fff;
    padding: 0;
    border-radius: 16px;
    margin-bottom: 0rem 1.5rem;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
    border: 1px solid #e2e8f0;
    text-align: center; /* [HIGHLIGHT-MODIFIED] was left */
    position: relative;
    overflow: hidden;
}

/* [HIGHLIGHT-ADDED] Decorative blobs off for the compact header. */
.pharmacy-city-header::before,
.pharmacy-city-header::after {
    display: none;
}

.pharmacy-city-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(251, 113, 133, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.pharmacy-city-header::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(13, 148, 136, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

/* [HIGHLIGHT-MODIFIED] Full card width, tighter padding (was max-width 700px centered, 2.5rem 2rem). */
.city-title-section {
    max-width: none;
    margin: 0;
    padding: 1.5rem 1.75rem 1.25rem;
    position: relative;
    z-index: 1;
}

/* [HIGHLIGHT-ADDED] Tighter city header. Scoped to .pharmacy-city-header: .city-image-wrapper is
   also used by the quartier hero (.pharmacy-quartier-header), which must not change. */
.pharmacy-city-header .city-title-section {
    padding: 1.1rem 1.5rem 0.9rem; /* was 1.5rem 1.75rem 1.25rem */
}

.pharmacy-city-header .city-image-wrapper {
    margin-bottom: 0.5rem; /* generic rule: 0.75rem */
}

/* [HIGHLIGHT-MODIFIED] Solid colour, 1.75rem (was 2.25rem gradient text). */
.pharmacy-city-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.25rem;
    line-height: 1.25;
    letter-spacing: -0.01em;
}

/* [HIGHLIGHT-ADDED] Compact header lines. */
.pharmacy-city-period {
    margin: 4px 0 0;
    color: #475569;
    font-size: 0.95rem;
}

.pharmacy-city-status {
    margin: 12px 0 0; /* [HIGHLIGHT-MODIFIED] was 16px */
}

.pharmacy-city-status__count {
    display: flex;
    align-items: center;
    justify-content: center; /* [HIGHLIGHT-ADDED] centered header */
    gap: 8px;
    margin: 0;
    color: #0f172a;
    font-size: 1.15rem;
    font-weight: 700;
}

.pharmacy-city-status__count[hidden] {
    display: none;
}

.pharmacy-city-status__icon {
    flex: 0 0 auto;
    color: #16a34a;
}

.pharmacy-city-status__window {
    margin: 4px 0 0;
    color: #334155;
    font-size: 0.95rem;
}

.pharmacy-city-header .pharmacy-category-counts {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center; /* [HIGHLIGHT-ADDED] centered header */
    gap: 4px;
    margin: 12px 0 0; /* [HIGHLIGHT-MODIFIED] was 16px */
}

.pharmacy-city-header .pharmacy-category-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 40px;
    padding: 6px 14px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    color: #334155;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
}

.pharmacy-city-header .pharmacy-category-chip:hover {
    background: #f1f5f9;
}

.pharmacy-city-header .pharmacy-category-chip.is-active {
    border-color: #e2e8f0;
    background: #f1f5f9;
    color: #0f172a;
    font-weight: 600;
}

.pharmacy-city-header .pharmacy-category-chip .chip-count,
.pharmacy-city-header .pharmacy-category-chip.is-active .chip-count {
    padding: 0;
    background: none;
    font-size: inherit;
}

.pharmacy-city-header .pharmacy-category-chip.is-static,
.pharmacy-city-header .pharmacy-category-chip.is-static:hover {
    background: transparent;
    cursor: default;
}

.pharmacy-jump-to-list {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    background: #fff;
    color: #0f172a;
    text-decoration: none;
}

.pharmacy-jump-to-list:hover {
    background: #f1f5f9;
}

.pharmacy-updated-at {
    margin-left: 0; /* [HIGHLIGHT-MODIFIED] was auto (pushed right); header is centered */
    color: #64748b;
    font-size: 0.85rem;
}

/* WhatsApp share as a secondary text action inside the header. */
.pharmacy-city-header .pharmacy-whatsapp-share-btn {
    padding: 8px 4px;
    background: transparent;
    color: #0f172a;
    font-weight: 500;
    box-shadow: none;
}

.pharmacy-city-header .pharmacy-whatsapp-share-btn:hover,
.pharmacy-city-header .pharmacy-whatsapp-share-btn:focus {
    background: transparent;
    color: #128c7e;
    text-decoration: underline;
    transform: none;
}

/* English subtitle + intro paragraph (Marrakech city page only) */
.pharmacy-english-subtitle {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin: 12px 0 4px 0;
}

.pharmacy-english-intro {
    font-size: 0.95rem;
    color: #475569;
    margin: 0 0 12px 0;
    line-height: 1.5;
}

/* Delivery button wrapper inside city-title-section */
.city-header-delivery {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.city-header-delivery .delivery-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(37, 211, 102, 0.15);
    color: #065f3c;
    border: 1px solid rgba(37, 211, 102, 0.4);
    padding: 5px 14px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.78rem;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
    white-space: nowrap;
}

.city-header-delivery .delivery-button .delivery-button__icon i,
.city-header-delivery .delivery-button .delivery-button__icon svg {
    color: #25d366;
    fill: #25d366;
    flex-shrink: 0;
}

.city-header-delivery .delivery-button:hover {
    background: rgba(37, 211, 102, 0.28);
    border-color: rgba(37, 211, 102, 0.65);
    transform: translateY(-1px);
}

/* Floating delivery CTA — mobile only, fades in after scroll.
   Second copy of the header button, hidden by default on desktop. */
.delivery-float {
    display: none; /* desktop: never shown */
}

@media (max-width: 768px) {
    .delivery-float {
        display: block;
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: calc(12px + env(safe-area-inset-bottom));
        z-index: 500;
        opacity: 0;
        transform: translateY(20px);
        pointer-events: none;
        transition: opacity .25s ease, transform .25s ease;
    }
    .delivery-float.is-visible {
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }
    .delivery-float .delivery-button {
        display: flex;
        justify-content: center;
        width: 100%;
        padding: 12px 18px;
        border-radius: 16px;
        background: #25d366;
        color: #fff;
        border: none;
        font-size: 0.95rem;
        font-weight: 600;
        box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
    }
    .delivery-float .delivery-button .delivery-button__icon svg,
    .delivery-float .delivery-button .delivery-button__icon i {
        color: #fff;
        fill: #fff;
    }
    /* Spacer so the bar never covers page content at the end. */
    #pharmacy-finder-container {
        padding-bottom: 80px;
    }
}

/* Delivery order modal — hidden by default, no layout/paint/CLS cost. */
body.delivery-modal-open {
    overflow: hidden;
    scrollbar-gutter: stable;
}

.delivery-modal {
    display: none;
}

.delivery-modal.is-open {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 9990;
}

.delivery-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.delivery-modal__dialog {
    position: relative;
    max-width: 480px;
    max-height: min(90vh, 640px);
    margin: 5vh auto;
    overflow-y: auto;
    background: #fff;
    border-radius: 16px;
    padding: 24px 20px 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity .25s ease, transform .25s ease;
}

.delivery-modal.is-open .delivery-modal__dialog {
    opacity: 1;
    transform: translateY(0);
}

.delivery-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    min-height: 36px;
    border: none;
    background: #f1f5f9;
    border-radius: 50%;
    font-size: 1.3rem;
    line-height: 1;
    color: #64748b;
    cursor: pointer;
    transition: background .15s ease;
}

.delivery-modal__close:hover {
    background: #e2e8f0;
}

.delivery-modal__close:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

.delivery-modal__dialog h2 {
    margin: 0 0 16px;
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
}

.delivery-modal__fee {
    margin: 0 0 16px;
    padding: 8px 14px;
    background: #f0fdfa;
    border: 1px solid #ccfbf1;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #0d9488;
    line-height: 1.4;
}

.delivery-modal__form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.delivery-modal__form label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #334155;
}

.delivery-modal__form textarea,
.delivery-modal__form select {
    width: 100%;
    padding: 10px 12px;
    min-height: 44px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    color: #1e293b;
    background: #fff;
    box-sizing: border-box;
}

.delivery-modal__form textarea {
    resize: vertical;
    line-height: 1.5;
}

.delivery-modal__form textarea:focus-visible,
.delivery-modal__form select:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 1px;
    border-color: #2563eb;
}

.delivery-modal__hint {
    margin: -4px 0 0;
    font-size: 0.78rem;
    color: #94a3b8;
    line-height: 1.4;
}

.delivery-modal__optional {
    font-weight: 400;
    font-size: 0.78rem;
    color: #94a3b8;
}

.delivery-modal__submit {
    width: 100%;
    min-height: 44px;
    padding: 12px 18px;
    border: none;
    border-radius: 12px;
    background: #25d366;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s ease;
    margin-top: 4px;
}

.delivery-modal__submit:hover {
    background: #20bd5a;
}

.delivery-modal__submit:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

.delivery-modal__skip {
    display: block;
    width: 100%;
    margin-top: 12px;
    padding: 8px;
    border: none;
    background: transparent;
    color: #64748b;
    font-size: 0.85rem;
    text-decoration: underline;
    text-decoration-color: #cbd5e1;
    text-underline-offset: 3px;
    cursor: pointer;
    transition: color .15s ease;
}

.delivery-modal__skip:hover {
    color: #475569;
    text-decoration-color: #94a3b8;
}

/* Mobile: smaller margins, more compact. */
@media (max-width: 480px) {
    .delivery-modal__dialog {
        margin: 3vh 12px;
        padding: 20px 16px 16px;
    }
    .delivery-modal__dialog h2 {
        font-size: 1.1rem;
    }
}

/* Respect reduced motion. */
@media (prefers-reduced-motion: reduce) {
    .delivery-modal__dialog,
    .delivery-modal.is-open .delivery-modal__dialog {
        transition: none;
        transform: none;
    }
}

/* [HIGHLIGHT-REMOVED] .pharmacy-count-subtitle (city header count pill, replaced by .pharmacy-city-status). */

/* Prominent count badge (still used by the pharmacy directory pages) */
.pharmacy-count-badge {
    font-size: 1.1rem;
    font-weight: 700;
    padding: 8px 22px;
    box-shadow: 0 6px 18px rgba(13, 148, 136, 0.3);
    letter-spacing: 0.01em;
}

/* [HIGHLIGHT-MODIFIED] Action row below the filters: WhatsApp, jump-to-list, update time on the right
   (was centered count pill + WhatsApp). */
.city-header-actions {
    display: flex;
    align-items: center;
    justify-content: center; /* [HIGHLIGHT-MODIFIED] was flex-start */
    gap: 12px;
    flex-wrap: wrap;
    margin: 10px 0 0; /* [HIGHLIGHT-MODIFIED] was 14px 0 0 */
    padding-top: 8px; /* [HIGHLIGHT-MODIFIED] was 12px */
    border-top: 1px solid #f1f5f9;
}

/* [HIGHLIGHT-ADDED] Geolocation hero CTA basics (full rules in
   includes/pharmacy/services/Geolocalisation/assets/pharmacy-geolocation-nearby.css,
   which loads in the footer). Keeps the above-the-fold button styled on first paint. */
.pharmacy-geo-cta {
    position: relative;
    margin: 10px 0 4px; /* [HIGHLIGHT-MODIFIED] was 14px 0 6px */
}

/* [HIGHLIGHT-ADDED] Scoped copy: wins over the later-loading geo stylesheet. */
.pharmacy-city-header .pharmacy-geo-cta {
    margin: 10px 0 4px;
}

.pharmacy-city-header .pharmacy-geo-cta__hint {
    margin-top: 4px;
}

.pharmacy-geo-btn--hero {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 420px;
    margin: 0 auto; /* [HIGHLIGHT-ADDED] centered header */
    min-height: 52px;
    padding: 12px 22px;
    border: 0;
    border-radius: 14px;
    background: #0d9488;
    color: #fff;
    font: inherit;
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
}

.pharmacy-geo-cta__hint {
    margin: 4px 0 0; /* [HIGHLIGHT-MODIFIED] was 6px 0 0 */
    color: #475569;
    font-size: 0.85rem;
}

/* WhatsApp share button — compact header style */
.pharmacy-whatsapp-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 18px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
    background: #25D366;
    text-decoration: none;
    border-radius: 999px;
    transition: background 0.2s ease, transform 0.15s ease;
    line-height: 1.4;
}

.pharmacy-whatsapp-share-btn:hover,
.pharmacy-whatsapp-share-btn:focus {
    background: #1da851;
    transform: translateY(-1px);
}

.pharmacy-whatsapp-share-btn span {
    font-size: 1.1em;
}

.pharmacy-page-date {
    display: block;
    font-size: 0.95rem;
    color: #64748b;
    font-weight: 500;
    margin: 8px 0;
}

/* [HIGHLIGHT-MODIFIED] Smaller supporting line (was 1.1rem). */
.pharmacy-city-subtitle {
    font-size: 1rem;
    color: #475569;
    margin: 0;
    font-weight: 400;
}

/* [HIGHLIGHT-ADDED] dir="rtl" would right-align it inside the left-aligned header. */
.pharmacy-city-header .pharmacy-city-subtitle {
    text-align: center; /* [HIGHLIGHT-MODIFIED] was left */
}

/* [HIGHLIGHT-REMOVED] .pharmacy-live-badge ("En direct : Rotation active…"), merged into .pharmacy-city-status. */

.city-image-wrapper {
    margin-bottom: 0.75rem;
    text-align: center; /* [HIGHLIGHT-MODIFIED] back to center with the centered header */
    animation: fadeInScale 0.6s ease-out;
}

.city-image-wrapper .city-image {
    max-width: 180px;
    max-height: 120px;
    width: auto;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.12);
    background: #fff;
    padding: 4px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    object-fit: contain;
}

.city-image-wrapper .city-image:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 8px 20px rgba(13, 148, 136, 0.18);
}

.city-status-info {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px dashed rgba(13, 148, 136, 0.2);
}

.pharmacy-city-header .quartier-quick-links {
    margin: 18px auto 0;
    padding: 14px 16px;
    max-width: 100%;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(13, 148, 136, 0.14);
    border-radius: 14px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(8px);
}

.pharmacy-city-header .quartier-quick-links__title {
    margin-bottom: 10px;
    font-size: 14px;
}

/* [HIGHLIGHT-REMOVED] .update-time / .update-frequency pills (replaced by .pharmacy-updated-at). */

/* ==========================================================================
   SMART CITY NAVIGATION
   ========================================================================== */
.smart-city-navigation {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    margin: 20px 0;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.city-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    font-size: 15px;
    color: #475569;
    gap: 4px;
}

.breadcrumb-home a {
    color: #0d9488;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.25s ease;
}

.breadcrumb-home a:hover {
    color: #0f766e;
    text-decoration: underline;
}

.breadcrumb-separator {
    margin: 0 8px;
    color: #cbd5e1;
}

.current-city-name {
    font-weight: 700;
    color: #0f172a;
}

/* ==========================================================================
   QUARTIER QUICK LINKS (DROPDOWN)
   ========================================================================== */
.quartier-quick-links {
    margin: 16px 0;
    padding: 18px;
    background: linear-gradient(135deg, #f0fdfa 0%, #ecfeff 100%);
    border: 1px solid #ccfbf1;
    border-radius: 14px;
}

.quartier-quick-links__title {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
}

.quartier-quick-links__title i {
    color: #0d9488;
    font-size: 16px;
}

.quartier-dropdown {
    display: block;
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    padding: 12px 16px;
    font-size: 15px;
    font-weight: 600;
    color: #0f766e;
    background: #ffffff;
    border: 1.5px solid #99f6e4;
    border-radius: 10px;
    cursor: pointer;
    text-align: center;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%230d9488' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.quartier-dropdown:hover {
    border-color: #0d9488;
}

.quartier-dropdown:focus {
    outline: none;
    border-color: #0d9488;
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.2);
}

/* ==========================================================================
   [HIGHLIGHT-MODIFIED] QUARTIER HERO CARD (quartier pages)
   Replaces the .quartier-summary card: image, H1, Arabic subtitle, pills and
   FR/AR intro now share one card styled like .pharmacy-city-header.
   ========================================================================== */
.pharmacy-quartier-header {
    background: linear-gradient(135deg, #ecfeff 0%, #f0fdfa 50%, #fef3f2 100%);
    border: 1px solid rgba(13, 148, 136, 0.12);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(13, 148, 136, 0.08), 0 2px 6px rgba(13, 148, 136, 0.04);
    margin: 0 0 1.25rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.pharmacy-quartier-header .quartier-title-section {
    max-width: 760px;
    margin: 0 auto;
    padding: 1.5rem 1.5rem;
    position: relative;
    z-index: 1;
}

.pharmacy-quartier-header .city-image-wrapper {
    margin-bottom: 0.6rem;
}

.pharmacy-quartier-header .city-image-wrapper .city-image {
    max-width: 180px;
    max-height: 110px;
}

.pharmacy-quartier-title {
    font-size: clamp(1.35rem, 3vw, 2rem);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: #0f172a;
    margin: 0 0 0.35rem;
    text-align: center;
}

.pharmacy-quartier-subtitle {
    font-size: 1.05rem;
    font-weight: 600;
    color: #0f766e;
    margin: 0 0 0.6rem;
    text-align: center;
}

/* [HIGHLIGHT-MODIFIED] Date row + stacked stats (was inline pills). */
.quartier-hero__meta {
    margin: 0 0 0.25rem;
}

.quartier-hero__date {
    margin: 0 0 0.75rem;
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    background: #f1f5f9;
    color: #334155;
    border: 1px solid #e2e8f0;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.45;
    text-align: center;
}

.quartier-hero__date time {
    font-weight: 700;
}

.quartier-hero__stats {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px 20px;
}

.quartier-hero__stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-width: 7rem;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    text-align: center;
}

/* [HIGHLIGHT-MODIFIED] block + full width: Divi/theme inline spans were gluing "7pharmacies…". */
.pharmacy-quartier-header .quartier-hero__stat-value,
.pharmacy-quartier-header .quartier-hero__stat-label {
    display: block;
    width: 100%;
}

.quartier-hero__stat-value {
    font-size: clamp(1.75rem, 5vw, 2.25rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.quartier-hero__stat-label {
    margin-top: 0;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.35;
    max-width: 9rem;
}

.quartier-hero__stat--duty {
    background: #0d9488;
    color: #ffffff;
}

.quartier-hero__stat--duty .quartier-hero__stat-label {
    color: rgba(255, 255, 255, 0.92);
}

.quartier-hero__stat--open.is-open {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.quartier-hero__stat--open.is-none {
    background: #f8fafc;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.quartier-hero__intro {
    margin: 0.9rem 0 0;
    padding-top: 0.9rem;
    border-top: 1px solid rgba(13, 148, 136, 0.15);
    color: #334155;
}

.quartier-hero__intro p {
    margin: 0;
}

.quartier-hero__intro-fr {
    font-size: 0.95rem;
    line-height: 1.55;
}

.quartier-hero__intro-ar {
    margin-top: 8px !important;
    font-size: 1rem;
    line-height: 1.6;
    direction: rtl;
}

@media (max-width: 600px) {
    .pharmacy-quartier-header {
        border-radius: 14px;
        margin-bottom: 1rem;
    }

    .pharmacy-quartier-header .quartier-title-section {
        padding: 1rem 0.9rem;
    }

    .pharmacy-quartier-header .city-image-wrapper {
        margin-bottom: 0.4rem;
    }

    .pharmacy-quartier-header .city-image-wrapper .city-image {
        max-width: 120px;
        max-height: 72px;
    }

    .pharmacy-quartier-title {
        font-size: 1.3rem;
    }

    .pharmacy-quartier-subtitle {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
    }

    .quartier-hero__date {
        font-size: 0.85rem;
        margin-bottom: 0.6rem;
    }

    .quartier-hero__stats {
        gap: 10px 14px;
    }

    .quartier-hero__stat {
        min-width: 6.25rem;
        padding: 0.45rem 0.75rem;
    }

    .quartier-hero__stat-value {
        font-size: 1.65rem;
    }

    .quartier-hero__stat-label {
        font-size: 0.75rem;
    }

    .quartier-hero__intro {
        margin-top: 10px;
        padding-top: 10px;
    }

    .quartier-hero__intro-fr {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .quartier-hero__intro-ar {
        margin-top: 6px !important;
        font-size: 0.95rem;
        line-height: 1.55;
    }
}

/* ==========================================================================
   CITY HUB LINK (quartier empty-state)
   ========================================================================== */
.city-hub-link {
    margin: 20px 0 8px;
    text-align: center;
}

.city-hub-link a {
    display: inline-block;
    padding: 12px 28px;
    background: #0d9488;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 10px;
    transition: background 0.2s ease, transform 0.1s ease;
}

.city-hub-link a:hover {
    background: #0f766e;
    transform: translateY(-1px);
}

.city-hub-link a:active {
    transform: translateY(0);
}

/* ==========================================================================
   QUARTIER AUTHORITY PARAGRAPH
   ========================================================================== */
.quartier-authority-paragraph {
    margin: 24px 0 8px;
    padding: 18px 22px;
    background: #f8fafc;
    border-left: 4px solid #0d9488;
    border-radius: 0 12px 12px 0;
    color: #334155;
    font-size: 15px;
    line-height: 1.6;
}

/* ==========================================================================
   PHARMACY LIST UPDATE TIME
   ========================================================================== */
.pharmacy-list-update-time {
    margin: 14px 0 8px;
    color: #64748b;
    font-size: 13px;
    font-style: italic;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pharmacy-list-update-time i {
    color: #0d9488;
}

/* ==========================================================================
   QUARTIER SECTIONS
   ========================================================================== */
.quartier-section {
    margin: 32px 0;
    scroll-margin-top: 100px;
    display: flex;
    flex-wrap: wrap;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06), 0 2px 4px rgba(15, 23, 42, 0.03);
    background: #fff;
    border: 1px solid #e2e8f0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}


.quartier-section:hover {
    box-shadow: 0 12px 28px rgba(13, 148, 136, 0.1), 0 4px 8px rgba(13, 148, 136, 0.05);
    transform: translateY(-2px);
}

.quartier-section--highlight {
    outline: 3px solid #fb7185;
    box-shadow: 0 0 20px rgba(251, 113, 133, 0.4);
    transition: box-shadow 0.6s ease, outline 0.6s ease;
}

/* [HIGHLIGHT-ADDED] Quartier page: single H2 above the duty cards (replaces the per-section heading). */
.pharmacy-quartier-duty-title {
    margin: 28px 0 12px;
    font-size: 1.35rem;
    font-weight: 700;
    line-height: 1.3;
    color: #0f172a;
}

.pharmacy-quartier-duty-title + .quartier-section {
    margin-top: 0;
}

/* [HIGHLIGHT-ADDED] Quartier landing: single full-width list (no empty flex column / theme list markers). */
.quartier-section--duty-list {
    display: block;
}

.quartier-section--duty-list .quartier-duty-pharmacies {
    width: 100%;
    list-style: none !important;
    padding-left: 0;
    margin-left: 0;
}

.quartier-section--duty-list .quartier-duty-pharmacies > li {
    list-style: none !important;
    list-style-type: none !important;
}

.quartier-section--duty-list .quartier-duty-pharmacies > li::marker {
    content: none !important;
}

.quartier-duty-pharmacies .pharmacy-name-ar {
    display: block;
    margin-top: 0.25rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: #0f766e;
    line-height: 1.4;
}

/* [HIGHLIGHT-MODIFIED] Duty type and open-now on separate rows (block wrappers), not one inline run. */
.quartier-duty-pharmacies .pharmacy-header-badges {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
    width: 100%;
    margin-top: 0.5rem;
}

.quartier-duty-pharmacies .pharmacy-header-badge {
    display: block;
    width: 100%;
}

.quartier-duty-pharmacies .pharmacy-header-badge .pharmacy-status,
.quartier-duty-pharmacies .pharmacy-header-badge .pharmacy-open-badge {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
}

.quartier-duty-pharmacies .pharmacy-header-badge--duty .pharmacy-status {
    text-transform: none;
    letter-spacing: 0;
}

.quartier-duty-pharmacies .pharmacy-header-badge--duty .pharmacy-status.is-garde::before {
    display: none;
}

.quartier-duty-pharmacies .pharmacy-open-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.35;
    margin: 0;
    white-space: normal;
}

.quartier-duty-pharmacies .pharmacy-open-badge.is-open {
    background: #e6f4ea;
    color: #1e7e34;
    border: 1px solid #b7dfc1;
}

.quartier-duty-pharmacies .pharmacy-open-badge.is-closed {
    background: #fdecea;
    color: #c0392b;
    border: 1px solid #f5c6cb;
}

.quartier-duty-pharmacies .pharmacy-header {
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.quartier-duty-pharmacies .pharmacy-duty-schedule {
    margin-top: 0.25rem;
}

.quartier-duty-pharmacies .pharmacy-duty-schedule__label {
    margin: 0 0 0.35rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
}

.quartier-duty-pharmacies .pharmacy-duty-schedule .pharmacy-horaires {
    margin-top: 0;
}

.quartier-duty-pharmacies .pharmacy-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: stretch;
}

.quartier-duty-pharmacies .pharmacy-actions .btn,
.quartier-duty-pharmacies .pharmacy-actions .pharmacy-report-btn.btn {
    flex: 1 1 calc(50% - 10px);
    min-height: 44px;
    min-width: 8.5rem;
    box-sizing: border-box;
}

.quartier-heading {
    background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
    color: #fff;
    padding: 24px 25px;
    margin: 0;
    font-size: 1.35em;
    font-weight: 700;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 30%;
    min-width: 200px;
    gap: 10px;
    position: relative;
    overflow: hidden;
}

.quartier-heading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.quartier-heading i {
    color: #ccfbf1;
    font-size: 1.4em;
    background: rgba(255, 255, 255, 0.15);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* **[HIGHLIGHT-ADDED]** Arabic quartier subtitle on city finder section headers. */
.quartier-heading__label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    line-height: 1.25;
}

.quartier-heading__name-ar {
    font-size: 0.82em;
    font-weight: 500;
    color: #ccfbf1;
}

.quartier-heading__count {
    font-size: 0.82em;
    font-weight: 500;
    opacity: 0.95;
}

.quartier-pharmacies {
    background: #fff;
    padding: 24px;
    margin: 0;
    width: 70%;
    flex: 1;
    display: flex;
    flex-direction: column;
    list-style: none;
    gap: 20px;
}

/* ==========================================================================
   PHARMACY CARDS
   ========================================================================== */
.pharmacy-card {
    background: #fff;
    display: flex;
    flex-direction: column;
    position: relative;
    width: 100%;
}

.quartier-pharmacies .pharmacy-card {
    padding: 22px 22px 22px 28px;
    gap: 16px;
    border-radius: 12px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid #e2e8f0;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.quartier-pharmacies .pharmacy-card:hover {
    border-color: #14b8a6;
    box-shadow: 0 8px 20px rgba(13, 148, 136, 0.1);
    transform: translateY(-2px);
}

.quartier-pharmacies .pharmacy-card::before {
    content: '';
    position: absolute;
    top: 12px;
    left: 0;
    width: 5px;
    height: calc(100% - 24px);
    background: linear-gradient(180deg, #0d9488 0%, #14b8a6 100%);
    border-radius: 0 4px 4px 0;
}

.pharmacy-header {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
}

.pharmacy-name {
    font-size: 1.4rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
    margin: 0;
    letter-spacing: -0.01em;
}

/* [HIGHLIGHT-ADDED] Profile name link — inherit heading color; underline on hover/focus only. */
.pharmacy-name-link {
    color: inherit;
    text-decoration: none;
}

.pharmacy-name-link:hover,
.pharmacy-name-link:focus {
    text-decoration: underline;
}

.pharmacy-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background-color: #cffafe;
    color: #155e75;
    align-self: flex-start;
}

.pharmacy-status.is-garde {
    background: linear-gradient(135deg, #dcfce7 0%, #bbf7d0 100%);
    color: #166534;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 0.82rem;
    text-transform: none;
    letter-spacing: 0;
    font-weight: 600;
    position: relative;
}

.pharmacy-status.is-garde::before {
    content: '●';
    color: #22c55e;
    animation: pulse 2s infinite;
}

.pharmacy-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 18px;
}

.pharmacy-info p {
    margin: 0;
    line-height: 1.6;
    color: #475569;
    font-size: 0.95rem;
}

.pharmacy-info p strong {
    color: #0f172a;
    font-weight: 600;
    display: inline-block;
    min-width: 90px;
}

.pharmacy-phone a {
    color: #0d9488;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.pharmacy-phone a:hover {
    color: #0f766e;
    text-decoration: underline;
}

/* Horaires chip — moon/clock icon + time range, color tied to open-now state.
   Classes and layout mirror .pharmacy-open-badge/.pharmacy-status pills. */
.pharmacy-horaires {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    margin: 6px 0 0;
    align-self: flex-start;
    /* Neutral default when the open-now state can't be determined. */
    background: #f1efe8;
    border: 1px solid #e4e1d6;
    color: #5f5e5a;
}
.pharmacy-horaires .chip-icon-arrow { width: 12px; height: 12px; opacity: 0.7; flex-shrink: 0; }
.pharmacy-horaires .chip-icon { flex-shrink: 0; }
.pharmacy-horaires.is-open {
    background: #e1f5ee;
    border: 1px solid #9fe1cb;
    color: #085041;
}
.pharmacy-horaires.is-closed {
    background: #f1efe8;
    border: 1px solid #e4e1d6;
    color: #5f5e5a;
}

/* ==========================================================================
   PHARMACY ACTIONS / BUTTONS
   ========================================================================== */
.pharmacy-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px dashed #e2e8f0;
}

.pharmacy-actions .btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 18px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1.5px solid transparent;
    cursor: pointer;
}

.pharmacy-actions .btn-primary {
    background: linear-gradient(135deg, #0d9488 0%, #14b8a6 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.25);
}

.pharmacy-actions .btn-primary:hover {
    background: linear-gradient(135deg, #0f766e 0%, #0d9488 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(13, 148, 136, 0.35);
}

.pharmacy-actions .btn-outline {
    background-color: #fff;
    color: #0d9488;
    border-color: #0d9488;
}

.pharmacy-actions .btn-outline:hover {
    background: linear-gradient(135deg, #0d9488 0%, #14b8a6 100%);
    color: #fff;
    border-color: #0d9488;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.25);
}

.pharmacy-report-btn {
    order: 10;
    flex-basis: 100%;
    width: fit-content;
    background: transparent;
    border: none;
    padding: 0;
    font: inherit;
    text-decoration: underline;
    text-decoration-style: dashed;
    text-decoration-color: #ccc;
    text-underline-offset: 2px;
    margin-top: 6px;
    font-size: 0.68rem;
    color: #b0b0b0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.4;
    transition: color 0.15s ease, text-decoration-color 0.15s ease;
}

/* [HIGHLIGHT-ADDED] On quartier cards, match Localiser / Appeler outline buttons. */
.quartier-duty-pharmacies .pharmacy-actions .pharmacy-report-btn.btn {
    margin-top: 0;
    padding: 11px 18px;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    text-decoration: none;
    color: #0d9488;
    border: 1.5px solid #0d9488;
    border-radius: 10px;
    background: #fff;
    justify-content: center;
    order: 0;
    flex-basis: auto;
    width: auto;
}

.quartier-duty-pharmacies .pharmacy-actions .pharmacy-report-btn.btn:hover:not(:disabled) {
    background: linear-gradient(135deg, #0d9488 0%, #14b8a6 100%);
    color: #fff;
    border-color: #0d9488;
}

.pharmacy-report-btn i {
    font-size: 0.7rem;
    text-decoration: none;
}

.pharmacy-report-btn:hover:not(:disabled) {
    color: #e74c3c;
    text-decoration-color: #e74c3c;
}

.pharmacy-report-btn:disabled {
    cursor: default;
    opacity: 0.75;
}

.pharmacy-report-btn.report-sending {
    pointer-events: none;
}

/* [HIGHLIGHT-ADDED] Page accuracy feedback (below roster) */
.ph-page-feedback {
    margin: 20px 10px 8px;
    padding: 14px 16px;
    border: 1px solid #e9ecef;
    border-radius: 10px;
    background: #f8f9fa;
}
.ph-page-feedback__prompt {
    margin: 0 0 10px;
    font-size: 0.9rem;
    color: #495057;
    line-height: 1.5;
}
.ph-page-feedback__prompt-ar {
    display: inline-block;
    margin-inline-start: 0.35em;
    color: #6c757d;
    font-size: 0.88rem;
}
.ph-page-feedback__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.ph-page-feedback-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    background: #fff;
    color: #343a40;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
}
.ph-page-feedback__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.ph-page-feedback-chip {
    padding: 6px 12px;
    border: 1px solid #dee2e6;
    border-radius: 999px;
    background: #fff;
    color: #495057;
    font-size: 0.8rem;
    cursor: pointer;
}
.ph-page-feedback__thanks {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: #198754;
}
.pharmacy-report-error-container {
    text-align: right;
    margin-top: 16px;
    padding: 0 10px;
}
.pharmacy-report-error-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.75rem;
    color: #868e96;
    text-decoration: none;
    font-weight: 500;
}
.pharmacy-report-error-link.is-highlighted {
    color: #2ea3f2;
    text-decoration: underline;
}

/* ==========================================================================
   REPORT ERROR — BOTTOM SHEET
   ========================================================================== */

/* Backdrop */
.ph-report-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(2px);
    z-index: 9998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.ph-report-backdrop.is-open {
    opacity: 1;
    pointer-events: auto;
}

/* Bottom sheet panel */
.ph-report-sheet {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #fff;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.18);
    padding: 0 0 env(safe-area-inset-bottom, 0);
    transform: translateY(100%);
    transition: transform 0.32s cubic-bezier(0.34, 1.10, 0.64, 1);
    max-width: 540px;
    margin: 0 auto;
}

.ph-report-sheet.is-open {
    transform: translateY(0);
}

/* Drag handle */
.ph-report-sheet__handle {
    width: 40px;
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    margin: 14px auto 0;
}

/* Sheet header */
.ph-report-sheet__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px 12px;
    border-bottom: 1px solid #f1f5f9;
}

.ph-report-sheet__title {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.ph-report-sheet__title i {
    color: #e74c3c;
    font-size: 0.9rem;
}

.ph-report-sheet__pharmacy-name {
    font-size: 0.78rem;
    color: #64748b;
    font-weight: 400;
    padding: 0 20px 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Close button */
.ph-report-sheet__close {
    background: #f1f5f9;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #64748b;
    font-size: 0.85rem;
    flex-shrink: 0;
    transition: background 0.15s ease, color 0.15s ease;
}

.ph-report-sheet__close:hover {
    background: #fee2e2;
    color: #e74c3c;
}

/* Checkboxes */
.ph-report-sheet__options {
    padding: 14px 20px 6px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ph-report-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
    user-select: none;
    -webkit-user-select: none;
}

.ph-report-option:hover {
    border-color: #fca5a5;
    background: #fff5f5;
}

.ph-report-option input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #cbd5e1;
    border-radius: 6px;
    flex-shrink: 0;
    position: relative;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.ph-report-option input[type="checkbox"]:checked {
    background: #e74c3c;
    border-color: #e74c3c;
}

.ph-report-option input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 6px;
    width: 5px;
    height: 9px;
    border: 2px solid #fff;
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}

.ph-report-option:has(input:checked) {
    border-color: #fca5a5;
    background: #fff5f5;
}

.ph-report-option__emoji {
    font-size: 1.1rem;
    line-height: 1;
    flex-shrink: 0;
}

.ph-report-option__label {
    font-size: 0.875rem;
    color: #334155;
    font-weight: 500;
    line-height: 1.3;
}

/* Correction input fields */
.ph-report-correction {
    width: 100%;
    padding: 10px 14px;
    margin-bottom: 8px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 0.875rem;
    color: #334155;
    background: #f8fafc;
    box-sizing: border-box;
    transition: border-color 0.15s ease;
}
.ph-report-correction:focus {
    outline: none;
    border-color: #168eb2;
    background: #fff;
}
.ph-report-correction::placeholder {
    color: #94a3b8;
}

/* Time-range correction (horaires de garde) */
.ph-report-correction--range {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.ph-report-correction--range .ph-report-time {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
    min-width: 130px;
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 600;
}
.ph-report-correction--range .ph-report-time input[type="time"] {
    flex: 1;
    min-width: 0;
    padding: 8px 10px;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.875rem;
    color: #334155;
    background: #fff;
    box-sizing: border-box;
    transition: border-color 0.15s ease;
}
.ph-report-correction--range .ph-report-time input[type="time"]:focus {
    outline: none;
    border-color: #168eb2;
}

/* Action buttons */
.ph-report-sheet__actions {
    display: flex;
    gap: 10px;
    padding: 16px 20px 20px;
}

.ph-report-sheet__cancel {
    flex: 1;
    padding: 13px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    background: transparent;
    color: #64748b;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease;
}

.ph-report-sheet__cancel:hover {
    background: #f8fafc;
}

.ph-report-sheet__send {
    flex: 2;
    padding: 13px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    transition: opacity 0.15s ease, transform 0.15s ease;
    box-shadow: 0 4px 14px rgba(231, 76, 60, 0.35);
}

.ph-report-sheet__send:hover:not(:disabled) {
    opacity: 0.9;
    transform: translateY(-1px);
}

.ph-report-sheet__send:disabled {
    opacity: 0.55;
    cursor: default;
    transform: none;
}

/* Success / error state inside button */
.ph-report-sheet__send.send-success {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    box-shadow: 0 4px 14px rgba(22, 163, 74, 0.35);
}

/* WhatsApp send section */
.ph-report-sheet__whatsapp {
    padding: 0 20px 20px;
    text-align: center;
}
.ph-report-sheet__wa-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.15s ease, transform 0.15s ease;
    box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}
.ph-report-sheet__wa-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}
.ph-report-sheet__wa-hint {
    margin: 8px 0 0;
    font-size: 0.75rem;
    color: #94a3b8;
    line-height: 1.3;
}

/* Propose-fix link */
.ph-report-sheet__propose {
    padding: 2px 20px 14px;
    text-align: center;
}

.ph-report-propose-link {
    font-size: 0.8rem;
    color: #0d9488;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border-bottom: 1px dashed #99f6e4;
    padding-bottom: 1px;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.ph-report-propose-link:hover {
    color: #0f766e;
    border-color: #0d9488;
}

.ph-report-propose-link i {
    font-size: 0.75rem;
}

/* ==========================================================================
   END REPORT ERROR — BOTTOM SHEET
   ========================================================================== */

/* ==========================================================================
   INTRO & INFO BANNERS
   ========================================================================== */
.pharmacy-intro {
    background: linear-gradient(135deg, #ffffff 0%, #f0fdfa 100%);
    border: 1px solid #ccfbf1;
    border-left: 4px solid #0d9488;
    border-radius: 12px;
    /* [HIGHLIGHT-MODIFIED] was padding: 20px 24px; margin: 18px 0 — tighter so the
       two-sentence intro does not push the pharmacy cards down. */
    padding: 14px 18px;
    margin: 12px 0;
    font-size: 16px;
    line-height: 1.6;
    animation: fadeInUp 0.6s ease-out;
    box-shadow: 0 2px 8px rgba(13, 148, 136, 0.05);
}

/* [HIGHLIGHT-ADDED] Dynamic French intro paragraph inside .pharmacy-intro. */
.pharmacy-intro .pharmacy-dynamic-intro {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #334155;
}

/* [HIGHLIGHT-ADDED] Marrakech English block, now below the pharmacy list. */
.pharmacy-en-seo .pharmacy-english-subtitle {
    margin-top: 0;
}

.pharmacy-en-seo .pharmacy-english-intro {
    margin-bottom: 0;
}

.pharmacy-intro__title {
    color: #0f172a;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pharmacy-intro__title i {
    color: #0d9488;
}

.pharmacy-intro__lead,
.pharmacy-intro__stats {
    margin: 8px 0;
    color: #475569;
}

.pharmacy-intro strong {
    color: #0f766e;
    font-weight: 700;
}

.pharmacy-availability-highlight {
    background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 100%);
    border: 1px solid #99f6e4;
    border-left: 5px solid #0d9488;
    padding: 22px 26px;
    margin: 18px 0;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.08);
    animation: fadeInUp 0.6s ease-out;
}

.pharmacy-availability-highlight h2 {
    color: #0f172a;
    margin: 0 0 10px;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pharmacy-availability-highlight i {
    color: #0d9488;
}

.pharmacy-availability-highlight p {
    color: #334155;
    margin: 6px 0;
}

.pharmacy-availability-highlight strong {
    color: #0f766e;
    font-weight: 700;
}

/* ==========================================================================
   CITY QUARTIER SITELINKS
   ========================================================================== */
.city-quartier-sitelinks {
    position: relative;
    overflow: hidden;
    margin: 16px 0 10px;
    padding: 16px;
    background:
        radial-gradient(circle at 14px 18px, rgba(13, 148, 136, 0.18) 0 2px, transparent 3px),
        radial-gradient(circle at 78% 28%, rgba(14, 165, 233, 0.14) 0 3px, transparent 4px),
        linear-gradient(135deg, rgba(13, 148, 136, 0.08) 0 25%, transparent 25% 50%, rgba(13, 148, 136, 0.05) 50% 75%, transparent 75%),
        #f8fafc;
    background-size: auto, auto, 34px 34px, auto;
    border: 1px solid #dbeafe;
    border-radius: 16px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.75);
}

.city-quartier-sitelinks::before {
    content: '';
    position: absolute;
    inset: 46px 18px auto 18px;
    height: 44px;
    border-top: 2px dashed rgba(13, 148, 136, 0.18);
    border-radius: 999px;
    transform: rotate(-2deg);
    pointer-events: none;
}

.city-quartier-sitelinks__title {
    position: relative;
    z-index: 1;
    font-size: 1rem;
    font-weight: 800;
    margin: 0 0 12px;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.city-quartier-sitelinks__title i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #0d9488;
    color: #ffffff;
    font-size: 0.82em;
    box-shadow: 0 6px 14px rgba(13, 148, 136, 0.24);
}

.city-quartier-sitelinks__list {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.city-quartier-sitelinks__item {
    position: relative;
    margin: 0;
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(13, 148, 136, 0.18);
    border-radius: 999px;
    padding: 7px 7px 7px 30px;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.city-quartier-sitelinks__item::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 50%;
    width: 10px;
    height: 10px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    background: #0d9488;
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.14);
    transform: translateY(-50%);
}

.city-quartier-sitelinks__item:hover {
    transform: translateY(-1px);
    background: #ffffff;
    border-color: rgba(13, 148, 136, 0.42);
    box-shadow: 0 10px 22px rgba(13, 148, 136, 0.14);
}

.city-quartier-sitelinks__page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    margin-left: 8px;
    border-radius: 50%;
    color: #64748b;
    font-size: 0.62rem;
    text-decoration: none;
    background: #f1f5f9;
    transition: background 0.15s, color 0.15s, transform 0.15s;
}

.city-quartier-sitelinks__page:hover {
    background: #0d9488;
    color: #ffffff;
    transform: scale(1.06);
}

.city-quartier-sitelinks__link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    color: #1e293b;
    font-weight: 700;
    font-size: 0.9rem;
    line-height: 1;
}

.city-quartier-sitelinks__item:hover .city-quartier-sitelinks__link {
    color: #0d9488;
}

.city-quartier-sitelinks__link .link-name-ar {
    color: #64748b;
    font-size: 0.88em;
    font-weight: 500;
}

@media (max-width: 480px) {
    .city-quartier-sitelinks {
        padding: 13px;
        border-radius: 14px;
    }
    .city-quartier-sitelinks::before {
        display: none;
    }
    .city-quartier-sitelinks__item {
        padding: 6px 6px 6px 27px;
    }
    .city-quartier-sitelinks__link {
        font-size: 0.85rem;
    }
    .city-quartier-sitelinks__page {
        width: 20px;
        height: 20px;
    }
}

/* ==========================================================================
   INTERNAL LINKS / SERVICES
   ========================================================================== */
.internal-links-section {
    margin: clamp(30px, 4vw, 50px) 0;
    display: flex;
    flex-direction: column;
    gap: clamp(24px, 3vw, 36px);
}

.pharmacy-services-section,
.all-cities-section {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: clamp(22px, 3vw, 32px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.pharmacy-services-section::before,
.all-cities-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background: linear-gradient(180deg, #0d9488 0%, #fb7185 100%);
}

.pharmacy-services-section:hover,
.all-cities-section:hover {
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
    transform: translateY(-3px);
    border-color: #99f6e4;
}

.internal-links-section h3 {
    color: #0f172a;
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    font-weight: 700;
    margin: 0 0 clamp(14px, 1.5vw, 20px);
    display: flex;
    align-items: center;
    gap: 12px;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.internal-links-section p {
    color: #64748b;
    margin: 0 0 clamp(16px, 2vw, 22px);
    line-height: 1.7;
    font-size: clamp(14px, 1.5vw, 16px);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: clamp(12px, 1.5vw, 16px);
}

.service-link,
.resource-link {
    display: flex;
    align-items: center;
    padding: clamp(14px, 1.5vw, 18px) clamp(16px, 2vw, 22px);
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    text-decoration: none;
    color: #0f172a;
    font-weight: 600;
    font-size: clamp(13px, 1.4vw, 15px);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
    position: relative;
    overflow: hidden;
}

.service-link::after,
.resource-link::after {
    content: '→';
    margin-left: auto;
    color: #0d9488;
    font-weight: 700;
    transition: transform 0.25s ease;
}

.service-link:hover,
.resource-link:hover {
    background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 100%);
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(13, 148, 136, 0.12);
    border-color: #0d9488;
    color: #0f766e;
}

.service-link:hover::after,
.resource-link:hover::after {
    transform: translateX(4px);
}

.service-link:focus,
.resource-link:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.3);
}

/* ==========================================================================
   QUICK LINKS PILLS
   ========================================================================== */
.pharmacy-quick-links {
    padding: 16px 18px;
    border-radius: 14px;
    background: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 100%);
    border: 1px solid #fecdd3;
    margin: 16px 0;
}

.pharmacy-quick-links__list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.pharmacy-quick-links__link {
    display: inline-flex;
    align-items: center;
    padding: 10px 16px;
    border-radius: 999px;
    background: #ffffff;
    color: #be123c;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    border: 1.5px solid #fecdd3;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(190, 18, 60, 0.05);
}

.pharmacy-quick-links__link:hover,
.pharmacy-quick-links__link:focus {
    background: linear-gradient(135deg, #fb7185 0%, #e11d48 100%);
    color: #fff;
    border-color: #e11d48;
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(225, 29, 72, 0.3);
}

.pharmacy-quick-links__item:first-child .pharmacy-quick-links__link::before {
    content: "⚡";
    margin-right: 6px;
}

/* ==========================================================================
   GOOGLE SITELINKS NAVIGATION
   ========================================================================== */
.google-sitelinks-navigation {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    margin: 20px 0;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.sitelink-section h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 16px;
    color: #0f172a;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0fdfa;
}

.sitelink-section h2 a {
    color: #0d9488;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sitelink-section h2 a:hover {
    color: #0f766e;
}

.pharmacy-names-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.pharmacy-names-list li a {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    background: #f8fafc;
    color: #0f172a;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    border-left: 3px solid transparent;
    transition: all 0.2s ease;
}

.pharmacy-names-list li a:hover {
    background: #f0fdfa;
    border-left-color: #0d9488;
    color: #0f766e;
    transform: translateX(2px);
}

/* ==========================================================================
   HOSPITAL TABLE (Desktop)
   ========================================================================== */
.rw-hosp-section {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
    padding: 2rem;
    margin: 1.5rem 0;
    border: 1px solid #e2e8f0;
}

.rw-hosp-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.rw-hosp-table thead {
    background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%) !important;
}

.rw-hosp-row {
    transition: background 0.2s ease;
}

.rw-hosp-row:hover {
    background: #f0fdfa;
}

/* ==========================================================================
   PROMO BANNER
   ========================================================================== */
.pharmacy-promo-banner {
    background: linear-gradient(135deg, #f0fdfa 0%, #ccfbf1 100%) !important;
    border: 1px solid #99f6e4 !important;
    color: #0f766e !important;
}

.pharmacy-promo-banner a {
    color: #0f766e !important;
}

/* ==========================================================================
   RESPONSIVE - TABLET (≤768px)
   ========================================================================== */
@media (max-width: 768px) {
    .pharmacy-city-header {
        border-radius: 16px;
    }

    .pharmacy-city-header > .pharmacy-breadcrumbs {
        padding: 5px 1rem;
    }

    .city-title-section {
        padding: 1rem 1.25rem;
    }

    .pharmacy-city-title {
        font-size: 1.4rem; /* [HIGHLIGHT-MODIFIED] was 1.5rem */
    }

    .pharmacy-english-subtitle {
        font-size: 1.05rem;
    }

    .pharmacy-english-intro {
        font-size: 0.875rem;
    }

    .pharmacy-city-subtitle {
        font-size: 1rem;
    }

    .city-image-wrapper .city-image {
        max-width: 140px;
        max-height: 90px;
    }

    .city-image-wrapper {
        margin-bottom: 0.5rem;
    }

    /* [HIGHLIGHT-ADDED] City header only (quartier hero keeps the rules above / its own). */
    .pharmacy-city-header .city-title-section {
        padding: 0.75rem 1.1rem; /* generic: 1rem 1.25rem */
    }

    .pharmacy-city-header .city-image-wrapper .city-image {
        max-width: 110px; /* generic: 140px */
        max-height: 70px; /* generic: 90px */
    }

    .pharmacy-city-header .city-image-wrapper {
        margin-bottom: 0.35rem; /* generic: 0.5rem */
    }

    .city-header-actions {
        gap: 10px;
        margin: 10px 0 2px;
    }

    .pharmacy-count-badge {
        font-size: 1rem;
        padding: 7px 18px;
    }

    .pharmacy-whatsapp-share-btn {
        padding: 7px 14px;
        font-size: 0.85rem;
    }

    /* [HIGHLIGHT-REMOVED] .pharmacy-duty-window (merged into .pharmacy-city-status). */
    .pharmacy-city-status__count {
        font-size: 1.05rem;
    }

    /* [HIGHLIGHT-ADDED] Geolocation CTA spans the card on tablets / phones. */
    .pharmacy-geo-btn--hero {
        max-width: none;
    }

    .city-status-info {
        margin-top: 0.75rem;
        padding-top: 0.75rem;
    }

    .quartier-section {
        flex-direction: column;
        scroll-margin-top: 80px;
    }

    .quartier-heading {
        width: 100%;
        padding: 16px 20px;
        font-size: 1.2em;
        flex-direction: row;
        justify-content: flex-start;
    }

    .quartier-heading i {
        margin-right: 4px;
        width: 38px;
        height: 38px;
        font-size: 1.1em;
    }

    .quartier-pharmacies {
        width: 100%;
        padding: 18px 14px;
        gap: 16px;
    }

    .pharmacy-name {
        font-size: 1.25rem;
    }

    /* Hospital table → Card view */
    .rw-hosp-table thead {
        display: none;
    }

    .rw-hosp-table,
    .rw-hosp-table tbody,
    .rw-hosp-table tr {
        display: block;
        width: 100%;
    }

    .rw-hosp-row {
        margin-bottom: 1.25rem;
        background: #fff;
        border: 1px solid #e2e8f0;
        border-radius: 12px;
        box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
        overflow: hidden;
    }

    .desktop-only {
        display: none !important;
    }

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

/* ==========================================================================
   RESPONSIVE - MOBILE (≤480px)
   ========================================================================== */
@media (max-width: 480px) {
    .pharmacy-city-header > .pharmacy-breadcrumbs {
        padding: 4px 0.875rem;
    }

    .breadcrumb-item,
    .breadcrumb-item a,
    .breadcrumb-item.active span,
    .breadcrumb-item::before {
        font-size: 11px;
    }

    .breadcrumb-item a,
    .breadcrumb-item.active span {
        padding: 1px 3px;
    }

    .breadcrumb-item::before {
        margin: 0 2px;
    }

    .city-title-section {
        padding: 1rem 0.875rem;
    }

    .pharmacy-city-title {
        font-size: 1.25rem;
        line-height: 1.3;
    }

    .pharmacy-english-subtitle {
        font-size: 0.95rem;
    }

    .pharmacy-english-intro {
        font-size: 0.825rem;
    }

    .pharmacy-city-subtitle {
        font-size: 0.85rem;
    }

    .city-image-wrapper .city-image {
        max-width: 110px;
        max-height: 75px;
    }

    .city-image-wrapper {
        margin-bottom: 0.4rem;
    }

    /* [HIGHLIGHT-ADDED] City header only (quartier hero keeps the rules above / its own). */
    .pharmacy-city-header .city-title-section {
        padding: 0.75rem 0.875rem; /* generic: 1rem 0.875rem */
    }

    .pharmacy-city-header .city-image-wrapper .city-image {
        max-width: 80px; /* generic: 110px */
        max-height: 52px; /* generic: 75px */
    }

    .pharmacy-city-header .city-image-wrapper {
        margin-bottom: 0.3rem; /* generic: 0.4rem */
    }

    /* [HIGHLIGHT-MODIFIED] Stays one wrapping row (was a column with a full-width WhatsApp button);
       the update time drops to its own line. */
    .city-header-actions {
        gap: 8px;
        margin: 8px 0 0; /* [HIGHLIGHT-MODIFIED] was 12px 0 0 */
    }

    .pharmacy-updated-at {
        flex: 1 0 100%;
        margin-left: 0;
    }

    .pharmacy-count-badge {
        font-size: 0.95rem;
        padding: 6px 16px;
    }

    .pharmacy-whatsapp-share-btn {
        padding: 7px 14px;
        font-size: 0.82rem;
    }

    .pharmacy-city-header .pharmacy-category-counts {
        gap: 2px;
    }

    .pharmacy-city-header .pharmacy-category-chip {
        min-height: 36px; /* [HIGHLIGHT-ADDED] base: 40px */
        padding: 6px 7px;
        font-size: 0.86rem;
    }

    .pharmacy-geo-btn--hero {
        min-height: 46px; /* [HIGHLIGHT-ADDED] base: 52px */
        padding: 8px 16px; /* [HIGHLIGHT-MODIFIED] was 12px 16px */
        font-size: 1rem;
    }

    /* [HIGHLIGHT-REMOVED] .pharmacy-duty-window (merged into .pharmacy-city-status). */

    .pharmacy-page-date {
        font-size: 0.85rem;
        margin: 4px 0;
    }

    .city-status-info {
        margin-top: 0.5rem;
        padding-top: 0.5rem;
        font-size: 0.8rem;
    }

    .quartier-section {
        margin: 20px 0;
        scroll-margin-top: 60px;
        border-radius: 12px;
    }

    .quartier-heading {
        padding: 14px 16px;
        font-size: 1.05em;
    }

    .quartier-pharmacies {
        padding: 14px 12px;
    }

    .quartier-pharmacies .pharmacy-card {
        padding: 18px 16px 18px 22px;
        gap: 12px;
    }

    .pharmacy-name {
        font-size: 1.15rem;
    }

    .pharmacy-info p strong {
        min-width: 75px;
    }

    .quartier-dropdown {
        max-width: 100%;
        font-size: 14px;
        padding: 10px 14px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .pharmacy-actions {
        flex-direction: column;
        gap: 8px;
    }

    h1.entry-title.main_title {
        display: none;
    }

    #main-content .container {
        padding: 0 !important;
    }
}

/* ==========================================================================
   RESPONSIVE - EXTRA SMALL (≤360px)
   ========================================================================== */
@media (max-width: 360px) {
    .city-image-wrapper .city-image {
        max-width: 90px;
        max-height: 60px;
    }

    /* [HIGHLIGHT-ADDED] City header only. The padding repeats the generic 360px value, because the
       scoped 480px rule above is more specific and would otherwise win here. */
    .pharmacy-city-header .city-image-wrapper .city-image {
        max-width: 70px; /* generic: 90px */
        max-height: 46px; /* generic: 60px */
    }

    .pharmacy-city-header .city-title-section {
        padding: 0.75rem 0.625rem;
    }

    .pharmacy-city-header > .pharmacy-breadcrumbs {
        padding: 3px 0.5rem;
    }

    .breadcrumb-list {
        gap: 0;
    }

    .breadcrumb-item,
    .breadcrumb-item a,
    .breadcrumb-item.active span,
    .breadcrumb-item::before {
        font-size: 9px;
    }

    .breadcrumb-item a,
    .breadcrumb-item.active span {
        padding: 0 1px;
    }

    .breadcrumb-item::before {
        margin: 0 1px;
    }

    .city-title-section {
        padding: 0.75rem 0.625rem;
    }

    .pharmacy-city-title {
        font-size: 1.1rem;
    }

    .pharmacy-city-subtitle {
        font-size: 0.8rem;
    }

    .pharmacy-count-badge {
        font-size: 0.88rem;
        padding: 5px 14px;
    }

    .pharmacy-whatsapp-share-btn {
        font-size: 0.78rem;
        padding: 6px 12px;
    }
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */
@media print {
    .pharmacy-actions,
    .quartier-dropdown,
    .pharmacy-quick-links,
    .pharmacy-promo-banner,
    .pharmacy-doctor-offer {
        display: none !important;
    }

    .pharmacy-card,
    .quartier-section {
        break-inside: avoid;
        page-break-inside: avoid;
        border: 1px solid #ddd;
        box-shadow: none;
    }

    .breadcrumb-item,
    .breadcrumb-item a {
        color: #000 !important;
        background: none !important;
    }
}

/* ==========================================================================
   RTL SUPPORT
   ========================================================================== */
[dir="rtl"] .breadcrumb-list {
    flex-direction: row-reverse;
}

[dir="rtl"] .service-link,
[dir="rtl"] .resource-link {
    text-align: right;
}

[dir="rtl"] .service-link::after,
[dir="rtl"] .resource-link::after {
    content: '←';
    margin-left: 0;
    margin-right: auto;
}

[dir="rtl"] .pharmacy-availability-highlight,
[dir="rtl"] .pharmacy-intro {
    border-left: none;
    border-right: 4px solid #0d9488;
}

[dir="rtl"] .quartier-pharmacies .pharmacy-card::before {
    left: auto;
    right: 0;
    border-radius: 4px 0 0 4px;
}

/* ==========================================================================
   QUARTIER CARD DENSITY — desktop only (≥769px)
   Mobile rules at ≤768px and ≤480px remain authoritative.
   ========================================================================== */
@media (min-width: 769px) {
    /* A quartier list is a single section column, not a multi-column card grid.
       Prevent an empty second column when only one pharmacy is listed. */
    .quartier-pharmacies {
        grid-template-columns: minmax(0, 1fr);
    }

    /* --- Header: one wrapping row instead of 4 stacked lines --- */
    .quartier-pharmacies .pharmacy-header,
    .quartier-duty-pharmacies .pharmacy-header {
        flex-direction: column;
        align-items: flex-start;
        row-gap: 8px;
        margin-bottom: 8px;
    }

    .quartier-duty-pharmacies .pharmacy-header-badges {
        width: 100%;
    }
    .quartier-pharmacies .pharmacy-name-block {
        display: flex;
        flex-direction: column;
        gap: 2px;
        flex: 1 1 auto;
        min-width: 55%;
    }
    .quartier-pharmacies .pharmacy-name {
        font-size: 1.25rem;
    }
    .quartier-pharmacies .pharmacy-open-badge {
        margin-left: 0;  /* cancel railway-pharmacy.css offset, use column-gap instead */
    }
    .quartier-pharmacies .pharmacy-status.is-garde {
        padding: 6px 12px;
        font-size: 0.78rem;
    }

    /* --- Info: stacked lines, tighter rhythm --- */
    .quartier-pharmacies .pharmacy-info {
        gap: 4px;
        margin-bottom: 10px;
    }
    .quartier-pharmacies .pharmacy-info .pharmacy-reported-notice {
        margin-bottom: 4px;
    }
    .quartier-pharmacies .pharmacy-info p strong {
        min-width: 0;
    }

    /* --- Actions: all 4 buttons in one row --- */
    .quartier-pharmacies .pharmacy-actions {
        gap: 8px;
        padding-top: 10px;
    }
    .quartier-pharmacies .pharmacy-actions .btn {
        flex: 1 1 calc(25% - 8px);
        padding: 9px 10px;
        font-size: 0.85rem;
        white-space: nowrap;
    }

    /* --- Card-level rhythm tightening --- */
    .quartier-pharmacies {
        gap: 14px;  /* between cards: was 20px */
    }
    .quartier-pharmacies .pharmacy-card {
        padding: 16px 18px 16px 22px;  /* was 22px 22px 22px 28px */
        gap: 10px;  /* was 16px */
    }

    /* --- RTL: mirror the new desktop padding --- */
    [dir="rtl"] .quartier-pharmacies .pharmacy-card {
        padding: 16px 22px 16px 18px;
    }
}

/* ==========================================================================
   PHARMACY SNAKE ICON (Custom)
   ========================================================================== */
.pharmacy-snake-icon {
    display: inline-block;
    width: 1.2em;
    height: 1.2em;
    vertical-align: -0.2em;
    color: currentColor;
    transition: transform 0.3s ease;
}

.pharmacy-snake-icon:hover,
*:hover > .pharmacy-snake-icon {
    transform: rotate(-5deg) scale(1.1);
}

/* Optional: Animated snake (subtle slither) */
@keyframes snakeSlither {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-3deg); }
    75% { transform: rotate(3deg); }
}

.pharmacy-snake-icon--animated {
    animation: snakeSlither 4s ease-in-out infinite;
    transform-origin: bottom center;
}

/* Sizes */
.pharmacy-snake-icon--sm { width: 16px; height: 16px; }
.pharmacy-snake-icon--md { width: 24px; height: 24px; }
.pharmacy-snake-icon--lg { width: 36px; height: 36px; }
.pharmacy-snake-icon--xl { width: 48px; height: 48px; }

/* =========================================================
   Pharmacy City Header - Restyled
   ========================================================= */

/* Announcement banner */
.pharmacy-promo-banner--annonce {
  order: -1;
  background: linear-gradient(135deg, #fff7ed 0%, #fed7aa 100%);
  border: 1px solid #fb923c;
  color: #9a3412;
  font-weight: 500;
  padding: 16px 20px;
  border-radius: 14px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(251, 146, 60, 0.18);
  line-height: 1.6;
  text-align: center;
  animation: annonceSlideIn 0.5s ease-out;
}

.pharmacy-promo-banner--annonce::before {
  content: "📢";
  font-size: 1.2rem;
  margin-right: 8px;
  display: inline-block;
  animation: annoncePulse 2.2s infinite ease-in-out;
}

.pharmacy-promo-banner--annonce .promo-title {
  margin: 0 0 6px;
  font-weight: 700;
  font-size: 1.05rem;
}

.pharmacy-promo-banner--annonce .promo-text {
  margin: 0 0 6px;
  font-size: 0.95rem;
}

.pharmacy-promo-banner--annonce .promo-features {
  font-weight: 600;
  display: inline-block;
}

.pharmacy-promo-banner--annonce .promo-contact {
  margin: 0;
  font-weight: 700;
  font-size: 0.95rem;
}

.pharmacy-promo-banner--annonce a {
  color: #9a3412;
  font-weight: 800;
  text-decoration: underline;
  transition: color 0.2s ease;
}

/* Animations for announcement banner */
@keyframes annonceSlideIn {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes annoncePulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.15);
  }
}

body:not(.et-tb) #main-content .container, body:not(.et-tb-has-header) #main-content .container {
    padding-top: 5px; 
}
#left-area ol, .entry-content ol, .et-l--body ol, .et-l--footer ol, .et-l--header ol {
    list-style-type: decimal;
    list-style-position: inside;
    padding: 0 0 6px;
    line-height: 26px;
}
/* ==========================================================================
   QUARTIER PAGE ELEMENTS
   ========================================================================== */
.quartier-breadcrumb {
    /* [HIGHLIGHT-MODIFIED] was margin: 16px 0 20px; padding: 14px 18px */
    margin: 8px 0 12px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 14px;
    color: #475569;
}

.quartier-breadcrumb__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.quartier-breadcrumb__item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.quartier-breadcrumb__item:not(:last-child)::after {
    content: '›';
    color: #94a3b8;
    font-size: 16px;
    margin-left: 4px;
}

.quartier-breadcrumb__item a {
    color: #0f766e;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.quartier-breadcrumb__item a:hover {
    color: #0d9488;
    text-decoration: underline;
}

.quartier-page-intro {
    margin: 20px 0 24px;
    padding: 20px 24px;
    background: linear-gradient(135deg, #f0fdfa 0%, #ecfeff 100%);
    border-left: 4px solid #0d9488;
    border-radius: 12px;
    font-size: 16px;
    line-height: 1.7;
    color: #1e293b;
}

.quartier-page-intro p {
    margin: 0;
}

.quartier-faq {
    margin: 32px 0;
    padding: 24px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.05);
}

.quartier-faq > h2 {
    font-size: 22px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 20px;
    padding-bottom: 14px;
    border-bottom: 2px solid #ccfbf1;
}

.quartier-faq__item {
    margin-bottom: 16px;
    padding: 18px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
}

.quartier-faq__item h3 {
    font-size: 16px;
    font-weight: 700;
    color: #0f766e;
    margin: 0 0 10px;
    line-height: 1.4;
}

.quartier-faq__item [itemprop="text"] {
    font-size: 15px;
    line-height: 1.6;
    color: #475569;
    margin: 0;
}

.quartier-siblings {
    margin: 32px 0;
    padding: 24px;
    background: linear-gradient(135deg, #fff7ed 0%, #ffedd5 100%);
    border: 1px solid #fed7aa;
    border-radius: 16px;
}

.quartier-siblings > h2 {
    font-size: 20px;
    font-weight: 700;
    color: #9a3412;
    margin: 0 0 16px;
}

.quartier-siblings__list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.quartier-siblings__list li {
    margin: 0;
}

.quartier-siblings__list a {
    display: inline-block;
    padding: 10px 16px;
    background: #ffffff;
    border: 1px solid #fdba74;
    border-radius: 999px;
    color: #9a3412;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.quartier-siblings__list a:hover {
    background: #f97316;
    border-color: #f97316;
    color: #ffffff;
}

@media (max-width: 768px) {
    .quartier-breadcrumb {
        /* [HIGHLIGHT-MODIFIED] was padding: 12px 14px */
        padding: 8px 12px;
        font-size: 13px;
    }

    .quartier-page-intro {
        padding: 16px 18px;
        font-size: 15px;
    }

    .quartier-faq,
    .quartier-siblings {
        padding: 18px;
    }

    .quartier-faq > h2,
    .quartier-siblings > h2 {
        font-size: 18px;
    }

    .quartier-siblings__list a {
        padding: 8px 12px;
        font-size: 13px;
    }
}

/* ==========================================================================
   QUARTIER SIBLING LINKS (after FAQ on live quartier pages)
   ========================================================================== */
/* [HIGHLIGHT-ADDED] Product ad slot on quartier pages (after FAQ, not under the duty card). */
.pharmacy-quartier-product-ad {
    margin: 1.25rem 0 1.5rem;
}

.quartier-siblings-nav {
    margin: 1.5rem 0;
    padding: 1rem 1.25rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.quartier-siblings-nav__title {
    margin: 0 0 0.75rem;
    font-size: 1.15rem;
    font-weight: 700;
    color: #1e3d72;
    line-height: 1.3;
}

.quartier-siblings-nav__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.quartier-siblings-nav__list li {
    display: inline-flex;
    align-items: center;
    margin: 0;
}

.quartier-siblings-nav__list li:not(:last-child)::after {
    content: '|';
    margin: 0 10px;
    color: #cbd5e1;
    font-weight: 300;
}

.quartier-siblings-nav__list a {
    color: #0f766e;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.quartier-siblings-nav__list a:hover {
    color: #0d9488;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .quartier-siblings-nav {
        padding: 0.875rem 1rem;
    }

    .quartier-siblings-nav__title {
        font-size: 1.05rem;
    }

    .quartier-siblings-nav__list a {
        font-size: 13px;
    }
}

/* ==========================================================================
   TOP QUARTIER NAVIGATION (legacy stored markup; stripped on render)
   ========================================================================== */
.quartier-top-nav {
    margin: 12px 0 20px;
    padding: 14px 18px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}

.quartier-top-nav__label {
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.quartier-top-nav__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.quartier-top-nav__list li {
    display: inline-flex;
    align-items: center;
    margin: 0;
}

.quartier-top-nav__list li:not(:last-child)::after {
    content: '|';
    margin: 0 12px;
    color: #cbd5e1;
    font-weight: 300;
}

.quartier-top-nav__list a {
    color: #0f766e;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.quartier-top-nav__list a:hover {
    color: #0d9488;
    text-decoration: underline;
}

@media (max-width: 768px) {
    .quartier-top-nav {
        padding: 12px 14px;
    }

    .quartier-top-nav__label {
        font-size: 13px;
    }

    .quartier-top-nav__list a {
        font-size: 14px;
    }

    .quartier-top-nav__list li:not(:last-child)::after {
        margin: 0 8px;
    }
}

/* ==========================================================================
   QUARTIER-SPECIFIC DOCTORS LIST
   ========================================================================== */
.pharmacy-quartier-doctors {
    margin: 24px 0;
    padding: 22px 24px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.06);
}

/* [HIGHLIGHT-MODIFIED] Was `.pharmacy-quartier-doctors h3`: the title is now an H2 with its own class. */
.pharmacy-quartier-doctors__title {
    margin: 0 0 16px;
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
}

.quartier-doctors-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.quartier-doctor-card {
    padding: 14px 0;
    border-bottom: 1px solid #f1f5f9;
}

.quartier-doctor-card:last-child {
    border-bottom: none;
}

.quartier-doctor-name {
    font-weight: 700;
    color: #0f766e;
    font-size: 16px;
}

.quartier-doctor-name a {
    color: #0f766e;
    text-decoration: none;
}

.quartier-doctor-name a:hover {
    text-decoration: underline;
}

.quartier-doctor-specialty {
    display: inline-block;
    margin: 4px 0 0 6px;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    background: #f1f5f9;
    border-radius: 4px;
    text-transform: uppercase;
}

.quartier-doctor-address {
    margin-top: 6px;
    font-size: 14px;
    color: #64748b;
    line-height: 1.45;
}

.quartier-doctor-phone {
    margin-top: 4px;
    font-size: 14px;
}

.quartier-doctor-phone a {
    color: #0f766e;
    text-decoration: none;
}

.quartier-doctor-specialties {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

.quartier-doctor-specialties__title {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 600;
    color: #334155;
}

.quartier-doctor-specialties__list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.quartier-doctor-specialties__list li a {
    display: inline-block;
    padding: 6px 12px;
    background: #f0fdfa;
    border: 1px solid #ccfbf1;
    border-radius: 20px;
    color: #0f766e;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.quartier-doctor-specialties__list li a:hover {
    background: #ccfbf1;
    border-color: #99f6e4;
    text-decoration: none;
}

.quartier-neighbor-note {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
    font-size: 14px;
    line-height: 1.55;
    color: #475569;
}

.quartier-neighbor-note a {
    color: #0f766e;
    font-weight: 600;
    text-decoration: none;
}

.quartier-neighbor-note a:hover {
    text-decoration: underline;
}

.no-pharmacy-message {
    background: #fff8f1;
    border-left: 4px solid #f97316;
    padding: 20px 24px;
    margin: 20px 0;
    border-radius: 8px;
}

.no-pharmacy-badge {
    display: inline-block;
    background: #ffedd5;
    color: #9a3412;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 8px;
    border-radius: 4px;
    margin-bottom: 8px;
}

.no-pharmacy-message h2 {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 700;
    color: #7c2d12;
}

.no-pharmacy-message p {
    margin: 0;
    font-size: 15px;
    line-height: 1.55;
    color: #57301f;
}

.no-pharmacy-message a {
    color: #0f766e;
    font-weight: 600;
    text-decoration: none;
}

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

.nearby-section-header {
    margin-bottom: 16px;
}

/* [HIGHLIGHT-ADDED] Nearby title is now an H2; keep the size it had as an H3. */
.nearby-section-header h2 {
    margin: 0 0 6px;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
    color: #0f172a;
}

.nearby-section-tag {
    display: inline-block;
    background: #e0f2fe;
    color: #0369a1;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 3px 8px;
    border-radius: 4px;
    margin-bottom: 6px;
}

.nearby-section-subtitle {
    margin: 4px 0 0;
    font-size: 14px;
    color: #475569;
}

.nearby-pharmacy-quartier-line {
    margin: 0 0 6px;
}

.nearby-pharmacy-quartier-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #f1f5f9;
    color: #334155;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid #e2e8f0;
}

.nearby-pharmacy-quartier-badge i {
    color: #0f766e;
}

.nearby-pharmacy-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.nearby-pharmacy-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 14px 16px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.nearby-pharmacy-item:hover {
    border-color: #cbd5e1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.nearby-pharmacy-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.nearby-pharmacy-name {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.3;
}

.nearby-pharmacy-name .pharmacy-name-ar {
    font-size: 13px;
    color: #64748b;
    margin-right: 4px;
}

.nearby-pharmacy-address {
    margin: 0 0 6px;
    font-size: 13px;
    color: #64748b;
    line-height: 1.4;
}

.nearby-pharmacy-phone {
    margin: 0 0 8px;
    font-size: 14px;
}

.nearby-pharmacy-phone a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}

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

.nearby-pharmacy-actions {
    margin: 0;
}

.nearby-pharmacy-map {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}

.nearby-pharmacy-map:hover {
    text-decoration: underline;
}

.nearby-pharmacy-map::before {
    content: "\f3c5";
    font-family: "Font Awesome 5 Free", "Font Awesome 5 Brands";
    font-weight: 900;
    font-size: 12px;
}

.nearby-pharmacy-item .pharmacy-status {
    flex-shrink: 0;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 999px;
    font-weight: 600;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .nearby-pharmacy-list {
        gap: 10px;
    }

    .nearby-pharmacy-item {
        padding: 12px 14px;
    }

    .nearby-pharmacy-name {
        font-size: 14px;
    }

    .nearby-pharmacy-main {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
}

@media (max-width: 768px) {
    .pharmacy-quartier-doctors {
        padding: 16px 18px;
    }

    /* [HIGHLIGHT-MODIFIED] Was `.pharmacy-quartier-doctors h3`. */
    .pharmacy-quartier-doctors__title {
        font-size: 16px;
    }
}

body:not(.et-tb) #main-content .container, body:not(.et-tb-has-header) #main-content .container {
    padding-top: 8px;
}

/* ==========================================================================
   PREMIUM PARTNER CARDS (ppc-)
   ========================================================================== */
.pharmacy-premium-section {
    margin: 2px 0;
}

.ppc-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Card */
.pharmacy-card--premium {
    background: #fff;
    border: 1px solid #e7e7e7;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    display: flex;
    overflow: hidden;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.pharmacy-card--premium:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.pharmacy-card--out-of-service {
    border: 2px solid #dc2626 !important;
}

/* Media column (logo / placeholder) */
.ppc-media {
    flex: 0 0 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 10px;
    background: #f8f9fa;
    border-right: 1px solid #eee;
}

.ppc-logo {
    max-width: 100px;
    max-height: 100px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
}

.ppc-logo-placeholder {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #e3f2fd;
    color: #1565c0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
}

.ppc-logo-placeholder i {
    font-size: 1.6rem;
}

/* Body column */
.ppc-body {
    flex: 1 1 auto;
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    min-width: 0;
}

/* Header */
.ppc-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 4px;
}

.ppc-name {
    margin: 0;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.25;
    word-break: break-word;
    color: #1a237e;
}

.ppc-name-link {
    color: #1a237e;
    text-decoration: none;
}

.ppc-name-link:hover {
    text-decoration: underline;
}

.ppc-name-ar {
    font-size: 1rem;
    color: #666;
}

.ppc-badges {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.ppc-status {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 12px;
    white-space: nowrap;
}

.ppc-status--success {
    background: #e6f4ea;
    color: #1e7e34;
}

.ppc-status--danger {
    background: #fde8e8;
    color: #b91c1c;
}

.ppc-status--neutral {
    background: #f0f0f0;
    color: #666;
}

.ppc-trust {
    margin: 0;
    font-size: 0.85rem;
    color: #888;
    line-height: 1.3;
}

/* Alert */
.ppc-alert {
    margin: 0;
    padding: 10px 12px;
    border: 2px solid #dc2626;
    border-radius: 8px;
    background: #fef2f2;
    color: #991b1b;
    font-weight: 700;
    font-size: 0.95rem;
}

/* Promotion */
.ppc-promotion {
    margin: 0;
    padding: 8px 12px;
    background: #fff3cd;
    border-radius: 8px;
    font-size: 1rem;
    color: #856404;
}

/* Description (clamped to 3 lines) */
.ppc-description {
    margin: 0;
    font-size: 1rem;
    color: #555;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Services pills */
.ppc-services {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.ppc-services li {
    background: #e3f2fd;
    color: #1565c0;
    font-size: 0.9rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 12px;
    white-space: normal;
    word-break: break-word;
    min-width: 0;
}

/* Info block */
.ppc-info {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ppc-info-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-size: 0.95rem;
    line-height: 1.4;
}

.ppc-icon {
    flex-shrink: 0;
    font-size: 1rem;
}

.ppc-label {
    flex-shrink: 0;
    font-weight: 600;
    color: #888;
    min-width: 80px;
}

.ppc-value {
    color: #1a1a1a;
    word-break: break-word;
}

.ppc-value a {
    color: #1565c0;
    text-decoration: none;
}

.ppc-value a:hover {
    text-decoration: underline;
}

/* Actions */
.ppc-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.ppc-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    white-space: nowrap;
}

.ppc-btn--whatsapp {
    background: #25d366;
    border-color: #25d366;
    color: #fff;
    padding: 10px 18px;
    font-size: 0.95rem;
    font-weight: 700;
}

.ppc-btn--whatsapp:hover {
    background: #1da851;
    border-color: #1da851;
}

.ppc-btn--primary {
    background: #1565c0;
    border-color: #1565c0;
    color: #fff;
    padding: 10px 18px;
    font-size: 0.95rem;
    font-weight: 700;
}

.ppc-btn--primary:hover {
    background: #0d47a1;
    border-color: #0d47a1;
}

.ppc-btn--ghost {
    background: #fff;
    border-color: #ddd;
    color: #444;
}

.ppc-btn--ghost:hover {
    background: #f5f5f5;
    border-color: #bbb;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        width: 95%;
    }

    .pharmacy-premium-section,
    .ppc-grid,
    .pharmacy-card--premium {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .pharmacy-card--premium {
        display: block;
    }

    .ppc-media {
        width: 100%;
        height: auto;
        min-height: 76px;
        padding: 12px;
        border-right: 0;
        border-bottom: 1px solid #eee;
    }

    .ppc-logo {
        max-width: 72px;
        max-height: 72px;
    }

    .ppc-logo-placeholder {
        width: 52px;
        height: 52px;
        font-size: 1.25rem;
    }

    .ppc-logo-placeholder i {
        font-size: 1.25rem;
    }

    .ppc-body {
        width: 100%;
        min-width: 0;
        padding: 16px;
        gap: 14px;
    }

    .ppc-name {
        font-size: 24px;
        line-height: 1.25;
    }

    .ppc-info-row {
        align-items: flex-start;
        gap: 6px;
    }

    .ppc-label {
        min-width: 72px;
    }

    .ppc-value {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .ppc-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        width: 100%;
    }

    .ppc-actions .ppc-btn {
        width: 100%;
        min-width: 0;
        min-height: 42px;
        height: auto;
        align-self: start;
        justify-content: center;
        text-align: center;
        white-space: normal;
        padding: 9px 8px;
    }
}

@media (max-width: 400px) {
    .ppc-body {
        padding: 14px 12px;
    }

    .ppc-actions {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .ppc-media {
        min-height: 64px;
        padding: 10px;
    }

    .ppc-services {
        display: flex;
        flex-wrap: wrap;
        gap: 5px;
    }

    .ppc-services li {
        display: inline-block;
        padding: 4px 8px;
        font-size: 0.75rem;
        line-height: 1.25;
    }

    .ppc-actions .ppc-btn {
        height: auto;
        align-self: start;
    }
}

/* Partner badge link */
.ppc-badge-partner {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f59e0b;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 12px;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
}

.ppc-badge-partner:hover {
    background: #d97706;
    color: #fff;
}
ul.ppc-grid {
    padding: 0px 0px;
}
#left-area ol, .entry-content ol, .et-l--body ol, .et-l--footer ol, .et-l--header ol {
 
    padding: 0 0 2px!important;
}
body:not(.et-tb) #main-content .container,
body:not(.et-tb-has-header) #main-content .container {
    padding-top: 3px !important;
    margin: 0px auto !important;
    width: 86%;
}

/* [HIGHLIGHT-ADDED] Add to Home Screen tip — hidden by default; JS unhides on mobile only */
.pharmacy-a2hs-banner {
    display: none;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 16px;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid #c5d9f0;
    background: linear-gradient(135deg, #eef5fc 0%, #f7fbff 100%);
    color: #212529;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.pharmacy-a2hs-banner__body {
    flex: 1;
    min-width: 0;
}

.pharmacy-a2hs-banner__title {
    margin: 0 0 6px;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.35;
}

.pharmacy-a2hs-banner__howto {
    margin: 0;
    font-size: 0.82rem;
    line-height: 1.4;
    color: #6c757d;
}

.pharmacy-a2hs-banner__dismiss {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: #49627a;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}

@media (min-width: 769px) {
    .pharmacy-a2hs-banner {
        display: none !important;
    }
}

@media (display-mode: standalone) {
    .pharmacy-a2hs-banner {
        display: none !important;
    }
}

/* [HIGHLIGHT-ADDED] Doctor/dentist professional-page offer (after the duty list) */
.pharmacy-doctor-offer {
    position: relative;
    margin: 24px 0;
    padding: 18px 20px 16px;
    border: 1px solid #d6e4f0;
    border-radius: 14px;
    background: linear-gradient(135deg, #f5f9fc 0%, #eef5fc 100%);
    box-shadow: 0 2px 8px rgba(26, 115, 232, 0.06);
    overflow: hidden;
}

.pharmacy-doctor-offer::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 5px;
    background: linear-gradient(180deg, #1a73e8 0%, #0d47a1 100%);
    border-radius: 5px 0 0 5px;
}

.pharmacy-doctor-offer__badge {
    display: inline-block;
    margin: 0 0 8px;
    padding: 2px 8px;
    border-radius: 999px;
    background: #1a73e8;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.pharmacy-doctor-offer__title {
    margin: 0 0 6px;
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
}

.pharmacy-doctor-offer__title--ar {
    margin-top: 10px;
}

.pharmacy-doctor-offer__text {
    margin: 0 0 10px;
    font-size: 0.95rem;
    line-height: 1.55;
    color: #334155;
}

.pharmacy-doctor-offer__text--ar {
    margin-bottom: 14px;
}

.pharmacy-doctor-offer__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pharmacy-doctor-offer__btn {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none !important;
    line-height: 1.3;
}

.pharmacy-doctor-offer__btn--example {
    background: #1a73e8;
    color: #fff !important;
}

/* [HIGHLIGHT-ADDED] Second demo link — pharmacy profile (teal, matches site chrome). */
.pharmacy-doctor-offer__btn--example-pharmacy {
    background: #0d9488;
}

.pharmacy-doctor-offer__btn--example:hover,
.pharmacy-doctor-offer__btn--example:focus {
    background: #1557b0;
    color: #fff !important;
}

.pharmacy-doctor-offer__btn--example-pharmacy:hover,
.pharmacy-doctor-offer__btn--example-pharmacy:focus {
    background: #0f766e;
    color: #fff !important;
}

.pharmacy-doctor-offer__btn--wa {
    background: #25d366;
    color: #fff !important;
}

.pharmacy-doctor-offer__btn--wa:hover,
.pharmacy-doctor-offer__btn--wa:focus {
    background: #1ebe5a;
    color: #fff !important;
}

@media (max-width: 480px) {
    .pharmacy-doctor-offer {
        padding: 16px 14px 14px 18px;
    }

    .pharmacy-doctor-offer__btn {
        width: 100%;
        text-align: center;
    }
}

/* City & Holiday Announcements (duty swaps, public holidays, general notices) */
.pharmacy-announcements {
    margin: 14px 0 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pharmacy-announcement {
    border-radius: 14px;
    padding: 13px 16px;
    text-align: left;
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 4px rgba(15, 23, 42, 0.05);
}

.pharmacy-announcement--swap {
    background: #fffbeb;
    border-color: #fde68a;
    border-left: 4px solid #d97706;
}

.pharmacy-announcement--holiday {
    background: #ecfdf5;
    border-color: #a7f3d0;
    border-left: 4px solid #059669;
}

.pharmacy-announcement--info {
    background: #eff6ff;
    border-color: #bfdbfe;
    border-left: 4px solid #2563eb;
}

.pharmacy-announcement__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 0.82rem;
}

.pharmacy-announcement__badge {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 999px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    font-size: 0.72rem;
    background: rgba(15, 23, 42, 0.08);
    color: #0f172a;
}

.pharmacy-announcement--swap .pharmacy-announcement__badge {
    background: #fef3c7;
    color: #92400e;
}

.pharmacy-announcement--holiday .pharmacy-announcement__badge {
    background: #d1fae5;
    color: #065f46;
}

.pharmacy-announcement--info .pharmacy-announcement__badge {
    background: #dbeafe;
    color: #1e40af;
}

.pharmacy-announcement__date {
    color: #475569;
    font-weight: 600;
}

.pharmacy-announcement__title {
    margin: 0 0 6px;
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.35;
    color: #0f172a;
}

.pharmacy-announcement__swap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 6px 0 0;
    font-weight: 600;
    color: #1e293b;
}

.pharmacy-announcement__ph {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 8px;
    padding: 4px 10px;
}

.pharmacy-announcement__arrow {
    font-weight: 700;
    color: #d97706;
}

.pharmacy-announcement__body {
    margin: 6px 0 0;
    color: #334155;
    font-size: 0.93rem;
    line-height: 1.45;
}

.pharmacy-announcement__ar {
    margin: 8px 0 0;
    padding-top: 6px;
    border-top: 1px dashed rgba(15, 23, 42, 0.14);
    color: #334155;
    font-size: 0.95rem;
    line-height: 1.5;
}

@media (max-width: 480px) {
    .pharmacy-announcement {
        padding: 12px 13px;
    }

    .pharmacy-announcement__swap {
        gap: 6px;
    }

    .pharmacy-announcement__ph {
        width: 100%;
    }
}

/* Quartier Hero Back-to-City Pill */
.quartier-hero__back {
    margin-top: 0.75rem;
}

.quartier-hero__back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    background: #eef5fc;
    border: 1px solid #c5d9f0;
    color: #1e3d72;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.quartier-hero__back-link:hover,
.quartier-hero__back-link:focus-visible {
    background: #dbeafe;
    border-color: #93c5fd;
    color: #1e3d72;
}

/* Quartier Scannable Summary Table */
.quartier-summary-table-wrap {
    overflow-x: auto;
    margin: 0.65rem 0 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #ffffff;
}

.quartier-summary-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
    line-height: 1.35;
}

.quartier-summary-table th,
.quartier-summary-table td {
    padding: 0.55rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid #f1f5f9;
}

.quartier-summary-table thead th {
    background: #f8fafc;
    color: #1e3d72;
    font-weight: 700;
    font-size: 0.82rem;
    border-bottom: 1px solid #e2e8f0;
}

.quartier-summary-table tbody tr:last-child td {
    border-bottom: none;
}

.quartier-summary-table td a {
    color: #0369a1;
    font-weight: 600;
    text-decoration: none;
}

.quartier-summary-table td a:hover {
    text-decoration: underline;
}

/* Independent-Directory Disclaimer */
.pharmacy-disclaimer {
    margin: 1.25rem 0;
    padding: 0.85rem 1rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-left: 3px solid #64748b;
    border-radius: 6px;
    color: #475569;
    font-size: 0.86rem;
    line-height: 1.5;
}

.pharmacy-disclaimer p {
    margin: 0;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
