

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Cairo', sans-serif;
        }

        :root {
            --primary: #e63946;
            --secondary: #1d3557;
            --accent: #457b9d;
            --light: #f1faee;
            --warning: #ff9e00;
            --success: #2a9d8f;
            --pharmacy-color: #2e7d32;
            /* أخضر طبي */
        }

        body {
            background-color: #f5f7fa;
            color: #333;
            line-height: 1.6;
            padding-top: 78px;
        }

        .container {
            width: 100%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 15px;
        }

        /* Header */
        header {
            background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
            color: white;
            padding: 1rem 0;
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
            position: fixed;
            top: 0;
            right: 0;
            left: 0;
            z-index: 1000;
        }

        .header-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .logo i {
            font-size: 2.2rem;
            color: var(--primary);
        }

        .logo h1 {
            font-size: 1.8rem;
            font-weight: 700;
        }

        .back-home {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: white;
            color: var(--secondary);
            padding: 8px 20px;
            border-radius: 30px;
            text-decoration: none;
            font-weight: 600;
        }

        .back-home:hover {
            background: var(--primary);
            color: white;
        }

        /* Hero Section */
        .hero {
            background:
                linear-gradient(to bottom,
                    rgba(29, 53, 87, 0.3),
                    rgba(29, 53, 87, 0.7)),
                url('../images/hero-pharma.jpg');

            background-size: cover;
            background-position: center;
            color: white;
            padding: 3rem 0;
            text-align: center;
        }

        .hero h2 {
            font-size: 2.2rem;
            margin-bottom: 1rem;
        }

        .hero p {
            font-size: 1.1rem;
        }

        .location-access {
            display: flex;
            justify-content: center;
            gap: 15px;
            margin: 2rem 0 1rem;
            flex-wrap: wrap;
        }

        .btn {
            padding: 12px 24px;
            border: none;
            border-radius: 8px;
            font-weight: 700;
            cursor: pointer;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            background: var(--pharmacy-color);
            color: white;
            transition: 0.3s;
        }

        .btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        }

        /* قائمة الصيدليات */
        .pharmacies-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 25px;
            margin: 40px 0;
        }

        .pharmacy-card {
            background: white;
            border-radius: 16px;
            padding: 1.5rem;
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
            transition: 0.3s;
            border-right: 6px solid var(--pharmacy-color);
            position: relative;
        }

        .pharmacy-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
        }

        .pharmacy-icon {
            width: 60px;
            height: 60px;
            background: var(--pharmacy-color);
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 2rem;
            margin-bottom: 15px;
        }

        .pharmacy-name {
            font-size: 1.4rem;
            font-weight: 700;
            color: var(--secondary);
            margin-bottom: 10px;
        }

        .pharmacy-detail {
            display: flex;
            align-items: center;
            gap: 8px;
            margin: 8px 0;
            color: #555;
        }

        .pharmacy-detail i {
            width: 20px;
            color: var(--pharmacy-color);
        }

        .distance-badge {
            background: var(--success);
            color: white;
            padding: 4px 12px;
            border-radius: 50px;
            font-size: 0.9rem;
            display: inline-block;
            margin: 10px 0;
        }

        .google-route-btn {
            display: block;
            background: #1a73e8;
            color: white;
            text-align: center;
            padding: 12px;
            border-radius: 8px;
            text-decoration: none;
            font-weight: 600;
            margin-top: 15px;
            transition: 0.3s;
        }

        .google-route-btn:hover {
            background: #1558b0;
        }

        .spinner {
            border: 5px solid #f3f3f3;
            border-top: 5px solid var(--pharmacy-color);
            border-radius: 50%;
            width: 50px;
            height: 50px;
            animation: spin 1s linear infinite;
            margin: 30px auto;
        }

        @keyframes spin {
            0% {
                transform: rotate(0deg);
            }

            100% {
                transform: rotate(360deg);
            }
        }

        /* Footer */
        /* ===== Footer Modern ===== */

        footer {
            background: linear-gradient(135deg, var(--secondary), #14213d);
            color: white;
            padding: 3rem 0 2rem;
            margin-top: 3rem;
        }

        /* إزالة التوسيط العمودي القديم */
        .footer-content {
            width: 100%;
        }

        /* توزيع الأعمدة */
        .footer-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
            gap: 40px;
            text-align: right;
        }

        /* عناوين الأعمدة */
        .footer-col h4 {
            margin-bottom: 18px;
            font-size: 1.1rem;
            display: flex;
            align-items: center;
            gap: 8px;
            color: #ffffff;
        }

        /* القوائم */
        .footer-col ul {
            list-style: none;
            padding: 0;
        }

        .footer-col ul li {
            margin-bottom: 12px;
        }

        /* الروابط */
        .footer-col ul li a {
            color: #ccc;
            text-decoration: none;
            /* منع التسطير نهائياً */
            display: inline-flex;
            align-items: center;
            gap: 10px;
            transition: all 0.3s ease;
            font-weight: 500;
            position: relative;
        }

        /* تأثير احترافي */
        .footer-col ul li a:hover {
            color: #ffffff;
            transform: translateX(-8px);
        }

        /* تأثير أيقونة */
        .footer-col ul li a i {
            transition: 0.3s ease;
        }

        .footer-col ul li a:hover i {
            color: #e63946;
            transform: scale(1.25);
        }

        /* خط سفلي متحرك احترافي */
        .footer-col ul li a::after {
            content: "";
            position: absolute;
            bottom: -3px;
            right: 0;
            width: 0%;
            height: 2px;
            background: #e63946;
            transition: 0.3s ease;
        }

        .footer-col ul li a:hover::after {
            width: 100%;
        }

        /* الجزء السفلي */
        .footer-bottom {
            margin-top: 40px;
            border-top: 1px solid rgba(255, 255, 255, 0.15);
            padding-top: 20px;
            text-align: center;
            font-size: 0.95rem;
            color: #bbb;
        }

        /* تحسين شعار الفوتر */
        .footer-logo {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 12px;
        }

        .footer-logo img {
            width: 90px;
            height: 90px;
            object-fit: cover;
            border-radius: 50%;
            background: white;
            padding: 10px;
            box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        .footer-logo img:hover {
            transform: scale(1.08);
            box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
        }

        .footer-logo h2 {
            font-size: 1.3rem;
            font-weight: 700;
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 12px;
            /* المسافة بين الصورة والنص */
        }

        .logo img {
            display: block;
            width: 50px;
            /* حجم الشعار */
            height: 50px;
            border-radius: 50%;
            /* يجعل الصورة دائرية */
            object-fit: cover;
            /* لضمان عدم تشويه الصورة داخل الدائرة */
        }

        .logo h1 {
            font-size: 1.8rem;
            font-weight: 700;
            margin: 0;
        }

        .phone-card-link {
            transition: color 0.2s ease;
            display: inline-block;
        }

        .phone-card-link:hover {
            color: var(--primary) !important;
            text-decoration: underline !important;
        }



        .search-container {
            margin: 20px auto;
            max-width: 800px;
            padding: 0 15px;
        }

        .search-box {
            position: relative;
            width: 100%;
        }

        .search-icon {
            position: absolute;
            right: 18px;
            /* لأن الموقع RTL */
            top: 50%;
            transform: translateY(-50%);
            color: var(--laboratory-color);
            font-size: 1.1rem;
            pointer-events: none;
        }

        #searchInput {
            width: 100%;
            padding: 14px 50px 14px 16px;
            /* مساحة للأيقونة */
            border: 2px solid #e0e0e0;
            border-radius: 50px;
            font-size: 1rem;
            font-family: 'Cairo', sans-serif;
            transition: 0.3s ease;
            background: white;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
        }

        #searchInput:focus {
            border-color: var(--laboratory-color);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
            outline: none;
        }

        /* تأثير عند الكتابة */
        #searchInput:not(:placeholder-shown) {
            border-color: var(--laboratory-color);
        }

        /* استجابة للموبايل */
        @media (max-width: 768px) {
            .search-container {
                margin: 15px auto;
            }

            #searchInput {
                font-size: 16px;
                /* يمنع تكبير iPhone */
                padding: 15px 50px 15px 16px;
            }
        }


        .google-fallback-link:hover {
            background: #3367d6;
            transform: translateY(-2px);
        }

        .no-results {
            text-align: center;
            padding: 40px 20px;
            background: #f9f9f9;
            border-radius: 12px;
            color: #666;
            font-size: 1.1rem;
        }

        .no-results i {
            font-size: 3rem;
            color: #ff9800;
            margin-bottom: 15px;
        }

        .google-fallback-link {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            background: #4285f4;
            color: white;
            padding: 8px 20px;
            border-radius: 50px;
            text-decoration: none;
            margin-top: 10px;
            font-weight: 600;
            transition: 0.3s;
        }

        .google-fallback-link:hover {
            background: #3367d6;
            transform: translateY(-2px);
        }

        .no-results i {
            font-size: 3rem;
            color: #ff9800;
            margin-bottom: 15px;
        }

        .google-fallback-link {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            background: #4285f4;
            color: white;
            padding: 8px 20px;
            border-radius: 50px;
            text-decoration: none;
            margin-top: 10px;
            font-weight: 600;
            transition: 0.3s;
        }

        .google-fallback-link:hover {
            background: #3367d6;
            transform: translateY(-2px);
        }

        .no-results {
            text-align: center;
            padding: 40px 20px;
            background: #f9f9f9;
            border-radius: 12px;
            color: #666;
            font-size: 1.1rem;
        }

        .no-results i {
            font-size: 3rem;
            color: #ff9800;
            margin-bottom: 15px;
        }

        .google-fallback-link {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            background: #4285f4;
            color: white;
            padding: 8px 20px;
            border-radius: 50px;
            text-decoration: none;
            margin-top: 10px;
            font-weight: 600;
            transition: 0.3s;
        }

        .google-fallback-link:hover {
            background: #3367d6;
            transform: translateY(-2px);
        }
