/* RTL Styles for Arabic Version */
/* Import the main styles first */
@import url('style.css');

/* Reset and fix RTL layout issues */
* {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    font-family: 'Cairo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    direction: rtl;
    text-align: right;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    width: 100%;
}

/* Container fix for RTL */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/* RTL Navigation */
.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: row;
}

.nav-brand {
    order: 1;
}

.nav-menu {
    order: 2;
    flex-direction: row;
}

.hamburger {
    order: 3;
}

/* RTL Brand Icon */
.nav-brand i {
    margin-right: 0;
    margin-left: 0.5rem;
}

/* RTL Hero Content */
.hero-content {
    text-align: right;
}

.hero-title {
    text-align: right;
}

.hero-subtitle {
    text-align: right;
}

.hero-description {
    text-align: right;
}

.hero-features {
    justify-content: flex-start;
}

.hero-buttons {
    justify-content: flex-start;
}


/* RTL Service Items */
.service-content {
    flex-direction: row-reverse;
    text-align: right;
}

.service-item h3 {
    text-align: right;
}

.service-item p {
    text-align: right;
}

/* RTL Apartment Features */
.apartment-features {
    text-align: right;
}

.apartment-features h3 {
    text-align: right;
    margin-bottom: 1rem;
}

.apartment-features li {
    justify-content: flex-start;
}

.apartment-features i {
    margin-left: 0.5rem;
    margin-right: 0;
}

/* Features Grid for Apartment Details */
.apartment-detail .features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.apartment-detail .feature-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.apartment-detail .feature-item i {
    color: #ff6b6b;
    width: 20px;
    font-size: 1rem;
    margin-left: 0.5rem;
    margin-right: 0;
    flex-shrink: 0;
}

.apartment-detail .feature-item span {
    color: #666;
    font-size: 0.95rem;
    line-height: 1.4;
}

/* RTL Info Items */
.info-text {
    text-align: right;
}

.info-text strong {
    text-align: right;
}

.info-text span {
    text-align: right;
}

/* RTL Footer */
.footer-content {
    text-align: right;
}

.footer-section h3,
.footer-section h4 {
    text-align: right;
}

.footer-section p {
    text-align: right;
}

.footer-section ul {
    text-align: right;
}

.footer-section p i {
    margin-left: 0.5rem;
    margin-right: 0;
}

/* RTL Social Links */
.social-links {
    justify-content: flex-start;
}

/* RTL Keywords */
.keywords-container {
    text-align: right;
}



/* RTL Form Elements */
.form-group {
    text-align: right;
}

.form-group label {
    text-align: right;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    text-align: right;
}

/* RTL Gallery Filter */
.filter-buttons {
    justify-content: center;
}

/* RTL Lightbox Navigation */
.lightbox-prev {
    right: 2rem;
    left: auto;
}

.lightbox-next {
    left: 2rem;
    right: auto;
}

.lightbox-prev i::before {
    content: "\f054"; /* chevron-right for RTL */
}

.lightbox-next i::before {
    content: "\f053"; /* chevron-left for RTL */
}

/* RTL Booking Steps */
.steps-container {
    flex-direction: row-reverse;
}

.step {
    text-align: right;
}

/* نسخة طبق الأصل من الإنجليزية مع RTL فقط */
.apartment-card {
    background: linear-gradient(135deg, #f0f4ff, #e8f2ff);
    border: none;
    border-radius: 15px;
    padding: 2rem;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: none;
    margin: 0 0 2rem 0;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    display: block;
    direction: rtl; /* RTL فقط */
}

/* تأكد من أن بطاقات الشقق في الخطوة الأولى تأخذ العرض الكامل */
#step1 .apartment-card {
    max-width: 1200px;
    margin: 0 auto 2rem auto;
    width: 100%;
}

.apartment-card::before {
    display: none;
}

.apartment-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(44, 90, 160, 0.15);
}

.apartment-card .card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.apartment-card .apartment-title {
    color: #2c5aa0;
    font-size: 1.3rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.apartment-card .apartment-title h3 {
    color: #2c5aa0;
    font-size: 1.3rem;
    font-weight: 600;
    margin: 0;
}

.apartment-card .apartment-type {
    background: transparent;
    color: #2c5aa0;
    border: 1px solid #2c5aa0;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
}

.apartment-card .card-body {
    margin-bottom: 1.5rem;
}

.apartment-card .apartment-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.apartment-card .apartment-info h4 {
    color: #2c5aa0;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.apartment-card .apartment-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.apartment-card .apartment-feature {
    background: white;
    color: #2c5aa0;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.85rem;
    border: 1px solid #2c5aa0;
}

.apartment-card .apartment-pricing {
    text-align: right;
}

.apartment-card .price-main {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2c5aa0;
    margin-bottom: 0.25rem;
}

.apartment-card .price-discount {
    color: #28a745;
    font-weight: 600;
    font-size: 0.85rem;
}

.apartment-card .card-footer {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 2px solid #f0f4ff;
}

.apartment-card .select-apartment-btn {
    width: 100%;
    padding: 1.25rem 2rem;
    background: linear-gradient(135deg, #2c5aa0, #4a90e2);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.apartment-card .select-apartment-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(44, 90, 160, 0.3);
}

/* Responsive design for apartment cards - RTL */
@media (max-width: 768px) {
    .apartment-card {
        padding: 1.5rem;
    }
    
    .apartment-card .card-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .apartment-card .apartment-details {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .apartment-card .apartment-pricing {
        text-align: right; /* في الموبايل، السعر يمين */
    }
    
    .apartment-card .price-main {
        font-size: 1.2rem;
    }
}

.apartment-info h3 {
    text-align: right;
}

.apartment-description {
    text-align: right;
}

/* RTL FAQ */
.faq-question {
    text-align: right;
}

.faq-answer {
    text-align: right;
}

.faq-question h3 {
    text-align: right;
}

.faq-answer p {
    text-align: right;
}

/* RTL Contact Methods */
.contact-card {
    text-align: right;
}

.contact-card h3 {
    text-align: right;
}

/* RTL Mobile Navigation */
@media (max-width: 768px) {
    .navbar .container {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .nav-brand {
        order: 1;
    }
    
    .hamburger {
        order: 2;
    }
    
    .nav-menu {
        display: flex;
        flex-direction: column;
        text-align: right;
        padding: 3.5rem 1.5rem 1.5rem 1.5rem;
        right: 0;
        left: auto;
    }
    
    .nav-menu li {
        text-align: right;
        width: 100%;
        margin: 0;
    }
    
    .nav-menu a {
        text-align: right;
        justify-content: flex-start;
        width: 100%;
        display: block;
        padding: 0.75rem 0;
    }
    
    .nav-contact {
        text-align: right;
        width: 100%;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-contact-item {
        justify-content: flex-start;
        text-align: right;
        width: 100%;
        display: flex;
        padding: 0.75rem 0;
    }
    
    .nav-contact-item span {
        text-align: right;
    }
}

/* RTL Responsive Adjustments */
@media (max-width: 768px) {
    .hero-title {
        text-align: center;
    }
    
    .hero-subtitle {
        text-align: center;
    }
    
    .hero-description {
        text-align: center;
    }
    
    .hero-features {
        justify-content: center !important;
        flex-wrap: wrap !important;
        flex-direction: row !important;
        gap: 0.75rem !important;
    }
    
    .hero-features span {
        flex: 0 0 calc(50% - 0.5rem) !important;
        width: calc(50% - 0.5rem) !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center;
        justify-content: center;
    }
    
    .hero-features span i {
        order: -1 !important;
        margin-right: 0.5rem !important;
        margin-left: 0 !important;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .hero-buttons .btn {
        width: auto;
        min-width: 200px;
        max-width: 300px;
    }
    
    .service-item {
        text-align: center;
    }
    
    .service-content {
        flex-direction: column;
        text-align: center;
    }
    
    .apartment-card {
        text-align: center;
    }
    
    .apartment-features {
        text-align: center;
    }
    
    .apartment-features li {
        justify-content: center;
    }
}

/* Additional RTL Fixes */
.rental-info {
    text-align: right;
}

.search-card-header {
    text-align: right;
}

.search-card-header h3 {
    text-align: right;
}

.search-card-action {
    text-align: center;
}

.search-note {
    text-align: center;
}

/* RTL Button Alignments */
.apartment-actions {
    justify-content: center;
}

.cta-buttons {
    justify-content: center;
}

.form-actions {
    justify-content: space-between;
}

/* RTL Text Alignments for Sections */
.section-title {
    text-align: center;
}

.welcome-content h2 {
    text-align: center;
}

.welcome-content p {
    text-align: center;
}

.cta-content h2 {
    text-align: center;
}

.cta-content p {
    text-align: center;
}



/* RTL Booking Form */
.booking-form {
    text-align: right;
}

.form-step h2 {
    text-align: center;
}

.customer-booking-form label {
    text-align: right;
    justify-content: flex-start;
}

.customer-booking-form label i {
    margin-left: 0.5rem;
    margin-right: 0;
}

/* RTL Selected Apartment Summary */
.selected-apartment-summary {
    text-align: right;
}

.summary-header {
    justify-content: space-between;
}

.summary-title {
    text-align: right;
}

.summary-details {
    text-align: right;
}

.summary-info h4 {
    text-align: right;
}



/* RTL Gallery Count */
.gallery-count {
    text-align: center;
}

/* RTL Map Section */
.location-info {
    text-align: center;
}

.location-actions {
    justify-content: center;
}

/* RTL Success Modal */
.success-modal .modal-content {
    text-align: center;
}

.success-modal h2 {
    text-align: center;
}

.success-modal p {
    text-align: center;
}

.success-modal .reference-number {
    text-align: center;
}

.success-modal .modal-actions {
    justify-content: center;
}

/* RTL Placeholder Images */
.placeholder-image {
    text-align: center;
}

/* RTL Loading and Error States */
.loading-message {
    text-align: center;
}

.no-apartments {
    text-align: center;
}

.image-error {
    text-align: center;
}

/* RTL Notification Section */
.notification-content {
    text-align: center;
}

.notification-content h2 {
    text-align: center;
}

.notification-content p {
    text-align: center;
}

/* RTL Price Display */
.price-card {
    text-align: right;
}

.price-card h3 {
    text-align: center;
}

.price-row {
    justify-content: space-between;
}

.price-label {
    text-align: right;
}

.price-value {
    text-align: left;
}

.price-note {
    text-align: right;
}

.price-note i {
    margin-left: 0.5rem;
    margin-right: 0;
}

/* RTL Hero Carousel Fixes */
.hero-carousel {
    direction: ltr; /* Keep carousel direction LTR for proper positioning */
}

.hero-slide {
    direction: rtl; /* But content should be RTL */
}

/* RTL Navigation Arrows - Correct positioning and direction */
.hero-prev {
    left: 2rem;
    right: auto;
}

.hero-next {
    right: 2rem;
    left: auto;
}

/* Ensure proper visibility for hero slides */
.hero-slide {
    opacity: 0;
    visibility: hidden;
    transition: all 0.8s ease-in-out;
}

.hero-slide.active {
    opacity: 1 !important;
    visibility: visible !important;
}

/* RTL Hero Features */
.hero-features {
    justify-content: flex-start;
}

.hero-features span {
    display: flex;
    align-items: center;
}

.hero-features span i {
    order: -1;
    margin-right: 0.5rem;
    margin-left: 0;
}

/* RTL Hero Buttons */
.hero-buttons {
    justify-content: flex-start;
}

/* Fix for initial slide visibility */
.hero-carousel .hero-slide:first-child {
    opacity: 1;
    visibility: visible;
}
/* Force first slide to be visible immediately */
.hero-slide:first-child {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Prevent flash of unstyled content */
.hero-carousel {
    opacity: 1;
}

.hero-slide {
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
}

/* Ensure proper z-index for slides */
.hero-slide.active {
    z-index: 2;
}

.hero-slide:not(.active) {
    z-index: 1;
}
/* RTL Services - Use original design with RTL adjustments */
.service-item {
    text-align: center;
}

.service-item h3 {
    text-align: center !important;
    margin-bottom: 1rem;
}

.service-content {
    display: flex !important;
    align-items: flex-start !important;
    text-align: right;
    flex-direction: row !important; /* Normal row direction */
    justify-content: flex-start !important;
}

.service-content .service-icon {
    margin-left: 0 !important;
    margin-right: 1rem !important; /* Space after icon (to the left of icon) */
    flex-shrink: 0;
    order: 1 !important; /* Icon comes first */
}

.service-content p {
    text-align: right !important;
    flex: 1;
    order: 2 !important; /* Text comes second */
}
/* Additional RTL adjustments for mobile */
@media (max-width: 768px) {
    .service-content {
        flex-direction: column !important;
        text-align: center !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .service-content .service-icon {
        margin: 0 0 1rem 0 !important;
    }
    
    .service-content p {
        text-align: center !important;
    }
}
/* Force RTL direction for service content */
.service-content {
    direction: rtl !important;
}

/* Ensure proper RTL layout */
.service-item {
    direction: rtl !important;
}
/* RTL Services Grid - 3 cards per row layout */
.services-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 2rem !important;
    margin-top: 2rem !important;
}

.service-item {
    width: 100% !important;
    max-width: none !important;
    min-width: auto !important;
    padding: 2.5rem 2rem !important; /* Increase padding for wider cards */
}

/* Make service content more spacious */
.service-content {
    gap: 1.5rem !important;
}

.service-content p {
    font-size: 1rem !important;
    line-height: 1.6 !important;
}

/* Responsive grid for services */
@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.5rem !important;
    }
    
    .service-item {
        padding: 2rem 1.5rem !important;
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    .service-item {
        padding: 1.5rem !important;
    }
}
/* Enhanced styling for wider service cards */
.service-item h3 {
    font-size: 1.4rem !important;
    margin-bottom: 1.5rem !important;
    font-weight: 600 !important;
}

.service-icon {
    width: 70px !important;
    height: 70px !important;
    flex-shrink: 0 !important;
}

.service-icon i {
    font-size: 1.8rem !important;
}

/* Better spacing for RTL in wider cards */
.service-content .service-icon {
    margin-left: 1.5rem !important;
}

/* Ensure proper alignment in wider cards */
.service-content p {
    margin: 0 !important;
    flex: 1 !important;
}
/* RTL Hero Indicators - Ensure visibility */
.hero-indicators {
    display: flex !important;
    position: absolute !important;
    bottom: 2rem !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    gap: 1rem !important;
    z-index: 10 !important;
}

.indicator {
    width: 12px !important;
    height: 12px !important;
    border-radius: 50% !important;
    border: 2px solid rgba(255, 255, 255, 0.7) !important;
    background: transparent !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    padding: 0 !important;
    outline: none !important;
}

.indicator.active,
.indicator:hover {
    background: white !important;
    border-color: white !important;
    transform: scale(1.2) !important;
}
/* RTL Gallery Page Styles */

/* Gallery Filter Buttons */
.filter-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2rem 0;
}

.filter-btn {
    padding: 0.8rem 1.5rem;
    border: 2px solid #2c5aa0;
    background: white;
    color: #2c5aa0;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.9rem;
}

.filter-btn:hover,
.filter-btn.active {
    background: #2c5aa0;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(44, 90, 160, 0.3);
}

/* Gallery Grid */
.gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    background: white;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Gallery Overlay */
.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    padding: 2rem 1.5rem 1.5rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-info h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: white;
}

.gallery-info p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 1rem;
}

.gallery-zoom {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background: rgba(255,255,255,0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0;
}

.gallery-item:hover .gallery-zoom {
    opacity: 1;
}

.gallery-zoom:hover {
    background: white;
    transform: scale(1.1);
}

.gallery-zoom i {
    color: #2c5aa0;
    font-size: 1rem;
}

/* Lightbox RTL Styles */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    display: none;
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-content img {
    max-width: 90%;
    max-height: 90%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
    transition: opacity 0.3s ease;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    left: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    background: rgba(0, 0, 0, 0.7);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.5);
    line-height: 1;
    user-select: none;
    -webkit-user-select: none;
}

.lightbox-close:hover,
.lightbox-close:focus {
    background: rgba(255, 0, 0, 0.7);
    transform: scale(1.1) rotate(90deg);
    border-color: rgba(255, 255, 255, 0.8);
}

/* RTL Lightbox Navigation */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.lightbox-prev,
.lightbox-next {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    pointer-events: all;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255,255,255,0.4);
    transform: scale(1.1);
}

/* RTL Navigation - Swap positions */
.lightbox-prev {
    right: -60px;
    left: auto;
}

.lightbox-next {
    left: -60px;
    right: auto;
}

/* Page Header - نسخة طبق الأصل من الإنجليزية */
.page-header {
    background: linear-gradient(135deg, #2c5aa0, #667eea);
    color: white;
    padding: 120px 0 60px;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Gallery Filter Section */
.gallery-filter {
    background: #f8f9fa;
    padding: 3rem 0;
}

/* Gallery Grid Section */
.gallery-grid {
    padding: 4rem 0;
    background: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .gallery-container {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1rem;
    }
    
    .filter-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }
    
    .filter-btn {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }
    
    .page-header h1 {
        font-size: 2rem;
    }
    
    .page-header p {
        font-size: 1rem;
        padding: 0 1rem;
    }
    
    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
    }
    
    .lightbox-prev {
        right: -50px;
    }
    
    .lightbox-next {
        left: -50px;
    }
}

@media (max-width: 480px) {
    .gallery-container {
        grid-template-columns: 1fr;
    }
    
    .gallery-item img {
        height: 200px;
    }
}
/* Contact Methods Section */
.contact-methods {
    padding: 80px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.contact-methods h2 {
    text-align: center;
    margin-bottom: 1rem;
    color: #2c5aa0;
    font-size: 2.5rem;
    font-weight: 700;
}

.contact-methods > .container > p {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.contact-methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.contact-method {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.contact-method:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.contact-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #2c5aa0, #1e3d6f);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.contact-method:hover .contact-icon {
    transform: scale(1.1);
    background: linear-gradient(135deg, #1e3d6f, #2c5aa0);
}

.contact-icon i {
    font-size: 2rem;
    color: white;
}

.contact-method h3 {
    color: #2c5aa0;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.contact-method p {
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.contact-method .btn {
    width: 100%;
    padding: 12px 20px;
    font-weight: 500;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.contact-method .btn:hover {
    transform: translateY(-2px);
}

/* Contact Hours */
.contact-hours {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
}

.hours-info h3 {
    color: #2c5aa0;
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.hours-info h3 i {
    margin-left: 0.5rem;
    color: #28a745;
}

.hours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.hours-item {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 15px;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.hours-item:hover {
    border-color: #2c5aa0;
    background: #f0f4ff;
}

.hours-item .day {
    display: block;
    font-weight: 600;
    color: #2c5aa0;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.hours-item .time {
    display: block;
    color: #333;
    font-size: 1rem;
    font-weight: 500;
}

.hours-note {
    background: linear-gradient(135deg, #e8f5e8, #d4edda);
    padding: 1.5rem;
    border-radius: 15px;
    color: #155724;
    font-weight: 500;
    border: 1px solid #c3e6cb;
}

.hours-note i {
    color: #28a745;
    margin-left: 0.5rem;
}

/* WhatsApp Button Special Styling */
.btn-whatsapp {
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: white;
    border: none;
}

.btn-whatsapp:hover {
    background: linear-gradient(135deg, #128c7e, #25d366);
    color: white;
}

/* Responsive Design for Contact Methods */
@media (max-width: 768px) {
    .contact-methods {
        padding: 60px 0;
    }
    
    .contact-methods h2 {
        font-size: 2rem;
    }
    
    .contact-methods-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 3rem;
    }
    
    .contact-method {
        padding: 2rem 1.5rem;
    }
    
    .contact-hours {
        padding: 2rem 1.5rem;
    }
    
    .hours-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .hours-item {
        padding: 1rem;
    }
}

@media (max-width: 480px) {
    .contact-methods {
        padding: 40px 0;
    }
    
    .contact-method {
        padding: 1.5rem 1rem;
    }
    
    .contact-icon {
        width: 60px;
        height: 60px;
    }
    
    .contact-icon i {
        font-size: 1.5rem;
    }
    
    .contact-method h3 {
        font-size: 1.3rem;
    }
}
/* Booking Page Styles */
.booking-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.booking-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.booking-info h2 {
    color: #2c5aa0;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.booking-features {
    display: grid;
    gap: 1.5rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.feature-item i {
    font-size: 1.2rem;
    color: #ff6b6b;
    width: 20px;
    flex-shrink: 0;
    margin-left: 0.5rem;
}

.feature-item span {
    color: #666;
    font-size: 1rem;
    line-height: 1.4;
}

.booking-form-container {
    background: white;
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.booking-form h2 {
    color: #2c5aa0;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
}

.btn-large {
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
}

.form-note {
    text-align: center;
    color: #666;
    font-size: 0.9rem;
    margin-top: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #e9ecef;
}

.form-note i {
    color: #2c5aa0;
    margin-left: 0.5rem;
}

/* Quick Contact Section */
.quick-contact {
    padding: 60px 0;
    background: linear-gradient(135deg, #2c5aa0, #1e3d6f);
    color: white;
    text-align: center;
}

.quick-contact h2 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.quick-contact p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.quick-contact-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.quick-contact .btn {
    min-width: 200px;
}

.quick-contact .btn-outline {
    border-color: white;
    color: white;
}

.quick-contact .btn-outline:hover {
    background: white;
    color: #2c5aa0;
}

/* Responsive Design for Booking */
@media (max-width: 1024px) {
    .booking-content {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    
    .booking-form-container {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .booking-section {
        padding: 60px 0;
    }
    
    .booking-info h2 {
        font-size: 1.8rem;
    }
    
    .booking-form-container {
        padding: 1.5rem;
    }
    
    .booking-form h2 {
        font-size: 1.6rem;
    }
    
    .quick-contact {
        padding: 40px 0;
    }
    
    .quick-contact h2 {
        font-size: 1.8rem;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .apartment-detail .feature-item {
        padding: 0.6rem;
    }
    
    .apartment-detail .feature-item i {
        font-size: 0.9rem;
    }
    
    .apartment-detail .feature-item span {
        font-size: 0.9rem;
    }
    
    .quick-contact-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .quick-contact .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 480px) {
    .booking-form-container {
        padding: 1rem;
    }
    
    .feature-item {
        padding: 1rem;
    }
    
    .feature-item i {
        font-size: 1.5rem;
    }
    
    .feature-item h3 {
        font-size: 1.1rem;
    }
}
/* Quick Contact Header Buttons */
.quick-contact-header {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.quick-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    min-width: 140px;
    justify-content: center;
}

.quick-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    text-decoration: none;
}

.phone-btn {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
}

.phone-btn:hover {
    background: linear-gradient(135deg, #20c997, #28a745);
    color: white;
}

.whatsapp-btn {
    background: linear-gradient(135deg, #25d366, #128c7e);
    color: white;
}

.whatsapp-btn:hover {
    background: linear-gradient(135deg, #128c7e, #25d366);
    color: white;
}

.booking-btn {
    background: linear-gradient(135deg, #2c5aa0, #1e3d6f);
    color: white;
}

.booking-btn:hover {
    background: linear-gradient(135deg, #1e3d6f, #2c5aa0);
    color: white;
}

.quick-btn i {
    font-size: 1.1rem;
}

/* Responsive for Quick Contact Header */
@media (max-width: 768px) {
    .quick-contact-header {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    
    .quick-btn {
        width: 100%;
        max-width: 250px;
    }
}

@media (max-width: 480px) {
    .quick-btn {
        padding: 10px 16px;
        font-size: 0.9rem;
    }
}
/* Ensure Map Section Styles for RTL */
.map-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.map-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #2c5aa0;
    font-size: 2.5rem;
    font-weight: 700;
}

.map-container {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.mapouter {
    position: relative;
    text-align: right;
    width: 100%;
    height: 500px;
}

.gmap_canvas {
    overflow: hidden;
    background: none !important;
    width: 100%;
    height: 500px;
}

.gmap_canvas iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.location-info {
    padding: 2rem;
    text-align: center;
}

.location-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.location-actions .btn {
    min-width: 200px;
}

/* Ensure FAQ Section Styles for RTL */
.faq-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.faq-section h2 {
    text-align: center;
    margin-bottom: 3rem;
    color: #2c5aa0;
    font-size: 2.5rem;
    font-weight: 700;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    margin-bottom: 1rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    overflow: hidden;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.faq-question:hover {
    background: #f8f9fa;
}

.faq-question h3 {
    margin: 0;
    color: #2c5aa0;
    font-size: 1.2rem;
    font-weight: 600;
}

.faq-question i {
    color: #2c5aa0;
    transition: transform 0.3s ease;
    font-size: 1.2rem;
}

.faq-item.active .faq-question i {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 0 1.5rem 1.5rem;
    max-height: 300px;
}

.faq-answer p {
    margin: 0;
    color: #666;
    line-height: 1.8;
    font-size: 1rem;
}

/* Contact Form Section Styles */
.contact-section {
    padding: 80px 0;
    background: white;
}

.contact-form-section {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form-section h2 {
    text-align: center;
    margin-bottom: 1rem;
    color: #2c5aa0;
    font-size: 2.2rem;
    font-weight: 700;
}

.contact-form-section > p {
    text-align: center;
    color: #666;
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.contact-form {
    background: #f8f9fa;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 600;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2c5aa0;
    box-shadow: 0 0 0 3px rgba(44, 90, 160, 0.1);
}

.form-note {
    font-size: 0.875rem;
    color: #666;
    margin-top: 0.5rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    justify-content: center;
}

.btn-primary {
    background: linear-gradient(135deg, #2c5aa0, #1e3d6f);
    color: white;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1e3d6f, #2c5aa0);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(44, 90, 160, 0.3);
}

.btn-outline {
    background: transparent;
    color: #2c5aa0;
    border: 2px solid #2c5aa0;
}

.btn-outline:hover {
    background: #2c5aa0;
    color: white;
}

.honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
}

/* Responsive Styles for RTL */
@media (max-width: 768px) {
    .map-section,
    .faq-section,
    .contact-section {
        padding: 60px 0;
    }
    
    .map-section h2,
    .faq-section h2,
    .contact-form-section h2 {
        font-size: 2rem;
        margin-bottom: 2rem;
    }
    
    .mapouter,
    .gmap_canvas {
        height: 400px;
    }
    
    .location-info {
        padding: 1.5rem;
    }
    
    .location-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .location-actions .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .contact-form {
        padding: 2rem 1.5rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .faq-question {
        padding: 1rem;
    }
    
    .faq-question h3 {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .map-section,
    .faq-section,
    .contact-section {
        padding: 40px 0;
    }
    
    .mapouter,
    .gmap_canvas {
        height: 300px;
    }
    
    .location-info {
        padding: 1rem;
    }
    
    .contact-form {
        padding: 1.5rem 1rem;
    }
    
    .contact-form-section h2 {
        font-size: 1.8rem;
    }
    
    .faq-question h3 {
        font-size: 1rem;
    }
}
/* Force display of all sections */
section {
    display: block !important;
    visibility: visible !important;
}



/* Ensure all sections have proper spacing and visibility */
.contact-methods,
.contact-section,
.map-section,
.faq-section {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
}

/* Final styles for proper display */
.contact-methods {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 80px 0;
}

.map-section {
    background: #f8f9fa;
    padding: 80px 0;
}

.faq-section {
    background: #f8f9fa;
    padding: 80px 0;
}
/* Fix layout overflow issues */
section {
    width: 100%;
    overflow-x: hidden;
}

/* Fix grid layouts for RTL */
.contact-methods-grid,
.hours-grid,
.form-row {
    width: 100%;
    box-sizing: border-box;
}

.contact-methods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    width: 100%;
    max-width: 100%;
}

.hours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    width: 100%;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    width: 100%;
}

/* Fix contact method cards */
.contact-method {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Fix form elements */
.contact-form {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.form-group {
    width: 100%;
    box-sizing: border-box;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    box-sizing: border-box;
}

/* Fix map container */
.map-container {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.mapouter,
.gmap_canvas {
    width: 100%;
    max-width: 100%;
}

/* Fix FAQ container */
.faq-container {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    width: 100%;
    box-sizing: border-box;
}

/* Fix footer */
.footer-content {
    width: 100%;
    box-sizing: border-box;
}

.footer-keywords {
    width: 100%;
    overflow: hidden;
}

.keywords-container {
    width: 100%;
    box-sizing: border-box;
}

/* Responsive fixes */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .contact-methods-grid {
        grid-template-columns: 1fr;
    }
    
    .hours-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    body {
        font-size: 14px;
    }
}
/* Fix FAQ answer padding */
.faq-item.active .faq-answer {
    padding: 1.5rem 1.5rem 1.5rem 1.5rem !important;
    max-height: 300px;
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-answer p {
    margin: 1rem 0 !important;
    color: #666;
    line-height: 1.8;
    font-size: 1rem;
    padding-top: 0.5rem;
}
/* Fix spacing for form note under workplace select */
.form-note {
    font-size: 0.875rem;
    color: #666;
    margin-top: 0.75rem !important;
    padding-top: 0.5rem;
    line-height: 1.5;
    display: block;
}
/* RTL Brand Logo Styles - Unified size for Arabic pages */
.brand-logo {
    margin-right: 0;
    margin-left: 15px;
    height: 40px !important;
    width: auto !important;
    max-width: none !important;
    object-fit: contain;
}

@media (max-width: 768px) {
    .brand-logo {
        margin-left: 10px;
        height: 35px !important;
    }
}

@media (max-width: 480px) {
    .brand-logo {
        margin-left: 8px;
        height: 30px !important;
    }
}
/* Footer Logo Styles for Arabic pages */
.footer-logo {
    height: 35px;
    width: auto;
    margin-left: 10px;
    vertical-align: middle;
    object-fit: contain;
}

.footer-section h3 {
    display: flex;
    align-items: center;
    flex-direction: row-reverse; /* عكس الترتيب: الشعار أولاً ثم النص */
    justify-content: flex-end;
    direction: rtl;
    text-align: right;
}

@media (max-width: 768px) {
    .footer-logo {
        height: 30px;
        margin-left: 8px;
    }
}

@media (max-width: 480px) {
    .footer-logo {
        height: 28px;
        margin-left: 6px;
    }
}
/* Additional RTL Footer fixes */
.footer-section {
    direction: rtl;
    text-align: right;
}

.footer-section h3 {
    direction: rtl !important;
    text-align: right !important;
    display: flex !important;
    flex-direction: row-reverse !important; /* عكس الترتيب للحصول على: شعار + نص */
    justify-content: flex-end !important;
    align-items: center !important;
}

/* Ensure proper RTL layout for footer logo */
.footer-section h3 .footer-logo {
    margin-left: 10px;
    margin-right: 0;
}

.footer-section h3 {
    flex-wrap: nowrap;
}

/* Override any conflicting styles */
[dir="rtl"] .footer-section h3 {
    flex-direction: row-reverse !important;
    justify-content: flex-end !important;
}
/* Ensure nav-brand h1 is visible in RTL */
.nav-brand h1 {
    color: #2c5aa0 !important;
    font-size: 1.8rem !important;
    font-weight: 600 !important;
    margin: 0 !important;
    display: block !important;
    visibility: visible !important;
}

/* Fix any potential z-index issues */
.nav-brand {
    position: relative;
    z-index: 10;
}

.brand-link {
    display: flex !important;
    align-items: center !important;
    text-decoration: none !important;
    color: inherit !important;
}

.brand-link h1 {
    color: #2c5aa0 !important;
}
/* Additional fixes for nav-brand visibility */
.header .nav-brand h1 {
    color: #2c5aa0 !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

.header .brand-link h1 {
    color: #2c5aa0 !important;
    text-decoration: none !important;
}

/* Ensure proper contrast */
.navbar .nav-brand h1 {
    background: transparent !important;
    color: #2c5aa0 !important;
}

/* Force visibility for contact page specifically */
body .header .nav-brand h1,
body .navbar .nav-brand h1,
body .brand-link h1 {
    color: #2c5aa0 !important;
    font-weight: 600 !important;
    font-size: 1.8rem !important;
}
/* Booking Page RTL - Copy from English version with RTL adjustments */
.simple-booking-section {
    padding: 60px 0;
    background: #f8f9fa;
}

.booking-step {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.booking-step.active {
    display: block;
    opacity: 1;
}

.step-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.step-header {
    text-align: center;
    margin-bottom: 3rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e9ecef;
}

.step-header h2 {
    color: #2c5aa0;
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-direction: row-reverse; /* RTL */
}

.step-header p {
    color: #666;
    font-size: 1.1rem;
}

.apartments-grid {
    width: 100%;
    max-width: none;
    margin: 0 auto 3rem auto;
    padding: 0;
}

/* Step Container - RTL version */
.step-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* توسيط محتوى الخطوة الثانية في حاوية عريضة */
#step2 .selected-apartment-summary,
#step2 .customer-form-container {
    max-width: 1200px;
    margin: 0 auto 2rem auto;
    width: 100%;
}
    margin: 0 auto; /* توسيط كل عنصر على حدة */
    text-align: right; /* النصوص العربية لليمين */
}

/* Apartments Grid - RTL version */
.apartments-grid {
    width: 100%;
    max-width: 1200px; /* نفس عرض الصفحة الإنجليزية */
    margin: 0 auto;
    padding: 0;
}

.apartment-cards {
    display: block;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

/* RTL version - make Step 1 container match Step 2 exactly */
#step1 .apartments-grid,
#step1 .apartment-cards {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Ensure selected apartment summary matches card width - RTL */
.selected-apartment-summary {
    background: linear-gradient(135deg, #f0f4ff, #e8f2ff);
    border: none;
    border-radius: 15px;
    padding: 2rem;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: none;
    direction: rtl; /* RTL */
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.customer-form-container {
    background: white;
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.08);
    max-width: 800px;
    margin: 0 auto;
    direction: rtl; /* RTL */
}



.selected-apartment-summary::before {
    display: none;
}

.summary-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    direction: rtl;
}

.summary-title {
    color: #2c5aa0;
    font-size: 1.3rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-direction: row-reverse; /* RTL */
}

.change-apartment-btn {
    background: transparent;
    color: #2c5aa0;
    border: 1px solid #2c5aa0;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.change-apartment-btn:hover {
    background: #2c5aa0;
    color: white;
}

.summary-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    direction: rtl;
}

.summary-info h4 {
    color: #2c5aa0;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
    text-align: right;
}

.summary-info p {
    text-align: right;
}

.summary-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
    justify-content: flex-start;
}

.summary-feature {
    background: white;
    color: #2c5aa0;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.85rem;
    border: 1px solid #2c5aa0;
}

.summary-pricing {
    text-align: left; /* السعر في اليسار */
}

.summary-price-main {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2c5aa0;
    margin-bottom: 0.25rem;
}

.summary-price-discount {
    color: #28a745;
    font-weight: 600;
    font-size: 0.85rem;
}

/* Customer Form Container - RTL */

.customer-booking-form {
    direction: rtl;
}

.customer-booking-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.customer-booking-form .form-group {
    margin-bottom: 1.5rem;
    text-align: right;
}

.customer-booking-form label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: #333;
    flex-direction: row-reverse;
    justify-content: flex-end;
    text-align: right;
}

.customer-booking-form label i {
    color: #2c5aa0;
    width: 20px;
    margin-left: 0.5rem;
    margin-right: 0;
    flex-shrink: 0;
}

.customer-booking-form input,
.customer-booking-form textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
    text-align: right;
    direction: rtl;
}

.customer-booking-form input:focus,
.customer-booking-form textarea:focus {
    outline: none;
    border-color: #2c5aa0;
    box-shadow: 0 0 0 3px rgba(44, 90, 160, 0.1);
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
    direction: rtl;
}

.form-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex-direction: row-reverse;
}

.form-actions .btn i {
    margin-left: 0.5rem;
    margin-right: 0;
}

.btn-large {
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    min-width: 200px;
}

.loading-message {
    text-align: center;
    padding: 3rem;
    color: #666;
}

.loading-message i {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #2c5aa0;
}

/* Validation Styles RTL */
.validation-error {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 0.3rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    direction: rtl;
    justify-content: flex-start;
    flex-direction: row-reverse;
}

.validation-success {
    color: #28a745;
    font-size: 0.85rem;
    margin-top: 0.3rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    direction: rtl;
    justify-content: flex-start;
    flex-direction: row-reverse;
}

.customer-booking-form input.valid,
.customer-booking-form textarea.valid {
    border-color: #28a745 !important;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1) !important;
}

.customer-booking-form input.invalid,
.customer-booking-form textarea.invalid {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1) !important;
}

/* Responsive Design */
@media (max-width: 768px) {
    .step-container {
        padding: 0 15px;
    }
    
    .summary-details {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .customer-booking-form .form-row {
        grid-template-columns: 1fr;
    }
    
    .customer-form-container {
        padding: 1.5rem;
    }
    
    .form-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-large {
        width: 100%;
        max-width: 300px;
    }
    
    .step-header h2 {
        font-size: 1.8rem;
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (max-width: 480px) {
    .step-header h2 {
        font-size: 1.6rem;
    }
    
    .customer-form-container {
        padding: 1rem;
    }
}
/* Enhanced width for large screens */
@media (min-width: 1400px) {
    .step-container {
        max-width: 1600px;
        padding: 0 40px;
    }
    
    .apartments-grid {
        max-width: 1600px;
    }
    
    .apartment-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 4rem;
    }
    
    .customer-form-container {
        max-width: 1200px;
        padding: 3rem;
    }
    
    .selected-apartment-summary {
        max-width: 1200px;
    }
}

@media (min-width: 1200px) and (max-width: 1399px) {
    .apartment-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 3.5rem;
    }
}

/* Better spacing for medium-large screens */
@media (min-width: 992px) and (max-width: 1199px) {
    .apartment-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 3rem;
    }
    
    .customer-form-container {
        max-width: 900px;
    }
    
    .selected-apartment-summary {
        max-width: 900px;
    }
}

/* Single column for smaller screens */
@media (max-width: 991px) {
    .apartment-cards {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}
/* Enhanced button styling for apartment selection */
.select-apartment-btn {
    width: 100% !important;
    padding: 1.5rem 2.5rem !important;
    font-size: 1.2rem !important;
    font-weight: 600 !important;
    min-height: 60px !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, #2c5aa0, #4a90e2) !important;
    color: white !important;
    border: none !important;
    transition: all 0.3s ease !important;
}

.select-apartment-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(44, 90, 160, 0.4) !important;
    background: linear-gradient(135deg, #1e3d6f, #2c5aa0) !important;
}

/* Enhanced apartment card button container */
.apartment-card > div:last-child {
    text-align: center !important;
    padding-top: 2rem !important;
    border-top: 2px solid #f0f4ff !important;
    margin-top: 2rem !important;
}
/* Force wider cards on very large screens */
@media (min-width: 1600px) {
    .step-container {
        max-width: 1800px;
        padding: 0 60px;
    }
    
    .apartments-grid {
        max-width: 1800px;
    }
    
    .apartment-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 5rem;
    }
    
    .apartment-card {
        padding: 3rem;
    }
}

/* Ensure cards take full available width */
.apartment-card {
    width: 100%;
    box-sizing: border-box;
}

/* Force grid to use available space */
.apartments-grid {
    width: 100%;
}

.apartment-cards {
    width: 100%;
}

/* تحسينات إضافية لعرض الشقق في الصفحة العربية */
#step1 .apartments-grid,
#step1 .apartment-cards {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

#step1 .step-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* تأكد من أن تفاصيل الشقة تظهر بشكل صحيح */
.apartment-card .apartment-details,
.summary-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: start;
}

/* تحسين عرض المميزات */
.apartment-card .apartment-features,
.summary-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.apartment-card .apartment-feature,
.summary-feature {
    background: white;
    color: #2c5aa0;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.85rem;
    border: 1px solid #2c5aa0;
    white-space: nowrap;
}

/* تحسين عرض الأسعار */
.apartment-card .apartment-pricing,
.summary-pricing {
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.apartment-card .price-main,
.summary-price-main {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2c5aa0;
    margin-bottom: 0.25rem;
}

.apartment-card .price-discount,
.summary-price-discount {
    color: #28a745;
    font-weight: 600;
    font-size: 0.85rem;
}

/* تحسينات للموبايل */
@media (max-width: 768px) {
    #step1 .step-container {
        padding: 0 0.5rem;
    }
    
    .apartment-card .apartment-details,
    .summary-details {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .apartment-card .apartment-pricing,
    .summary-pricing {
        text-align: right;
    }
}


/* تحسينات إضافية لنموذج الحجز - RTL */
.customer-booking-form select {
    text-align: right;
    direction: rtl;
    padding-right: 1rem;
    padding-left: 2.5rem;
    background-position: left 0.75rem center;
}

.customer-booking-form input[type="date"] {
    text-align: right;
    direction: rtl;
}

/* تحسين عرض الأيقونات في العناوين */
.step-header h2 i {
    margin-left: 0.75rem;
    margin-right: 0;
}

.summary-title i {
    margin-left: 0.5rem;
    margin-right: 0;
}

/* تحسين عرض الأزرار */
.btn i {
    flex-shrink: 0;
}

.btn-primary i,
.btn-secondary i {
    margin-left: 0.5rem;
    margin-right: 0;
}

/* تحسين عرض رسائل التحقق */
.validation-error,
.validation-success {
    text-align: right;
    direction: rtl;
    margin-top: 0.5rem;
    font-size: 0.875rem;
}

.validation-error i,
.validation-success i {
    margin-left: 0.5rem;
    margin-right: 0;
}

/* تحسين عرض الملاحظات */
.form-note {
    text-align: right;
    direction: rtl;
}
