/* Luxury Template Styles */

/* Smooth scrolling for the entire page */
html {
    scroll-behavior: smooth;
}

/* CSS Custom Properties for Unified Color System - Admin Customizable */
.template-luxury {
    /* Primary Colors - Default Green Theme */
    --primary-color: var(--luxury-primary-color, #28a745);
    --primary-light: var(--luxury-primary-light, #20c997);
    --primary-dark: var(--luxury-primary-dark, #1e7e34);
    --primary-rgb: var(--luxury-primary-rgb, 40, 167, 69);
    
    /* Secondary Colors */
    --secondary-color: var(--luxury-secondary-color, #6c757d);
    --secondary-light: #adb5bd;
    --secondary-dark: #495057;
    
    /* Accent Colors */
    --accent-color: var(--luxury-accent-color, #ffd700);
    --accent-light: var(--luxury-accent-light, #ffed4e);
    --accent-dark: var(--luxury-accent-dark, #e6c200);
    
    /* Text Colors */
    --text-primary: var(--luxury-text-primary, #2c3e50);
    --text-secondary: var(--luxury-text-secondary, #7f8c8d);
    --text-light: #adb5bd;
    --text-white: #ffffff;
    
    /* Background Colors */
    --bg-primary: var(--luxury-bg-primary, #ffffff);
    --bg-secondary: rgba(255,255,255,0.95);
    --bg-overlay: rgba(255,255,255,0.8);
    --bg-card: rgba(255,255,255,0.9);
    
    /* Border Colors - Using Primary Color */
    --border-light: var(--luxury-border-light, rgba(40, 167, 69, 0.1));
    --border-medium: var(--luxury-border-medium, rgba(40, 167, 69, 0.2));
    --border-dark: var(--luxury-border-dark, rgba(40, 167, 69, 0.3));

    /* Shadow Colors */
    --shadow-light: var(--luxury-shadow-light, rgba(40, 167, 69, 0.1));
    --shadow-medium: var(--luxury-shadow-medium, rgba(40, 167, 69, 0.2));
    --shadow-dark: var(--luxury-shadow-dark, rgba(40, 167, 69, 0.3));

    /* Icon customization */
    --icon-background: var(--luxury-icon-background, #ffffff);
    --icon-color: var(--luxury-icon-color, #28a745);
    --icon-border: var(--luxury-icon-border, #e8ecef);
    --icon-shadow: var(--luxury-icon-shadow, #28a745);
    --icon-shadow-rgb: var(--luxury-icon-shadow-rgb, 40, 167, 69);

    /* Typography */
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    box-sizing: border-box;
    overflow: visible;
    transform: none;
    filter: none;
    perspective: none;
}

.template-luxury * {
    box-sizing: border-box;
}

/* Property Details Section - Below Banner */
.property-details-section {
    background: var(--bg-secondary);
    backdrop-filter: blur(10px);
    padding: 20px 0;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-light);
}

.property-main-info {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.property-header-bar {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 15px;
}

.property-badges {
    display: flex;
    gap: 8px;
    align-items: center;
}

.property-badge {
    padding: 6px 12px;
    border-radius: 15px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-light) 100%);
    color: var(--text-primary);
    box-shadow: 0 2px 8px var(--shadow-light);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.property-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.property-badge:hover::before {
    left: 100%;
}

.property-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

/* Project Name and Price Row */
.property-title-price-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    margin-bottom: 0;
}

.property-name {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-primary);
    text-shadow: none;
    flex: 1;
}

.property-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 0;
}

.property-location,
.property-completion {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.property-location i,
.property-completion i {
    font-size: 1.2rem;
    opacity: 0.8;
    color: var(--primary-color);
}

.property-price {
    margin-top: 20px;
}

.price-label {
    font-size: 1rem;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 5px;
}

.price-value {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--primary-color);
    animation: priceGlow 2s ease-in-out infinite alternate;
    position: relative;
    display: inline-block;
}

.price-value::after {
    content: '';
    position: absolute;
    top: 0;
    left: -10px;
    right: -10px;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.2) 50%, transparent 70%);
    animation: priceShimmer 3s ease-in-out infinite;
    pointer-events: none;
}

@keyframes priceGlow {
    0% { text-shadow: 0 0 5px rgba(255,255,255,0.5); }
    100% { text-shadow: 0 0 20px rgba(255,255,255,0.8), 0 0 30px rgba(255,255,255,0.6); }
}

@keyframes priceShimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Header Gallery */
.header-gallery {
    position: relative;
    height: 600px;
    overflow: hidden;
    margin-bottom: 40px;
}

.gallery-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-wrapper {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
    z-index: 1 !important;
}

.carousel-track {
    display: flex !important;
    width: 100% !important;
    height: 100% !important;
    transition: transform 0.5s ease-in-out !important;
    pointer-events: none !important;
    will-change: transform !important;
    position: relative !important;
    /* transform is controlled by JavaScript, don't set it in CSS */
}

.carousel-slide {
    min-width: 100% !important;
    height: 100% !important;
    position: relative !important;
    pointer-events: none !important;
}

.carousel-slide img {
    pointer-events: none !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
}

.side-preview {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 80px !important;
    height: 120px !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    z-index: 10000 !important;
    border: 3px solid white !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2) !important;
    pointer-events: auto !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    touch-action: manipulation !important;
    -webkit-tap-highlight-color: transparent !important;
    display: block !important;
    background: rgba(255, 255, 255, 0.1) !important;
    will-change: transform !important;
}

.side-preview.prev {
    left: 20px;
}

.side-preview.next {
    right: 20px;
}

.side-preview:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.side-preview:active {
    transform: translateY(-50%) scale(1.05);
}

.side-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    -webkit-touch-callout: none !important;
    -webkit-tap-highlight-color: transparent !important;
    touch-action: none !important;
    display: block !important;
    draggable: false;
}


/* Carousel indicators removed - dots are no longer displayed */
.carousel-indicators {
    display: none !important;
}

.carousel-indicator {
    display: none !important;
}

/* No Images Placeholder */
.no-images {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.no-images-placeholder {
    text-align: center;
    color: #7f8c8d;
}

.no-images-placeholder i {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

.no-images-placeholder p {
    font-size: 1.2rem;
    margin: 0;
}

/* Main Content Layout - Row/Column Structure */
.main-content {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
    transform: none;
    filter: none;
    perspective: none;
}

.main-content .container {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow: visible;
    transform: none;
    filter: none;
    perspective: none;
}

.main-content .row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -20px;
    margin-right: -20px;
    box-sizing: border-box;
    overflow: visible;
    transform: none;
    filter: none;
    perspective: none;
}

.main-content .col-8 {
    flex: 0 0 66.66666667%;
    max-width: 66.66666667%;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
}

.main-content .col-4 {
    flex: 0 0 33.33333333%;
    max-width: 33.33333333%;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
    overflow: visible;
    height: auto;
    transform: none;
    filter: none;
    perspective: none;
    position: relative;
}

.content-left {
    width: 100%;
    min-height: 100vh;
}

/* Responsive adjustments for main content */
@media (max-width: 1024px) {
    .property-main-info {
        padding: 0 15px;
    }
    
    .main-content {
        padding: 0 15px;
    }
    
    .main-content .row {
        flex-direction: column;
        margin-left: -15px;
        margin-right: -15px;
    }
    
    .main-content .col-8,
    .main-content .col-4 {
        flex: 0 0 100%;
        max-width: 100%;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .property-title-price-row {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
    
    .property-name {
        font-size: 1.8rem;
    }
}

/* Content Sections */
.content-section {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    scroll-margin-top: 100px; /* Ensure section headings are visible when scrolled to */
}

.content-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2, #ffd700);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.content-section:hover::before {
    opacity: 1;
}

.content-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

.section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 25px 0;
    position: relative;
    padding-bottom: 15px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
}

.project-navigation {
    padding: 20px;
}

.project-navigation nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.project-navigation .nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    background: rgba(255,255,255,0.85);
    color: var(--text-primary);
    border: 1px solid rgba(var(--primary-rgb), 0.15);
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.08);
    transition: all 0.3s ease;
}

.project-navigation .nav-link:hover,
.project-navigation .nav-link:focus-visible {
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
    border-color: transparent;
    box-shadow: 0 6px 18px rgba(var(--primary-rgb), 0.3);
}

.project-navigation .nav-link:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.25), 0 6px 18px rgba(var(--primary-rgb), 0.3);
}

.project-navigation .nav-link.active {
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.28);
}

/* Overview Section */
.overview-section .section-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 25px 0;
    padding-bottom: 0;
}

.overview-section .section-title::after {
    display: none;
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.overview-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: transparent;
    border-radius: 10px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.overview-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.overview-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    background: var(--icon-background);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--icon-color);
    font-size: 1.1rem;
    border: 1px solid var(--icon-border);
    box-shadow: 0 4px 12px rgba(var(--icon-shadow-rgb), 0.18);
    transition: all 0.3s ease;
}

.overview-item:hover .overview-icon {
    box-shadow: 0 6px 18px rgba(var(--icon-shadow-rgb), 0.26);
}

.overview-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.overview-label {
    font-size: 0.875rem;
    color: #6c757d;
    font-weight: 400;
    line-height: 1.5;
}

.overview-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.5;
}

.overview-separator {
    width: 100%;
    height: 1px;
    background: #e9ecef;
    margin-top: 0;
}

/* Remove old overview-content h4 and p styles if they exist */
.overview-content h4 {
    display: none;
}

.overview-content p {
    display: none;
}

/* Description Section */
.description-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #34495e;
    margin-bottom: 20px;
}

/* Ensure proper formatting for description content */
.description-text p {
    margin: 0 0 15px 0 !important;
    line-height: 1.6 !important;
}

.description-text p:last-child {
    margin-bottom: 0 !important;
}

.description-text strong,
.description-text b {
    font-weight: 600 !important;
    color: #2c3e50 !important;
}

.description-text em,
.description-text i {
    font-style: italic !important;
}

.description-text ul,
.description-text ol {
    margin: 15px 0 !important;
    padding-left: 20px !important;
}

.description-text li {
    margin-bottom: 8px !important;
}

/* Handle line breaks and spacing */
.description-text br {
    margin: 10px 0 !important;
    display: block !important;
}

/* Better spacing for text blocks */
.description-text {
    white-space: pre-line !important;
}

.show-more-btn {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.3);
}

.show-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.4);
}

/* Location Section */
#map {
    height: 400px;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.nearby-places-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 8px;
    margin-top: 12px;
}

.place-card {
    background: rgba(255,255,255,0.8);
    border-radius: 8px;
    padding: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    border: 1px solid rgba(233,236,239,0.5);
    transition: all 0.3s ease;
    text-align: center;
}

.place-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(var(--icon-shadow-rgb), 0.24);
    border-color: rgba(var(--icon-shadow-rgb), 0.25);
}

.place-icon {
    width: 28px;
    height: 28px;
    background: var(--icon-background);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    color: var(--icon-color);
    border: 1px solid var(--icon-border);
    box-shadow: 0 4px 12px rgba(var(--icon-shadow-rgb), 0.22);
    transition: all 0.3s ease;
}

.place-icon i {
    font-size: 12px;
}

.place-card:hover .place-icon {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--icon-shadow-rgb), 0.35);
}

.place-info h4 {
    font-size: 13px;
    margin-bottom: 2px;
    line-height: 1.2;
    color: #2c3e50;
    font-weight: 600;
}

.place-info p {
    font-size: 11px;
    margin-bottom: 4px;
    color: #7f8c8d;
}

.place-distance {
    font-size: 10px;
    background: var(--icon-background);
    color: var(--icon-color);
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 600;
    border: 1px solid var(--icon-border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(var(--icon-shadow-rgb), 0.22);
    transition: all 0.25s ease;
}

.place-card:hover .place-distance {
    box-shadow: 0 5px 14px rgba(var(--icon-shadow-rgb), 0.32);
}

.loading-places {
    text-align: center;
    padding: 40px;
    color: #7f8c8d;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Facilities Section */
.facilities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 25px;
}

.facility-item {
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.facility-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
    transition: left 0.6s ease;
}

.facility-item:hover::before {
    left: 100%;
}

.facility-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.3);
}

.facility-image {
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 25px;
    margin: 0 auto 25px;
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
    display: block;
    box-sizing: border-box;
    flex-shrink: 0;
}

.facility-image img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    border-radius: 25px;
    transition: transform 0.3s ease;
    box-sizing: border-box;
}

.facility-item:hover .facility-image {
    transform: scale(1.05);
}

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

.facility-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.facility-description {
    font-size: 0.9rem;
    color: #7f8c8d;
    line-height: 1.5;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Facilities Section - Scoped Row/Column Styles (to prevent impact on main-content layout) */
.content-section .facilities-row.row,
.content-section .row.facilities-row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -15px;
    margin-right: -15px;
    box-sizing: border-box;
    width: 100%;
}

.content-section .facilities-row.row .col-4,
.content-section .row.facilities-row .col-4 {
    flex: 0 0 33.33333333%;
    max-width: 33.33333333%;
    padding-left: 15px;
    padding-right: 15px;
    box-sizing: border-box;
    width: auto;
}

/* Ensure main-content row/col styles are protected and won't be affected by facilities row/col */
.main-content > .container > .row,
.main-content > .row {
    /* These selectors ensure main-content layout styles take precedence */
}

/* Responsive for facilities row/col */
@media (max-width: 1024px) {
    .content-section .facilities-row.row .col-4 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

@media (max-width: 768px) {
    .content-section .facilities-row.row .col-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Payment Plans Section */
.payment-plan-tabs-container {
    margin-bottom: 30px;
}

.payment-plan-tabs-wrapper {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.payment-plan-tab {
    background: rgba(255,255,255,0.8);
    border: 2px solid rgba(102, 126, 234, 0.2);
    color: #2c3e50;
    padding: 15px 25px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.payment-plan-tab::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.payment-plan-tab:hover::before {
    left: 100%;
}

.payment-plan-tab:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3);
}

.payment-plan-tab.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.payment-plan-content {
    display: none;
}

.payment-plan-content.active {
    display: block;
}

/* Timeline Visualization */
.timeline-wrapper {
    margin: 30px 0;
    position: relative;
}

.timeline-steps-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    width: 100%;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Horizontal timeline line */
.timeline-steps-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: #d3d3d3;
    z-index: 1;
    transform: translateY(-50%);
}

.timeline-step {
    background: transparent;
    border-radius: 0;
    padding: 0;
    text-align: center;
    box-shadow: none;
    border: none;
    transition: all 0.3s ease;
    position: relative;
    overflow: visible;
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex: 1;
    z-index: 2;
}

/* Circular dot marker - centered on the line */
.timeline-step::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #d3d3d3;
    z-index: 3;
    transition: all 0.3s ease;
}

.timeline-step:hover::before {
    background: #999;
    transform: translate(-50%, -50%) scale(1.2);
}

.timeline-step:hover {
    transform: none;
}

.timeline-step .percent {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    text-shadow: none;
    margin-bottom: 25px;
    line-height: 1.2;
    letter-spacing: 0;
}

.timeline-step .text {
    font-size: 14px;
    color: #666;
    font-weight: 400;
    line-height: 1.4;
    text-shadow: none;
    margin-top: 25px;
}

/* Payment Details */
.payment-details {
    margin-top: 30px;
}

.payment-stage {
    background: rgba(255,255,255,0.9);
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    border: 1px solid rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
}

.payment-stage:hover {
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.1);
}

.stage-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background: rgba(102, 126, 234, 0.05);
    transition: all 0.3s ease;
}

.stage-header:hover {
    background: rgba(102, 126, 234, 0.1);
}

.payment-info h5 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 5px 0;
}

.payment-count {
    font-size: 0.9rem;
    color: #7f8c8d;
}

.stage-percentage {
    display: flex;
    align-items: center;
    font-size: 1.2rem;
    font-weight: 700;
    color: #27ae60;
}

.stage-toggle-icon {
    transition: transform 0.3s ease;
    margin-left: 10px;
}

.stage-details {
    padding: 0 25px 20px;
    background: white;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #e9ecef;
    margin: 0;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    flex: 1;
    font-size: 0.95rem;
    color: #2c3e50;
}

.detail-value {
    background: rgba(40, 167, 69, 0.1);
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid rgba(40, 167, 69, 0.2);
    font-weight: 600;
    color: #27ae60;
    font-size: 0.9rem;
}

.detail-row.fee-item .detail-value {
    background: rgba(231, 76, 60, 0.1);
    border-color: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
}

/* Payment Conditions */
.payment-conditions {
    margin-top: 25px;
    padding: 20px;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.payment-conditions h4 {
    font-size: 1.1rem;
    color: #2c3e50;
    margin: 0 0 15px 0;
    font-weight: 600;
}

.conditions-details {
    display: grid;
    gap: 10px;
}

.condition-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
}

.condition-row:last-child {
    border-bottom: none;
}

.condition-label {
    font-size: 0.9rem;
    color: #2c3e50;
    font-weight: 500;
}

.condition-value {
    font-size: 0.9rem;
    color: #667eea;
    font-weight: 600;
}

/* Developer Section */
.developer-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.developer-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: left 0.6s ease;
}

.developer-section:hover::before {
    left: 100%;
}

.developer-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 20px 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.developer-description {
    font-size: 1.1rem;
    line-height: 1.8;
    opacity: 0.9;
    margin: 0;
}

/* Contact Sidebar - Additional styles */
.contact-sidebar {
    width: 100%;
    height: fit-content;
}

/* Sticky sidebar reliability fixes (do not alter layout) */
.main-content {
    overflow: visible; /* allow sticky to escape ancestor clipping */
    padding-bottom: 42px;
}

/* Contact card alignment improvements */
.contact-card {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    position: relative;
    overflow: hidden;
}

/* Ensure full width for inner containers */
.content-left {
    width: 100%;
}

/* Row and column full width */
.main-content .col-8,
.main-content .col-4 {
    width: 100%;
}

/* On small screens the sidebar stacks; disable sticky to avoid odd jumps */
@media (max-width: 1024px) {
    .contact-sidebar {
        position: static;
        top: auto;
    }
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2, #ffd700);
}

.contact-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 25px 0;
    text-align: center;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.form-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
}

.required {
    color: #e74c3c;
}

.form-input {
    padding: 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: rgba(255,255,255,0.8);
}

.form-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background: white;
}

.phone-input-group {
    display: flex;
    align-items: center;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    background: rgba(255,255,255,0.8);
    transition: all 0.3s ease;
    position: relative;
}

.phone-input-group:focus-within {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background: white;
}

.country-code {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 15px;
    border-right: 1px solid #e9ecef;
    font-weight: 600;
    color: #2c3e50;
}

/* intl-tel-input styling for luxury template */
.phone-input-group {
    position: relative;
}

/* Ensure iti wrapper classes are applied and visible */
.phone-input-group .iti,
.phone-input-group .iti.iti--allow-dropdown,
.phone-input-group .iti.iti--show-flags,
.phone-input-group .iti.iti--inline-dropdown {
    display: block !important;
    width: 100% !important;
    position: relative !important;
    visibility: visible !important;
}

.phone-input-group .iti .iti__flag {
    display: block !important;
    visibility: visible !important;
}

.phone-input-group .iti input.form-input,
.phone-input-group .iti input[type="tel"],
.phone-input-group input.form-input {
    width: 100%;
    border: none;
    background: transparent;
    padding: 12px 15px 12px 90px;
    outline: none;
    box-sizing: border-box;
}

.phone-input-group .iti__flag-container {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    bottom: 0 !important;
    z-index: 2 !important;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.phone-input-group .iti__selected-flag {
    padding: 0 8px 0 12px !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    border-right: 1px solid #e9ecef !important;
    cursor: pointer !important;
    background-color: transparent !important;
    visibility: visible !important;
}

.phone-input-group .iti__selected-flag:hover {
    background-color: rgba(102, 126, 234, 0.05);
}

.phone-input-group .iti__selected-dial-code {
    margin-left: 6px !important;
    font-weight: 600 !important;
    color: #2c3e50 !important;
    display: inline !important;
    visibility: visible !important;
}

.phone-input-group .iti__country-list {
    z-index: 1000 !important;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    max-height: 300px !important;
    overflow-y: auto !important;
    width: 100% !important;
}

/* Fix search input in country dropdown */
.phone-input-group .iti__search-input {
    padding-left: 30px !important;
    padding-right: 12px !important;
    margin: 0 !important;
}

.phone-input-group .iti__search-box {
    padding: 8px 12px !important;
    position: relative !important;
}

.phone-input-group .iti__search-input-icon {
    position: absolute !important;
    left: 16px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    pointer-events: none !important;
    z-index: 1 !important;
}

.phone-input-group .iti__arrow {
    display: inline-block !important;
    visibility: visible !important;
    margin-left: 4px !important;
    width: 0 !important;
    height: 0 !important;
    border-left: 4px solid transparent !important;
    border-right: 4px solid transparent !important;
    border-top: 4px solid #667eea !important;
}

.phone-input-group:focus-within .iti__selected-flag {
    border-right-color: #667eea;
}

.country-flag {
    width: 20px;
    height: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 2px;
}

.phone-input-group .iti input.form-input {
    border: none;
    background: transparent;
    flex: 1;
    width: 100%;
}

.phone-input-group .form-input:focus {
    box-shadow: none;
}

textarea.form-input {
    resize: vertical;
    min-height: 100px;
    font-family: inherit;
}

.submit-btn {
    background: linear-gradient(135deg, var(--primary-light), var(--primary-dark));
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.3);
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s ease;
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .property-name {
        font-size: 2.2rem;
    }
}

@media (max-width: 1024px) {
    .overview-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 18px;
    }
    
    .facilities-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .timeline-steps-container {
        flex-wrap: wrap;
        gap: 30px;
        padding: 0 15px;
    }
    
    .timeline-step {
        flex: 0 0 calc(50% - 15px);
        max-width: calc(50% - 15px);
    }
    
    .timeline-step .percent {
        font-size: 24px;
        margin-bottom: 20px;
    }
    
    .timeline-step .text {
        font-size: 13px;
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
    .property-details-header {
        padding: 30px 0;
    }
    
    .property-main-info {
        padding: 0 15px;
    }
    
    .property-name {
        font-size: 1.8rem;
    }
    
    .property-meta {
        flex-direction: column;
        gap: 15px;
    }
    
    .price-value {
        font-size: 1.8rem;
    }
    
    .header-gallery {
        height: 400px;
    }
    
    .main-content {
        padding: 0 15px;
    }
    
    .content-section {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .overview-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .timeline-steps-container {
        flex-direction: column;
        align-items: center;
        gap: 40px;
        padding: 0 15px;
    }
    
    .timeline-steps-container::before {
        top: 50%;
        left: 20px;
        right: 20px;
        width: auto;
        transform: translateY(-50%);
    }
    
    .timeline-step {
        flex: 0 0 auto;
        max-width: 100%;
        width: 100%;
        position: relative;
        padding: 0;
    }
    
    .timeline-step .percent {
        font-size: 22px;
        margin-bottom: 20px;
    }
    
    .timeline-step .text {
        font-size: 13px;
        margin-top: 20px;
    }
    
    .facilities-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .facility-image {
        aspect-ratio: 16 / 9;
    }
    
    .nearby-places-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        gap: 6px;
    }
    
    .side-preview {
        width: 60px;
        height: 90px;
    }
    
    .side-preview.prev {
        left: 10px;
    }
    
    .side-preview.next {
        right: 10px;
    }
    
    .contact-card {
        padding: 25px;
    }
}

@media (max-width: 480px) {
    .property-badges {
        flex-wrap: wrap;
    }
    
    .property-badge {
        font-size: 9px;
        padding: 5px 10px;
    }
    
    .property-name {
        font-size: 1.5rem;
    }
    
    .overview-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .overview-item {
        padding: 15px;
        gap: 12px;
    }

    .overview-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
        font-size: 1rem;
    }

    .overview-label {
        font-size: 0.8125rem;
    }

    .overview-value {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .facilities-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 15px;
    }
    
    .facility-image {
        width: 120px;
        height: 120px;
    }
    
    .contact-card {
        padding: 20px;
    }
    
    .form-group {
        gap: 15px;
    }
}

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

.animate-fade-in {
    animation: fadeInUp 0.6s ease-out;
}

.animate-slide-left {
    animation: slideInLeft 0.6s ease-out;
}

.animate-slide-right {
    animation: slideInRight 0.6s ease-out;
}

/* About Section Styles */
.project-facts {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    align-items: start;
}

/* When meta info is hidden, make description full width */
.project-facts .project-description[style*="width: 100%"] {
    grid-column: 1 / -1;
}

.project-description .description-content.truncated {
    max-height: 150px;
    overflow: hidden;
    position: relative;
}

.project-description .description-content.truncated::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(transparent, rgba(255,255,255,0.9));
}

.project-meta-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.project-id-section,
.rera-id-section,
.qr-code {
    text-align: center;
    padding: 20px;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.project-meta-info h4 {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin: 0 0 8px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.project-meta-info p {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0;
}

.qr-code img {
    max-width: 120px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Buildings Section */
.buildings-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

.building-card {
    background: rgba(255,255,255,0.8);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.building-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.3);
}

.building-image {
    height: 200px;
    overflow: hidden;
}

.building-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.building-card:hover .building-image img {
    transform: scale(1.05);
}

.building-info {
    padding: 20px;
}

.building-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #2c3e50;
    margin: 0 0 10px 0;
}

.building-description {
    font-size: 0.95rem;
    color: #7f8c8d;
    line-height: 1.5;
    margin: 0;
}

/* Units Section */
.units-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

.unit-card {
    background: rgba(255,255,255,0.8);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.unit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.3);
}

.unit-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.unit-card:hover .unit-image {
    transform: scale(1.05);
}

.unit-details {
    padding: 20px;
}

.unit-type {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
}

.unit-bedroom {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-bottom: 12px;
}

.unit-price {
    font-size: 1rem;
    font-weight: 600;
    color: #667eea;
    margin-bottom: 8px;
}

.unit-area {
    font-size: 0.9rem;
    color: #7f8c8d;
}

/* Attachments Section */
.attachments-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.attachment-download {
    text-decoration: none;
    color: inherit;
}

.attachment-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: rgba(255,255,255,0.8);
    border-radius: 12px;
    border: 1px solid rgba(102, 126, 234, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
}

.attachment-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.3);
}

.attachment-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 8px;
}

.attachment-icon img {
    width: 24px;
    height: 24px;
}

.attachment-details {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.attachment-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #2c3e50;
}

.attachment-details img {
    width: 20px;
    height: 20px;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.attachment-item:hover .attachment-details img {
    opacity: 1;
}

/* Related Projects Section */
#rem_plugin .projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 25px;
}

.load_project {
    text-align: center;
    padding: 40px;
    color: #7f8c8d;
    font-style: italic;
}

/* Responsive Design for New Sections */
@media (max-width: 1024px) {
    .project-facts {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .buildings-list,
    .units-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    
    .attachments-container {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .project-facts {
        gap: 25px;
    }
    
    .project-meta-info {
        gap: 20px;
    }
    
    .buildings-list,
    .units-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .attachments-container {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .attachment-item {
        padding: 15px;
        gap: 12px;
    }
    
    .building-image,
    .unit-image {
        height: 160px;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mb-0 {
    margin-bottom: 0;
}

.mb-1 {
    margin-bottom: 10px;
}

.mb-2 {
    margin-bottom: 20px;
}

.mb-3 {
    margin-bottom: 30px;
}

.mt-0 {
    margin-top: 0;
}

.mt-1 {
    margin-top: 10px;
}

.mt-2 {
    margin-top: 20px;
}

.mt-3 {
    margin-top: 30px;
}

/* ============================================
   COMPREHENSIVE RESPONSIVE DESIGN FOR LUXURY TEMPLATE
   ============================================ */

/* Tablet Styles (768px - 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
    .property-details-section {
        padding: 20px;
    }

    .property-title-price-row {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .property-name {
        font-size: 2.2rem;
    }

    .property-price {
        align-items: center;
    }

    .project-navigation {
        padding: 15px;
    }

    .project-navigation {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .project-navigation::-webkit-scrollbar {
        display: none;
    }

    .project-navigation nav {
        display: flex;
        flex-wrap: nowrap;
        gap: 10px;
        min-width: max-content;
        padding: 0 15px;
    }

    .nav-link {
        padding: 8px 16px;
        font-size: 0.9rem;
        flex-shrink: 0;
        white-space: nowrap;
    }
}

/* Mobile Landscape (480px - 768px) */
@media (max-width: 768px) and (min-width: 481px) {
    .property-details-section {
        padding: 15px;
    }

    .property-title-price-row {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .property-name {
        font-size: 1.8rem;
    }

    .property-price {
        align-items: center;
    }

    /* Horizontal Scrolling Navigation */
    .project-navigation {
        padding: 12px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .project-navigation::-webkit-scrollbar {
        display: none;
    }

    .project-navigation nav {
        display: flex;
        flex-wrap: nowrap;
        gap: 8px;
        min-width: max-content;
        padding: 0 10px;
    }

    .nav-link {
        padding: 8px 14px;
        font-size: 0.85rem;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .content-section {
        padding: 20px;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .overview-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .overview-item {
        padding: 15px;
    }

    .form-group {
        margin-bottom: 15px;
    }

    .form-input {
        font-size: 16px; /* Prevent zoom on iOS */
        padding: 12px;
    }

    .submit-btn {
        width: 100%;
        padding: 12px;
        font-size: 0.9rem;
    }
}

/* Mobile Portrait (320px - 480px) */
@media (max-width: 480px) {
    .property-details-section {
        padding: 10px;
    }

    .property-header-bar {
        margin-bottom: 15px;
    }

    .property-badges {
        flex-direction: column;
        gap: 8px;
        align-items: center;
    }

    .property-badge {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .property-title-price-row {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .property-name {
        font-size: 1.5rem;
        margin-bottom: 8px;
    }

    .property-price {
        align-items: center;
    }

    .price-label {
        font-size: 0.9rem;
    }

    .price-value {
        font-size: 1.4rem;
    }

    .content-section {
        padding: 15px;
    }
    
    .contact-card {
        max-width: 100%;
        margin: 0;
        padding: 15px;
    }

    .contact-title {
        font-size: 1.3rem;
        margin-bottom: 15px;
    }

    /* Enhanced Horizontal Scrolling Navigation */
    .project-navigation {
        padding: 10px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        background: linear-gradient(90deg, 
            rgba(255,255,255,1) 0%, 
            rgba(255,255,255,0) 10%, 
            rgba(255,255,255,0) 90%, 
            rgba(255,255,255,1) 100%);
    }

    .project-navigation::-webkit-scrollbar {
        display: none;
    }

    .project-navigation nav {
        display: flex;
        flex-wrap: nowrap;
        gap: 6px;
        min-width: max-content;
        padding: 0 8px;
    }

    .nav-link {
        padding: 6px 12px;
        font-size: 0.8rem;
        white-space: nowrap;
        flex-shrink: 0;
        border-radius: 6px;
    }

    .content-section {
        padding: 15px;
    }

    .section-title {
        font-size: 1.4rem;
        margin-bottom: 15px;
    }

    .overview-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .overview-item {
        padding: 15px;
        gap: 12px;
    }

    .overview-icon {
        width: 40px;
        height: 40px;
        min-width: 40px;
        font-size: 1rem;
    }

    .overview-label {
        font-size: 0.8125rem;
    }

    .overview-value {
        font-size: 1rem;
    }

    .form-group {
        margin-bottom: 12px;
    }

    .form-label {
        font-size: 0.9rem;
        margin-bottom: 6px;
    }

    .form-input {
        font-size: 16px; /* Prevent zoom on iOS */
        padding: 10px;
        border-radius: 6px;
    }

    .submit-btn {
        width: 100%;
        padding: 10px;
        font-size: 0.85rem;
        border-radius: 6px;
    }

    /* Mobile Carousel */
    .carousel-wrapper {
        height: 200px;
    }

    .carousel-slide img {
        height: 200px;
        object-fit: cover;
    }

    /* Mobile Gallery Grid - Stack all items vertically */
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .gallery-item {
        height: 160px;
    }

    /* Mobile Hero Gallery - Stack layout */
    .hero-gallery {
        padding: 10px;
        min-height: auto;
    }

    .hero-gallery.single-image {
        grid-template-columns: 1fr;
        height: 250px;
    }

    .hero-gallery.two-images {
        grid-template-columns: 1fr;
        height: auto;
        gap: 8px;
    }

    .hero-gallery.two-images .gallery-item {
        height: 200px;
    }

    .hero-gallery.multiple-images {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        height: auto;
        gap: 8px;
    }

    .hero-gallery.multiple-images .gallery-left {
        grid-column: 1;
        grid-row: 1;
    }

    .hero-gallery.multiple-images .gallery-right {
        grid-column: 1;
        grid-row: 2;
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 1fr 1fr;
        gap: 8px;
    }

    .hero-gallery.multiple-images .gallery-right .gallery-item {
        height: 120px;
    }

    .hero-gallery .gallery-item {
        height: 200px;
    }

    .carousel-controls {
        bottom: 10px;
    }

    .carousel-btn {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }

    /* Mobile Map */
    #map {
        height: 200px;
    }

    /* Mobile Payment Plans */
    .payment-plans-container {
        padding: 15px;
    }

    .payment-plan {
        padding: 15px;
        margin-bottom: 15px;
    }

    .payment-plan-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .payment-plan-title {
        font-size: 1.1rem;
    }

    .payment-plan-price {
        font-size: 1.3rem;
    }

    .payment-plan-features {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .payment-plan-feature {
        padding: 8px;
        font-size: 0.85rem;
    }

    .payment-plan-btn {
        width: 100%;
        padding: 10px;
        font-size: 0.85rem;
    }

    /* Mobile Developer Section */
    .developer-section {
        padding: 15px;
    }

    .developer-content {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }

    .developer-info h3 {
        font-size: 1.2rem;
    }

    .developer-info p {
        font-size: 0.85rem;
    }

    .developer-contact {
        flex-direction: column;
        gap: 10px;
    }

    .developer-contact-item {
        width: 100%;
        padding: 10px;
    }

    .developer-contact-item i {
        font-size: 1rem;
    }

    .developer-contact-item span {
        font-size: 0.85rem;
    }

    /* Mobile Attachments */
    .attachments-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .attachment-item {
        padding: 10px;
    }

    .attachment-item h4 {
        font-size: 0.9rem;
    }

    .attachment-item p {
        font-size: 0.8rem;
    }

    .attachment-download {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
}

/* Extra Small Mobile (320px and below) */
@media (max-width: 320px) {
    .property-details-section {
        padding: 8px;
    }

    .property-name {
        font-size: 1.3rem;
    }

    .price-value {
        font-size: 1.2rem;
    }

    .contact-card {
        padding: 12px;
    }

    .contact-title {
        font-size: 1.2rem;
    }

    .project-navigation {
        padding: 8px;
    }

    .project-navigation nav {
        gap: 4px;
        padding: 0 5px;
    }

    .nav-link {
        padding: 5px 10px;
        font-size: 0.75rem;
    }

    .content-section {
        padding: 12px;
    }

    .section-title {
        font-size: 1.2rem;
    }

    .overview-item {
        padding: 10px;
    }

    .overview-content h4 {
        font-size: 0.85rem;
    }

    .overview-content p {
        font-size: 0.8rem;
    }

    .form-input {
        padding: 8px;
    }

    .submit-btn {
        padding: 8px;
        font-size: 0.8rem;
    }

    .carousel-wrapper {
        height: 160px;
    }

    .carousel-slide img {
        height: 160px;
    }

    #map {
        height: 160px;
    }

    .payment-plan {
        padding: 12px;
    }

    .payment-plan-title {
        font-size: 1rem;
    }

    .payment-plan-price {
        font-size: 1.1rem;
    }

    .payment-plan-feature {
        padding: 6px;
        font-size: 0.8rem;
    }

    .payment-plan-btn {
        padding: 8px;
        font-size: 0.8rem;
    }

    .developer-section {
        padding: 12px;
    }

    .developer-info h3 {
        font-size: 1.1rem;
    }

    .developer-info p {
        font-size: 0.8rem;
    }

    .developer-contact-item {
        padding: 8px;
    }

    .developer-contact-item i {
        font-size: 0.9rem;
    }

    .developer-contact-item span {
        font-size: 0.8rem;
    }

    .attachment-item {
        padding: 8px;
    }

    .attachment-item h4 {
        font-size: 0.85rem;
    }

    .attachment-item p {
        font-size: 0.75rem;
    }

    .attachment-download {
        padding: 6px 10px;
        font-size: 0.75rem;
    }
}
