.small-hero {
    background: 
        linear-gradient(rgba(15, 32, 39, 0.8), rgba(32, 58, 67, 0.8)),
        url('../Img/hero.jpg') center/cover no-repeat;
    min-height: calc(30vh + 120px); 
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f4f9fc;
    color: #333;
    line-height: 1.6;
    padding-top: 120px;
}

a {
    text-decoration: none;
    color: inherit;
}

/* Top Header Styles */
.top-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255,255,255,0.99);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid #eee;
    z-index: 100;
    box-shadow: 0 2px 12px 0 rgba(0,0,0,0.05);
}

.header-top-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    flex-wrap: nowrap;
    gap: 2.5rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex: 0 0 auto;
}

.logo img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin-right: 0;
    vertical-align: middle;
}

.logo span {
    font-size: 1.5rem;
    font-weight: bold;
    color: #005028;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.main-nav {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
}

.nav-links {
    display: flex;
    gap: 2.2rem;
    justify-content: center;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-links a {
    color: #231F20;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 500;
    position: relative;
    padding: 0.2rem 0;
    transition: color 0.2s;
}

.nav-links > li > a.active,
.nav-links > li > a:hover {
    color: #D12027;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.nav-links a.active {
    text-decoration: underline;
    text-underline-offset: 4px;
    color: #D12027;
    font-weight: 600;
}

/* Auth & Action Buttons */
.navbar-actions {
    display: flex;
    gap: 1.3rem;
    align-items: center;
    justify-content: flex-end;
    flex: 0 0 auto;
    margin-left: 2.5rem;
}

.navbar-btn {
    border-radius: 9999px;
    padding: 0.6rem 2.2rem;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    outline: none;
    border: none;
    background: #005028;
    color: #fff;
    cursor: pointer;
    transition: background .2s, color .2s;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    box-shadow: none;
}

.navbar-btn.enquire-btn,
.navbar-btn.login-btn,
.navbar-btn.signup-btn {
    background: #005028;
}

.navbar-btn.enquire-btn:hover,
.navbar-btn.login-btn:hover,
.navbar-btn.signup-btn:hover {
    background: #D12027;
}

.navbar-btn i {
    font-size: 1.1em;
}

/* Responsive tweaks */
@media (max-width: 700px) {
    .search-pill-form {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 960px) {
    .header-top-content {
        flex-wrap: wrap;
        padding: 0 1rem;
        gap: 1rem;
    }
    .logo img { height: 50px; }
    .logo span { font-size: 1.3rem; }
    .nav-links { gap: 1.5rem; }
    .navbar-btn { padding: 0.6rem 1.2rem; }
}
@media (max-width: 700px) {
    .header-top-content { flex-direction: column; gap: 1rem; }
    .logo img { height: 40px; }
    .nav-links { gap: 1rem; }
    .navbar-btn { padding: 0.6rem 0.7rem; font-size: 0.9rem; }
}

/* --- Dropdown Styles for ContactUs.php --- */
/* Dropdown parent */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: inherit;
    font-size: inherit;
    text-decoration: none;
    transition: color 0.2s;
    padding: 0.2rem 0;
    background: none;
    border: none;
}

/* The chevron icon */
.dropdown-toggle i {
    margin-left: 7px;
    font-size: 0.9rem;
    transition: transform 0.18s;
}

/* Show dropdown on hover or focus */
.dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content {
    display: flex;
}

.dropdown-content {
    display: none;
    position: absolute;
    left: 0;
    top: 110%; /* Below the nav item */
    background: #fff;
    box-shadow: 0 8px 32px rgba(32, 58, 67, 0.13);
    border-radius: 10px;
    padding: 1.1rem 1.3rem;
    min-width: 370px;
    z-index: 999;
    gap: 2rem;
    flex-direction: row;
    transition: box-shadow 0.22s;
}

/* Dropdown columns */
.dropdown-column {
    display: flex;
    flex-direction: column;
    min-width: 160px;
}

.dropdown-column h4 {
    font-size: 1rem;
    color: #005028;
    margin-bottom: 0.6rem;
    font-weight: 600;
}

.dropdown-column a {
    color: #231F20;
    text-decoration: none;
    font-size: 1.01rem;
    margin: 0.2rem 0;
    transition: color 0.16s;
    padding: 0.1rem 0;
}

.dropdown-column a:hover {
    color: #D12027;
}

/* Hero Section */
.hero {
    background: 
        linear-gradient(rgba(15, 32, 39, 0.8), rgba(32, 58, 67, 0.8)),
        url('../Img/hero.jpg') center/cover no-repeat;
    color: #fff;
    padding: 4rem 0;
    text-align: center;
}
.hero.small-hero {
    padding: 2rem 0;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.1rem;
}

/* --- HERO SEARCHBAR --- */
.properties-searchbar-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 0 1.5rem 0;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.search-pill-form {
    display: flex;
    gap: 1.5rem;
    width: 100%;
}

.search-pill {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    background: #fff;
    border-radius: 6px;
    padding: 0.6rem 1.2rem;
    min-width: 0;
    position: relative;
    transition: border 0.2s;
}

.search-pill:focus-within {
    border-color: #D12027;
}

.search-pill i {
    color: #666;
    margin-right: 8px;
    font-size: 1.1em;
}

.pill-input {
    border: none;
    outline: none;
    background: transparent;
    font-size: 1.1rem;
    flex: 1 1 0;
    color: #333;
    min-width: 1px;
}

.pill-clear {
    margin-left: 10px;
    color: #999;
    background: #f2f2f2;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.05rem;
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    transition: background 0.2s;
}
.pill-clear:hover {
    background: #e3e3e3;
    color: #D12027;
}

/* --- Filter Button --- */
.filter-btn {
    border: 1.7px solid #D12027;
    background: #fff;
    color: #D12027;
    border-radius: 6px;
    padding: 0.7rem 2.5rem;
    font-size: 1.08rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    transition: background .16s, color .16s, border .16s;
    cursor: pointer;
    white-space: nowrap;
}

.filter-btn:hover {
    background: #D12027;
    color: #fff;
}
.filter-btn i { font-size: 1.2em; }

/* --- Filter Modal (minimal, responsive) --- */
.filter-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(30,40,55,0.15);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.filter-modal-content {
    background: #fff;
    border-radius: 16px;
    max-width: 400px;
    width: 98%;
    padding: 2.2rem 2rem;
    box-shadow: 0 8px 32px rgba(32, 58, 67, 0.13);
    position: relative;
    animation: filterModalIn 0.22s;
}
@keyframes filterModalIn {
    from { opacity: 0; transform: scale(0.97);}
    to   { opacity: 1; transform: scale(1);}
}

.filter-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.8rem;
}
.filter-modal-header h2 {
    font-size: 1.2rem;
    color: #222;
    font-weight: 700;
}
.filter-close-btn {
    border: none;
    background: transparent;
    font-size: 2rem;
    color: #D12027;
    cursor: pointer;
    transition: color .17s;
    padding: 0;
    line-height: 1;
}
.filter-close-btn:hover { color: #a51a1f; }

.filter-form .filter-group {
    margin-bottom: 2.5rem;
}
.filter-group label {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.6rem;
    display: block;
    font-size: 1.07rem;
}
.filter-range-fields {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}
.filter-range-fields input {
    width: 45%;
    padding: 0.5rem 0.8rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    outline: none;
    transition: border 0.16s;
}
.filter-range-fields input:focus {
    border: 1.5px solid #D12027;
}

.filter-show-btn {
    background: #D12027;
    color: #fff;
    padding: 0.7rem 1.2rem;
    border: none;
    border-radius: 8px;
    font-size: 1.08rem;
    font-weight: 600;
    margin-right: 0.8rem;
    cursor: pointer;
    transition: background .16s;
}
.filter-show-btn:hover { background: #b2191e; }

.filter-clear-btn {
    background: none;
    border: none;
    color: #D12027;
    font-size: 1.02rem;
    font-weight: 500;
    text-decoration: underline;
    cursor: pointer;
    margin-left: 0.5rem;
    transition: color .16s;
}
.filter-clear-btn:hover { color: #a51a1f; }

@media (max-width: 700px) {
    .properties-searchbar-container {
        padding: 1rem 0 0.5rem 0;
    }
    .search-pill-form {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        padding: 1rem;
    }
    .filter-btn {
        width: 100%;
        justify-content: center;
    }
    .search-pill {
        min-width: 0;
    }
    .filter-modal-content {
        padding: 1.2rem 0.7rem;
        font-size: 0.98rem;
    }
}

/* Sections */
.section {
    padding: 3rem 0;
}

.bg-light {
    background-color: #f4f9fc;
}

/* Section Titles */
.section-title {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.8rem;
    color: #004c66;
}

/* Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.card {
    background-color: #f1eeee;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease;
    padding-bottom: 1rem;
}

.card:hover {
    transform: translateY(-5px);
}

.card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card-title {
    font-size: 1.2rem;
    margin: 1rem;
    color: #004c66;
}

.card p {
    margin: 0 1rem 1rem;
    font-size: 0.95rem;
    color: #555;
}

.card .btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    background-color: #0074a6;
    color: #fff;
    text-align: center;
    font-weight: 600;
    transition: background-color 0.3s, color 0.3s;
    margin: 0 1rem;
}

.card .btn:hover {
    background-color: #005f87;
}

@media (max-width: 600px) {
    .hero h1 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .card {
        padding-bottom: 0.5rem;
    }

    .card-title {
        font-size: 1rem;
    }

    .card p {
        font-size: 0.9rem;
    }

    .card .btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.9rem;
    }
}

/* -------------------------------
   NEW STYLES FOR IMAGE GALLERIES
---------------------------------- */
.featured-properties-row {
    display: flex;
    gap: 2rem;
    justify-content: center;
    flex-wrap: wrap;
}

.property-gallery {
    background: #fff;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
    flex: 1 1 320px;
    max-width: 400px;
    min-width: 100px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.property-gallery h3 {
    font-size: 1.4rem;
    margin-bottom: 0.8rem;
    color: #004c66;
}

.property-gallery p {
    margin-top: 1rem;
    font-size: 0.95rem;
    color: #555;
}

/* Image Carousel Styles */
.image-carousel {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.carousel-images {
    display: flex;
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none !important;        
    -ms-overflow-style: none !important;    
    scrollbar-color: transparent transparent;
}
.carousel-images::-webkit-scrollbar {
    width: 0 !important;
    height: 0 !important;
    display: none !important;               
    background: transparent !important;
}

.carousel-images img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    flex-shrink: 0;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 10px 0;
}

.carousel-dots .dot {
    width: 12px;
    height: 12px;
    background: #D12027;
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.carousel-dots .dot.active {
    background: #0074a6;
}

/* --- Properties + Map Layout --- */
.properties-map-layout {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    width: 100%;
    min-height: 500px;
    margin: 0 auto;
    max-width: 1800px;
    box-sizing: border-box;
}
.properties-list {
    flex: 2 1 0;
    min-width: 0;
}
.properties-map {
    flex: 1 1 420px;
    min-width: 350px;
    max-width: 550px;
    height: 80vh;
    position: sticky;
    top: 110px; /* below searchbar + nav */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.10);
    background: #eee;
    margin-right: 10px;
}
#map {
    width: 100%;
    height: 100%;
    min-height: 350px;
}

/* For mobile screens */
@media (max-width: 768px) {
    .properties-map {
        display: none;
    }
}

.filter-btn:hover {
    background: #e53935;
    color: #fff;
}
.property-link-card, .card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s, box-shadow 0.2s;
    height: 100%;
}
.property-link-card .property-gallery,
.card-link .card {
    height: 100%;
}
.property-link-card:hover .property-gallery,
.card-link:hover .card {
    box-shadow: 0 6px 18px rgba(0,0,0,0.14);
    transform: translateY(-4px) scale(1.02);
}
.property-link-card:focus .property-gallery,
.card-link:focus .card {
    outline: 2px solid #0074a6;
    outline-offset: 2px;
}

/* --- FOOTER --- */
.modern-footer {
    background: #F1F1F1;
    color: #231F20;
    text-align: center;
    padding: 2.5rem 0 1rem 0;
}
.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 2.1rem;
    max-width: 1050px;
    margin: 0 auto;
    padding: 0 1rem;
}
.footer-col {
    text-align: center;
}
.footer-heading {
    font-weight: bold;
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}
.footer-social {
    display: flex;
    justify-content: center;
    gap: 1.4rem;
    margin-top: 0.5rem;
}
.footer-social a {
    color: #231F20;
    font-size: 1.5rem;
    transition: color 0.18s, transform 0.18s;
}
.footer-social a:hover {
    color: #D12027;
    transform: scale(1.18);
}
.footer-bottom {
    color: #58595B;
    font-size: 1rem;
    margin-top: 1.2rem;
    text-align: center;
}


/* Optionally, make the card cursor a pointer on hover for clarity */
.property-link-card:hover, .card-link:hover {
    cursor: pointer;
}

/* Remove the margin from the last card in grid for a cleaner look */
.card-grid > .card-link:last-child .card {
    margin-bottom: 0;
}



/* --- Hamburger Styles --- */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1200;
    padding: 0;
    margin-right: 12px;
}
.hamburger .bar {
    height: 4px;
    width: 28px;
    margin: 4px auto;
    background: #231F20;
    border-radius: 2px;
    transition: all 0.3s;
    display: block;
}
.hamburger.is-active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.hamburger.is-active .bar:nth-child(2) {
    opacity: 0;
}
.hamburger.is-active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* --- Hide nav, show hamburger on screens smaller than a tablet --- */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }
    .main-nav {
        position: fixed;
        top: 0; /* below header */
        left: 0;
        right: 0;
        bottom: 0;
        background: #fff;
        box-shadow: 0 8px 32px rgba(32, 58, 67, 0.13);
        z-index: 9999;
        transform: translateY(-120%);
        transition: transform 0.3s cubic-bezier(.4,0,.2,1);
        opacity: 0;
        pointer-events: none;
        flex-direction: column;
        align-items: center;
        width: 100vw;
        padding: 2.5rem 0 2rem 0;
        min-height: 50vh;
        max-height: 90vh;
        overflow-y: auto;
    }
    .main-nav.nav-open {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    .nav-links {
        flex-direction: column;
        gap: 1.8rem;
        width: 100%;
        align-items: center;
    }
    .dropdown-content {
        position: static;
        box-shadow: none;
        background: none;
        border-radius: 0;
        padding: 0.6rem 0;
        min-width: unset;
        width: 100%;
        gap: 1.4rem;
    }
    .dropdown:hover .dropdown-content,
    .dropdown:focus-within .dropdown-content {
        display: flex;
    }
    @media (max-width: 768px) {
  .top-header {
    position: static !important;
    box-shadow: none !important;
    border-bottom: none !important;
  }
  body {
    padding-top: 0 !important; /* Remove extra space added for fixed header */
  }
}
}

@media (max-width: 700px) {
    .header-top-content {
        flex-direction: row;
        gap: 0.5rem;
        padding: 0 0.5rem;
    }
    .logo img { height: 100px; width: 100px;}
    .logo span { font-size: 1.5rem; }
    .navbar-btn { padding: 0.1rem 1rem; font-size: 0.8rem; }
}

/* Ensure nav is visible on desktop/tablet and hamburger hidden */
@media (min-width: 769px) {
    .main-nav {
        position: static !important;
        transform: none !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        padding: 0 !important;
        min-height: unset !important;
        max-height: unset !important;
        overflow-y: visible !important;
        display: flex !important;
    }
    .hamburger {
        display: none !important;
    }
}

@media (max-width: 768px) {
  .desktop-only { display: none !important; }
  .mobile-only { display: flex !important; justify-content: center; margin-top: 1.5rem; gap: 1rem; }
}
@media (min-width: 769px) {
  .desktop-only { display: flex !important; }
  .mobile-only { display: none !important; }
}

/* By default, hide mobile version, show desktop version */
.desktop-searchbar-container {
  display: block;
}
.mobile-searchbar-container {
  display: none;
}

/* On mobile, swap visibility */
@media (max-width: 700px) {
  .desktop-searchbar-container {
    display: none;
  }
  .mobile-searchbar-container {
    display: block;
    padding: 1.2rem 0 0 0;
    /* Optional: add margin-top to space it below hero */
    margin-top: 0;
  }
}