:root {
    --primary: #000080;
    --cyan: #000080;
    --info: #000080;
    --teal: #000080;
}

/* Property Title Hover Override */
a.hover-primary:hover,
.hover-primary:hover {
    color: #000080 !important;
}

/* Homepage Banner Premium Redesign - Full Bleed & Ken Burns */
.home-banner-height {
    position: relative;
    overflow: hidden;
    height: 800px;
    min-height: 800px;
    background-color: #000;
}

.home-banner-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover !important;
    z-index: 1;
    animation: kenBurnsEffect 20s infinite alternate ease-in-out;
}

@keyframes kenBurnsEffect {
    from {
        transform: scale(1);
    }

    to {
        transform: scale(1.12);
    }
}

/* Vertical Gradient Overlays for Text/Logo Legibility */
.home-banner-overlay-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.7) 0%,
            rgba(0, 0, 0, 0.2) 25%,
            rgba(0, 0, 0, 0) 50%,
            rgba(0, 0, 0, 0.2) 75%,
            rgba(0, 0, 0, 0.8) 100%);
    z-index: 2;
    pointer-events: none;
}

/* Content Layer - Text and Form */
.home-banner-content-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Enhanced Glassmorphism for Search Form */
.property-search.glass-effect {
    background: rgba(255, 255, 255, 0.08) !important;
    backdrop-filter: blur(15px) saturate(180%);
    -webkit-backdrop-filter: blur(15px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
}

.property-search.glass-effect label,
.property-search.glass-effect .text-dark {
    color: #fff !important;
}

.property-search.glass-effect .form-control {
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
}

.property-search.glass-effect .form-control::placeholder {
    color: rgba(255, 255, 255, 0.6) !important;
}

/* Fix for Banner Carousel Controls - Narrow hit area to avoid search form overlap */
.carousel-control-prev,
.carousel-control-next {
    z-index: 10 !important;
    width: 60px;
    /* Narrow hit area */
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 2.5rem;
    height: 2.5rem;
    filter: drop-shadow(0 0 10px rgba(0, 0, 0, 0.8));
}

@media (max-width: 991.98px) {
    .home-banner-height {
        height: auto;
        min-height: 500px;
    }
}

/* Luxury About Us Styles */
.luxury-card {
    background: #fff;
    border-radius: 8px;
    padding: 2rem;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.luxury-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.text-gold {
    color: #c5a47e;
    /* Luxury Gold Tone */
}

.letter-spacing-2 {
    letter-spacing: 2px;
}

/* Reference Image Inspired Styles */
.bg-dark-section {
    background-color: #1a1a2e;
    /* Deep Blue from reference */
    color: #fff;
}

.feature-card {
    background: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    text-align: center;
    border-bottom: 3px solid transparent;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-bottom-color: #c5a47e;
    /* Gold accent */
}

.feature-icon-circle {
    width: 70px;
    height: 70px;
    background: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: #1a1a2e;
    font-size: 24px;
    transition: all 0.3s;
}

.feature-card:hover .feature-icon-circle {
    background: #c5a47e;
    color: #fff;
}

.section-title-bar {
    width: 60px;
    height: 4px;
    background-color: #c5a47e;
    margin: 20px auto;
}

.btn-luxury {
    background-color: #c5a47e;
    color: #fff;
    padding: 12px 30px;
    border-radius: 30px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: all 0.3s;
}

.btn-luxury:hover {
    background-color: #b08d55;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(197, 164, 126, 0.4);
}

/* Construction Hero Theme */
.hero-construction-wrapper {
    background-color: #1a1a2e;
    background-image: radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(255, 255, 255, 0.05) 0%, transparent 20%);
    position: relative;
    overflow: hidden;
    padding-top: 100px;
    /* Reduced min-height */
    min-height: 500px;
    display: flex;
    align-items: center;
}

/* Abstract wave lines with animation */
.hero-construction-wrapper::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 600px;
    /* Reduced Size */
    height: 600px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    z-index: 1;
    animation: pulseBorder 8s infinite alternate;
}

.hero-construction-wrapper::after {
    content: '';
    position: absolute;
    top: -30%;
    right: -5%;
    width: 450px;
    /* Reduced Size */
    height: 450px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    z-index: 1;
    animation: pulseBorder 6s infinite alternate-reverse;
}

@keyframes pulseBorder {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    100% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

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

/* Bottom Curve Shape */
.hero-bottom-curve {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background-color: #f8f9fa;
    /* Matches bg-light of next section or white */
    border-top-left-radius: 50% 100%;
    border-top-right-radius: 50% 100%;
    z-index: 3;
}

.hero-img-container {
    position: relative;
    z-index: 2;
    text-align: right;
    height: 100%;
}

.hero-img-container img {
    max-height: 450px;
    /* Reduced from 550px */
    object-fit: contain;
    position: relative;
    bottom: -20px;
}

/* Contact/Quote Section Styles */
.contact-process-wrapper {
    position: relative;
    padding-right: 30px;
    overflow: hidden;
    /* Ensure animation doesn't cause scrollbar issues if it moves outside */
    border-radius: 100px 10px 100px 10px;
    /* Make the wrapper also follow shape if needed, or just let image do it */
}

/* Apply specific style to image in quote section */
.quote-image-custom {
    border-radius: 100px 10px 100px 10px;
    animation: floatImage 4s ease-in-out infinite;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

@keyframes floatImage {
    0% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }

    100% {
        transform: translateY(0);
    }
}


.process-overlay-card {
    background-color: #1a1a2e;
    /* Dark Blue */
    border-radius: 15px;
    padding: 40px;
    color: #fff;
    position: absolute;
    top: 50%;
    right: -50px;
    /* Overlap right */
    transform: translateY(-50%);
    width: 350px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.process-step {
    display: flex;
    margin-bottom: 25px;
    position: relative;
}

.process-step:last-child {
    margin-bottom: 0;
}

/* Timeline line */
.process-step::before {
    content: '';
    position: absolute;
    left: 19px;
    /* Center of circle (40px/2 - 1px) */
    top: 40px;
    bottom: -25px;
    width: 2px;
    border-left: 2px dashed rgba(255, 255, 255, 0.2);
}

.process-step:last-child::before {
    display: none;
}

.step-number {
    width: 40px;
    height: 40px;
    background-color: #e67e22;
    /* Orange circle */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #fff;
    flex-shrink: 0;
    margin-right: 15px;
    z-index: 1;
}

.step-content h5 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 5px;
}

.step-content p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.4;
    margin-bottom: 0;
}

.quote-form-control {
    background-color: #e9ecef;
    border: none;
    padding: 15px 20px;
    border-radius: 30px;
    /* Pill shape inputs */
    width: 100%;
    margin-bottom: 20px;
    font-size: 14px;
}

.quote-form-control:focus {
    background-color: #dee2e6;
    box-shadow: none;
    outline: none;
}

.btn-orange-pill {
    background-color: #e67e22;
    color: #fff;
    border-radius: 30px;
    padding: 12px 30px;
    font-weight: 600;
    border: none;
    transition: all 0.3s;
}


/* Project Card Style for Services */
.project-card {
    background: #fff;
    border-radius: 4px;
    /* More change, less rounded */
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.project-card-img {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.project-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.project-card-body {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.project-title {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 13px;
    color: #888;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
}

.project-details-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
}

.project-label {
    color: #999;
}

.project-value {
    font-weight: 600;
    color: #333;
    text-align: right;
}

.project-status {
    color: #2ecc71;
    /* Green for success/approved */
    font-weight: 600;
}

.project-price {
    color: #f39c12;
    /* Orange/Gold for price */
    font-weight: 700;
    font-size: 16px;
}

.btn-project-details {
    display: block;
    width: 100%;
    background-color: #000080;
    /* Navy Blue from user request */
    color: #fff;
    text-align: center;
    padding: 12px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    border: none;
    border-radius: 2px;
    margin-top: auto;
    /* Push to bottom */
    transition: background 0.3s;
    text-decoration: none;
}

.btn-project-details:hover {
    background-color: #000050;
    color: #fff;
    text-decoration: none;
}

/* Featured Development Slider Arrows */
.slick-slider.custom-arrow-spacing .slick-prev,
.slick-slider.custom-arrow-spacing .slick-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border-style: none;
}

.slick-slider.custom-arrow-spacing .slick-prev:hover,
.slick-slider.custom-arrow-spacing .slick-next:hover {
    background-color: #fff;
    color: #000;
}

.slick-slider.custom-arrow-spacing .slick-prev {
    left: -60px;
}

.slick-slider.custom-arrow-spacing .slick-next {
    right: -60px;
}

@media (max-width: 1400px) {
    .slick-slider.custom-arrow-spacing .slick-prev {
        left: 0;
        background-color: rgba(0, 0, 0, 0.5);
    }

    .slick-slider.custom-arrow-spacing .slick-next {
        right: 0;
        background-color: rgba(0, 0, 0, 0.5);
    }
}

/* Fix Slider Arrows Visibility */
.slick-slider.custom-arrow-spacing .slick-prev {
    left: 10px !important;
    background-color: rgba(0, 0, 0, 0.5) !important;
}

.slick-slider.custom-arrow-spacing .slick-next {
    right: 10px !important;
    background-color: rgba(0, 0, 0, 0.5) !important;
}

.slick-slider.custom-arrow-spacing:hover .slick-prev,
.slick-slider.custom-arrow-spacing:hover .slick-next {
    background-color: #fff !important;
    color: #000 !important;
}

/* Override Primary Button Color to Navy Blue */
.btn-primary {
    background-color: #000080 !important;
    border-color: #000080 !important;
    color: #fff;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active {
    background-color: #000050 !important;
    border-color: #000050 !important;
    color: #fff;
}

/* Property Section Color Overrides (Navy Blue) */
.text-primary {
    color: #000080 !important;
}

.badge-primary {
    background-color: #000080 !important;
    color: #fff !important;
}

.heading-divider {
    background-color: #000080 !important;
}

/* Featured Badge Overrides (Gold Gradient) */
.badge-orange {
    background-image: linear-gradient(to right, #b88a4d 0%, #e5c386 51%, #b88a4d 100%) !important;
    background-size: 200% auto !important;
    color: #fff !important;
    border: none !important;
    transition: 0.5s;
}

.badge-orange:hover {
    background-position: right center !important;
    /* change the direction of the change here */
}

/* Header Navigation Hover & Active State (Navy Blue) */
/* Override for pseudo-elements (underline) */
.navbar-nav .nav-item .nav-link::before,
.navbar-nav .nav-item.active .nav-link::before,
.navbar-nav .nav-item:hover .nav-link::before {
    background-color: #000080 !important;
}

/* Override for text color */
.navbar-nav .nav-item .nav-link:hover,
.navbar-nav .nav-item.active .nav-link,
.navbar-nav .nav-item.show .nav-link,
.dropdown-menu .dropdown-item:hover>.dropdown-link,
.dropdown-menu .dropdown-item.active>.dropdown-link {
    color: #000080 !important;
}

/* Pagination Active State (Navy Blue) */
.page-item.active .page-link {
    background-color: #000080 !important;
    border-color: #000080 !important;
    color: #fff !important;
}

.page-link:hover {
    color: #000080 !important;
}

/* Header Dropdown Hover Background Override */
.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:focus,
.dropdown-menu .dropdown-item:active {
    background-color: #000080 !important;
}

/* Ensure text is white on hover against Navy background */
.dropdown-menu .dropdown-item:hover>.dropdown-link,
.dropdown-menu .dropdown-item:focus>.dropdown-link,
.dropdown-menu .dropdown-item:active>.dropdown-link {
    color: #ffffff !important;
}

/* Header Gradient Overlay for Visibility */
.header-gradient-overlay {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.6) 50%, rgba(0, 0, 0, 0) 100%);
}


/* Ensure sticky header doesn't have the gradient */
.header-sticky.header-fixed .header-gradient-overlay {
    background: none;
}

/* Slider Thumbnail Highlight (Universal) */
.slider-nav .slick-slide.slick-current .bg-white {
    border: 5px solid #000080 !important;
    box-shadow: 0 0 20px rgba(0, 0, 128, 0.6) !important;
    transform: scale(1.08);
    position: relative;
    z-index: 10;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.slider-nav .box {
    outline: none !important;
    overflow: visible !important;
    /* Ensure scale doesn't get clipped */
}

.slider-nav .slick-list {
    padding: 10px 0 !important;
    /* Add vertical padding for the scale effect */
}

/* Slender Slider Ratio for Hero Sections */
.galleries .item-size-slender:after {
    content: '';
    display: block;
    padding-top: 40%;
    /* Shorter height than 3:2 (53%) */
}

@media (max-width: 991.98px) {
    .galleries .item-size-slender:after {
        padding-top: 45%;
    }
}

@media (max-width: 767.98px) {
    .galleries .item-size-slender:after {
        padding-top: 55%;
        /* Taller on mobile for content visibility */
    }
}

/* Professional Image Fitting (No Crop, No Stretch) */
.galleries .card {
    background-color: #000;
    /* Backdrop for contain mode */
    overflow: hidden;
}

.galleries .item-size-slender .card-img {
    background-size: contain !important;
    background-position: center !important;
    z-index: 2;
    position: relative;
}

/* Blurred Backdrop Layer */
.slider-blurred-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(15px) brightness(0.6);
    transform: scale(1.1);
    /* Prevent white edges from blur */
    opacity: 0.7;
    z-index: 1;
}

/* --- Print to PDF Styles --- */
.print-pdf-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1000;
    background: #d39e00;
    color: #fff !important;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    cursor: pointer;
}

.print-pdf-btn:hover {
    background: #b88a00;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

@media print {

    /* Hide non-printable elements */
    .main-header,
    .footer,
    .carousel-control-prev,
    .carousel-control-next,
    .carousel-indicators,
    .slider-nav,
    .print-pdf-btn,
    .btn-warning,
    nav,
    iframe,
    .video-gallery-wrapper,
    .video-thumbnails,
    .video-thumb,
    .section-video,
    .section-images,
    .section-image-container,
    .content-area img,
    .glass-card img:not(.galleries img),
    .slick-dots,
    .slick-arrow,
    .slick-prev,
    .slick-next {
        display: none !important;
        height: 0 !important;
        max-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }

    /* Force background colors and images */
    body {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        background-color: #fff !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .glass-card {
        background: rgba(255, 255, 255, 1) !important;
        /* Solid white for print clarity */
        border: 1px solid #eee !important;
        box-shadow: none !important;
        break-inside: avoid;
        margin-bottom: 30px !important;
        opacity: 1 !important;
        transform: none !important;
        animation: none !important;
        padding: 20px !important;
        width: 100% !important;
    }

    /* Remove interactive hover effects in print */
    .glass-card:hover {
        transform: none !important;
        box-shadow: none !important;
    }

    .container {
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 15mm !important;
        /* Standard print margins */
        margin: 0 !important;
    }

    /* Hero section adjustments */
    section.position-relative {
        padding-top: 10px !important;
        padding-bottom: 10px !important;
    }

    .home-banner-height {
        height: auto !important;
        min-height: auto !important;
    }

    .galleries .item-size-slender .card-img {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        min-height: 500px !important;
        background-size: cover !important;
        background-position: center !important;
        display: block !important;
        border: 1px solid #eee !important;
        border-radius: 8px !important;
    }

    /* Table styling for print */
    .content-area table {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
        width: 100% !important;
        page-break-inside: auto;
    }

    .content-area table tr {
        page-break-inside: avoid;
        page-break-after: auto;
    }

    .content-area table th,
    .content-area table td {
        border: 1px solid #eee !important;
        padding: 10px !important;
    }

    .content-area table th {
        background-color: #f8f9fa !important;
        color: #000 !important;
    }

    /* Section title styling for print */
    .section-title {
        border-bottom: 2px solid #d39e00 !important;
        border-left: none !important;
        padding-left: 0 !important;
        margin-top: 20px !important;
        position: static !important;
        /* Disable sticky titles in print */
        background: none !important;
        box-shadow: none !important;
        width: auto !important;
    }

    /* Page breaks and flow */
    h1,
    h2,
    h3,
    h4,
    h5,
    h6 {
        page-break-after: avoid;
    }

    img {
        max-width: 100% !important;
        height: auto !important;
        page-break-inside: avoid;
    }

    .row {
        display: block !important;
        /* Prevent row breaks in weird ways */
    }

    .col-12,
    .col-lg-6,
    .col-lg-8,
    .col-lg-7,
    .col-lg-5 {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
        margin-bottom: 20px !important;
    }
}

/* Restrict Developments Sub-menu height and add scrollbar */
.dropdown-submenu {
    max-height: 380px !important;
    /* Limit to approximately 7-8 items */
    overflow-y: auto !important;
    overflow-x: hidden !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15) !important;
}

/* Elegant scrollbar for sub-menus */
.dropdown-submenu::-webkit-scrollbar {
    width: 5px;
}

.dropdown-submenu::-webkit-scrollbar-track {
    background: #f8f9fa;
}

.dropdown-submenu::-webkit-scrollbar-thumb {
    background: #000080;
    border-radius: 10px;
}