/* 
   Versailles Hotel - Legendary Premium CSS
   Modern, Responsive, and Luxurious Design
*/

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;900&family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400&display=swap');

:root {
    --primary-gold: #D4AF37;
    --dark-gold: #B8860B;
    --light-gold: #F5E6BE;
    --secondary-dark: #1A1A1A;
    --accent-dark: #2C2C2C;
    --pure-white: #FFFFFF;
    --off-white: #F9F9F9;
    --text-muted: #777777;
    --transition-smooth: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.08);
    --shadow-strong: 0 15px 45px rgba(0, 0, 0, 0.15);
    --glass-bg: rgba(255, 255, 255, 0.9);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
a{
        text-decoration: none;

}
html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Cairo', sans-serif;
    background-color: var(--off-white);
    color: var(--secondary-dark);
    line-height: 1.7;
    direction: rtl;
    overflow-x: hidden;
}
body.en {
    direction: ltr;
}
h1, h2, h3, h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 700;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* ===== Header & Navigation ===== */
.header {
    background-color: var(--glass-bg);
    backdrop-filter: blur(15px);
    box-shadow: var(--shadow-soft);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: var(--transition-smooth);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-icon img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--primary-gold);
    object-fit: cover;
}

.logo-text h1 {
    font-size: 1.2rem;
    color: var(--secondary-dark);
    margin: 0;
    line-height: 1.1;
}

.logo-text p {
    font-size: 0.75rem;
    color: var(--primary-gold);
    font-weight: 600;
}

.nav {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-link {
    text-decoration: none;
    color: var(--secondary-dark);
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    transition: var(--transition-smooth);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    right: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-gold);
    transition: var(--transition-smooth);
}

.nav-link:hover {
    color: var(--primary-gold);
}

.nav-link:hover::after {
    width: 100%;
}

/* ===== Buttons ===== */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-gold), var(--dark-gold));
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(212, 175, 55, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-gold);
    border: 2px solid var(--primary-gold);
    padding: 10px 22px;
    border-radius: 50px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.btn-secondary:hover {
    background: var(--primary-gold);
    color: white;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
}

/* ===== Hero Section ===== */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.6)), url('12.jpeg') center/cover no-repeat fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 0 20px;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 800px;
    animation: fadeInUp 1s ease;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--primary-gold);
    letter-spacing: 4px;
    margin-bottom: 15px;
}

.hero-title {
    font-size: clamp(2rem, 7vw, 4rem);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.hero-title img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid var(--primary-gold);
}

.hero-description {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.hero-tagline {
    font-size: 1rem;
    margin-bottom: 35px;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.hero-arrow {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2rem;
    color: var(--primary-gold);
    animation: bounce 2s infinite;
    z-index: 3;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
    40% {transform: translateY(-10px);}
    60% {transform: translateY(-5px);}
}

/* ===== Legendary AI Widget ===== */
#ai-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 2000;
}

#ai-toggle {
    width: 65px;
    height: 65px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-gold), var(--dark-gold));
    color: white;
    border: none;
    font-size: 1.8rem;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.4);
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
}

#ai-toggle:hover {
    transform: scale(1.1) rotate(10deg);
}

#ai-panel {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    max-width: 90vw;
    background: white;
    border-radius: 25px;
    box-shadow: var(--shadow-strong);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: var(--transition-smooth);
}

#ai-panel.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.ai-header {
    background: var(--secondary-dark);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ai-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ai-header-info i {
    font-size: 1.5rem;
    color: var(--primary-gold);
}

.ai-header h4 {
    margin: 0;
    font-size: 1rem;
}

.ai-header span {
    font-size: 0.7rem;
    color: #4CAF50;
}

#ai-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
}

#ai-content {
    padding: 20px;
    max-height: 300px;
    overflow-y: auto;
    background: #fcfcfc;
    flex-grow: 1;
}

.ai-welcome {
    background: #eee;
    padding: 12px 15px;
    border-radius: 15px 15px 0 15px;
    margin-bottom: 15px;
    font-size: 0.9rem;
    width: fit-content;
}

#ai-answer {
    background: var(--light-gold);
    padding: 12px 15px;
    border-radius: 15px 15px 15px 0;
    margin-bottom: 15px;
    font-size: 0.9rem;
    color: var(--secondary-dark);
    line-height: 1.5;
    border-right: 3px solid var(--primary-gold);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.ai-footer {
    padding: 15px;
    background: white;
    border-top: 1px solid #eee;
}

.ai-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.ai-buttons button {
    padding: 10px;
    border: 1px solid var(--primary-gold);
    background: white;
    color: var(--secondary-dark);
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.ai-buttons button:hover {
    background: var(--primary-gold);
    color: white;
}

/* ===== Sections General ===== */
section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-label {
    color: var(--primary-gold);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin: 10px 0;
}

.divider {
    width: 60px;
    height: 3px;
    background: var(--primary-gold);
    margin: 0 auto 20px;
}

/* ===== Gallery ===== */
.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.filter-btn {
    padding: 8px 20px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.filter-btn.active, .filter-btn:hover {
    background: var(--primary-gold);
    color: white;
    border-color: var(--primary-gold);
}

.gallery {
    display: none; /* يظهر فقط عند اختيار نوع الشقة */
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    animation: fadeIn 0.5s ease forwards;
}

.gallery-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 60px 20px;
    background: white;
    border: 2px dashed #ddd;
    border-radius: 20px;
    color: var(--text-muted);
    font-size: 1.1rem;
    text-align: center;
}

.gallery-placeholder i {
    font-size: 3rem;
    color: var(--primary-gold);
    opacity: 0.6;
}

.gallery-item {
    border-radius: 15px;
    overflow: hidden;
    height: 250px;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s;
}

.gallery-item:hover img {
    transform: scale(1.1);
}


/* ===== Apartments ===== */
.apartments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.apartment-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);

}

.apartment-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-strong);
}

.apartment-image {
    height: 220px;
    width:  100%;
}

.apartment-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.apartment-info {
    padding: 25px;
}

.apartment-info h3 {
    margin-bottom: 10px;
}

.apartment-info p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
}

.price {
    color: var(--primary-gold);
    font-weight: 700;
    font-size: 1.1rem;
}

/* ===== Booking Form ===== */
.booking {
    background: #f4f4f4;
}

.booking-form {
    background: white;
    padding: 40px;
    border-radius: 25px;
    box-shadow: var(--shadow-strong);
    max-width: 800px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 700;
    font-size: 0.9rem;
}

.form-group input, .form-group select, .form-group textarea {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-family: inherit;
}
.form-groupp select {
    padding: 12px 15px;
    border: 1px solid #922e2e;
    border-radius: 50px;
    font-family: inherit;
}
.form-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

/* ===== Footer ===== */
.footer {
    background: var(--secondary-dark);
    color: white;
    padding: 80px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 50px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-logo img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-links a {
    color: white;
    font-size: 1.5rem;
    transition: var(--transition-smooth);
}

.social-links a:hover {
    color: var(--primary-gold);
}

.footer-section h4 {
    margin-bottom: 25px;
    color: var(--primary-gold);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 12px;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-section ul li a:hover {
    color: white;
    padding-right: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #333;
    font-size: 0.85rem;
    color: #888;
}

/* ===== Responsive Design ===== */
@media (max-width: 1280px) {
    .nav {
        gap: 16px;
    }
    .nav-link {
        font-size: 0.88rem;
    }
}

@media (max-width: 992px) {
    .nav {
        display: none;
    }
    
    .nav.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        padding: 20px;
        box-shadow: var(--shadow-soft);
    }
    
    .menu-toggle {
        display: block;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    section {
        padding: 60px 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-description {
        font-size: 1.2rem;
    }
    
    #ai-panel {
        width: 300px;
        bottom: 70px;
        right: -10px;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
    }
    
    .logo-text h1 {
        font-size: 1rem;
    }
    
    #ai-widget {
        bottom: 20px;
        right: 20px;
    }
}

/* ===== About Section ===== */
.about-section {
    background-color: var(--pure-white);
    overflow: hidden;
}

.about-wrapper {
    display: flex;
    align-items: center;
    gap: 60px;
}

.about-content {
    flex: 1;
}

.divider-left {
    width: 60px;
    height: 3px;
    background: var(--primary-gold);
    margin: 15px 0 25px;
}

.about-text {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    text-align: justify;
}

.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-top: 30px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--secondary-dark);
}

.feature-item i {
    color: var(--primary-gold);
    font-size: 1.2rem;
}

/* ===== AI Thinking Animation ===== */
#ai-thinking {
    padding: 10px;
    display: flex;
    gap: 5px;
}

.dot {
    width: 8px;
    height: 8px;
    background: var(--primary-gold);
    border-radius: 50%;
    animation: dotPulse 1.5s infinite ease-in-out;
}

.dot:nth-child(2) { animation-delay: 0.2s; }
.dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes dotPulse {
    0%, 80%, 100% { transform: scale(0); opacity: 0.3; }
    40% { transform: scale(1); opacity: 1; }
}

/* ===== Reveal Animations ===== */
.reveal {
    position: relative;
    transform: translateY(50px);
    opacity: 0;
    transition: all 1s ease;
}

.reveal-right {
    position: relative;
    transform: translateX(50px);
    opacity: 0;
    transition: all 1s ease;
}

.reveal-left {
    position: relative;
    transform: translateX(-50px);
    opacity: 0;
    transition: all 1s ease;
}

.reveal.active, .reveal-right.active, .reveal-left.active {
    transform: translate(0, 0);
    opacity: 1;
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 992px) {
    .about-wrapper {
        flex-direction: column;
        text-align: center;
    }
    
    .divider-left {
        margin: 15px auto 25px;
    }
    
    .about-images-grid {
        max-width: 500px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .about-image {
        display: none; /* إخفاء الصورة في الجوال كما طلب المستخدم */
    }
    
    .about-features {
        grid-template-columns: 1fr;
    }
    
    section {
        padding: 60px 0;
    }
}

/* ===== Extra Polish & Competitive Features ===== */

/* Back to Top Button */
#back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    background: var(--secondary-dark);
    color: var(--primary-gold);
    border: 2px solid var(--primary-gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
}

#back-to-top.show {
    opacity: 1;
    visibility: visible;
}

#back-to-top:hover {
    background: var(--primary-gold);
    color: white;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--primary-gold);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--dark-gold);
}

/* Floating Animation for Hero Image/Logo */
.hero-title img {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

/* ===== Hero Video Background ===== */
.hero-video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: -1;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ===== Overlapping About Images ===== */
.about-images-grid {
    flex: 1;
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.main-img-wrapper {
    width: 80%;
    height: 80%;
    z-index: 2;
    position: relative;
}

.main-about-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: var(--shadow-strong);
    border: 5px solid white;
}

.sub-img-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 60%;
    height: 60%;
    z-index: 1;
}

.sub-about-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    opacity: 0.8;
}

.image-experience-badge {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: var(--secondary-dark);
    color: white;
    padding: 20px;
    border-radius: 15px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-bottom: 4px solid var(--primary-gold);
    box-shadow: var(--shadow-strong);
}

/* ===== Testimonials Section ===== */
.testimonials-section {
    background: var(--off-white);
}

.testimonials-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    position: relative;
    transition: var(--transition-smooth);
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-strong);
}

.quote-icon {
    color: var(--primary-gold);
    font-size: 2rem;
    margin-bottom: 20px;
    opacity: 0.3;
}

.guest-info {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-top: 30px;
}

.guest-info img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-gold);
}

.guest-info h4 {
    margin: 0;
    font-size: 1.1rem;
}

.guest-info span {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ===== FAQ Section ===== */
.faq-section {
    background: white;
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid #eee;
    padding: 20px 0;
}

.faq-question {
    font-weight: 700;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-smooth);
}

.faq-question:hover {
    color: var(--primary-gold);
}

.faq-answer {
    padding-top: 15px;
    color: var(--text-muted);
    display: none;
    animation: fadeIn 0.5s ease;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
    color: var(--primary-gold);
}

/* ===== Glassmorphism Header & AI ===== */
.header {
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(15px) !important;
}

#ai-panel {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .about-images-grid {
        height: 350px;
        margin-top: 40px;
    }
    .sub-img-wrapper {
        display: none;
    }
    .main-img-wrapper {
        width: 100%;
    }
}

/* ===== Theme System ===== */
html[data-theme="royal"] {
    --primary-gold: #4169E1;
    --dark-gold: #27408B;
    --light-gold: #D6E0F5;
}

html[data-theme="emerald"] {
    --primary-gold: #2E8B57;
    --dark-gold: #1F5C38;
    --light-gold: #D8EFE1;
}

html[data-theme="midnight"] {
    --primary-gold: #8A2BE2;
    --dark-gold: #5B1A96;
    --light-gold: #E9DCF7;
}

/* ===== Site Controls (Header) ===== */
.site-controls {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 6px;
    background: rgba(212, 175, 55, 0.08);
    border-radius: 30px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    margin-inline-start: 6px;
}

.control-btn {
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    font-size: 0.78rem;
    font-family: inherit;
    transition: var(--transition-smooth);
    line-height: 1;
}

.lang-btn {
    background: var(--secondary-dark);
    color: var(--primary-gold);
    letter-spacing: 1px;
    padding: 7px 12px;
    border-radius: 20px;
}

.lang-btn:hover {
    transform: scale(1.05);
}

.theme-btn {
    width: 22px;
    height: 22px;
    padding: 0;
    border-radius: 50%;
    border: 2px solid white;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    transition: transform 0.3s;
    flex-shrink: 0;
}

.theme-btn:hover {
    transform: scale(1.2);
}

.theme-gold { background: #D4AF37; }
.theme-royal { background: #4169E1; }
.theme-emerald { background: #2E8B57; }
.theme-midnight { background: #8A2BE2; }

@media (max-width: 480px) {
    .site-controls {
        gap: 4px;
        padding: 3px 5px;
        margin-inline-start: 4px;
    }
    .theme-btn {
        width: 19px;
        height: 19px;
    }
    .lang-btn {
        padding: 6px 9px;
        font-size: 0.72rem;
    }
}

/* ===== Professional Polish ===== */
.nav-link {
    letter-spacing: 0.3px;
}

.apartment-card {
    position: relative;
}

.apartment-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(135deg, var(--primary-gold), var(--dark-gold));
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.apartment-card:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* تحسين نموذج الحجز */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

/* تأثيرات الصور المتحركة */
input[type="tel"], input[type="text"] {
    transition: border-color 0.3s, box-shadow 0.3s;
}

/* تحسين قابلية الوصول للأزرار */
.filter-btn[aria-pressed="true"],
.filter-btn.active {
    background: var(--primary-gold);
    color: white;
    border-color: var(--primary-gold);
}

/* جعل الهيرو متوافقاً مع الشاشات لمسة */
@media (max-width: 768px) {
    .hero {
        background-attachment: scroll;
    }
}
