/* ============================================
   GLOBAL CSS VARIABLES & BASE STYLES
   ============================================ */
:root {
    --primary-black: #000;
    --primary-white: #fff;
    --dark-gray: #333;
    --medium-gray: #666;
    --light-gray: #888;
    --lighter-gray: #ccc;
    --lightest-gray: #f0f0f0;
    --background-gray: #f7f7f7;
    --border-color: var(--primary-black);
    --border-light: var(--lighter-gray);
    --text-primary: var(--dark-gray);
    --text-secondary: var(--light-gray);
    --text-muted: var(--medium-gray);
}

/* Main content wrapper */
.all-main-content {
    background-color: var(--background-gray);
    position: relative;
    z-index: 10; /* Ensures content is above the sticky footer (z-index: 1) and other elements */
}

/* Fix for sidebar interaction on project pages */
#full_body_id.sidebar-open .all-main-content {
    z-index: 2; /* Reduce z-index when sidebar is open to prevent footer overlap */
}

/* Ensure footer stays properly positioned during sidebar animation */
#full_body_id.sidebar-open footer {
    position: sticky !important;
    bottom: 0 !important;
    z-index: 1 !important;
    transform: translateX(250px) !important;
}

body {
    cursor: none;
    background-color: var(--background-gray);
}

/* ============================================
   PROJECT TITLE SECTION
   ============================================ */
.project-page-title-container {
    padding: 10px 20px 20px;
    text-align: left;
}

.project-page-main-title {
    font-size: 2.2em;
    font-weight: bold;
    margin: 0;
    color: var(--text-primary);
    line-height: 1.2;
}

.project-page-location {
    font-size: 0.9em;
    color: var(--text-secondary);
    margin: 5px 0 0 5px;
    font-weight: 400;
    line-height: 1.2;
}

/* ============================================
   NAVIGATION BAR
   ============================================ */
.navigation-bar {
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.back-to-projects {
    margin: 0;
    padding: 0;
}

.back-to-projects-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 14px;
    font-weight: 400;
    transition: color 0.2s ease;
    padding: 8px 0;
}

.back-to-projects-link:hover {
    color: var(--primary-black);
}

.back-to-projects-link svg {
    transition: transform 0.2s ease;
}

.back-to-projects-link:hover svg {
    transform: translateX(-2px);
}

/* Override carousel navigation for our navigation bar context */
.navigation-bar .carousel-nav {
    position: static !important;
    top: auto !important;
    width: auto !important;
    transform: none !important;
    display: flex;
    gap: 8px;
    align-items: center;
    margin: 0;
    padding: 0;
}

.navigation-bar .carousel-nav button {
    background: white !important;
    width: 32px !important;
    height: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    color: #666 !important;
    padding: 0 !important;
    margin: 0 !important;
}

.navigation-bar .carousel-nav button:hover {
    border-color: #000 !important;
    color: #000 !important;
    background: white !important;
}

.navigation-bar .carousel-nav button:disabled {
    opacity: 0.4 !important;
    cursor: not-allowed !important;
}

.navigation-bar .carousel-nav button:disabled:hover {
    border-color: #ccc !important;
    color: #666 !important;
    background: white !important;
}

/* ============================================
   PROJECT CONTENT LAYOUT
   ============================================ */
.project-content-columns {
    display: flex;
    flex-wrap: nowrap;
    margin: 0;
    border-top: 2px solid var(--border-color);
    border-bottom: 2px solid var(--border-color);
    align-items: flex-start; /* Changed from stretch - JavaScript will handle height matching */
}

.project-info-col {
    flex: 0 0 auto; /* Don't grow or shrink, use natural height */
    width: max-content;
    display: flex;
    flex-direction: column;
    /* This column defines the height for the entire row */
}

.project-info-col-content {
    margin: 20px;
}

.project-description-col {
    flex: 1; /* Take remaining space horizontally */
    min-width: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    position: relative;
    /* Height will be set by JavaScript to match info column */
}

.project-description-content {
    margin: 20px;
    display: flex;
    flex-direction: column;
    height: 100%; /* Fill the description column */
    overflow: hidden; /* Prevent content from expanding container */
}

/* Project Description */
.project-description {
    flex: 1; /* Take remaining space vertically within description-content */
    overflow-y: auto; /* Enable scrolling when content overflows */
    overflow-x: hidden;
    direction: ltr;
    padding: 0;
    box-sizing: border-box;
    border-left: none;
    padding-top: 20px; /* Add spacing from specs section above */
}

/* Hide the real scrollbar completely */
.project-description::-webkit-scrollbar {
    display: none;
}

.project-description::-webkit-scrollbar-track {
    display: none;
}

.project-description::-webkit-scrollbar-thumb {
    display: none;
}

.project-description::-webkit-scrollbar-thumb:hover {
    display: none;
}

/* Firefox scrollbar hiding */
.project-description {
    scrollbar-width: none; /* Firefox */
}

/* IE and Edge scrollbar hiding */
.project-description {
    -ms-overflow-style: none; /* IE and Edge */
}

.project-description p {
    direction: ltr;
    margin: 0;
    line-height: 1.6;
    font-size: 1.1em;
    color: var(--text-primary);
    /* height: 100%; */ /* REMOVED - Let content flow naturally */
    box-sizing: border-box;
}

/* ============================================
   INFO BLOCKS & SPECIFICATIONS
   ============================================ */

/* Project Information header - Override any info-block h3 styling */
.project-info-header {
    text-align: left !important;
    font-size: 1.5em !important;
    font-weight: bold !important;
    color: var(--text-primary) !important;
    line-height: 1.2 !important;
}

/* Container for the project info header that can be resized to match specs-grid */
.project-info-header-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: auto; /* Will be set by JavaScript */
}

/* Match the height of the info-block containing the project header with description-specs */
.project-info-header-block {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-bottom: 20px;
    border-bottom: 2px solid #eee;
    margin-bottom: 40px; /* Added margin-bottom */
}

.info-block p {
    font-size: 0.9em;
    color: var(--primary-black);
    margin: 0;
    line-height: 1.2;
}

/* Section headers with icons */
.section-header-with-icon {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: nowrap;
}

.section-header-with-icon .section-title {
    font-size: 1.1em;
    font-weight: 600;
    color: var(--primary-black);
    margin: 0;
    text-transform: none;
    letter-spacing: normal;
}

.section-icon {
    width: 24px;
    height: 24px;
    fill: var(--primary-black);
    flex-shrink: 0;
    display: inline-block;
}

/* Style info-block h3 labels */
.info-block h3 {
    display: block;
    font-size: 1.1em;
    font-weight: 600;
    color: var(--primary-black);
    text-transform: none;
    letter-spacing: normal;
}

/* Specifications section at top of description */
.description-specs {
    background: #f8f8f8;
    border-bottom: 2px solid #eee;
    padding-bottom: 20px;
}

.description-specs h3 {
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
    text-align: left;
    border-bottom: 2px solid #eee;
    margin-bottom: 40px;
    padding-bottom: 20px;
    flex-shrink: 0;
}

.specs-grid {
    display: grid;
    gap: 20px;
    width: 100%;
    justify-items: start;
}

.specs-grid.cols-5 {
    grid-template-columns: repeat(5, 1fr);
}

.specs-grid.cols-6 {
    grid-template-columns: repeat(6, 1fr);
}

.spec-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    width: 100%;
}

.spec-number {
    font-size: 1em;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.spec-label {
    font-size: 0.9em;
    color: var(--primary-black);
    font-weight: 500;
    margin-bottom: 4px;
}

/* Dimensions Grid for Block and House */
.dims-grid {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.dim-item {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 12px;
    background: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 4px;
    white-space: nowrap;
}

.dim-text {
    font-size: 1em;
    color: var(--primary-black);
    font-weight: 500;
}

/* ============================================
   DOWNLOAD BUTTON
   ============================================ */
.project-download {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.download-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    background: var(--primary-white);
    color: var(--text-primary);
    border: 2px solid var(--text-primary);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 0.9em;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-decoration: none;
    width: 100%;
    justify-content: center;
}

.download-button:hover {
    background: var(--lightest-gray);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.download-icon {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: black;
    transition: fill 0.2s ease, stroke 0.2s ease;
}

.floorplan-not-available {
    color: #666;
    font-style: italic;
    text-align: center;
    padding: 1rem;
}

/* ============================================
   ENQUIRY SECTION
   ============================================ */

.enquiry-section {
    flex: 0 0 450px;
    margin: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100%;
}

.enquiry-form-container {
    background: var(--primary-white);
    border-left: 2px solid var(--border-color);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.enquiry-form-section {
    display: flex;
    flex-direction: column;
    flex: 1;
    height: 100%;
    overflow: hidden;
    padding: 20px;
}

.enquiry-section h3 {
    background: transparent;
    color: var(--text-primary);
    padding: 16px 24px;
    margin: 0;
    font-size: 1.1em;
    font-weight: 600;
    text-align: left;
}

.enquiry-section form {
    display: flex;
    flex-direction: column;
    flex: 1;
    height: 100%;
}

.enquiry-section .form-row {
    display: flex;
    gap: 15px;
    flex-shrink: 0;
    margin-bottom: 20px;
}

.enquiry-section .form-group {
    margin-bottom: 20px;
}

.enquiry-section .form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

.enquiry-section .form-group:has(#enquiry-message) {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.enquiry-section .form-group:has(#enquiry-message) textarea {
    flex: 1;
    min-height: 120px;
    resize: vertical;
    height: 100%;
}

.enquiry-section .form-group label {
    display: block;
    font-size: 0.9em;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
    text-transform: none;
    letter-spacing: normal;
}

.enquiry-section .form-group input[type="text"],
.enquiry-section .form-group input[type="email"],
.enquiry-section .form-group input[type="tel"],
.enquiry-section .form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid var(--lighter-gray);
    border-radius: 0;
    font-size: 0.9em;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
    font-family: inherit;
    background-color: #fff;
}

.enquiry-section .form-group input[type="text"]:focus,
.enquiry-section .form-group input[type="email"]:focus,
.enquiry-section .form-group input[type="tel"]:focus,
.enquiry-section .form-group textarea:focus {
    border-color: var(--text-primary);
    outline: none;
    box-shadow: 0 0 0 1px var(--text-primary);
}

.enquiry-section .form-group input[type="text"]:hover,
.enquiry-section .form-group input[type="email"]:hover,
.enquiry-section .form-group input[type="tel"]:hover,
.enquiry-section .form-group textarea:hover {
    border-color: #999;
}

.enquiry-section .form-group input[type="text"]::placeholder,
.enquiry-section .form-group input[type="email"]::placeholder,
.enquiry-section .form-group input[type="tel"]::placeholder,
.enquiry-section .form-group textarea::placeholder {
    color: #999;
    opacity: 1;
}

.enquiry-section .form-group input[readonly] {
    background-color: #f5f5f5;
    color: var(--text-secondary);
    cursor: not-allowed;
}

.enquiry-section .form-group textarea {
    resize: none;
    min-height: 80px;
    flex: 1;
}

#enquiry-message {
    flex: 1 !important;
    height: 100% !important;
    resize: vertical;
    box-sizing: border-box;
}

/* Enquiry section checkbox styling - Independent classes */

.enquiry-grey-line {
    height: 2px;
    background-color: #eee;
    margin-top: 40px;
    margin-bottom: 20px;
}

.enquiry-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    background: var(--primary-black);
    color: var(--primary-white);
    border: 2px solid var(--primary-black);
    border-radius: 0;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 0.9em;
    text-transform: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-top: 10px;
    width: 100%;
}

.enquiry-submit-btn:hover {
    background-color: var(--lightest-gray);
    color: var(--text-primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.enquiry-submit-btn:focus {
    outline: none;
    border-color: var(--text-primary);
    box-shadow: 0 0 0 1px var(--text-primary);
}

.enquiry-submit-btn svg {
    flex-shrink: 0;
}

/* Display pricing styles - Johnny Ive minimal design */
.display-pricing-content {
    display: grid;
    grid-template-columns: 1fr 1px 1fr 1px 1fr;
    align-items: stretch;
    min-height: 200px;
    background: #ffffff;
    border: 1px solid #e5e5e7;
    margin: 0;
    padding: 0;
}

.display-pricing-separator {
    background: #e5e5e7;
    width: 1px;
}

.display-price-feature,
.display-off-plan,
.display-timeline {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 48px 32px;
    background: #ffffff;
    border: none;
    border-radius: 0;
    transition: background-color 0.2s ease;
    position: relative;
    cursor: pointer;
}

.display-price-feature:hover,
.display-off-plan:hover,
.display-timeline:hover {
    background: #f5f5f7;
}

.display-price-label,
.display-off-plan-label,
.display-timeline-label {
    font-size: 0.875rem;
    font-weight: 400;
    color: #86868b;
    margin-bottom: 16px;
    text-transform: none;
    letter-spacing: 0;
    line-height: 1.2;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
}

.display-price-amount,
.display-off-plan-price,
.display-timeline-amount {
    font-size: 2.25rem;
    font-weight: 600;
    color: #1d1d1f;
    margin: 0 0 16px 0;
    line-height: 1.1;
    letter-spacing: -0.02em;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, sans-serif;
}

.display-price-disclaimer,
.display-off-plan-disclaimer,
.display-timeline-disclaimer {
    font-size: 0.8125rem;
    font-weight: 400;
    color: #86868b;
    margin: 0;
    line-height: 1.3;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
}

.price-amount::after,
.timeline-amount::after,
.display-price-amount::after,
.display-off-plan-price::after,
.display-timeline-amount::after {
    content: '*';
    font-size: 0.5em;
    vertical-align: super;
    margin-left: 6px;
    font-weight: 300;
    color: #86868b;
}

/* Mobile responsiveness for minimal pricing */
@media (max-width: 768px) {
    .display-pricing-content {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr auto 1fr auto 1fr;
    }
    
    .display-pricing-separator {
        height: 1px;
        width: 100%;
        background: #e5e5e7;
        margin: 0;
    }
    
    .display-price-feature,
    .display-off-plan,
    .display-timeline {
        padding: 40px 24px;
    }
}

/* Standard Plan pricing styles - based on display home styles */
.standard-plan-pricing-content {
    display: grid;
    grid-template-columns: 1fr 1px 1fr;
    align-items: stretch;
    min-height: 200px;
    background: #ffffff;
    border: 1px solid #e5e5e7;
    margin: 0;
    padding: 0;
}

.standard-plan-pricing-separator {
    background: #e5e5e7;
    width: 1px;
}

.standard-plan-price,
.standard-plan-timeline {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 48px 32px;
    background: #ffffff;
    border: none;
    border-radius: 0;
    transition: background-color 0.2s ease;
    position: relative;
    cursor: pointer;
}

.standard-plan-price:hover,
.standard-plan-timeline:hover {
    background: #f5f5f7;
}

.standard-plan-price-label,
.standard-plan-timeline-label {
    font-size: 0.875rem;
    font-weight: 400;
    color: #86868b;
    margin-bottom: 16px;
    text-transform: none;
    letter-spacing: 0;
    line-height: 1.2;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
}

.standard-plan-price-amount,
.standard-plan-timeline-amount {
    font-size: 2.25rem;
    font-weight: 600;
    color: #1d1d1f;
    margin: 0 0 16px 0;
    line-height: 1.1;
    letter-spacing: -0.02em;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, sans-serif;
}

.standard-plan-price-disclaimer,
.standard-plan-timeline-disclaimer {
    font-size: 0.8125rem;
    font-weight: 400;
    color: #86868b;
    margin: 0;
    line-height: 1.3;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
}

.standard-plan-price-amount::after,
.standard-plan-timeline-amount::after {
    content: '*';
    font-size: 0.5em;
    vertical-align: super;
    margin-left: 6px;
    font-weight: 300;
    color: #86868b;
}

/* Mobile responsiveness for standard plan pricing */
@media (max-width: 768px) {
    .standard-plan-pricing-content {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr auto 1fr;
    }
    
    .standard-plan-pricing-separator {
        height: 1px;
        width: 100%;
        background: #e5e5e7;
        margin: 0;
    }
    
    .standard-plan-price,
    .standard-plan-timeline {
        padding: 40px 24px;
    }
}

/* House Land Package pricing styles - based on display home styles */
.house-land-package-pricing-content {
    display: grid;
    grid-template-columns: 1fr 1px 1fr;
    align-items: stretch;
    min-height: 200px;
    background: #ffffff;
    border: 1px solid #e5e5e7;
    margin: 0;
    padding: 0;
}

.house-land-package-pricing-separator {
    background: #e5e5e7;
    width: 1px;
}

.house-land-package-price,
.house-land-package-timeline {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 48px 32px;
    background: #ffffff;
    border: none;
    border-radius: 0;
    transition: background-color 0.2s ease;
    position: relative;
    cursor: pointer;
}

.house-land-package-price:hover,
.house-land-package-timeline:hover {
    background: #f5f5f7;
}

.house-land-package-price-label,
.house-land-package-timeline-label {
    font-size: 0.875rem;
    font-weight: 400;
    color: #86868b;
    margin-bottom: 16px;
    text-transform: none;
    letter-spacing: 0;
    line-height: 1.2;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
}

.house-land-package-price-amount,
.house-land-package-timeline-amount {
    font-size: 2.25rem;
    font-weight: 600;
    color: #1d1d1f;
    margin: 0 0 16px 0;
    line-height: 1.1;
    letter-spacing: -0.02em;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, sans-serif;
}

.house-land-package-price-disclaimer,
.house-land-package-timeline-disclaimer {
    font-size: 0.8125rem;
    font-weight: 400;
    color: #86868b;
    margin: 0;
    line-height: 1.3;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
}

.house-land-package-price-amount::after,
.house-land-package-timeline-amount::after {
    content: '*';
    font-size: 0.5em;
    vertical-align: super;
    margin-left: 6px;
    font-weight: 300;
    color: #86868b;
}

/* Mobile responsiveness for house land package pricing */
@media (max-width: 768px) {
    .house-land-package-pricing-content {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr auto 1fr;
    }
    
    .house-land-package-pricing-separator {
        height: 1px;
        width: 100%;
        background: #e5e5e7;
        margin: 0;
    }
    
    .house-land-package-price,
    .house-land-package-timeline {
        padding: 40px 24px;
    }
}

/* Enquiry form checkbox styling */
.form-group.checkbox-group > div {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.form-group.checkbox-group .checkbox-input {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    accent-color: var(--text-primary);
    cursor: pointer;
    margin-bottom: 0;
}

.form-group.checkbox-group .checkbox-label {
    display: inline;
    font-weight: normal;
    font-size: 0.9em;
    color: var(--text-primary);
    cursor: pointer;
    margin-bottom: 0;
    line-height: 1.2;
}

#enquiry-pin-section {
    display: none;
    padding: 24px;
}

.enquiry-pin-header h4 {
    margin: 0 0 10px 0;
    font-size: 1.2em;
    color: #333;
}

#enquiry-pin-message {
    margin: 0 0 20px 0;
    font-size: 0.9em;
    color: #666;
    line-height: 1.4;
}

.enquiry-pin-container {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 20px 0;
}

.enquiry-pin-box {
    width: 45px;
    height: 50px;
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    border: 2px solid #ddd;
    border-radius: 4px;
    background: #fff;
    color: #333;
    font-family: monospace;
}

/* PIN Resend Timer and Link Styling */
.pin-countdown-container,
.pin-resend-container {
    margin: 15px 0;
    text-align: center;
}

.pin-countdown-container p,
.pin-resend-container p {
    margin: 0;
    font-size: 0.9em;
    color: #666;
    line-height: 1.4;
}

.pin-countdown-container strong {
    color: var(--text-primary);
    font-weight: 600;
}

.pin-resend-container a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.pin-resend-container a:hover {
    color: #000;
    text-decoration: underline;
}

#enquiry-success-section {
    display: none;
    padding: 40px 24px;
    text-align: center;
}

#enquiry-success-section .success-icon {
    color: #28a745;
    font-size: 48px;
    margin-bottom: 20px;
}

#enquiry-success-section h4 {
    margin: 0 0 10px 0;
    color: #28a745;
    font-size: 1.3em;
}

#enquiry-success-section p {
    margin: 0;
    color: #666;
    line-height: 1.5;
}

/* ============================================
   RELATED PROJECTS SECTION
   ============================================ */

.related-projects h3 {
    margin: 0 0 20px 0;
    text-align: left;
    padding-bottom: 24px;
    border-bottom: 2px solid #eee;
    margin-bottom: 32px;
}

/* Related projects header with navigation */
.related-projects-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 2px solid #eee;
    margin-bottom: 40px;
}

.related-projects-header h3 {
    margin: 0;
    padding-bottom: 0;
    border-bottom: none;
    margin-bottom: 0;
    font-size: 1.5em !important;
    font-weight: bold !important;
    color: var(--text-primary) !important;
    line-height: 1.2 !important;
}

/* Related projects navigation buttons - same style as carousel buttons */
.related-projects-nav {
    display: flex;
    gap: 8px;
    align-items: center;
}

.related-nav-btn {
    background: white !important;
    width: 32px !important;
    height: 32px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    color: #666 !important;
    padding: 0 !important;
    margin: 0 !important;
}

.related-nav-btn:hover {
    border-color: #000 !important;
    color: #000 !important;
    background: white !important;
}

.related-nav-btn:disabled {
    opacity: 0.4 !important;
    cursor: not-allowed !important;
}

.related-nav-btn:disabled:hover {
    border-color: #ccc !important;
    color: #666 !important;
    background: white !important;
}

/* Modern horizontal scrolling container */
.result-cards-container {
    position: relative;
    overflow: hidden;
    border-top: 2px solid black;
    z-index: 15; /* Ensure it appears above footer */
    background-color: #f7f7f7; /* Match the off-white background of other sections */
}

/* Wrapper for content with margin, excluding scrollbar */
.related-content-wrapper {
    margin: 20px;
}

/* Fake left scrollbar for project description */
.description-scrollbar-wrapper {
    width: 2px;
    background: #ddd;
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    cursor: pointer;
    z-index: 10;
    display: none; /* Hidden by default, shown by JavaScript on desktop */
}

.description-scrollbar-thumb {
    width: 2px;
    background-color: #666;
    position: absolute;
    left: 0;
    transition: background-color 0.2s ease;
    cursor: pointer;
    min-height: 20px;
}

.description-scrollbar-thumb:hover,
.description-scrollbar-thumb.dragging {
    background-color: #333;
}

.description-scrollbar-wrapper:hover .description-scrollbar-thumb {
    background-color: #444;
}

/* Black scrollbar when no scrolling is needed */
.description-scrollbar-wrapper.no-scroll {
    background: #000;
}

.description-scrollbar-wrapper.no-scroll .description-scrollbar-thumb {
    background-color: #000;
}

.description-scrollbar-wrapper.no-scroll .description-scrollbar-thumb:hover,
.description-scrollbar-wrapper.no-scroll .description-scrollbar-thumb.dragging {
    background-color: #000;
}

.description-scrollbar-wrapper.no-scroll:hover .description-scrollbar-thumb {
    background-color: #000;
}

.result-cards {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox - hide real scrollbar */
    -ms-overflow-style: none; /* IE and Edge - hide real scrollbar */
}

/* Hide the real scrollbar for Chrome, Safari and Opera */
.result-cards::-webkit-scrollbar {
    display: none;
}

/* Google-style card design */
.card {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 0 0 600px;
    height: auto;
    overflow: hidden;
    transition: all 0.25s cubic-bezier(0.4, 0.0, 0.2, 1);
    cursor: pointer;
    z-index: 15; /* Ensure it appears above footer */
}

.card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    width: 100%;
    height: 100%;
}

/* Image container with 16:9 aspect ratio */
.image-placeholder {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    background: #f5f5f5;
}

.image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.card:hover .image-placeholder img {
    transform: scale(1.02);
}

/* Project card styling */

.card .project-card-location {
    font-size: 0.9em;
    color: #555;
    margin-bottom: 8px;
}

.project-card-footer-info {
    padding: 20px 0;
}

.project-card-address{
    font-size: 1em;
    color: var(--primary-black); 
    font-weight: 700; 
    margin-bottom: 20px;
}

.card .project-features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    text-align: left;
}

.feature-label{
    display: block;
    font-size: 0.9em; 
    color: var(--primary-black); 
    font-weight: 500; 
    margin-bottom: 4px;
}

.feature-value {
    display: block;
    font-size: 1em; 
    color: var(--text-primary); 
    font-weight: 700; 
}

.project-features-grid .feature-item-text .feature-value {
    font-size: 1em;
    font-weight: 700;          /* Match spec-number font-weight */
    color: var(--text-primary); /* Match spec-number color */
}

/* Project card styling */

/* Card content area with proper text containment */
.card-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 16px;
    background: #fff;
    overflow: hidden;
}

.feature-value {
    font-weight: 500;
    color: #333;
}

/* Subtle loading state */
.card.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* ============================================
   ABOUT SECTION STYLING
   ============================================ */
#about-section {
    background-color: #f7f7f7;
    text-align: left;
    font-weight: 700;
    font-style: normal;
    font-size: 40px;
    line-height: 56px;
    border-top: 2px black solid;
    position: relative;
    z-index: 10;
}

#about-section p {
    font-weight: 500;
    font-style: normal;
    font-size: 40px;
    line-height: 56px;
    max-width: 100%;
    padding: 100px 20px;
}

.grey-text {
    color: grey;
}

p .arwfficon {
    vertical-align: middle;
}

/* ============================================
   DISPLAY HOME PRICING SECTION
   ============================================ */
.display-home-pricing {
    background-color: var(--background-gray);
    border-top: 2px solid var(--border-color);
}

/* ============================================
   FEATURES & INCLUSIONS SECTION
   ============================================ */
.features-inclusions-section {
    background-color: var(--background-gray);
    border-top: 2px solid var(--border-color);
    padding: 0;
    margin: 0;
}

.features-inclusions-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

.features-inclusions-intro {
    text-align: center;
    margin-bottom: 30px;
}

.features-inclusions-intro h2 {
    font-size: 1.6em;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 12px 0;
    line-height: 1.3;
}

.features-inclusions-intro p {
    font-size: 0.95em;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.5;
    max-width: 800px;
    margin: 0 auto;
}

.features-inclusions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    align-items: start;
    padding: 0 20px;
    Border-bottom: 2px solid var(--border-color);
}

.features-column,
.inclusions-column {
    background: var(--primary-white);
    border-radius: 0;
    padding: 0;
    overflow: hidden;
}

.features-header,
.inclusions-header {
    background: transparent;
    color: var(--text-primary);
    padding: 16px 24px;
    margin: 0;
    font-size: 1.1em;
    font-weight: 600;
    text-align: left;
    letter-spacing: normal;
    border-bottom: 1px solid var(--border-light);
}

.features-description,
.inclusions-description {
    padding: 12px 24px;
    background: var(--lightest-gray);
    border-bottom: 1px solid var(--border-light);
    font-size: 0.85em;
    color: var(--text-muted);
    line-height: 1.4;
    text-align: center;
    font-style: italic;
}

.features-list,
.inclusions-list {
    padding: 0;
    margin: 0;
    list-style: none;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
}

.feature-item,
.inclusion-item {
    padding: 14px 20px;
    transition: background-color 0.2s ease;
    min-height: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.feature-item:last-child,
.inclusion-item:last-child {
    border-bottom: none;
}

.feature-item:hover,
.inclusion-item:hover {
    background-color: var(--lightest-gray);
}

.feature-name,
.inclusion-name {
    font-size: 0.95em;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 4px 0;
    line-height: 1.3;
    display: flex;
    align-items: center;
}

.feature-name::before,
.inclusion-name::before {
    content: '✓';
    color: #28a745;
    font-weight: bold;
    font-size: 1.2em;
    margin-right: 10px;
    line-height: 1;
}

.feature-description-text,
.inclusion-description-text {
    font-size: 0.8em;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.3;
}

.features-inclusions-empty {
    padding: 30px 24px;
    text-align: center;
    color: var(--text-secondary);
    font-style: italic;
    font-size: 0.9em;
    grid-column: 1 / -1;
}

/* Mobile responsiveness for features & inclusions */
@media (max-width: 768px) {
    .features-inclusions-container {
        padding: 30px 15px;
    }
    
    .features-inclusions-intro h2 {
        font-size: 1.4em;
    }
    
    .features-inclusions-intro p {
        font-size: 0.9em;
    }
    
    .features-inclusions-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .features-header,
    .inclusions-header {
        font-size: 1em;
        padding: 14px 20px;
    }
    
    .features-description,
    .inclusions-description {
        padding: 10px 20px;
        font-size: 0.8em;
    }
    
    .features-list,
    .inclusions-list {
        grid-template-columns: 1fr;
    }
    
    .feature-item,
    .inclusion-item {
        padding: 12px 20px;
        border-right: none;
        min-height: 50px;
    }
    
    .feature-name,
    .inclusion-name {
        font-size: 0.9em;
    }
    
    .feature-description,
    .inclusion-description {
        font-size: 0.75em;
    }
}

/* ============================================
   MOBILE RESPONSIVENESS FOR MAIN CONTENT
   ============================================ */
@media (max-width: 768px) {
    /* Make the main content grid stack vertically on mobile */
    .main-content-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
        padding: 20px !important;
    }
    
    /* Adjust enquiry section for mobile */
    .enquiry-section {
        order: 1; /* Put enquiry form first on mobile */
    }
    
    .features-inclusions-column {
        order: 2; /* Put features/inclusions below enquiry on mobile */
    }
}

/* ============================================
   TRADITIONAL MAP & ENQUIRY LAYOUT STYLES
   ============================================ */
/* Traditional Map/Enquiry container is now the only layout */
.map-enquiry-container {
    height: calc(100% - 40px);
    min-height: 500px;
}

.full-width-map-section{
    border-bottom:2px solid var(--border-color);
    background-color: var(--background-gray);
}

.map {
    width: 100%;
    height: 500px;
    position: relative;
    background-color: #f0f0f0;
}

#map-traditional {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1;
}

.google-maps-button {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary-white);
    border: 2px solid var(--text-primary);
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 0.9em;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
}

.google-maps-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.leaflet-left .leaflet-control{
    margin-left: 20px; 
}

.leaflet-top .leaflet-control {
    margin-top: 20px;
}

.leaflet-touch .leaflet-control-layers, .leaflet-touch .leaflet-bar {
    border: 2px solid black;
    background-clip: padding-box;
}

/* ============================================
   CONTENT SECTION (Features/Inclusions + Enquiry/Pricing)
   ============================================ */
.main-content-section {
    background-color: var(--background-gray);
}

.main-content-grid {
    display: grid;
    grid-template-columns: 1fr 450px;
    align-items: start;
}

/* ============================================
   PRICING & TIMELINE SECTION STYLES
   ============================================ */
.pricing-timeline-section {
    background: var(--primary-white);
    overflow: hidden;
}

.pricing-timeline-section h3 {
    margin: 0 0 25px 0;
    font-size: 1.5em;
    font-weight: bold;
    color: var(--text-primary);
    border-bottom: none;
    padding-bottom: 0;
    background: var(--primary-black);
    color: var(--primary-white);
    padding: 16px 24px;
    text-align: center;
}

.pricing-timeline-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

/* Display Home specific grid - 3 columns for display/off-plan/timeline */
.display-home-pricing-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.price-item,
.timeline-item {
    background: #f8f9fa;
    padding: 25px 20px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #eee;
    transition: all 0.3s ease;
}

.price-item:hover,
.timeline-item:hover {
    background: #f0f0f0;
    border-color: var(--text-primary);
}

/* Display Home specific pricing styles */
.display-home-price {
    background: linear-gradient(135deg, #e8f5e8 0%, #f8f9fa 100%);
    border-color: #28a745;
}

.off-plan-price {
    background: linear-gradient(135deg, #e8f4fd 0%, #f8f9fa 100%);
    border-color: #007bff;
}



/* House Land Package specific pricing */
.package-price {
    background: linear-gradient(135deg, #fff8e1 0%, #f8f9fa 100%);
    border-color: #ffc107;
}

.price-label,
.timeline-label {
    font-size: 0.9em;
    font-weight: 500;
    color: var(--medium-gray);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.price-amount,
.timeline-amount {
    font-size: 2em;
    font-weight: 700;
    color: var(--text-primary);
    margin: 15px 0;
    line-height: 1.2;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, sans-serif;
}

.price-note,
.timeline-note {
    font-size: 0.8em;
    color: var(--medium-gray);
    margin-top: 10px;
    line-height: 1.4;
    font-style: italic;
}

.house-size-section{
    margin-top: 20px;
}

/* Mobile responsiveness for pricing/timeline */
@media (max-width: 768px) {
    .pricing-timeline-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .display-home-pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .price-item,
    .timeline-item {
        padding: 20px 15px;
    }
    
    .price-amount,
    .timeline-amount {
        font-size: 1.6em;
    }
}

/* ============================================
   SIMPLE PROJECT LAYOUT (New Home, Renovation, Knockdown Rebuild)
   ============================================ */
.simple-project-content-section {
    background-color: var(--background-gray);
}

.simple-project-grid {
    display: grid;
    grid-template-columns: 1fr 450px;
    align-items: stretch;
    min-height: 500px;
}

.simple-map-column {
    position: relative;
    background-color: var(--background-gray);
    display: flex;
    flex-direction: column;
}

.simple-map-column .map {
    width: 100%;
    height: 100%;
    min-height: 500px;
    flex: 1;
    position: relative;
    background-color: #f0f0f0;
}

.simple-map-column #map-traditional {
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1;
}

.simple-map-column .google-maps-button {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--primary-white);
    border: 2px solid var(--text-primary);
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 0.9em;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
}

.simple-map-column .google-maps-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.simple-enquiry-column {
    /* Use the exact same styling as the regular enquiry section */
    flex: 0 0 450px;
    margin: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100%;
    background: var(--primary-white);
}

.simple-enquiry-column .enquiry-form-container {
    background: var(--primary-white);
    border-left: 2px solid var(--border-color);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    margin: 0;
    padding: 0;
}

.simple-enquiry-column .enquiry-form-section {
    display: flex;
    flex-direction: column;
    flex: 1;
    height: 100%;
    overflow: hidden;
    padding: 20px;
}

.simple-enquiry-column .enquiry-form-container h3 {
    background: transparent;
    color: var(--text-primary);
    padding: 16px 24px;
    margin: 0;
    font-size: 1.1em;
    font-weight: 600;
    text-align: left;
    border-bottom: 0;
}

/* Make sure all the enquiry form styles apply to simple layout */
.simple-enquiry-column .form-row {
    display: flex;
    gap: 15px;
    flex-shrink: 0;
    margin-bottom: 20px;
}

.simple-enquiry-column .form-group {
    margin-bottom: 20px;
}

.simple-enquiry-column .form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

.simple-enquiry-column .form-group:has(#enquiry-message) {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.simple-enquiry-column .form-group:has(#enquiry-message) textarea {
    flex: 1;
    min-height: 120px;
    resize: vertical;
    height: 100%;
}

.simple-enquiry-column .form-group label {
    display: block;
    font-size: 0.9em;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 10px;
    text-transform: none;
    letter-spacing: normal;
}

.simple-enquiry-column .form-group input[type="text"],
.simple-enquiry-column .form-group input[type="email"],
.simple-enquiry-column .form-group input[type="tel"],
.simple-enquiry-column .form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid var(--lighter-gray);
    border-radius: 0;
    font-size: 0.9em;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
    font-family: inherit;
    background-color: #fff;
}

.simple-enquiry-column .form-group input[type="text"]:focus,
.simple-enquiry-column .form-group input[type="email"]:focus,
.simple-enquiry-column .form-group input[type="tel"]:focus,
.simple-enquiry-column .form-group textarea:focus {
    border-color: var(--text-primary);
    outline: none;
    box-shadow: 0 0 0 1px var(--text-primary);
}

.simple-enquiry-column .enquiry-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 16px;
    background: var(--primary-black);
    color: var(--primary-white);
    border: 2px solid var(--primary-black);
    border-radius: 0;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    font-size: 0.9em;
    text-transform: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-top: 10px;
    width: 100%;
}

.simple-enquiry-column .enquiry-submit-btn:hover {
    background-color: var(--lightest-gray);
    color: var(--text-primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Enquiry Form Styles */
.enquiry-form-container form {
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: 1rem;
}

.form-group.flex-grow {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.form-group.flex-grow textarea {
    flex: 1;
    min-height: 120px;
    resize: none;
}

.form-group:not(.flex-grow) {
    flex-shrink: 0;
}

/* Project Features Styling */
.project-features {
        margin-top: 2rem;
        border: none;
        border-top: none !important;
    }

    .project-features h3 {
        font-weight: 600;
        font-size: inherit;
        margin-bottom: 2rem;
        color: inherit;
        display: inline-block;
    }

    .project-features .features-list {
        margin: 0;
        color: inherit;
    }

    .project-features .feature-item {
        padding: 0;
        margin: 0;
        line-height: 1.6;
        color: inherit;
        display: list-item;
    }

    .project-features .feature-item:before {
        display: none;
    }

    .project-description p,
    .project-features {
        line-height: 1.6;
        color: inherit;
    }

    /* Remove any hover effects */
    .project-features *:hover {
        background: none;
        color: inherit;
    }

/* Pricing Section Border */
.simple-map-column .pricing-timeline-section {
    border-top: 2px solid black;
}

.simple-map-column:empty {
    display: none;
}

.simple-project-grid .simple-map-column:has(.pricing-timeline-section:only-child) {
    margin-top: 0;
}

.simple-project-grid .simple-map-column .pricing-timeline-section:first-child {
    margin-top: 0;
    border-top: none;
}

/* ============================================
   COMPREHENSIVE MOBILE RESPONSIVENESS
   ============================================ */
@media (max-width: 768px) {
    /* PROJECT TITLE SECTION */
    .project-page-title-container {
        padding: 20px 15px;
    }
    
    .project-page-main-title {
        font-size: 1.8em;
        line-height: 1.1;
    }
    
    .project-page-location {
        font-size: 0.85em;
        margin: 8px 0 0 0;
    }
    
    /* NAVIGATION BAR */
    .navigation-bar {
        padding: 15px;
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .navigation-bar .carousel-nav {
        align-self: center;
    }
    
    /* MAIN PROJECT CONTENT LAYOUT */
    .project-content-columns {
        flex-direction: column;
        border-top: 2px solid var(--border-color);
        border-bottom: none;
    }
    
    .project-info-col {
        width: 100%;
        order: 1;
        border-bottom: 2px solid var(--border-color);
    }
    
    .project-info-col-content {
        margin: 15px;
    }
    
    .project-description-col {
        order: 2;
        border-bottom: 2px solid var(--border-color);
    }
    
    .project-description-content {
        margin: 15px;
        height: auto;
    }
    
    .project-description {
        max-height: none;
        overflow-y: visible;
        padding-top: 15px;
    }
    
    /* PROJECT INFO BLOCKS */
    .project-info-header-block {
        margin-bottom: 25px;
        padding-bottom: 15px;
    }
    
    .project-info-header {
        font-size: 1.3em !important;
    }
    
    .info-block h3 {
        font-size: 1em;
    }
    
    .info-block p {
        font-size: 0.85em;
    }
    
    /* SPECIFICATIONS GRID */
    .description-specs {
        padding-bottom: 15px;
    }
    
    .description-specs h3 {
        margin-bottom: 20px;
        padding-bottom: 15px;
        font-size: 1.2em;
    }
    
    .specs-grid.cols-5,
    .specs-grid.cols-6 {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .spec-number {
        font-size: 0.9em;
    }
    
    .spec-label {
        font-size: 0.8em;
    }
    
    /* DIMENSIONS GRID */
    .dims-grid {
        gap: 10px;
        justify-content: center;
    }
    
    .dim-item {
        padding: 8px;
        font-size: 0.9em;
    }
    
    /* DOWNLOAD BUTTON */
    .project-download {
        margin-top: 15px;
    }
    
    .download-button {
        padding: 12px 16px;
        font-size: 0.95em;
    }
    
    /* ENQUIRY SECTION - Make it stack properly */
    .enquiry-section {
        flex: none;
        width: 100%;
        order: 3;
        min-height: auto;
    }
    
    .enquiry-form-container {
        border-left: none;
        border-top: 2px solid var(--border-color);
    }
    
    .enquiry-form-section {
        padding: 15px;
    }
    
    .enquiry-section h3 {
        padding: 12px 15px;
        font-size: 1em;
    }
    
    .enquiry-section .form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .enquiry-section .form-group {
        margin-bottom: 15px;
    }
    
    .enquiry-section .form-group:has(#enquiry-message) {
        margin-bottom: 15px;
    }
    
    .enquiry-section .form-group:has(#enquiry-message) textarea {
        min-height: 100px;
    }
    
    /* MAIN CONTENT GRID */
    .main-content-grid {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
        padding: 0 !important;
    }
    
    /* FEATURES & INCLUSIONS */
    .features-inclusions-container {
        padding: 20px 15px;
    }
    
    .features-inclusions-intro h2 {
        font-size: 1.3em;
    }
    
    .features-inclusions-grid {
        padding: 0;
    }
    
    /* SIMPLE PROJECT LAYOUT */
    .simple-project-grid {
        grid-template-columns: 1fr !important;
        align-items: stretch;
    }
    
    .simple-map-column {
        order: 1;
        border-bottom: 2px solid var(--border-color);
    }
    
    .simple-map-column .map {
        height: 400px;
        min-height: 400px;
    }
    
    .simple-enquiry-column {
        flex: none;
        width: 100%;
        order: 2;
        height: auto;
    }
    
    .simple-enquiry-column .enquiry-form-container {
        border-left: none;
        border-top: 2px solid var(--border-color);
        height: auto;
    }
    
    .simple-enquiry-column .enquiry-form-section {
        padding: 15px;
        height: auto;
    }
    
    .simple-enquiry-column .form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .simple-enquiry-column .form-group:has(#enquiry-message) textarea {
        min-height: 100px;
        height: auto;
    }
    
    /* MAP STYLING */
    .map {
        height: 400px !important;
    }
    
    #map-traditional {
        height: 400px !important;
    }
    
    .google-maps-button {
        top: 10px;
        right: 10px;
        padding: 6px 10px;
        font-size: 0.8em;
    }
    
    /* RELATED PROJECTS */
    .related-content-wrapper {
        margin: 15px;
    }
    
    .related-projects-header {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
        margin-bottom: 20px;
        padding-bottom: 15px;
    }
    
    .related-projects-header h3 {
        font-size: 1.3em !important;
    }
    
    .related-projects-nav {
        align-self: center;
    }
    
    .card {
        flex: 0 0 300px;
    }
    
    .image-placeholder {
        height: 200px;
    }
    
    .card-info {
        padding: 12px;
    }
    
    .project-card-address {
        font-size: 0.9em;
        margin-bottom: 15px;
    }
    
    .project-features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }
    
    .feature-label {
        font-size: 0.8em;
    }
    
    .feature-value {
        font-size: 0.9em;
    }
    
    /* ABOUT SECTION */
    #about-section {
        font-size: 24px;
        line-height: 32px;
    }
    
    #about-section p {
        font-size: 24px;
        line-height: 32px;
        padding: 60px 20px;
    }
    
    /* Scale arwfficon to match mobile text size */
    .arwfficon {
        width: 24px !important;
        height: 24px !important;
    }
    
    /* SCROLLBAR HIDING ON MOBILE */
    .description-scrollbar-wrapper {
        display: none !important;
    }
    
    /* CURSOR BEHAVIOR ON MOBILE */
    body {
        cursor: auto;
    }
    
    /* ENSURE PROPER STACKING ORDER */
    .enquiry-section {
        z-index: 10;
    }
    
    .simple-enquiry-column {
        z-index: 10;
    }
}

/* ADDITIONAL MOBILE OPTIMIZATIONS FOR VERY SMALL SCREENS */
@media (max-width: 480px) {
    .project-page-title-container {
        padding: 15px 10px;
    }
    
    .project-page-main-title {
        font-size: 1.6em;
    }
    
    .navigation-bar {
        padding: 10px;
    }
    
    .project-info-col-content,
    .project-description-content {
        margin: 10px;
    }
    
    .specs-grid.cols-5,
    .specs-grid.cols-6 {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .enquiry-form-section,
    .simple-enquiry-column .enquiry-form-section {
        padding: 10px;
    }
    
    .related-content-wrapper {
        margin: 10px;
    }
    
    .card {
        flex: 0 0 280px;
    }
    
    .project-features-grid {
        grid-template-columns: 1fr;
    }
    
    #about-section {
        font-size: 20px;
        line-height: 28px;
    }
    
    #about-section p {
        font-size: 20px;
        line-height: 28px;
        padding: 40px 20px;
    }
    
    /* Scale arwfficon to match smaller mobile text size */
    .arwfficon {
        width: 20px !important;
        height: 20px !important;
    }
}