/* Reset and base styles */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        
        /* Hide scrollbars globally while keeping scroll functionality */
        * {
            scrollbar-width: none; /* Firefox */
            -ms-overflow-style: none; /* Internet Explorer 10+ */
        }
        
        *::-webkit-scrollbar {
            display: none; /* Safari and Chrome */
        }
        
        body {
            font-family: 'Figtree', sans-serif;
            /* Background will be set dynamically in blade file */
            color: #374151;
            transition: all 0.8s ease;
            overflow: hidden; /* Disable scrolling initially */
            /* Hide scrollbar for webkit browsers */
            scrollbar-width: none; /* Firefox */
            -ms-overflow-style: none; /* Internet Explorer 10+ */
     
        }
        
        body::-webkit-scrollbar {
            display: none; /* Safari and Chrome */
        }
        
        body.dimmed {
            /* Background will be set dynamically in blade file */
            overflow: auto; /* Re-enable scrolling after reveal */
            /* Keep scrollbar hidden even when scrolling is enabled */
            scrollbar-width: none; /* Firefox */
            -ms-overflow-style: none; /* Internet Explorer 10+ */
        }
        
        body.dimmed::-webkit-scrollbar {
            display: none; /* Safari and Chrome */
        }
        
        /* Grid Layout */
        .parent {
            display: grid;
            grid-template-columns: repeat(6, 1fr);
            /* Rows: 1 = auto (header); 2-8 = 1fr for remaining content */
            grid-template-rows: auto repeat(7, 1fr);
            gap: 20px;
            min-height: 100vh;
            padding: 8px;
            position: relative; /* Ensure proper positioning context */
        }
        
        /* Header Section */
        .div1 {
            grid-column: span 6 / span 6;
            grid-row: auto; /* Auto height to fit content */
            background: transparent; /* Completely transparent */
            border-radius: 8px;
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 1rem 2rem;
            transition: color 0.8s ease;
            z-index: 100;
            position: relative;
            height: auto; /* Auto height to fit content */
        }
        
        .div1.white-text,
        .div1.white-text .auth-links a {
            color: white !important;
        }
        
        .div1.white-text .auth-links a:hover {
            background-color: rgba(255, 255, 255, 0.1);
            color: white !important;
        }
        
        /* Landscape Images */
        .div2 {
            grid-column: span 3 / span 3;
            grid-row: span 2 / span 2;
            grid-row-start: 2;
            background: white;
            border-radius: 8px;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
            padding: 0;
            display: flex;
            flex-direction: column;
        }
        
        /* Current Status Images */
        .div3 {
            grid-column: span 3 / span 3;
            grid-row: span 2 / span 2;
            grid-column-start: 4;
            grid-row-start: 2;
            background: white;
            border-radius: 8px;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
            padding: 0;
            display: flex;
            flex-direction: column;
        }
        
        /* Floor Plans */
        .div4 {
            grid-column: span 4 / span 4;
            grid-row: span 3 / span 3;
            grid-row-start: 4;
            background: white;
            border-radius: 8px;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
            padding: 0;
            display: flex;
            flex-direction: column;
        }
        
        /* Units Cards */
        .div5 {
            position: relative; /* Required for swipe guide positioning */
            grid-column: span 2 / span 2;
            grid-row: span 3 / span 3;
            grid-column-start: 5;
            grid-row-start: 4;
            background: white;
            border-radius: 8px;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
            padding: 0;
            min-height: 500px; /* Increased height for better card display */
            display: flex;
            flex-direction: column;
        }
        
        /* Location Features */
        .div6 {
            grid-column: span 6 / span 6;
            grid-row: span 2 / span 2; /* now spans rows 7-8 only */
            grid-row-start: 7;
            background: white;
            border-radius: 8px;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
            padding: 1rem;
        }
        
        /* Header Styles */
        .logo-container {
            display: flex;
            align-items: flex-start; /* align content inside the logo container to the top */
            align-self: flex-start; /* position the logo container at the top of the header */
        }

        .auth-links {
            display: flex;
            gap: 1rem;
            align-self: center; /* keep auth links vertically centered */
        }
        
        .auth-links a {
            text-decoration: none;
            color: #374151;
            font-weight: 600;
            padding: 0.5rem 1rem;
            border-radius: 6px;
            transition: all 0.3s ease;
        }
        
        .auth-links a:hover {
            background-color: #f3f4f6;
            color: #111827;
        }
        
        /* Section Headers */
        .section-header {
            font-size: 1.25rem;
            font-weight: 600;
            margin: 0;
            color: #111827;
            padding: 1rem;
            background: white;
            border-radius: 8px 8px 0 0;
            text-align: center; /* Center align all headers */
            position: relative; /* For positioning counters */
        }
        
        /* Units Header with View All Button */
        .units-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            border-bottom: 2px solid #e5e7eb;
            padding: 1rem;
            background: white;
            border-radius: 8px 8px 0 0;
        }
        
        .units-header .section-header {
            border-bottom: none;
            padding: 0;
            margin: 0;
        }
        
        .view-all-btn {
            display: inline-block;
            background: #4f46e5;
            color: white;
            padding: 0.5rem 1rem;
            border-radius: 6px;
            text-decoration: none;
            font-weight: 600;
            font-size: 0.875rem;
            transition: all 0.3s ease;
            border: none;
            cursor: pointer;
        }
        
        .view-all-btn:hover {
            background: #3730a3;
            transform: translateY(-1px);
            box-shadow: 0 2px 8px rgba(79, 70, 229, 0.3);
        }
        
        /* Unit Card Styles */
        .unit-card {
            border: 1px solid #e5e7eb;
            border-radius: 8px;
            margin-bottom: 1rem;
            overflow: hidden;
            transition: transform 0.2s ease;
            height: calc(100% - 2rem); /* Use full available height minus margin */
            display: flex;
            flex-direction: column;
        }
        
        .unit-card:hover {
            transform: translateY(-2px);
        }
        
        .unit-image-frame {
            width: 100%;
            height: 350px; /* Increased from 200px to 280px for larger image display */
            background: #f9fafb;
            border-bottom: 1px solid #e5e7eb;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #9ca3af;
        }
        
        .unit-details {
            padding: 1rem;
            flex: 1; /* Take remaining space after image */
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }
        
        .unit-number {
            font-size: 1.25rem;
            font-weight: 600;
            color: #111827;
            margin-bottom: 0.5rem;
        }
        
        .unit-info {
            font-size: 1.125rem;
            color: #6b7280;
            margin-bottom: 0.25rem;
        }
        
        .unit-price {
            font-size: 1.75rem;
            font-weight: 700;
            color: #059669;
            margin-top: 0.75rem;
            padding: 0.5rem;
            background: #ecfdf5;
            border-radius: 6px;
            border-left: 4px solid #059669;
        }
        
        /* Units Carousel Styles */
        .units-container {
            position: relative;
            flex: 1;
            min-height: 400px;
            border-radius: 0 0 8px 8px;
            border-bottom: 6px solid white;
            border-left: 2px solid white;
            border-right: 2px solid white;
            overflow: hidden;
            background: white;
            cursor: grab;
        }
        
        .units-container:active {
            cursor: grabbing;
        }
        
        .units-slider {
            position: relative;
            width: 100%;
            height: 100%;
        }
        
        .nav-area {
            position: absolute;
            top: 0;
            bottom: 0; /* Full height - no button space needed */
            width: 35%; /* Clickable edge zones */
            z-index: 15; /* Above unit cards */
            cursor: pointer;
            background: transparent;
        }
        
        .nav-left {
            left: 0;
        }
        
        .nav-right {
            right: 0;
        }
        
        .units-display {
            height: 100%; /* Use full container height */
            overflow: hidden; /* Remove scrollbar */
            padding: 1rem; /* Add padding back for unit cards */
            box-sizing: border-box;
            position: relative;
            z-index: 5; /* Below click zones */
        }
        
        .carousel-unit {
            transition: opacity 0.3s ease, transform 0.3s ease;
            position: relative;
            z-index: 5; /* Below nav areas */
        }
        
        .carousel-indicators {
            position: absolute;
            bottom: 0px; /* Float above the bottom */
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 25; /* Above everything */
            padding: 0.5rem 1rem;
            opacity: 1; /* Always visible */
            transition: opacity 0.3s ease;
        }
        
        .units-counter {
            font-size: 0.75rem;
            font-weight: 600;
            color: #4f46e5;
            background: rgba(79, 70, 229, 0.1);
            padding: 0.25rem 0.5rem;
            border-radius: 8px;
        }
        
        .units-click-zone {
            position: absolute;
            top: 0;
            bottom: 0;
            width: 50%;
            cursor: pointer;
            z-index: 10;
        }
        
        .units-click-zone-left {
            left: 0;
        }
        
        .units-click-zone-right {
            right: 0;
        }
        
        /* Placeholder Image Styles */
        .image-placeholder {
            background: #f9fafb;
            border: 2px dashed #d1d5db;
            border-radius: 8px;
            height: 200px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #9ca3af;
            margin-bottom: 1rem;
        }
        
        .feature-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
            gap: 1rem;
        }
        
        .feature-item {
            text-align: center;
            padding: 1rem;
            background: #f9fafb;
            border-radius: 8px;
        }
        
        .feature-icon {
            width: 48px;
            height: 48px;
            background: #e5e7eb;
            border-radius: 50%;
            margin: 0 auto 0.5rem;
        }
        
        /* Gallery Carousel Styles */
        .gallery-container {
            position: relative;
            flex: 1;
            height: 100px;
            border-radius: 0 0 8px 8px;
            border-bottom: 2px solid white;
            border-left: 2px solid white;
            border-right: 2px solid white;
            overflow: hidden;
            background: white;
            cursor: grab;
        }
        
        .gallery-container:active {
            cursor: grabbing;
        }
        
        .gallery-slider {
            position: relative;
            width: 100%;
            height: auto;
        }
        
        .gallery-slide {
            display: none;
            width: 100%;
            height: auto;
            opacity: 0;
            transition: opacity 0.5s ease-in-out;
        }

        .gallery-slide.active {
            display: block;
            opacity: 1;
            transform: translateX(0);
        }
        
 
        
        .gallery-slide.prev {
            transform: translateX(-100%);
        }
        
        .gallery-image {
            width: 100%;
            height: 100%;
            object-fit: contain;
            background: white;
        }
        
        /* Default: show landscape, hide portrait */
        .gallery-image-landscape {
            display: block;
        }
        
        .gallery-image-portrait {
            display: none;
        }
        
        .gallery-overlay {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: transparent;
            color: white;
            padding: 1rem;
            opacity: 0; /* Hidden by default */
            transition: opacity 0.3s ease;
        }
        
        /* Show gallery overlay on container hover */
        .gallery-container:hover .gallery-overlay {
            opacity: 1;
        }
        
        .gallery-title {
            font-size: 1rem;
            font-weight: 600;
            margin: 0;
        }
        
        .gallery-click-zone {
            position: absolute;
            top: 0;
            bottom: 0;
            width: 50%;
            cursor: pointer;
            z-index: 10;
        }
        
        .gallery-click-zone-left {
            left: 0;
        }
        
        .gallery-click-zone-right {
            right: 0;
        }

        /* Status Section Styles (Copy of gallery styles with status- prefix) */
        .status-container {
            position: relative;
            flex: 1;
            height: 100px;
            border-radius: 0 0 8px 8px;
            border-bottom: 2px solid white;
            border-left: 2px solid white;
            border-right: 2px solid white;
            overflow: hidden;
            background: white;
            cursor: grab;
        }
        
        .status-container:active {
            cursor: grabbing;
        }
        
        .status-slider {
            position: relative;
            width: 100%;
            height: auto;
        }
        
        .status-slide {
            display: none;
            width: 100%;
            height: 100%;
            opacity: 0;
            transition: opacity 0.5s ease-in-out;
        }

        .status-slide.active {
            display: block;
            opacity: 1;
            transform: translateX(0);
        }
        
        .status-slide.prev {
            transform: translateX(-100%);
        }
        
        .status-image {
            display: block;
            width: 100%;
            height: 100%;
            object-fit: cover;
            background: white;
        }
        
        .status-overlay {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: transparent;
            color: white;
            padding: 1rem;
            opacity: 0; /* Hidden by default */
            transition: opacity 0.3s ease;
        }
        
        /* Show status overlay on container hover */
        .status-container:hover .status-overlay {
            opacity: 1;
        }
        
        .status-title {
            font-size: 1rem;
            font-weight: 600;
            margin: 0;
        }
        
        .status-click-zone {
            position: absolute;
            top: 0;
            bottom: 0;
            width: 50%;
            cursor: pointer;
            z-index: 10;
        }
        
        .status-click-zone-left {
            left: 0;
        }
        
        .status-click-zone-right {
            right: 0;
        }
        
        .status-dots {
            position: absolute;
            bottom: 15px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            gap: 8px;
            z-index: 10;
            opacity: 0; /* Hidden by default */
            transition: opacity 0.3s ease;
        }
        
        /* Show status dots on container hover */
        .status-container:hover .status-dots {
            opacity: 1;
        }
        
        .status-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.5);
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        .status-dot.active {
            background: white;
            transform: scale(1.3);
        }
        
        .status-counter {
            position: absolute;
            top: 50%;
            right: 15px;
            transform: translateY(-50%);
            background: #4299e1;
            color: white;
            padding: 0.25rem 0.75rem;
            border-radius: 12px;
            font-size: 0.75rem;
            font-weight: 500;
            opacity: 0; /* Hidden by default */
            transition: opacity 0.3s ease;
        }
        
        /* Show status counter on container hover */
        .div3:hover .status-counter {
            opacity: 1;
        }
        
        .no-status-images {
            text-align: center;
            padding: 2rem;
            color: #9ca3af;
        }

        /* Floor Plans Carousel Styles (Copy of gallery styles with floorplan- prefix) */
        .floorplan-container {
            position: relative;
            flex: 1;
            border-radius: 0 0 8px 8px;
            border-bottom: 6px solid white;
            border-left: 2px solid white;
            border-right: 2px solid white;
            overflow: hidden;
            background: white;
            cursor: grab;
        }
        
        .floorplan-container:active {
            cursor: grabbing;
        }
        
        .floorplan-slider {
            position: relative;
            width: 100%;
            height: 100%;
        }
        
        .floorplan-slide {
            position: absolute;
            width: 100%;
            height: 100%;
            opacity: 0;
            transition: all 0.5s ease-in-out;
            transform: translateX(100%);
        }
        
        .floorplan-slide.active {
            opacity: 1;
            transform: translateX(0);
        }
        
        .floorplan-slide.prev {
            transform: translateX(-100%);
        }
        
        .floorplan-image {
            width: 100%;
            height: 100%;
            object-fit: contain;
            background: white;
        }
        
        .floorplan-overlay {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: transparent;
            color: white;
            padding: 1rem;
            opacity: 0; /* Hidden by default */
            transition: opacity 0.3s ease;
        }
        
        /* Show floorplan overlay on container hover */
        .floorplan-container:hover .floorplan-overlay {
            opacity: 1;
        }
        
        .floorplan-title {
            font-size: 1rem;
            font-weight: 600;
            margin: 0 0 0.25rem 0;
        }
        
        .floorplan-type {
            font-size: 0.8rem;
            margin: 0;
            opacity: 0.9;
        }
        
        .floorplan-click-zone {
            position: absolute;
            top: 0;
            bottom: 0;
            width: 50%;
            cursor: pointer;
            z-index: 10;
        }
        
        .floorplan-click-zone-left {
            left: 0;
        }
        
        .floorplan-click-zone-right {
            right: 0;
        }
        
        .floorplan-dots {
            position: absolute;
            bottom: 15px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            gap: 8px;
            z-index: 10;
            opacity: 0; /* Hidden by default */
            transition: opacity 0.3s ease;
        }
        
        /* Show floorplan dots on container hover */
        .floorplan-container:hover .floorplan-dots {
            opacity: 1;
        }
        
        .floorplan-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.5);
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        .floorplan-dot.active {
            background: white;
            transform: scale(1.3);
        }
        
        .floorplan-counter {
            position: absolute;
            top: 50%;
            right: 15px;
            transform: translateY(-50%);
            background: #4299e1;
            color: white;
            padding: 0.25rem 0.75rem;
            border-radius: 12px;
            font-size: 0.75rem;
            font-weight: 500;
            opacity: 0; /* Hidden by default */
            transition: opacity 0.3s ease;
        }
        
        /* Show floorplan counter on container hover */
        .div4:hover .floorplan-counter {
            opacity: 1;
        }
        
        .no-floorplans {
            text-align: center;
            padding: 2rem;
            color: #9ca3af;
        }


        
        .gallery-dots {
            position: absolute;
            bottom: 15px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            gap: 8px;
            z-index: 10;
            opacity: 0; /* Hidden by default */
            transition: opacity 0.3s ease;
        }
        
        /* Show gallery dots on container hover */
        .gallery-container:hover .gallery-dots {
            opacity: 1;
        }
        
        .gallery-dot {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.5);
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        .gallery-dot.active {
            background: white;
            transform: scale(1.3);
        }
        
        .gallery-counter {
            position: absolute;
            top: 50%;
            right: 15px;
            transform: translateY(-50%);
            background: #4299e1;
            color: white;
            padding: 0.25rem 0.75rem;
            border-radius: 12px;
            font-size: 0.75rem;
            font-weight: 500;
            opacity: 0; /* Hidden by default */
            transition: opacity 0.3s ease;
        }
        
        /* Show gallery counter on container hover */
        .div2:hover .gallery-counter {
            opacity: 1;
        }
        
        .no-images {
            text-align: center;
            padding: 2rem;
            color: #9ca3af;
        }
        
        /* Language Support - Only for text content, not layout */
        .language-content.arabic {
            direction: rtl;
            /* Keep center alignment for headers */
        }
        
        .language-content.english {
            direction: ltr;
            /* Keep center alignment for headers */
        }
        
        /* Override RTL text alignment for centered headers */
        .section-header .language-content.arabic,
        .section-header .language-content.english {
            text-align: center;
            display: block;
        }
        
        /* Arabic text styling within elements - only for content areas */
        .unit-info .arabic-text,
        .feature-item .arabic-text {
            direction: rtl;
            text-align: right;
        }
        
        .unit-info .english-text,
        .feature-item .english-text {
            direction: ltr;
            text-align: left;
        }
        
        .language-content {
            transition: opacity 0.3s ease;
        }
        
        .language-content.hidden {
            display: none;
        }
        
        /* Enhanced Location Features Styling */
        .feature-item {
            text-align: center;
            padding: 1.5rem;
            background: #f9fafb;
            border-radius: 12px;
            transition: all 0.3s ease;
            border: 2px solid transparent;
            position: relative;
            overflow: hidden;
        }
        
        .feature-item:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
            background: white;
        }
        
        .feature-icon {
            font-size: 2.5rem;
            margin-bottom: 0.75rem;
            display: block;
            line-height: 1;
        }
        
        .feature-item h3 {
            font-size: 1.1rem;
            font-weight: 700;
            margin-bottom: 0.5rem;
            color: #1f2937;
        }
        
        .feature-item p {
            font-size: 0.875rem;
            color: #6b7280;
            line-height: 1.4;
        }
        
        /* Category-based styling */
        .feature-item[data-category="strategic_location"] {
            border-left: 4px solid #10b981;
        }
        
        .feature-item[data-category="strategic_location"]:hover {
            border-left-color: #059669;
            background: linear-gradient(135deg, #ecfdf5 0%, white 100%);
        }
        
        .feature-item[data-category="major_companies"] {
            border-left: 4px solid #3b82f6;
        }
        
        .feature-item[data-category="major_companies"]:hover {
            border-left-color: #2563eb;
            background: linear-gradient(135deg, #eff6ff 0%, white 100%);
        }
        
        .feature-item[data-category="residential_density"] {
            border-left: 4px solid #f59e0b;
        }
        
        .feature-item[data-category="residential_density"]:hover {
            border-left-color: #d97706;
            background: linear-gradient(135deg, #fffbeb 0%, white 100%);
        }
        
        .feature-item[data-category="shopping"] {
            border-left: 4px solid #ec4899;
        }
        
        .feature-item[data-category="shopping"]:hover {
            border-left-color: #db2777;
            background: linear-gradient(135deg, #fdf2f8 0%, white 100%);
        }
        
        .feature-item[data-category="infrastructure"] {
            border-left: 4px solid #8b5cf6;
        }
        
        .feature-item[data-category="infrastructure"]:hover {
            border-left-color: #7c3aed;
            background: linear-gradient(135deg, #f5f3ff 0%, white 100%);
        }
        
        /* Responsive grid for location features */
        @media (max-width: 768px) {
            .feature-grid {
                grid-template-columns: 1fr;
                gap: 1rem;
            }
            
            .feature-item {
                padding: 1rem;
            }
            
            .feature-icon {
                font-size: 2rem;
            }
        }
        
        @media (min-width: 769px) and (max-width: 1024px) {
            .feature-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }
        
        @media (min-width: 1025px) {
            .feature-grid {
                grid-template-columns: repeat(4, 1fr);
            }
        }
