        /* (نفس الأنماط الموجودة، مع إضافة تنسيقات البحث) */
        * {
            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;
            --doctor-color: #2a9d8f;
        }

        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 {
            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 img {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            object-fit: cover;
        }

        .logo h1 {
            font-size: 1.8rem;
            font-weight: 700;
            margin: 0;
        }

        .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 {
            background:
                linear-gradient(
                    135deg,
                    rgba(29,53,87,0.85),
                    rgba(69,123,157,0.75)
                ),
                url('../images/hero-doctor.jpg');
            background-size: cover;
            background-position: center;
            color: white;
            text-align: center;
        }
        

        .hero {
            min-height: 45vh;
            display: flex;
            align-items: center;
            position: relative;
        }
        
        .hero h2 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 2rem;
    opacity: 0.95;
}


.hero h2 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 2rem;
    opacity: 0.95;
}

.btn-primary {
    background: linear-gradient(135deg, #e63946, #c62828);
    font-size: 1.1rem;
    padding: 14px 28px;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(230,57,70,0.4);
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 10px 25px rgba(230,57,70,0.5);
}

@keyframes pulseHero {
    0% { box-shadow: 0 0 0 0 rgba(230,57,70,0.7); }
    70% { box-shadow: 0 0 0 15px rgba(230,57,70,0); }
    100% { box-shadow: 0 0 0 0 rgba(230,57,70,0); }
}

#getLocation {
    animation: pulseHero 2s infinite;
}

.location-access {
    margin-top: 2.5rem;
    gap: 20px;
}

        .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(--doctor-color);
            color: white;
            transition: 0.3s;
        }

        .btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        }



        /* تحسين الاستجابة للموبايل */
        @media (max-width: 768px) {

            .search-container {
                flex-direction: column;
                gap: 12px;
                padding: 12px;
                margin: 15px;
                border-radius: 14px;
            }

            #searchInput {
                width: 100%;
                font-size: 16px;
                /* يمنع تكبير تلقائي في iPhone */
                padding: 14px;
            }

            #searchBtn {
                width: 100%;
                justify-content: center;
                padding: 14px;
                font-size: 1rem;
            }

            .google-fallback-link {
                width: 100%;
                justify-content: center;
                text-align: center;
            }

            .no-results {
                margin: 10px;
                font-size: 1rem;
                padding: 25px 15px;
            }
        }

        /* تحسين إضافي للشاشات الصغيرة جداً */
        @media (max-width: 400px) {

            #searchInput {
                font-size: 15px;
            }

            #searchBtn {
                font-size: 0.95rem;
            }
        }


        #searchInput {
            flex: 1;
            padding: 12px 16px;
            border: 2px solid #e0e0e0;
            border-radius: 8px;
            font-size: 1rem;
            font-family: 'Cairo', sans-serif;
            transition: 0.3s;
        }

        #searchInput:focus {
            border-color: var(--doctor-color);
            outline: none;
        }

        #searchBtn {
            background: var(--doctor-color);
            color: white;
            border: none;
            border-radius: 8px;
            padding: 0 25px;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            display: flex;
            align-items: center;
            gap: 8px;
            transition: 0.3s;
        }

        #searchBtn:hover {
            background: #1e7b6e;
            transform: translateY(-2px);
        }

        .filter-section {
            margin: 30px 0 20px;
            text-align: center;
        }

        .filter-buttons {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            justify-content: center;
        }

        .filter-btn {
            padding: 8px 20px;
            border: 2px solid var(--doctor-color);
            background: transparent;
            color: var(--doctor-color);
            border-radius: 50px;
            font-weight: 600;
            cursor: pointer;
            transition: 0.3s;
        }

        .filter-btn.active,
        .filter-btn:hover {
            background: var(--doctor-color);
            color: white;
        }

        .doctor-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 25px;
            margin: 40px 0;
        }

        .doctor-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(--doctor-color);
        }

        .doctor-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
        }

        .doctor-header {
            display: flex;
            align-items: center;
            gap: 15px;
            margin-bottom: 15px;
        }

        .doctor-avatar {
            width: 70px;
            height: 70px;
            background: var(--doctor-color);
            color: white;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 2rem;
            flex-shrink: 0;
            overflow: hidden;
        }

        .doctor-avatar img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .doctor-name {
            font-size: 1.3rem;
            font-weight: 700;
            color: var(--secondary);
            margin-bottom: 5px;
        }

        .doctor-specialty {
            background: var(--doctor-color);
            color: white;
            padding: 4px 12px;
            border-radius: 50px;
            font-size: 0.9rem;
            display: inline-block;
        }

        .doctor-detail {
            display: flex;
            align-items: center;
            gap: 8px;
            margin: 8px 0;
            color: #555;
        }

        .doctor-detail i {
            width: 20px;
            color: var(--doctor-color);
        }

        .work-days {
            background: #e9f5f2;
            padding: 8px 12px;
            border-radius: 8px;
            font-size: 0.9rem;
            margin: 10px 0;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .work-days i {
            color: var(--doctor-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(--doctor-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);
            }
        }

        .no-results {
            text-align: center;
            padding: 40px 20px;
            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);
        }

        footer {
            background: linear-gradient(135deg, var(--secondary), #14213d);
            color: white;
            padding: 3rem 0 2rem;
            margin-top: 3rem;
        }

        .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: 0.3s;
            position: relative;
        }

        .footer-col ul li a:hover {
            color: #ffffff;
            transform: translateX(-8px);
        }

        .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;
        }

        .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: 0.3s;
        }

        .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;
        }


        .phone-card-link {
            transition: color 0.2s ease;
        }

        .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);
            }
