/*
Theme Name: PharmaGarde24
Author: Abdellatif Er-rguyby
Version: 1.0
Text Domain: pharmagarde24
*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 15% 20%, rgba(80, 100, 255, 0.35), transparent 35%),
        radial-gradient(circle at 85% 15%, rgba(45, 150, 255, 0.28), transparent 30%),
        radial-gradient(circle at 50% 100%, rgba(20, 210, 170, 0.12), transparent 35%),
        linear-gradient(135deg, #020b2d 0%, #07266d 50%, #061947 100%);
    background-attachment: fixed;
    color: #ffffff;
    font-family: "IBM Plex Sans Arabic", sans-serif;
}

button,
input,
select,
textarea {
    font-family: inherit;
}

/* ===== Header ===== */

.site-header {
    width: 100%;
    padding: 24px 20px 0;
    direction: rtl;
}

.header-container {
    width: 100%;
    max-width: 1260px;
    min-height: 70px;
    margin: 0 auto;
    padding: 8px 20px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;

    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.70);
    border-radius: 20px;
    overflow: hidden;

    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        0 18px 45px rgba(0, 15, 60, 0.20);
}

.site-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
}

.site-logo img {
    display: block;
    width: auto;
    height: 52px;
    max-width: 230px;
    object-fit: contain;
}

/* Tablet */
@media (max-width: 1050px) {
    .site-logo img {
        height: 46px;
    }
}

/* Mobile */
@media (max-width: 780px) {
    .site-logo img {
        height: 40px;
    }
}

@media (max-width: 380px) {
    .site-logo img {
        height: 35px;
    }
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px;
    background: rgba(10, 42, 114, 0.07);
    border: 1px solid rgba(10, 42, 114, 0.10);
    border-radius: 999px;
}

.main-nav a {
    padding: 9px 18px;
    color: #17356f;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 999px;
    transition: 0.3s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: #fff;
    background: rgba(11, 42, 114, 0.12);
}

.download-button {
    padding: 11px 22px;

    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;

    background: linear-gradient(135deg, #42d995, #11aa72);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;

    box-shadow: 0 10px 30px rgba(15, 190, 125, 0.25);
    transition: 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    direction: rtl;
}
.download-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.download-button:hover {
    transform: translateY(-2px);
}

/* Tablet */

@media (max-width: 1050px) {
    .main-nav {
        gap: 2px;
    }

    .main-nav a {
        padding: 10px 12px;
        font-size: 14px;
    }

    .site-logo {
        font-size: 22px;
    }

    .download-button {
        padding: 12px 18px;
        font-size: 14px;
    }
}

/* Mobile */

@media (max-width: 780px) {
    .site-header {
        padding: 14px 12px 0;
    }

    .header-container {
        min-height: 70px;
        padding: 12px 16px;
        border-radius: 22px;
    }

    .main-nav {
        display: none;
    }

    .site-logo {
        font-size: 20px;
    }

    .download-button {
        padding: 10px 15px;
        font-size: 13px;
    }
}

@media (max-width: 380px) {
    .site-logo {
        font-size: 17px;
    }

    .download-button {
        padding: 9px 12px;
        font-size: 12px;
    }
}

/* زر القائمة فالموبايل */

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    padding: 10px;

    background: rgba(11, 42, 114, 0.10);
    border: 1px solid rgba(11, 42, 114, 0.15);
    border-radius: 14px;

    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    margin: 5px 0;

    background: #0b2a72;
    border-radius: 10px;
}

/* خلفية القائمة */

.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 1998;

    background: rgba(0, 10, 40, 0.55);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);

    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
}

/* القائمة الجانبية */

.mobile-menu {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1999;

    width: min(85%, 360px);
    height: 100dvh;
    padding: 24px;

    display: flex;
    flex-direction: column;

    direction: rtl;

    background: rgba(255, 255, 255, 0.92);
    border-left: 1px solid rgba(255, 255, 255, 0.70);

    backdrop-filter: blur(30px) saturate(180%);
    -webkit-backdrop-filter: blur(30px) saturate(180%);

    box-shadow: -20px 0 60px rgba(0, 15, 60, 0.25);

    transform: translateX(105%);
    transition: transform 0.35s ease;
}

.mobile-menu-top {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding-bottom: 18px;
    border-bottom: 1px solid rgba(11, 42, 114, 0.12);
}

.mobile-menu-title {
    color: #0b2a72;
    font-size: 21px;
    font-weight: 700;
}

.mobile-menu-close {
    width: 42px;
    height: 42px;

    color: #0b2a72;
    font-size: 30px;
    line-height: 1;

    background: rgba(11, 42, 114, 0.08);
    border: 0;
    border-radius: 13px;

    cursor: pointer;
}

.mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;

    padding-top: 24px;
}

.mobile-nav a {
    padding: 14px 16px;

    color: #17356f;
    font-size: 17px;
    font-weight: 600;
    text-decoration: none;

    border-radius: 14px;
    transition: 0.25s ease;
}

.mobile-nav a:hover,
.mobile-nav a.active {
    background: rgba(11, 42, 114, 0.10);
}

.mobile-download-button {
    margin-top: auto;
    padding: 14px 20px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    color: #ffffff;
    font-weight: 700;
    text-decoration: none;

    background: linear-gradient(135deg, #42d995, #11aa72);
    border-radius: 999px;
}

/* حالة فتح القائمة */

body.mobile-menu-open {
    overflow: hidden;
}

body.mobile-menu-open .mobile-menu {
    transform: translateX(0);
}

body.mobile-menu-open .mobile-menu-overlay {
    opacity: 1;
    visibility: visible;
}

/* Responsive */

@media (max-width: 780px) {

    .header-container {
        min-height: 66px;
        padding: 8px 12px;
    }

    .main-nav,
    .header-container > .download-button {
        display: none;
    }

    .menu-toggle {
        display: block;
        flex-shrink: 0;
    }

    .site-logo img {
        height: 40px;
        max-width: 190px;
    }
}

@media (max-width: 380px) {

    .site-logo img {
        height: 35px;
        max-width: 160px;
    }

    .menu-toggle {
        width: 40px;
        height: 40px;
    }
}

/* =========================================
   PharmaGarde24 Hero Section
========================================= */

.hero-section {
    position: relative;
    width: calc(100% - 40px);
    max-width: 1260px;
    min-height: 620px;

    margin: 32px auto 75px;
    padding: 65px 55px;

    display: flex;
    align-items: center;

    direction: rtl;
    overflow: hidden;

    background-image: url("https://pharma-garde24.com/wp-content/themes/PharmaGarde24/assets/images/hero-bg.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 34px;

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        0 30px 70px rgba(0, 10, 45, 0.35);
}

/* طبقة داكنة فوق الصورة */

.hero-section::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;

    background:
        linear-gradient(
            90deg,
            rgba(1, 12, 48, 0.72) 0%,
            rgba(4, 31, 96, 0.63) 48%,
            rgba(1, 12, 48, 0.82) 100%
        );

    pointer-events: none;
}

/* تأثير ضوئي */

.hero-section::before {
    content: "";
    position: absolute;
    z-index: 1;

    width: 500px;
    height: 500px;
    top: -220px;
    left: -160px;

    background: rgba(55, 145, 255, 0.28);
    filter: blur(100px);
    border-radius: 50%;

    pointer-events: none;
}

/* =========================================
   الحاوية الداخلية
========================================= */

.hero-container {
    position: relative;
    z-index: 2;

    width: 100%;
    margin: 0 auto;

    display: grid;
    grid-template-columns:
        minmax(0, 0.95fr)
        minmax(0, 1.05fr);
    grid-template-areas:
        "results content";

    align-items: center;
    gap: 50px;

    /*
     * اتجاه Grid فقط:
     * النتائج فاليسار والمحتوى فاليمين.
     */
    direction: ltr;
}

/* =========================================
   محتوى Hero الزجاجي
========================================= */

.hero-content {
    grid-area: content;

    width: 100%;
    max-width: none;
    padding: 36px;

    direction: rtl;
    text-align: right;

    background: rgba(2, 17, 61, 0.48);
    border: 1px solid rgba(255, 255, 255, 0.20);
    border-radius: 28px;

    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.16),
        0 25px 60px rgba(0, 8, 35, 0.28);
}

.hero-label {
    display: inline-flex;
    align-items: center;

    margin-bottom: 20px;
    padding: 8px 16px;

    color: #9effd1;
    font-size: 14px;
    font-weight: 700;

    background: rgba(70, 220, 155, 0.14);
    border: 1px solid rgba(70, 220, 155, 0.32);
    border-radius: 999px;
}

.hero-content h1 {
    margin: 0 0 20px;

    color: #ffffff;
    font-size: clamp(38px, 4.5vw, 60px);
    font-weight: 700;
    line-height: 1.25;
}

.hero-description {
    max-width: 590px;
    margin: 0 0 28px;

    color: rgba(255, 255, 255, 0.84);
    font-size: 17px;
    line-height: 1.9;
}

/* =========================================
   نموذج اختيار المدينة
========================================= */

.pharmacy-search-form {
    width: 100%;
    max-width: 610px;
    padding: 9px;

    display: flex;
    align-items: center;
    gap: 10px;

    direction: rtl;

    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.70);
    border-radius: 19px;

    box-shadow: 0 18px 45px rgba(0, 8, 40, 0.25);
}

.city-select-wrapper {
    position: relative;
    flex: 1;
    min-width: 0;

    display: flex;
    align-items: center;
}

.location-icon {
    position: absolute;
    right: 16px;
    z-index: 2;

    width: 22px;
    height: 22px;

    color: #0b2a72;
    pointer-events: none;
}

.city-select-wrapper select {
    width: 100%;
    height: 54px;
    padding: 0 49px 0 18px;

    color: #17356f;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;

    background: rgba(235, 242, 255, 0.95);
    border: 1px solid rgba(11, 42, 114, 0.10);
    border-radius: 13px;
    outline: none;

    cursor: pointer;
}

.city-select-wrapper select:focus {
    border-color: rgba(15, 174, 116, 0.60);
    box-shadow: 0 0 0 3px rgba(15, 174, 116, 0.12);
}

.search-pharmacy-button {
    min-height: 54px;
    padding: 0 23px;

    color: #ffffff;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;

    background: linear-gradient(135deg, #43dc99, #0cad72);
    border: 0;
    border-radius: 13px;

    box-shadow: 0 10px 25px rgba(14, 174, 115, 0.32);

    cursor: pointer;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.search-pharmacy-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(14, 174, 115, 0.40);
}

/* =========================================
   المميزات الصغيرة
========================================= */

.hero-features {
    margin-top: 21px;

    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 18px;
}

.hero-features span {
    position: relative;
    padding-right: 20px;

    color: rgba(255, 255, 255, 0.82);
    font-size: 14px;
}

.hero-features span::before {
    content: "✓";
    position: absolute;
    right: 0;

    color: #56e3a5;
    font-weight: 700;
}

/* =========================================
   مكان نتائج الصيدليات
========================================= */

.hero-pharmacy-results {
    grid-area: results;

    width: 100%;
    min-width: 0;
    margin: 0;

    direction: rtl;
}

/*
 * قبل الاختيار وبطاقة واحدة:
 * المحتوى فاليمين والنتيجة فاليسار.
 */

.hero-container.has-single-pharmacy
.hero-pharmacy-results,
.hero-container:not(.has-multiple-pharmacies)
.hero-pharmacy-results {
    align-self: center;
}

.hero-container.has-single-pharmacy
.pharmacy-results.is-single {
    grid-template-columns: 1fr;
}

.hero-container.has-single-pharmacy
.live-pharmacy-card {
    width: 100%;
    max-width: none;
}

/*
 * جوج صيدليات أو أكثر:
 * المحتوى كيرجع وسط الهيرو وبعرض أكبر،
 * والنتائج كتنزل لتحت بعرض كامل.
 */

.hero-container.has-multiple-pharmacies {
    grid-template-columns: 1fr;
    grid-template-areas:
        "content"
        "results";

    align-items: start;
    gap: 32px;
}

.hero-container.has-multiple-pharmacies
.hero-content {
    width: 100%;
    max-width: 1050px;
    padding-right: 50px;
    padding-left: 50px;

    justify-self: center;

    text-align: center;
}

.hero-container.has-multiple-pharmacies
.hero-content h1 {
    max-width: 900px;
    margin-right: auto;
    margin-left: auto;
}

.hero-container.has-multiple-pharmacies
.hero-description {
    max-width: 760px;
    margin-right: auto;
    margin-left: auto;
}

.hero-container.has-multiple-pharmacies
.pharmacy-search-form {
    max-width: 900px;
    margin-right: auto;
    margin-left: auto;
}

.hero-container.has-multiple-pharmacies
.hero-features {
    justify-content: center;
}

.hero-container.has-multiple-pharmacies
.hero-pharmacy-results {
    width: 100%;
}

.hero-container.has-multiple-pharmacies
.pharmacy-results.is-multiple[data-pharmacy-count="2"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hero-container.has-multiple-pharmacies
.pharmacy-results.is-multiple[data-pharmacy-count="3"] {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hero-container.has-multiple-pharmacies
.pharmacy-results.is-multiple:not([data-pharmacy-count="2"]):not([data-pharmacy-count="3"]) {
    grid-template-columns:
        repeat(
            auto-fit,
            minmax(290px, 1fr)
        );
}

.hero-container.has-multiple-pharmacies
.live-pharmacy-card {
    width: 100%;
    max-width: none;
    height: 100%;
}

/* النص المخصص لقارئ الشاشة */

.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;
}

/* =========================================
   Tablet
========================================= */

@media (max-width: 1050px) {

    .hero-section {
        min-height: auto;
        padding: 50px 35px;
        background-position: center;
    }

    .hero-container {
        gap: 30px;
    }

    .hero-content {
        padding: 31px;
    }

    .hero-container.has-multiple-pharmacies
    .pharmacy-results.is-multiple[data-pharmacy-count="3"] {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .hero-container.has-multiple-pharmacies
    .pharmacy-results.is-multiple[data-pharmacy-count="3"]
    .live-pharmacy-card:last-child {
        width: 100%;
        max-width: 600px;

        grid-column: 1 / -1;
        justify-self: center;
    }
}

/* فالتابلت الصغير والموبايل كيرجع كلشي عمودي */

@media (max-width: 850px) {

    .hero-container,
    .hero-container.has-single-pharmacy,
    .hero-container.has-multiple-pharmacies {
        grid-template-columns: 1fr;
        grid-template-areas:
            "content"
            "results";

        direction: rtl;
    }

    .hero-content,
    .hero-container.has-multiple-pharmacies
    .hero-content {
        width: 100%;
        max-width: 720px;
        margin: 0 auto;
        padding-right: 31px;
        padding-left: 31px;

        text-align: center;
    }

    .hero-description,
    .pharmacy-search-form {
        margin-right: auto;
        margin-left: auto;
    }

    .hero-features {
        justify-content: center;
    }

    .hero-pharmacy-results {
        width: 100%;
        max-width: 720px;
        margin: 0 auto;
    }

    .hero-container.has-multiple-pharmacies
    .hero-pharmacy-results {
        max-width: none;
    }
}

/* =========================================
   Mobile
========================================= */

@media (max-width: 600px) {

    .hero-section {
        width: calc(100% - 24px);
        margin: 20px auto 50px;
        padding: 22px 14px 30px;
        background-image: url("https://pharma-garde24.com/wp-content/themes/PharmaGarde24/assets/images/hero-bg-mobile-small.webp");
        background-position: center;
        border-radius: 24px;
    }

    .hero-section::after {
        background: rgba(1, 13, 49, 0.76);
    }

    .hero-container,
    .hero-container.has-multiple-pharmacies {
        gap: 24px;
    }

    .hero-content,
    .hero-container.has-multiple-pharmacies
    .hero-content {
        padding: 25px 18px;
        border-radius: 21px;

        text-align: right;
    }

    .hero-label {
        margin-bottom: 16px;
        font-size: 13px;
    }

    .hero-content h1 {
        margin-bottom: 16px;
        font-size: 34px;
        line-height: 1.3;
    }

    .hero-description,
    .hero-container.has-multiple-pharmacies
    .hero-description {
        margin-bottom: 22px;
        margin-right: 0;
        margin-left: 0;

        font-size: 16px;
        line-height: 1.8;
    }

    .pharmacy-search-form,
    .hero-container.has-multiple-pharmacies
    .pharmacy-search-form {
        max-width: none;
        padding: 8px;

        flex-direction: column;

        border-radius: 17px;
    }

    .city-select-wrapper,
    .search-pharmacy-button {
        width: 100%;
    }

    .search-pharmacy-button {
        min-height: 52px;
    }

    .hero-features,
    .hero-container.has-multiple-pharmacies
    .hero-features {
        justify-content: flex-start;
        gap: 9px 14px;
    }

    .hero-features span {
        font-size: 13px;
    }

    .hero-pharmacy-results {
        max-width: none;
    }

    .hero-container.has-multiple-pharmacies
    .pharmacy-results.is-multiple[data-pharmacy-count="2"],
    .hero-container.has-multiple-pharmacies
    .pharmacy-results.is-multiple[data-pharmacy-count="3"] {
        grid-template-columns: 1fr;
    }

    .hero-container.has-multiple-pharmacies
    .pharmacy-results.is-multiple[data-pharmacy-count="3"]
    .live-pharmacy-card:last-child {
        max-width: none;
        grid-column: auto;
    }
}

/* الشاشات الصغيرة جداً */

@media (max-width: 380px) {

    .hero-section {
        width: calc(100% - 18px);
        padding-right: 10px;
        padding-left: 10px;
    }

    .hero-content,
    .hero-container.has-multiple-pharmacies
    .hero-content {
        padding-right: 15px;
        padding-left: 15px;
    }

    .hero-content h1 {
        font-size: 30px;
    }
}

/* =========================================
   Supported Cities Section
========================================= */

.supported-cities {
    width: 100%;
    padding: 20px 20px 90px;
    direction: rtl;
}

.cities-container {
    width: 100%;
    max-width: 1260px;
    margin: 0 auto;
}

/* عنوان السيكشن */

.section-heading {
    max-width: 700px;
    margin: 0 auto 45px;
    text-align: center;
}

.section-label {
    display: inline-flex;
    align-items: center;

    margin-bottom: 14px;
    padding: 8px 16px;

    color: #8fffc8;
    font-size: 14px;
    font-weight: 700;

    background: rgba(67, 220, 153, 0.12);
    border: 1px solid rgba(67, 220, 153, 0.28);
    border-radius: 999px;
}

.section-heading h2 {
    margin: 0 0 14px;

    color: #ffffff;
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 700;
    line-height: 1.35;
}

.section-heading p {
    margin: 0;

    color: rgba(255, 255, 255, 0.72);
    font-size: 17px;
    line-height: 1.8;
}

/* =========================================
   شبكة وبطاقات المدن المدعومة
========================================= */

.cities-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

/* البطاقة الزجاجية */

.city-card {
    --city-image-height: 230px;

    position: relative;
    display: block;
    overflow: hidden;

    color: inherit;
    text-decoration: none;

    background: rgba(255, 255, 255, 0.11);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 26px;

    backdrop-filter: blur(22px) saturate(165%);
    -webkit-backdrop-filter: blur(22px) saturate(165%);

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.24),
        0 22px 55px rgba(0, 10, 45, 0.28);

    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

/* اللمعة الزجاجية */

.city-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;

    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.15),
        transparent 42%
    );

    pointer-events: none;
}

.city-card:hover {
    transform: translateY(-8px);
    border-color: rgba(86, 227, 165, 0.48);

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.32),
        0 30px 65px rgba(0, 10, 45, 0.38);
}

/* صورة المدينة */

.city-image {
    position: relative;
    z-index: 0;

    width: 100%;
    height: var(--city-image-height);
    overflow: hidden;

    background: rgba(255, 255, 255, 0.08);
}

.city-image::after {
    content: "";
    position: absolute;
    inset: 0;

    background: linear-gradient(
        to bottom,
        transparent 45%,
        rgba(2, 16, 55, 0.35) 100%
    );

    pointer-events: none;
}

.city-image img {
    display: block;
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform 0.5s ease,
        filter 0.5s ease;
}

.city-card:hover .city-image img {
    transform: scale(1.07);
    filter: saturate(1.08);
}

/* أيقونة الموقع */

.city-location-icon {
    position: absolute;
    top: calc(var(--city-image-height) - 27px);
    right: 28px;
    z-index: 3;

    width: 54px;
    height: 54px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #ffffff;

    background: rgba(25, 193, 126, 0.82);
    border: 4px solid rgba(255, 255, 255, 0.76);
    border-radius: 18px;

    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.38),
        0 12px 26px rgba(14, 174, 115, 0.32);

    transition:
        transform 0.3s ease,
        background 0.3s ease;
}

.city-card:hover .city-location-icon {
    transform: translateY(-3px) rotate(-4deg);
    background: rgba(18, 210, 136, 0.92);
}

.city-location-icon svg {
    width: 23px;
    height: 23px;
}

/* المحتوى الزجاجي السفلي */

.city-card-content {
    position: relative;
    z-index: 1;

    min-height: 125px;
    padding: 40px 28px 27px;

    background: rgba(4, 24, 72, 0.36);
    border-top: 1px solid rgba(255, 255, 255, 0.13);

    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
}

.city-card-content h3 {
    margin: 0 0 7px;

    color: #ffffff;
    font-size: 25px;
    font-weight: 700;
    line-height: 1.4;
}

.city-card-content span {
    position: relative;

    display: inline-flex;
    align-items: center;
    gap: 7px;

    color: #8affc6;
    font-size: 14px;
    font-weight: 600;
}

.city-card-content span::after {
    content: "←";

    font-size: 17px;

    transition: transform 0.25s ease;
}

.city-card:hover .city-card-content span::after {
    transform: translateX(-5px);
}

/* الوصول عبر لوحة المفاتيح */

.city-card:focus-visible {
    outline: 3px solid rgba(86, 227, 165, 0.80);
    outline-offset: 5px;
}

/* =========================================
   Tablet
========================================= */

@media (max-width: 1000px) {

    .cities-grid {
        gap: 16px;
    }

    .city-card {
        --city-image-height: 190px;
    }

    .city-location-icon {
        right: 20px;

        width: 50px;
        height: 50px;
    }

    .city-card-content {
        min-height: 115px;
        padding: 37px 20px 23px;
    }

    .city-card-content h3 {
        font-size: 22px;
    }
}

/* =========================================
   Mobile
========================================= */

@media (max-width: 700px) {

    .cities-grid {
        grid-template-columns: 1fr;
        gap: 22px;

        width: 100%;
        max-width: 520px;
        margin: 0 auto;
    }

    .city-card {
        --city-image-height: 220px;
        border-radius: 23px;
    }

    .city-location-icon {
        right: 22px;
    }

    .city-card-content {
        min-height: auto;
        padding: 39px 22px 24px;
    }
}

/* الشاشات الصغيرة جداً */

@media (max-width: 380px) {

    .city-card {
        --city-image-height: 195px;
    }

    .city-location-icon {
        right: 17px;

        width: 48px;
        height: 48px;

        border-radius: 16px;
    }

    .city-card-content {
        padding-right: 18px;
        padding-left: 18px;
    }
}

/* إيقاف الحركة لمن يفضل ذلك */

@media (prefers-reduced-motion: reduce) {

    .city-card,
    .city-image img,
    .city-location-icon,
    .city-card-content span::after {
        transition: none;
    }

    .city-card:hover,
    .city-card:hover .city-location-icon,
    .city-card:hover .city-image img {
        transform: none;
    }
}


/* =========================================
   How It Works Section
========================================= */

.how-it-works {
    width: 100%;
    padding: 25px 20px 95px;
    direction: rtl;
}

.how-container {
    width: 100%;
    max-width: 1260px;
    margin: 0 auto;
}

/* شبكة الخطوات */

.steps-grid {
    position: relative;

    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

/* الخط الواصل بين البطاقات */

.steps-grid::before {
    content: "";
    position: absolute;
    top: 60px;
    right: 16%;
    left: 16%;
    z-index: 0;

    height: 2px;

    background: linear-gradient(
        90deg,
        transparent,
        rgba(85, 227, 165, 0.45),
        rgba(255, 255, 255, 0.22),
        rgba(85, 227, 165, 0.45),
        transparent
    );
}

/* بطاقة الخطوة */

.step-card {
    position: relative;
    z-index: 1;

    min-height: 310px;
    padding: 30px 26px;

    display: flex;
    flex-direction: column;
    align-items: flex-start;

    overflow: hidden;

    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 27px;

    backdrop-filter: blur(24px) saturate(165%);
    -webkit-backdrop-filter: blur(24px) saturate(165%);

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        0 22px 55px rgba(0, 10, 45, 0.27);

    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

/* اللمعة الزجاجية */

.step-card::before {
    content: "";
    position: absolute;
    inset: 0;

    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.14),
        transparent 42%
    );

    pointer-events: none;
}

/* الإضاءة الخضراء */

.step-card::after {
    content: "";
    position: absolute;

    width: 180px;
    height: 180px;
    top: -90px;
    left: -70px;

    background: rgba(56, 220, 151, 0.16);
    filter: blur(55px);
    border-radius: 50%;

    pointer-events: none;
}

.step-card:hover {
    transform: translateY(-8px);
    border-color: rgba(85, 227, 165, 0.48);

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.32),
        0 30px 65px rgba(0, 10, 45, 0.37);
}

/* رقم الخطوة */

.step-number {
    position: absolute;
    top: 23px;
    left: 24px;
    z-index: 2;

    color: rgba(255, 255, 255, 0.22);
    font-size: 36px;
    font-weight: 700;
    line-height: 1;
}

/* الأيقونة */

.step-icon {
    position: relative;
    z-index: 2;

    width: 68px;
    height: 68px;
    margin-bottom: 25px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #ffffff;

    background: rgba(38, 202, 137, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 21px;

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.38),
        0 14px 30px rgba(12, 174, 112, 0.28);

    transition:
        transform 0.3s ease,
        background 0.3s ease;
}

.step-card:hover .step-icon {
    transform: translateY(-4px) rotate(-4deg);
    background: rgba(35, 220, 145, 0.92);
}

.step-icon svg {
    width: 31px;
    height: 31px;
}

/* النصوص */

.step-card h3 {
    position: relative;
    z-index: 2;

    margin: 0 0 13px;

    color: #ffffff;
    font-size: 23px;
    font-weight: 700;
    line-height: 1.5;
}

.step-card p {
    position: relative;
    z-index: 2;

    margin: 0;

    color: rgba(255, 255, 255, 0.73);
    font-size: 15px;
    line-height: 1.9;
}

/* =========================================
   Tablet
========================================= */

@media (max-width: 950px) {

    .how-it-works {
        padding-right: 16px;
        padding-left: 16px;
    }

    .steps-grid {
        gap: 16px;
    }

    .steps-grid::before {
        display: none;
    }

    .step-card {
        min-height: 290px;
        padding: 26px 21px;
    }

    .step-icon {
        width: 62px;
        height: 62px;
    }

    .step-card h3 {
        font-size: 21px;
    }
}

/* =========================================
   Mobile
========================================= */

@media (max-width: 700px) {

    .how-it-works {
        padding: 10px 14px 70px;
    }

    .steps-grid {
        grid-template-columns: 1fr;
        gap: 20px;

        width: 100%;
        max-width: 520px;
        margin: 0 auto;
    }

    .step-card {
        min-height: auto;
        padding: 25px 22px;
        border-radius: 23px;
    }

    .step-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 20px;
        border-radius: 18px;
    }

    .step-number {
        top: 22px;
        left: 21px;
        font-size: 32px;
    }

    .step-card h3 {
        font-size: 21px;
    }

    .step-card p {
        font-size: 15px;
    }
}

/* الشاشات الصغيرة جداً */

@media (max-width: 380px) {

    .step-card {
        padding-right: 18px;
        padding-left: 18px;
    }

    .step-number {
        left: 18px;
    }
}

/* تقليل الحركة */

@media (prefers-reduced-motion: reduce) {

    .step-card,
    .step-icon {
        transition: none;
    }

    .step-card:hover,
    .step-card:hover .step-icon {
        transform: none;
    }
}

/* =========================================
   App Download Section - New Version
========================================= */

.app-download-new,
.app-download-new * {
    box-sizing: border-box;
}

.app-download-new {
    width: 100%;
    padding: 25px 20px 95px;
    direction: rtl;
}

.app-download-new__container {
    position: relative;

    width: 100%;
    max-width: 1260px;
    min-height: 580px;
    margin: 0 auto;
    padding: 55px;

    display: grid;
    grid-template-columns:
        minmax(0, 1.05fr)
        minmax(350px, 0.95fr);

    align-items: center;
    gap: 60px;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.13),
            rgba(255, 255, 255, 0.055)
        );

    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 34px;

    backdrop-filter: blur(28px) saturate(165%);
    -webkit-backdrop-filter: blur(28px) saturate(165%);

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.27),
        0 30px 70px rgba(0, 10, 45, 0.30);
}

/* الإضاءات الخلفية */

.app-download-new__container::before {
    content: "";
    position: absolute;

    width: 470px;
    height: 470px;
    top: -230px;
    right: -180px;

    background: rgba(48, 222, 150, 0.20);
    filter: blur(100px);
    border-radius: 50%;

    pointer-events: none;
}

.app-download-new__container::after {
    content: "";
    position: absolute;

    width: 450px;
    height: 450px;
    bottom: -240px;
    left: -170px;

    background: rgba(64, 133, 255, 0.24);
    filter: blur(105px);
    border-radius: 50%;

    pointer-events: none;
}

/* =========================================
   المحتوى
========================================= */

.app-download-new__content {
    position: relative;
    z-index: 2;

    width: 100%;
}

.app-download-new__label {
    display: inline-flex;
    align-items: center;

    margin-bottom: 18px;
    padding: 8px 16px;

    color: #96ffd0;
    font-size: 14px;
    font-weight: 700;

    background: rgba(67, 220, 153, 0.13);
    border: 1px solid rgba(67, 220, 153, 0.30);
    border-radius: 999px;
}

.app-download-new__title {
    max-width: 600px;
    margin: 0 0 18px;

    color: #ffffff;
    font-size: clamp(35px, 4.5vw, 53px);
    font-weight: 700;
    line-height: 1.35;
}

.app-download-new__description {
    max-width: 610px;
    margin: 0 0 28px;

    color: rgba(255, 255, 255, 0.76);
    font-size: 17px;
    line-height: 1.9;
}

/* =========================================
   مميزات التطبيق
========================================= */

.app-download-new__features {
    width: 100%;
    max-width: 610px;
    margin-bottom: 30px;

    display: grid;
    gap: 13px;
}

.app-download-new__feature {
    padding: 14px 15px;

    display: flex;
    align-items: center;
    gap: 14px;

    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 18px;

    backdrop-filter: blur(17px);
    -webkit-backdrop-filter: blur(17px);

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.11),
        0 12px 25px rgba(0, 8, 35, 0.13);

    transition:
        transform 0.25s ease,
        background 0.25s ease,
        border-color 0.25s ease;
}

.app-download-new__feature:hover {
    transform: translateX(-5px);

    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(86, 227, 165, 0.35);
}

.app-download-new__feature-icon {
    width: 49px;
    height: 49px;
    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #ffffff;

    background: rgba(35, 204, 137, 0.80);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 15px;

    backdrop-filter: blur(13px);
    -webkit-backdrop-filter: blur(13px);

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.31),
        0 10px 23px rgba(12, 174, 112, 0.24);
}

.app-download-new__feature-icon svg {
    display: block;
    width: 23px;
    height: 23px;
}

.app-download-new__feature-text {
    min-width: 0;
}

.app-download-new__feature-text h3 {
    margin: 0 0 3px;

    color: #ffffff;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
}

.app-download-new__feature-text p {
    margin: 0;

    color: rgba(255, 255, 255, 0.66);
    font-size: 14px;
    line-height: 1.6;
}

/* =========================================
   زر تحميل التطبيق
========================================= */

.app-download-new__button {
    width: fit-content;
    min-height: 58px;
    padding: 13px 26px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;

    background: linear-gradient(
        135deg,
        #43dc99,
        #0cad72
    );

    border: 1px solid rgba(255, 255, 255, 0.30);
    border-radius: 16px;

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.34),
        0 14px 30px rgba(12, 174, 112, 0.31);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        filter 0.25s ease;
}

.app-download-new__button:hover {
    transform: translateY(-3px);
    filter: brightness(1.05);

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.38),
        0 20px 40px rgba(12, 174, 112, 0.42);
}

.app-download-new__button-icon {
    display: block;

    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.app-download-new__button:focus-visible {
    outline: 3px solid rgba(150, 255, 208, 0.88);
    outline-offset: 5px;
}

/* =========================================
   صورة التطبيق
========================================= */

.app-download-new__visual {
    position: relative;
    z-index: 2;

    width: 100%;
    min-height: 480px;

    display: flex;
    align-items: center;
    justify-content: center;
}

.app-download-new__mockup {
    position: relative;

    width: 100%;
    max-width: 430px;
    min-height: 460px;
    padding: 24px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 34px;

    backdrop-filter: blur(25px) saturate(165%);
    -webkit-backdrop-filter: blur(25px) saturate(165%);

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.27),
        0 30px 65px rgba(0, 8, 38, 0.31);
}

.app-download-new__mockup::before {
    content: "";
    position: absolute;
    inset: 18%;

    background: rgba(63, 222, 154, 0.20);
    filter: blur(60px);
    border-radius: 50%;

    pointer-events: none;
}

.app-download-new__mockup img {
    position: relative;
    z-index: 1;

    display: block;

    width: 100%;
    height: auto;
    max-height: 520px;

    object-fit: contain;

    filter: drop-shadow(
        0 25px 35px rgba(0, 5, 25, 0.40)
    );
}

/* =========================================
   Badge المعلومات المحينة
========================================= */

.app-download-new__status {
    position: absolute;
    right: -12px;
    bottom: 70px;
    z-index: 3;

    padding: 11px 15px;

    display: inline-flex;
    align-items: center;
    gap: 9px;

    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;

    background: rgba(5, 27, 77, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 14px;

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        0 14px 30px rgba(0, 8, 35, 0.28);
}

.app-download-new__status-dot {
    width: 8px;
    height: 8px;
    flex-shrink: 0;

    background: #32db91;
    border-radius: 50%;

    box-shadow:
        0 0 0 0 rgba(50, 219, 145, 0.55);

    animation: app-download-new-pulse 1.8s infinite;
}

@keyframes app-download-new-pulse {

    0% {
        box-shadow:
            0 0 0 0 rgba(50, 219, 145, 0.55);
    }

    70% {
        box-shadow:
            0 0 0 10px rgba(50, 219, 145, 0);
    }

    100% {
        box-shadow:
            0 0 0 0 rgba(50, 219, 145, 0);
    }
}

/* =========================================
   Tablet
========================================= */

@media (max-width: 1000px) {

    .app-download-new {
        padding-right: 16px;
        padding-left: 16px;
    }

    .app-download-new__container {
        padding: 45px 35px;

        grid-template-columns: 1fr;
        gap: 45px;
    }

    .app-download-new__content {
        max-width: 740px;
        margin: 0 auto;

        text-align: center;
    }

    .app-download-new__title,
    .app-download-new__description,
    .app-download-new__features {
        margin-right: auto;
        margin-left: auto;
    }

    .app-download-new__feature {
        text-align: right;
    }

    .app-download-new__visual {
        min-height: auto;
    }

    .app-download-new__mockup {
        max-width: 440px;
    }
}

/* =========================================
   Mobile
========================================= */

@media (max-width: 600px) {

    .app-download-new {
        padding: 10px 12px 70px;
    }

    .app-download-new__container {
        padding: 30px 17px;
        gap: 32px;

        border-radius: 25px;
    }

    .app-download-new__title {
        font-size: 32px;
    }

    .app-download-new__description {
        font-size: 16px;
        line-height: 1.8;
    }

    .app-download-new__feature {
        padding: 12px;
        gap: 11px;

        border-radius: 16px;
    }

    .app-download-new__feature-icon {
        width: 44px;
        height: 44px;

        border-radius: 14px;
    }

    .app-download-new__feature-text h3 {
        font-size: 16px;
    }

    .app-download-new__feature-text p {
        font-size: 13px;
    }

    .app-download-new__button {
        width: 100%;
        max-width: 290px;

        margin-right: auto;
        margin-left: auto;
    }

    .app-download-new__visual {
        min-height: 390px;
    }

    .app-download-new__mockup {
        min-height: 370px;
        padding: 16px;

        border-radius: 25px;
    }

    .app-download-new__mockup img {
        max-height: 400px;
    }

    .app-download-new__status {
        right: 0;
        bottom: 45px;

        padding: 9px 11px;

        font-size: 11px;
    }
}

/* =========================================
   شاشات صغيرة جداً
========================================= */

@media (max-width: 380px) {

    .app-download-new__container {
        padding-right: 13px;
        padding-left: 13px;
    }

    .app-download-new__title {
        font-size: 29px;
    }

    .app-download-new__status {
        display: none;
    }
}

/* =========================================
   تقليل الحركة
========================================= */

@media (prefers-reduced-motion: reduce) {

    .app-download-new__feature,
    .app-download-new__button,
    .app-download-new__status-dot {
        transition: none;
        animation: none;
    }

    .app-download-new__feature:hover,
    .app-download-new__button:hover {
        transform: none;
    }
}







/* =========================================
   FAQ Section
========================================= */

.faq-section {
    width: 100%;
    padding: 20px 20px 95px;
    direction: rtl;
}

.faq-container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
}

/* قائمة الأسئلة */

.faq-list {
    display: grid;
    gap: 14px;
}

/* بطاقة السؤال الزجاجية */

.faq-item {
    overflow: hidden;

    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 20px;

    backdrop-filter: blur(22px) saturate(160%);
    -webkit-backdrop-filter: blur(22px) saturate(160%);

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.20),
        0 16px 38px rgba(0, 10, 45, 0.20);

    transition:
        border-color 0.25s ease,
        background 0.25s ease,
        box-shadow 0.25s ease;
}

.faq-item[open] {
    background: rgba(255, 255, 255, 0.13);
    border-color: rgba(75, 225, 160, 0.40);

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        0 20px 45px rgba(0, 10, 45, 0.28);
}

/* السؤال */

.faq-question {
    min-height: 76px;
    padding: 20px 22px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.6;

    cursor: pointer;
    list-style: none;
}

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question::marker {
    display: none;
}

/* أيقونة الفتح والإغلاق */

.faq-toggle-icon {
    position: relative;

    width: 38px;
    height: 38px;
    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(40, 207, 140, 0.16);
    border: 1px solid rgba(75, 225, 160, 0.25);
    border-radius: 12px;

    transition:
        transform 0.3s ease,
        background 0.3s ease;
}

.faq-toggle-icon::before,
.faq-toggle-icon::after {
    content: "";
    position: absolute;

    width: 15px;
    height: 2px;

    background: #68efad;
    border-radius: 20px;

    transition: transform 0.3s ease;
}

.faq-toggle-icon::after {
    transform: rotate(90deg);
}

.faq-item[open] .faq-toggle-icon {
    transform: rotate(180deg);
    background: rgba(40, 207, 140, 0.24);
}

.faq-item[open] .faq-toggle-icon::after {
    transform: rotate(0deg);
}

/* الجواب */

.faq-answer {
    padding: 0 22px 22px;
}

.faq-answer p {
    margin: 0;
    padding-top: 18px;

    color: rgba(255, 255, 255, 0.72);
    font-size: 16px;
    line-height: 1.9;

    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

/* التركيز بلوحة المفاتيح */

.faq-question:focus-visible {
    outline: 3px solid rgba(85, 227, 165, 0.75);
    outline-offset: -4px;
    border-radius: 18px;
}

/* Mobile */

@media (max-width: 600px) {

    .faq-section {
        padding: 10px 14px 70px;
    }

    .faq-list {
        gap: 12px;
    }

    .faq-item {
        border-radius: 18px;
    }

    .faq-question {
        min-height: 68px;
        padding: 17px 16px;

        gap: 14px;

        font-size: 16px;
    }

    .faq-toggle-icon {
        width: 34px;
        height: 34px;
        border-radius: 11px;
    }

    .faq-answer {
        padding: 0 16px 18px;
    }

    .faq-answer p {
        padding-top: 15px;

        font-size: 15px;
        line-height: 1.8;
    }
}

/* تقليل الحركة */

@media (prefers-reduced-motion: reduce) {

    .faq-item,
    .faq-toggle-icon,
    .faq-toggle-icon::before,
    .faq-toggle-icon::after {
        transition: none;
    }
}





/* =========================================
   PharmaGarde24 Footer
========================================= */

.site-footer,
.site-footer * {
    box-sizing: border-box;
}

.site-footer {
    width: 100%;
    padding: 20px 20px 25px;
    direction: rtl;
}

.footer-glass {
    position: relative;

    width: 100%;
    max-width: 1260px;
    margin: 0 auto;
    padding: 48px 45px 24px;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.12),
            rgba(255, 255, 255, 0.055)
        );

    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 32px;

    backdrop-filter: blur(28px) saturate(165%);
    -webkit-backdrop-filter: blur(28px) saturate(165%);

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.24),
        0 30px 70px rgba(0, 10, 45, 0.28);
}

/* الإضاءة الخضراء */

.footer-glass::before {
    content: "";
    position: absolute;

    width: 420px;
    height: 420px;
    top: -260px;
    right: -150px;

    background: rgba(48, 222, 150, 0.18);
    filter: blur(100px);
    border-radius: 50%;

    pointer-events: none;
}

/* الإضاءة الزرقاء */

.footer-glass::after {
    content: "";
    position: absolute;

    width: 430px;
    height: 430px;
    bottom: -280px;
    left: -160px;

    background: rgba(64, 133, 255, 0.20);
    filter: blur(105px);
    border-radius: 50%;

    pointer-events: none;
}

/* =========================================
   أعمدة الفوتر
========================================= */

.footer-grid {
    position: relative;
    z-index: 2;

    display: grid;
    grid-template-columns:
        minmax(260px, 1.35fr)
        minmax(150px, 0.75fr)
        minmax(190px, 0.95fr)
        minmax(210px, 1fr);

    gap: 45px;
    align-items: start;
}

/* =========================================
   الشعار والوصف
========================================= */

.footer-brand {
    max-width: 350px;
}

.footer-logo {
    display: inline-flex;
    align-items: center;

    margin-bottom: 20px;

    text-decoration: none;
}

.footer-logo img {
    display: block;

    width: 220px;
    max-width: 100%;
    height: auto;

    object-fit: contain;
}

.footer-description {
    margin: 0 0 23px;

    color: rgba(255, 255, 255, 0.72);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.9;
}

/* =========================================
   مواقع التواصل
========================================= */

.footer-socials {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-socials a {
    width: 43px;
    height: 43px;
    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    color: rgba(255, 255, 255, 0.86);
    text-decoration: none;

    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 13px;

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.13),
        0 10px 24px rgba(0, 8, 35, 0.16);

    transition:
        transform 0.25s ease,
        color 0.25s ease,
        background 0.25s ease,
        border-color 0.25s ease;
}

.footer-socials a:hover {
    transform: translateY(-3px);

    color: #ffffff;
    background: rgba(41, 207, 140, 0.25);
    border-color: rgba(79, 229, 165, 0.40);
}

.footer-socials svg {
    display: block;

    width: 21px;
    height: 21px;
}

/* =========================================
   عناوين الأعمدة
========================================= */

.footer-column h2 {
    position: relative;

    margin: 4px 0 23px;
    padding-bottom: 13px;

    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
}

.footer-column h2::after {
    content: "";
    position: absolute;

    right: 0;
    bottom: 0;

    width: 37px;
    height: 3px;

    background: linear-gradient(
        90deg,
        #43dc99,
        rgba(67, 220, 153, 0.20)
    );

    border-radius: 999px;
}

/* =========================================
   روابط الفوتر
========================================= */

.footer-links {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 13px;
}

.footer-links a {
    position: relative;

    display: inline-flex;
    align-items: center;
    gap: 8px;

    color: rgba(255, 255, 255, 0.69);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.7;
    text-decoration: none;

    transition:
        color 0.25s ease,
        transform 0.25s ease;
}

.footer-links a::before {
    content: "";

    width: 6px;
    height: 6px;
    flex-shrink: 0;

    background: rgba(67, 220, 153, 0.75);
    border-radius: 50%;

    box-shadow: 0 0 10px rgba(67, 220, 153, 0.45);

    transition:
        transform 0.25s ease,
        background 0.25s ease;
}

.footer-links a:hover {
    color: #ffffff;
    transform: translateX(-4px);
}

.footer-links a:hover::before {
    transform: scale(1.35);
    background: #5aefad;
}

/* =========================================
   معلومات التواصل
========================================= */

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-contact a {
    min-width: 0;
    padding: 11px 12px;

    display: flex;
    align-items: center;
    gap: 10px;

    color: rgba(255, 255, 255, 0.73);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.6;
    text-decoration: none;

    background: rgba(255, 255, 255, 0.065);
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 14px;

    transition:
        transform 0.25s ease,
        color 0.25s ease,
        background 0.25s ease,
        border-color 0.25s ease;
}

.footer-contact a:hover {
    transform: translateX(-3px);

    color: #ffffff;
    background: rgba(255, 255, 255, 0.10);
    border-color: rgba(72, 225, 159, 0.32);
}

.footer-contact svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;

    color: #56e3a5;
}

.footer-contact span {
    min-width: 0;
    overflow-wrap: anywhere;
}

/* =========================================
   أسفل الفوتر
========================================= */

.footer-bottom {
    position: relative;
    z-index: 2;

    margin-top: 42px;
    padding-top: 22px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;

    border-top: 1px solid rgba(255, 255, 255, 0.13);
}

.footer-bottom p {
    margin: 0;

    color: rgba(255, 255, 255, 0.58);
    font-size: 13px;
    line-height: 1.7;
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 20px;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.60);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;

    transition: color 0.25s ease;
}

.footer-legal a:hover {
    color: #62ecab;
}

/* =========================================
   الوصول بلوحة المفاتيح
========================================= */

.footer-logo:focus-visible,
.footer-socials a:focus-visible,
.footer-links a:focus-visible,
.footer-contact a:focus-visible,
.footer-legal a:focus-visible {
    outline: 3px solid rgba(86, 227, 165, 0.75);
    outline-offset: 4px;
}

/* =========================================
   Tablet
========================================= */

@media (max-width: 1050px) {

    .footer-glass {
        padding: 42px 35px 23px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 40px 55px;
    }

    .footer-brand {
        max-width: 420px;
    }
}

/* =========================================
   Mobile
========================================= */

@media (max-width: 650px) {

    .site-footer {
        padding: 10px 12px 18px;
    }

    .footer-glass {
        padding: 32px 19px 20px;

        border-radius: 25px;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .footer-brand {
        max-width: none;
    }

    .footer-logo img {
        width: 205px;
    }

    .footer-description {
        font-size: 14px;
    }

    .footer-column h2 {
        margin-bottom: 19px;
        font-size: 17px;
    }

    .footer-links {
        gap: 11px;
    }

    .footer-links a {
        font-size: 14px;
    }

    .footer-bottom {
        margin-top: 35px;
        padding-top: 20px;

        flex-direction: column;
        align-items: flex-start;
        gap: 13px;
    }

    .footer-legal {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 12px 18px;
    }
}

/* =========================================
   شاشات صغيرة جداً
========================================= */

@media (max-width: 380px) {

    .footer-glass {
        padding-right: 15px;
        padding-left: 15px;
    }

    .footer-logo img {
        width: 185px;
    }

    .footer-contact a {
        padding: 10px;
        font-size: 12px;
    }
}

/* =========================================
   تقليل الحركة
========================================= */

@media (prefers-reduced-motion: reduce) {

    .footer-socials a,
    .footer-links a,
    .footer-links a::before,
    .footer-contact a,
    .footer-legal a {
        transition: none;
    }

    .footer-socials a:hover,
    .footer-links a:hover,
    .footer-contact a:hover {
        transform: none;
    }
}

/* =========================================
   Firestore Pharmacy Results
========================================= */

.pharmacy-results {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(
        var(--pharmacy-columns, 1),
        minmax(0, 1fr)
    );
    gap: 18px;
}

.pharmacy-results-loading {
    width: 100%;
    min-height: 220px;
    padding: 30px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;

    text-align: right;

    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 28px;

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.85),
        0 22px 50px rgba(0, 15, 60, 0.18);
}

.pharmacy-results-loading strong {
    display: block;
    margin-bottom: 5px;

    color: #123477;
    font-size: 17px;
}

.pharmacy-results-loading p {
    margin: 0;

    color: #7181a5;
    font-size: 14px;
}

.pharmacy-loading-spinner {
    width: 38px;
    height: 38px;
    flex-shrink: 0;

    border: 4px solid rgba(22, 188, 126, 0.20);
    border-top-color: #19bd7e;
    border-radius: 50%;

    animation: pharmacy-loading-spin 0.8s linear infinite;
}

@keyframes pharmacy-loading-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 650px) {

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

    .pharmacy-results-loading {
        min-height: 180px;
        padding: 24px 18px;
        border-radius: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .pharmacy-loading-spinner {
        animation: none;
    }
}



/* =========================================
   Live Pharmacy Card
========================================= */

.pharmacy-results.is-single {
    display: flex;
    justify-content: center;
}

.live-pharmacy-card,
.live-pharmacy-card * {
    box-sizing: border-box;
}

.live-pharmacy-card {
    width: 100%;
    max-width: 780px;
    padding: 28px;

    color: #102f72;

    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.91),
            rgba(240, 247, 255, 0.82)
        );

    border: 1px solid rgba(255, 255, 255, 0.80);
    border-radius: 30px;

    backdrop-filter: blur(24px) saturate(155%);
    -webkit-backdrop-filter: blur(24px) saturate(155%);

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        0 25px 55px rgba(0, 14, 60, 0.22);
}

.live-pharmacy-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.live-pharmacy-card__eyebrow {
    color: #4e6997;
    font-size: 16px;
    font-weight: 700;
}

.live-pharmacy-card__status {
    padding: 10px 16px;

    display: inline-flex;
    align-items: center;
    gap: 9px;

    color: #087d51;
    font-size: 14px;
    font-weight: 700;

    background: rgba(45, 213, 145, 0.13);
    border: 1px solid rgba(28, 190, 125, 0.22);
    border-radius: 999px;
}

.live-pharmacy-card__status > span {
    width: 9px;
    height: 9px;

    background: #20bd7e;
    border-radius: 50%;

    box-shadow: 0 0 0 0 rgba(32, 189, 126, 0.50);
    animation: live-pharmacy-pulse 1.8s infinite;
}

@keyframes live-pharmacy-pulse {

    0% {
        box-shadow:
            0 0 0 0 rgba(32, 189, 126, 0.50);
    }

    70% {
        box-shadow:
            0 0 0 9px rgba(32, 189, 126, 0);
    }

    100% {
        box-shadow:
            0 0 0 0 rgba(32, 189, 126, 0);
    }
}

.live-pharmacy-card__divider {
    width: 100%;
    height: 1px;
    margin: 22px 0;

    background: rgba(28, 70, 139, 0.13);
}

.live-pharmacy-card__body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 130px;
    align-items: center;
    gap: 25px;
}

.live-pharmacy-card__city {
    display: inline-block;
    margin-bottom: 5px;

    color: #0ebc7a;
    font-size: 17px;
    font-weight: 700;
}

.live-pharmacy-card__content h3 {
    margin: 0 0 12px;

    color: #0c2c74;
    font-size: clamp(27px, 4vw, 37px);
    font-weight: 700;
    line-height: 1.35;
}

.live-pharmacy-card__address {
    margin: 0 0 12px;

    display: flex;
    align-items: center;
    gap: 8px;

    color: #7181a3;
    font-size: 15px;
    line-height: 1.7;
}

.live-pharmacy-card__address svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;

    color: #18ba7c;
}

.live-pharmacy-card__period {
    margin: 0;

    color: #8290ad;
    font-size: 13px;
    line-height: 1.8;
}

.live-pharmacy-card__image {
    width: 125px;
    height: 125px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(42, 210, 142, 0.10);
    border: 1px solid rgba(42, 210, 142, 0.24);
    border-radius: 26px;
}

.live-pharmacy-card__image img {
    display: block;

    width: 110px;
    height: 110px;

    object-fit: contain;
}

.live-pharmacy-card__actions {
    margin-top: 26px;

    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.live-pharmacy-action {
    min-height: 56px;
    padding: 11px 15px;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    font-family: inherit;
    color: #123477;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;

    background: rgba(236, 244, 255, 0.78);
    border: 1px solid rgba(79, 116, 177, 0.15);
    border-radius: 16px;

    cursor: pointer;

    transition:
        transform 0.25s ease,
        background 0.25s ease,
        box-shadow 0.25s ease;
}

.live-pharmacy-action svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.live-pharmacy-action:hover {
    transform: translateY(-2px);

    background: rgba(255, 255, 255, 0.90);

    box-shadow:
        0 12px 25px rgba(18, 52, 119, 0.10);
}

.live-pharmacy-action--primary {
    color: #ffffff;

    background: linear-gradient(
        135deg,
        #153e92,
        #0b2e7c
    );

    border-color: rgba(13, 50, 131, 0.30);

    box-shadow:
        0 13px 27px rgba(11, 47, 126, 0.24);
}

.live-pharmacy-action--primary:hover {
    background: linear-gradient(
        135deg,
        #194aa8,
        #0d358b
    );
}

.live-pharmacy-action[aria-disabled="true"] {
    opacity: 0.50;
    pointer-events: none;
}

.pharmacy-results-error {
    width: 100%;
    min-height: 200px;
    padding: 30px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;

    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(255, 255, 255, 0.75);
    border-radius: 26px;
}

.pharmacy-results-error strong {
    margin-bottom: 6px;

    color: #a42d3b;
    font-size: 17px;
}

.pharmacy-results-error p {
    margin: 0;

    color: #7181a3;
    font-size: 14px;
}

/* Mobile */

@media (max-width: 600px) {

    .live-pharmacy-card {
        padding: 20px 16px;
        border-radius: 24px;
    }

    .live-pharmacy-card__header {
        align-items: flex-start;
    }

    .live-pharmacy-card__eyebrow {
        font-size: 14px;
    }

    .live-pharmacy-card__status {
        padding: 8px 11px;
        font-size: 12px;
    }

    .live-pharmacy-card__body {
        grid-template-columns: minmax(0, 1fr) 88px;
        gap: 13px;
    }

    .live-pharmacy-card__content h3 {
        font-size: 25px;
    }

    .live-pharmacy-card__address {
        font-size: 13px;
    }

    .live-pharmacy-card__image {
        width: 86px;
        height: 86px;
        border-radius: 20px;
    }

    .live-pharmacy-card__image img {
        width: 76px;
        height: 76px;
    }

    .live-pharmacy-card__actions {
        gap: 8px;
    }

    .live-pharmacy-action {
        min-height: 52px;
        padding: 9px 6px;

        gap: 5px;

        font-size: 13px;
        border-radius: 14px;
    }

    .live-pharmacy-action svg {
        width: 17px;
        height: 17px;
    }
}

@media (max-width: 380px) {

    .live-pharmacy-card__period {
        display: none;
    }

    .live-pharmacy-action {
        flex-direction: column;
        font-size: 11px;
    }
}


/* =========================================
   رسالة اختيار المدينة
========================================= */

.pharmacy-select-city-message {
    width: 100%;
    min-height: 220px;
    padding: 30px;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;

    color: #123477;
    text-align: right;

    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.88),
            rgba(238, 246, 255, 0.78)
        );

    border: 1px solid rgba(255, 255, 255, 0.76);
    border-radius: 28px;

    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.92),
        0 22px 50px rgba(0, 15, 60, 0.17);
}

.pharmacy-select-city-icon {
    width: 55px;
    height: 55px;
    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #18b979;

    background: rgba(34, 205, 137, 0.13);
    border: 1px solid rgba(34, 205, 137, 0.24);
    border-radius: 17px;
}

.pharmacy-select-city-icon svg {
    width: 27px;
    height: 27px;
}

.pharmacy-select-city-message strong {
    display: block;
    margin-bottom: 6px;

    color: #123477;
    font-size: 19px;
    font-weight: 700;
}

.pharmacy-select-city-message p {
    max-width: 440px;
    margin: 0;

    color: #7181a3;
    font-size: 14px;
    line-height: 1.8;
}

@media (max-width: 600px) {

    .pharmacy-select-city-message {
        min-height: 185px;
        padding: 24px 18px;

        flex-direction: column;
        text-align: center;

        border-radius: 22px;
    }

    .pharmacy-select-city-message strong {
        font-size: 17px;
    }
}





/* =========================================
   بطاقات الصيدليات المتعددة
========================================= */

.pharmacy-results.is-multiple {
    display: grid;
    align-items: stretch;
    gap: 18px;
}

.pharmacy-results.is-multiple
.live-pharmacy-card {
    width: 100%;
    max-width: none;
    height: 100%;
    padding: 22px;
}

.live-pharmacy-card--compact
.live-pharmacy-card__body {
    grid-template-columns:
        minmax(0, 1fr)
        90px;

    gap: 15px;
}

.live-pharmacy-card--compact
.live-pharmacy-card__image {
    width: 88px;
    height: 88px;

    border-radius: 21px;
}

.live-pharmacy-card--compact
.live-pharmacy-card__image img {
    width: 78px;
    height: 78px;
}

/* ترتيب البطاقات المتعددة غير فالكمبيوتر */

@media (min-width: 1001px) {

    .pharmacy-results.is-multiple
    .live-pharmacy-card {
        display: flex;
        flex-direction: column;
    }

    .pharmacy-results.is-multiple
    .live-pharmacy-card__body {
        flex: 1;
        align-items: center;
    }

    .pharmacy-results.is-multiple
    .live-pharmacy-card__content h3 {
        min-height: 2.7em;
        margin-bottom: 10px;

        font-size: clamp(22px, 1.7vw, 27px);
        line-height: 1.35;
    }

    .pharmacy-results.is-multiple
    .live-pharmacy-card__address {
        font-size: 13px;
        line-height: 1.7;
    }

    .pharmacy-results.is-multiple
    .live-pharmacy-card__period {
        font-size: 13px;
        line-height: 1.6;
    }

    .pharmacy-results.is-multiple
    .live-pharmacy-card__actions {
        margin-top: auto;
        padding-top: 26px;
    }
}
.live-pharmacy-card--compact
.live-pharmacy-card__actions {
    gap: 8px;
}

.live-pharmacy-card__actions.has-four-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.live-pharmacy-action--whatsapp {
    color: #087c51;

    background: rgba(38, 205, 133, 0.14);
    border-color: rgba(38, 205, 133, 0.25);
}

.live-pharmacy-action--whatsapp:hover {
    color: #05663f;
    background: rgba(38, 205, 133, 0.23);
}

@media (max-width: 750px) {

    .pharmacy-results.is-multiple {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 420px) {

    .live-pharmacy-card--compact
    .live-pharmacy-card__body {
        grid-template-columns:
            minmax(0, 1fr)
            76px;
    }

    .live-pharmacy-card--compact
    .live-pharmacy-card__image {
        width: 74px;
        height: 74px;
    }

    .live-pharmacy-card--compact
    .live-pharmacy-card__image img {
        width: 65px;
        height: 65px;
    }
}



