/* 
 * Elegant Home Lands (Pvt) Ltd - Premium CSS Stylesheet
 * Colors: Primary: #0A4DA2 (Royal Blue), Secondary: #8ea836 (Olive Green), Accent: #D4AF37 (Gold)
 * Typography: Poppins & Yellowtail
 */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Yellowtail&display=swap');

:root {
    --primary-color: #0A4DA2;
    --primary-light: #1D70B8;
    --primary-dark: #082854;
    --secondary-color: #8ea836;
    --secondary-light: #a4c042;
    --accent-color: #D4AF37;
    --accent-light: #e6c253;
    --bg-light: #f8f9fa;
    --bg-dark: #0b1a2d;
    --card-shadow: 0 10px 30px rgba(10, 77, 162, 0.08);
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.25);
    --font-poppins: 'Poppins', sans-serif;
    --font-script: 'Yellowtail', cursive;
}

html {
    overflow-x: hidden;
}

body {
    font-family: var(--font-poppins);
    color: #495057;
    background-color: #ffffff;
    overflow-x: hidden;
    max-width: 100vw;
}

/* Top Bar Styling */
.top-bar {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Page Loader */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(212, 175, 55, 0.2);
    border-top: 4px solid var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Typography and Headings */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    color: #1a2a40;
}

.section-title {
    position: relative;
    padding-bottom: 15px;
    margin-bottom: 40px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
}

.section-title.text-center::after {
    left: 50%;
    transform: translateX(-50%);
}

.text-gold {
    color: var(--accent-color) !important;
}

.text-primary-color {
    color: var(--primary-color) !important;
}

/* Gradient Buttons */
.btn-premium {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-light) 100%);
    color: #ffffff;
    border: none;
    padding: 12px 28px;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(10, 77, 162, 0.25);
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.btn-premium:hover {
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-dark) 100%);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(10, 77, 162, 0.35);
}

.btn-premium-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 10px 26px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.btn-premium-outline:hover {
    background: var(--primary-color);
    color: #ffffff;
    transform: translateY(-2px);
}

.btn-secondary-premium {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-light) 100%);
    color: #ffffff;
    border: none;
    padding: 12px 28px;
    font-weight: 600;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(166, 196, 74, 0.25);
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.btn-secondary-premium:hover {
    background: linear-gradient(135deg, var(--secondary-light) 0%, var(--secondary-color) 100%);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(166, 196, 74, 0.35);
}

.btn-enquire {
    background: var(--secondary-color);
    color: #ffffff;
    border: none;
    padding: 10px 22px;
    font-weight: 700;
    border-radius: 4px;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.btn-enquire:hover {
    background: var(--secondary-light);
    color: #ffffff;
    transform: translateY(-1px);
}

/* Contact Banner Strip */
.contact-strip {
    background: #082854;
    padding: 20px 0;
    overflow: hidden;
}

.contact-strip-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    overflow: hidden;
}

.contact-strip-item i {
    font-size: 1.8rem;
    color: var(--secondary-color);
}

.contact-strip-item h6 {
    color: #ffffff;
    font-weight: 700;
    margin-bottom: 2px;
    font-size: 0.85rem;
}

.contact-strip-item p {
    color: rgba(255,255,255,0.7);
    margin-bottom: 0;
    font-size: 0.75rem;
}

/* Navbar Spacer (responsive) */
.navbar-spacer {
    height: 125px;
}

/* Sticky Navigation Bar */
.navbar-custom {
    background: #ffffff;
    padding: 15px 0;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.navbar-custom.sticky {
    padding: 10px 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.navbar-custom .navbar-brand {
    font-weight: 800;
    color: var(--primary-color);
    display: flex;
    align-items: center;
}

.navbar-custom .navbar-brand img {
    height: 100px;
    width: auto;
    transition: height 0.3s ease;
}

.navbar-custom .nav-link {
    color: #2b3a4a !important;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 24px 10px !important;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.active {
    color: var(--secondary-color) !important;
}

.navbar-custom .nav-link.active {
    border-top: 3px solid var(--secondary-color);
    padding-top: 21px !important;
}

/* Hero Slider */
.hero-slider-container {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
}

.hero-slider-item {
    height: 100vh;
    min-height: 600px;
    position: relative;
    overflow: hidden;
}

.hero-slide-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    max-width: none;
}

.hero-slider-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.35);
    z-index: 2;
}

.hero-caption {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    z-index: 10;
    color: #ffffff;
}

.hero-caption .hero-subtext {
    font-size: 2.5rem;
    font-weight: 400;
    color: #ffffff;
    display: block;
    margin-bottom: -15px;
    letter-spacing: 1px;
}

.hero-caption .hero-title {
    font-size: 4.8rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0px;
    display: inline-block;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero-caption .hero-script {
    font-family: var(--font-script);
    font-size: 5.5rem;
    color: var(--secondary-color);
    display: inline-block;
    margin-left: 15px;
    vertical-align: middle;
}

.hero-caption p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    font-weight: 500;
    max-width: 600px;
    color: #ffffff;
}

/* Glassmorphism Cards */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    box-shadow: var(--card-shadow);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.glass-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(10, 77, 162, 0.15);
}

/* Search Property Form Overlay */
.search-overlay {
    margin-top: -60px;
    position: relative;
    z-index: 20;
}

.search-container {
    padding: 30px;
    background: #ffffff;
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.08);
    border-bottom: 4px solid var(--secondary-color);
}

/* Premium Property Cards */
.property-card {
    border: none;
    border-radius: 15px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: var(--card-shadow);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
}

.property-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(10, 77, 162, 0.12);
}

.property-card .badge-status {
    position: absolute;
    top: 15px;
    left: 15px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--secondary-light) 100%);
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 5;
}

.property-card .badge-featured {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-light) 100%);
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    z-index: 5;
}

.property-card .property-img-container {
    height: 230px;
    overflow: hidden;
    position: relative;
}

.property-card .property-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.property-card:hover .property-img-container img {
    transform: scale(1.1);
}

.property-card .property-body {
    padding: 25px;
}

.property-card .property-price {
    font-size: 1.4rem;
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 10px;
}

.property-card .property-price span {
    font-size: 0.8rem;
    color: #6c757d;
    font-weight: 400;
}

.property-card .property-features-list {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #f1f3f5;
    padding-top: 15px;
    margin-top: 15px;
    font-size: 0.85rem;
    color: #6c757d;
}

/* Floating Actions */
.floating-whatsapp {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all 0.3s ease;
    max-width: calc(100vw - 30px);
}

.floating-whatsapp:hover {
    transform: scale(1.1) rotate(15deg);
    color: #ffffff;
}

.back-to-top {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    box-shadow: 0 4px 15px rgba(10, 77, 162, 0.3);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    max-width: calc(100vw - 30px);
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-dark);
    color: #ffffff;
    transform: translateY(-3px);
}

/* Statistics Section */
.stats-section {
    background: #082854;
    color: #ffffff;
    padding: 30px 0;
}

.stat-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    text-align: left;
}

.stat-box i {
    font-size: 2.2rem;
    color: #ffffff;
    opacity: 0.95;
}

.stat-box h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0;
}

.stat-box p {
    font-size: 0.8rem;
    opacity: 0.85;
    text-transform: capitalize;
    margin-bottom: 0;
    line-height: 1.2;
    font-weight: 500;
}

/* Testimonial slider */
.testimonial-card {
    padding: 40px;
    border-radius: 15px;
    background: #ffffff;
    box-shadow: var(--card-shadow);
    border-left: 5px solid var(--accent-color);
}

.testimonial-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--secondary-color);
}

/* Dark Footer */
.footer-dark {
    background-color: var(--bg-dark);
    color: #c5cdd6;
    padding: 80px 0 30px;
    font-size: 0.9rem;
    overflow: hidden;
}

.footer-dark .text-muted {
    color: #c5cdd6 !important;
}

.footer-dark p {
    color: #c5cdd6;
}

.footer-dark h5 {
    color: #ffffff;
    margin-bottom: 25px;
    font-weight: 600;
    position: relative;
    padding-bottom: 10px;
}

.footer-dark h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-dark a {
    color: #c5cdd6;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-dark a:hover {
    color: #ffffff;
}

.footer-dark ul li {
    margin-bottom: 12px;
}

.footer-dark strong {
    color: #ffffff;
}

.social-icons a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    margin-right: 10px;
    color: #ffffff;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 30px;
    margin-top: 50px;
    color: #8a94a0;
}

.footer-bottom a {
    color: #a0aab5;
}

.footer-bottom a:hover {
    color: #ffffff;
}

/* Gallery Masonry and Filters */
.gallery-filter-btn {
    padding: 8px 20px;
    border-radius: 30px;
    background: #f1f3f5;
    border: none;
    font-size: 0.9rem;
    font-weight: 600;
    margin: 5px;
    color: #495057;
    transition: all 0.3s ease;
}

.gallery-filter-btn.active,
.gallery-filter-btn:hover {
    background: var(--primary-color);
    color: #ffffff;
}

.gallery-item-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    height: 250px;
}

.gallery-item-container img,
.gallery-item-container iframe {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 77, 162, 0.85);
    opacity: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #ffffff;
    transition: opacity 0.3s ease;
}

.gallery-item-container:hover .gallery-overlay {
    opacity: 1;
}

.gallery-item-container:hover img {
    transform: scale(1.1);
}

/* Dashboard Sidebars */
.dashboard-layout {
    min-height: 100vh;
    background: #f4f7f6;
}

.sidebar-menu {
    background: var(--bg-dark);
    min-height: 100vh;
    color: #ffffff;
    box-shadow: 4px 0 15px rgba(0,0,0,0.05);
}

.sidebar-menu .brand-section {
    padding: 30px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-menu .menu-list {
    padding: 20px 0;
}

.sidebar-menu .menu-item {
    display: flex;
    align-items: center;
    padding: 14px 25px;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.sidebar-menu .menu-item i {
    margin-right: 15px;
    font-size: 1.1rem;
}

.sidebar-menu .menu-item:hover,
.sidebar-menu .menu-item.active {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.04);
    border-left-color: var(--secondary-color);
}

.dashboard-content {
    padding: 40px;
}

.dashboard-header {
    background: #ffffff;
    padding: 20px 40px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}

.stat-card-dashboard {
    background: #ffffff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    border: none;
    border-left: 4px solid var(--primary-color);
}

/* Contact Map and Forms */
.map-container {
    height: 450px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.contact-info-box {
    padding: 30px;
    border-radius: 15px;
    background: #ffffff;
    box-shadow: var(--card-shadow);
    height: 100%;
    overflow: hidden;
}

.contact-info-item {
    display: flex;
    margin-bottom: 25px;
}

.contact-info-icon {
    width: 50px;
    height: 50px;
    background: rgba(10, 77, 162, 0.08);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    margin-right: 20px;
    flex-shrink: 0;
}

.contact-info-item p {
    word-break: break-word;
    overflow-wrap: break-word;
}

/* Breadcrumb Overlay */
.breadcrumb-banner {
    background: linear-gradient(rgba(10, 77, 162, 0.8), rgba(15, 28, 45, 0.9)), url('../images/breadcrumb_bg.jpg');
    background-size: cover;
    background-position: center;
    padding: 100px 0;
    color: #ffffff;
}

.breadcrumb-banner h2 {
    color: #ffffff;
    font-size: 2.8rem;
    font-weight: 800;
}

/* Dark Mode Overrides for Table elements, etc. */
.admin-table-container {
    background: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.custom-badge-status {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

/* Global Responsive Images */
img {
    max-width: 100%;
    height: auto;
}

/* Bottom Mobile Navigation Bar */
.bottom-mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    background: #ffffff;
    box-shadow: 0 -2px 15px rgba(0, 0, 0, 0.1);
    padding: 6px 0 4px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.bottom-mobile-nav .bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: #6c757d;
    font-size: 0.6rem;
    font-weight: 600;
    padding: 4px 0;
    transition: color 0.2s ease;
    flex: 1;
    gap: 2px;
}

.bottom-mobile-nav .bottom-nav-item i {
    font-size: 1.25rem;
    line-height: 1;
    transition: color 0.2s ease;
}

.bottom-mobile-nav .bottom-nav-item span {
    line-height: 1;
    letter-spacing: 0.3px;
}

.bottom-mobile-nav .bottom-nav-item.active {
    color: var(--secondary-color);
}

.bottom-mobile-nav .bottom-nav-item:active {
    opacity: 0.7;
}

@media (max-width: 991.98px) {
    .bottom-mobile-nav {
        display: flex;
    }

    body {
        padding-bottom: 65px;
    }

    .floating-whatsapp {
        bottom: 75px;
        right: 15px;
        width: 50px;
        height: 50px;
        font-size: 26px;
        z-index: 9999;
    }

    .back-to-top {
        bottom: 135px;
        right: 15px;
        width: 42px;
        height: 42px;
        font-size: 18px;
        z-index: 9999;
    }
}

/* ===========================
   RESPONSIVE MEDIA QUERIES 
   =========================== */

/* ---------- Extra-Large (≤ 1400px) ---------- */
@media (max-width: 1400px) {
    .hero-caption .hero-title {
        font-size: 4rem;
    }
    .hero-caption .hero-script {
        font-size: 4.5rem;
    }
}

/* ---------- Large Desktop (≤ 1200px) ---------- */
@media (max-width: 1199.98px) {
    .hero-caption .hero-title {
        font-size: 3.5rem;
    }
    .hero-caption .hero-script {
        font-size: 4rem;
    }
    .hero-caption .hero-subtext {
        font-size: 2rem;
    }
    .navbar-custom .nav-link {
        font-size: 0.75rem;
        padding: 24px 8px !important;
    }
    .navbar-custom .navbar-brand img {
        height: 80px;
    }
}

/* ---------- Tablet / Medium (≤ 991px) ---------- */
@media (max-width: 991.98px) {
    /* Navbar collapses to hamburger at lg */
    .navbar-custom .nav-link {
        padding: 12px 15px !important;
        border-top: none;
    }
    .navbar-custom .nav-link.active {
        border-top: none;
        padding-top: 12px !important;
        border-left: 3px solid var(--secondary-color);
    }
    .navbar-custom .navbar-brand img {
        height: 60px;
    }
    .btn-enquire {
        padding: 8px 16px;
        font-size: 0.75rem;
    }

    /* Hero Section */
    .hero-slider-container,
    .hero-slider-item {
        height: 70vh;
        min-height: 450px;
    }
    .hero-caption .hero-subtext {
        font-size: 1.6rem;
        margin-bottom: -10px;
    }
    .hero-caption .hero-title {
        font-size: 2.8rem;
    }
    .hero-caption .hero-script {
        font-size: 3.2rem;
        margin-left: 10px;
    }
    .hero-caption p {
        font-size: 0.95rem;
    }

    /* Search Overlay */
    .search-overlay {
        margin-top: -40px;
    }
    .search-container {
        padding: 20px;
    }

    /* About Section */
    .about-office-img,
    .col-lg-6 .position-relative img {
        height: auto !important;
        max-height: 350px;
    }

    /* Stats */
    .stat-box {
        justify-content: flex-start;
    }
    .stat-box h2 {
        font-size: 1.8rem;
    }

    /* Footer */
    .footer-dark {
        text-align: left;
    }

    /* Map */
    .map-container {
        height: 300px;
    }
    .map-container iframe {
        width: 100%;
        height: 100%;
    }

    /* Contact Page */
    .contact-info-box {
        padding: 20px;
    }
    .contact-info-item {
        flex-wrap: wrap;
    }

    /* Dashboard Sidebar */
    .sidebar-menu {
        min-height: auto;
    }
    .dashboard-content {
        padding: 20px;
    }
}

/* ---------- Small Tablet / Phablet (≤ 767px) ---------- */
@media (max-width: 767.98px) {
    /* Navbar Spacer */
    .navbar-spacer {
        height: 70px;
    }

    /* Hero Section */
    .hero-slider-container,
    .hero-slider-item {
        height: 55vh;
        min-height: 380px;
    }
    .hero-caption .hero-subtext {
        font-size: 1.3rem;
        margin-bottom: -8px;
    }
    .hero-caption .hero-title {
        font-size: 2rem;
    }
    .hero-caption .hero-script {
        font-size: 2.5rem;
        margin-left: 5px;
    }
    .hero-caption p {
        font-size: 0.85rem;
        margin-bottom: 15px;
    }
    .hero-caption .btn {
        padding: 8px 18px;
        font-size: 0.8rem;
    }

    /* Search Overlay */
    .search-overlay {
        margin-top: -30px;
    }
    .search-container {
        padding: 15px;
        border-radius: 10px;
    }

    /* About Section */
    section[style*="margin-top: 80px"] {
        margin-top: 40px !important;
        margin-bottom: 20px !important;
    }
    .col-lg-6 .position-relative img {
        height: auto !important;
        max-height: 280px;
    }

    /* About Icons — 2 columns instead of 4 */
    .row.g-4.text-center .col-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }

    /* Stats Section */
    .stats-section {
        padding: 20px 0;
    }
    .stat-box {
        justify-content: center;
        gap: 10px;
    }
    .stat-box i {
        font-size: 1.4rem;
    }
    .stat-box h2 {
        font-size: 1.5rem;
    }

    /* Featured Projects Section Title */
    .d-flex.justify-content-between.align-items-end.mb-4 {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 10px;
    }

    /* Testimonials */
    .testimonial-card {
        margin-bottom: 15px;
    }

    /* Bottom Section */
    .contact-strip-item i {
        font-size: 1.4rem;
    }

    /* Footer */
    .footer-bottom .row {
        text-align: center !important;
    }
    .footer-bottom .col-md-6 {
        text-align: center !important;
    }
    .social-icons {
        justify-content: center;
    }
    .contact-strip {
        overflow: hidden;
    }
    .contact-strip .row {
        overflow: hidden;
    }
    .contact-strip-item {
        flex-wrap: wrap;
        gap: 8px;
    }
    .contact-strip-item p {
        word-break: break-word;
        white-space: normal;
    }

    /* Floating Buttons */
    .floating-whatsapp {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 75px;
        right: 15px;
        z-index: 9999;
    }
    .back-to-top {
        width: 40px;
        height: 40px;
        font-size: 16px;
        bottom: 135px;
        right: 15px;
        z-index: 9999;
    }

    /* Map */
    .map-container {
        height: 250px;
    }

    /* Contact Page */
    .contact-info-box {
        padding: 15px;
    }
    .contact-info-item {
        gap: 10px;
    }
    .contact-info-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
        margin-right: 12px;
    }

    /* Breadcrumb */
    .breadcrumb-banner {
        padding: 60px 0;
    }
    .breadcrumb-banner h2 {
        font-size: 1.8rem;
    }

    /* Gallery Items */
    .gallery-item-container {
        height: 180px;
    }

    /* Contact Info */
    .contact-info-box {
        padding: 20px;
    }

    /* Dashboard */
    .dashboard-header {
        padding: 15px 20px;
    }
    .dashboard-content {
        padding: 15px;
    }
}

/* ---------- Mobile Phone (≤ 575px) ---------- */
@media (max-width: 575.98px) {
    /* Navbar */
    .navbar-spacer {
        height: 65px;
    }
    .navbar-custom {
        padding: 10px 0;
    }
    .navbar-custom .navbar-brand img {
        height: 50px;
    }

    /* Hero Section */
    .hero-slider-container,
    .hero-slider-item {
        height: 45vh;
        min-height: 320px;
    }
    .hero-caption .hero-subtext {
        font-size: 1rem;
        margin-bottom: -5px;
    }
    .hero-caption .hero-title {
        font-size: 1.6rem;
        letter-spacing: 0;
    }
    .hero-caption .hero-script {
        font-size: 2rem;
        margin-left: 3px;
    }
    .hero-caption p {
        font-size: 0.75rem;
        margin-bottom: 10px;
        line-height: 1.4;
    }
    .hero-caption p br {
        display: none;
    }
    .hero-caption .btn {
        padding: 7px 14px;
        font-size: 0.7rem;
    }

    /* Carousel Controls */
    .carousel-control-prev,
    .carousel-control-next {
        width: 30px;
    }
    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 16px;
        height: 16px;
    }

    /* Search Overlay */
    .search-overlay {
        margin-top: -25px;
    }
    .search-container {
        padding: 12px;
        border-radius: 8px;
    }
    .search-container .form-label {
        font-size: 0.7rem !important;
    }
    .search-container .form-select {
        font-size: 0.8rem;
        padding: 6px 10px;
    }
    .search-container .btn {
        font-size: 0.75rem;
        padding: 8px !important;
    }

    /* About Section */
    section[style*="margin-top: 80px"] {
        margin-top: 25px !important;
        margin-bottom: 10px !important;
    }
    .col-lg-6 h2[style*="font-size: 2.5rem"] {
        font-size: 1.6rem !important;
    }
    .col-lg-6 .position-relative img {
        max-height: 220px;
        border-radius: 12px !important;
    }

    /* Section Titles */
    .section-title,
    h2[style*="font-size: 2.2rem"] {
        font-size: 1.5rem !important;
    }

    /* Stats */
    .stats-section {
        padding: 15px 0;
    }
    .stat-box {
        gap: 8px;
        padding: 5px 0;
    }
    .stat-box i {
        font-size: 1.2rem;
    }
    .stat-box h2 {
        font-size: 1.3rem;
    }
    .stat-box p {
        font-size: 0.7rem !important;
    }

    /* Project Cards */
    .property-card .property-img-container,
    .property-img-container {
        height: 160px !important;
    }

    /* Bottom Section Gallery thumbnails */
    .bottom-gallery-thumb {
        height: 70px !important;
    }

    /* Contact Strip */
    .contact-strip {
        padding: 15px 0;
    }
    .contact-strip-item {
        gap: 8px;
    }
    .contact-strip-item i {
        font-size: 1.2rem;
    }
    .contact-strip-item h6 {
        font-size: 0.75rem;
    }
    .contact-strip-item p {
        font-size: 0.65rem;
    }

    /* Footer */
    .footer-dark {
        padding: 30px 0 20px;
        overflow: hidden;
    }
    .footer-dark h5 {
        font-size: 1rem;
        margin-bottom: 15px;
    }
    .footer-dark ul li {
        margin-bottom: 8px;
    }
    .footer-dark p {
        word-break: break-word;
        white-space: normal;
    }
    .footer-bottom {
        margin-top: 25px;
        padding-top: 15px;
    }
    .footer-bottom a {
        display: inline-block;
        margin-bottom: 5px;
    }

    /* Gallery Page */
    .gallery-item-container {
        height: 150px;
    }

    /* Breadcrumb */
    .breadcrumb-banner {
        padding: 40px 0;
    }
    .breadcrumb-banner h2 {
        font-size: 1.4rem;
    }

    /* Admin Tables */
    .admin-table-container {
        padding: 15px;
        overflow-x: auto;
    }
    .stat-card-dashboard {
        padding: 15px;
    }
}

/* ---------- Extra Small (≤ 400px) ---------- */
@media (max-width: 400px) {
    .hero-slider-container,
    .hero-slider-item {
        height: 40vh;
        min-height: 280px;
    }
    .hero-caption .hero-title {
        font-size: 1.3rem;
    }
    .hero-caption .hero-script {
        font-size: 1.6rem;
    }
    .hero-caption .hero-subtext {
        font-size: 0.85rem;
    }
    .hero-caption p {
        font-size: 0.7rem;
    }
    .hero-caption .btn {
        padding: 5px 10px;
        font-size: 0.65rem;
    }
    .navbar-custom .navbar-brand img {
        height: 45px;
    }
    .stat-box h2 {
        font-size: 1.1rem;
    }
}

/* ---------- Global Overflow Fix ---------- */
body, html, .hero-slider-container, .search-overlay, .contact-strip, .footer-dark, footer {
    overflow-x: hidden;
}

section {
    overflow-x: hidden;
}

* {
    box-sizing: border-box;
}
