/*--- VARIABLES: COLORS, SPACING, FONT ---*/
:root {
    --primary: #005028;
    --accent: #D12027;
    --accent-dark: #b61a20;
    --card-bg: #fff;
    --card-shadow: 0 4px 10px rgba(0,0,0,0.08);
    --border-radius: 10px;
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --heading-color: #004c66;
    --text-color: #333;
    --bg-light: #f4f9fc;
    --transition-main: 0.18s;
    --gap: 1.5rem;
}

/*--- GLOBALS ---*/
body {
    font-family: var(--font-main);
    background: var(--bg-light);
    color: var(--text-color);
    line-height: 1.6;
    padding-top: 120px;
}

a {
    text-decoration: none;
    color: inherit;
}

/*--- UTILITIES ---*/
.flex { display: flex; }
.centered { justify-content: center; align-items: center; }
.gap-xs { gap: 0.5rem; }
.gap-sm { gap: 1rem; }
.gap { gap: var(--gap); }
.gap-lg { gap: 2.5rem; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }

.text-center { text-align: center; }
.heading { color: var(--heading-color); font-weight: bold; }
.bg-light { background-color: var(--bg-light); }
.rounded { border-radius: var(--border-radius); }
.shadow { box-shadow: var(--card-shadow); }

/*--- BUTTONS ---*/
.btn, .navbar-btn, .filter-btn, .filter-show-btn, .btn-success, .btn-book-property, .card .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    border-radius: 9999px;
    padding: 0.6rem 1.2rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    outline: none;
    cursor: pointer;
    transition: background var(--transition-main), color var(--transition-main), box-shadow var(--transition-main);
    text-decoration: none;
    background: var(--primary);
    color: #fff;
}
.btn-accent, .filter-btn, .filter-show-btn, .btn-book-property {
    background: var(--accent);
    color: #fff;
}
.btn-outline, .filter-btn {
    background: #fff;
    color: var(--accent);
    border: 1.7px solid var(--accent);
}
.btn-outline:hover, .filter-btn:hover {
    background: var(--accent);
    color: #fff;
}
.btn-success {
    background: #25D366;
    color: #fff;
}
.btn-book-property { margin: 1em 0 0 0; }
.btn-book-property:hover { background: var(--accent-dark);}
.filter-show-btn:hover { background: var(--accent-dark);}
.filter-clear-btn {
    background: none;
    border: none;
    color: var(--accent);
    font-size: 1.02rem;
    font-weight: 500;
    text-decoration: underline;
    cursor: pointer;
    margin-left: 0.5rem;
    transition: color var(--transition-main);
}
.filter-clear-btn:hover { color: #a51a1f; }

/*--- CARDS ---*/
.card, .property-gallery, .modal-content {
    background: var(--card-bg);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow);
    overflow: hidden;
    transition: transform 0.3s, box-shadow var(--transition-main);
}
.card:hover, .card-link:hover .card {
    box-shadow: 0 6px 18px rgba(0,0,0,0.14);
    transform: translateY(-4px) scale(1.02);
}
.card-title, .property-gallery h3 {
    font-size: 1.2rem;
    margin: 1rem;
    color: var(--heading-color);
}
.card p, .property-gallery p {
    margin: 0 1rem 1rem;
    font-size: 0.95rem;
    color: #555;
}
.card .btn:hover {
    background-color: #005f87;
}

/*--- HEADINGS ---*/
.section-title, .modal-content h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.8rem;
    color: var(--heading-color);
    font-weight: bold;
}
.property-gallery h3 { margin-bottom: 0.8rem; }

/*--- INPUTS ---*/
input, .pill-input, .filter-range-fields input {
    border-radius: 6px;
    border: 1px solid #ccc;
    padding: 0.5rem 0.8rem;
    font-size: 1.1rem;
    outline: none;
    transition: border var(--transition-main);
    background: transparent;
    color: var(--text-color);
}
input:focus, .pill-input:focus, .filter-range-fields input:focus {
    border-color: var(--accent);
}

/*--- HERO ---*/
.hero, .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;
    color: #fff;
    text-align: center;
}
.hero { padding: 4rem 0; }
.small-hero, .hero.small-hero { min-height: calc(30vh + 120px); padding: 2rem 0; }
.hero h1 { font-size: 2.5rem; margin-bottom: 1rem; }
.hero p { font-size: 1.1rem; }

/*--- HEADER ---*/
.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; /* Change from wrap to nowrap */
    gap: 0.5rem;
}
.logo { display: flex; align-items: center; gap: 1.2rem; flex: 0 0 auto; }
.logo img { width: 95px; height: 95px; object-fit: contain; vertical-align: middle; }
.logo span { font-size: 1.5rem; font-weight: bold; color: var(--primary); letter-spacing: 0.01em; white-space: nowrap; }

/*--- NAVIGATION ---*/
.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 var(--transition-main);
}
.nav-links > li > a.active,
.nav-links > li > a:hover,
.nav-links a.active {
    color: var(--accent);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 4px;
}

/*--- NAVBAR ACTIONS ---*/
.navbar-actions { display: flex; gap: 1.3rem; align-items: center; justify-content: flex-end; flex: 0 0 auto; margin-left: 2.5rem; }
.navbar-btn.enquire-btn,
.navbar-btn.login-btn,
.navbar-btn.signup-btn { background: var(--primary); }
.navbar-btn.enquire-btn:hover,
.navbar-btn.login-btn:hover,
.navbar-btn.signup-btn:hover { background: var(--accent); }

/*--- DROPDOWN ---*/
.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 var(--transition-main); padding: 0.2rem 0; background: none; border: none; }
.dropdown-toggle i { margin-left: 7px; font-size: 0.9rem; transition: transform var(--transition-main);}
.dropdown:hover .dropdown-content,
.dropdown:focus-within .dropdown-content { display: flex; }
.dropdown-content {
    display: none;
    position: absolute;
    left: 0;
    top: 110%;
    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 var(--transition-main);
}
.dropdown-column { display: flex; flex-direction: column; min-width: 160px; }
.dropdown-column h4 { font-size: 1rem; color: var(--primary); 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 var(--transition-main); padding: 0.1rem 0; }
.dropdown-column a:hover { color: var(--accent); }

/*--- 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 var(--transition-main);}
.search-pill:focus-within { border-color: var(--accent);}
.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: var(--text-color); 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 var(--transition-main);}
.pill-clear:hover { background: #e3e3e3; color: var(--accent); }

/*--- FILTER MODAL ---*/
.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: var(--accent); cursor: pointer; transition: color var(--transition-main); 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: var(--text-color); 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%; }
.filter-range-fields input:focus { border: 1.5px solid var(--accent);}
.filter-show-btn { background: var(--accent); 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 var(--transition-main);}
.filter-show-btn:hover { background: var(--accent-dark);}

/*--- SECTIONS ---*/
.section { padding: 3rem 0; }
.section-title { font-size: 1.8rem; }

/*--- CONTAINER WIDTHS FOR PROPERTY GRID ---*/
.container {
    max-width: none; 
    margin: 0 auto;
}
.properties-list {
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
    width: 100%;    /* <-- add this */
    align-self: stretch; /* <-- add this */
}

/*--- IMAGE GALLERY/CAROUSEL & PROPERTY GRID ---*/
.featured-properties-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    align-items: start;
}

@media (max-width: 900px) {
    .featured-properties-row{
        grid-template-columns: 1fr;
    }
}
.property-link-card {
    max-width: 380px;
    width: 100%;
    box-sizing: border-box;
}

.property-gallery { 
    padding: 1.5rem; 
    margin-bottom: 2rem; 
    min-width: 0px; 
    display: flex; 
    flex-direction: column; 
}
.image-carousel { position: relative; overflow: hidden; border-radius: 10px; margin-bottom: 1rem;}
.carousel-images {
  position: relative;
  height: 150px; /* Match your layout */
  overflow: hidden;
}
.carousel-images img {
  position: absolute;
  left: 0; top: 0;
  width: 100%;
   height: 100%;
  opacity: 0;
  transition: opacity 0.5s;
  object-fit: cover;
  z-index: 1;
  pointer-events: none;
}
.carousel-images img.active {
  opacity: 1;
  z-index: 2;
  pointer-events: auto;
}
.carousel-dots { display: flex; justify-content: center; gap: 8px; padding: 10px 0;}
.carousel-dots .dot { width: 12px; height: 12px; background: var(--accent); border-radius: 50%; cursor: pointer; transition: background-color 0.3s;}
.carousel-dots .dot.active { background: #0074a6; }

/*--- PROPERTIES + MAP LAYOUT ---*/
.properties-map-layout {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    min-height: 500px;
    margin: 0 auto;
    max-width: 1800px;
    box-sizing: border-box;
}
.properties-map {
    flex: 0 0 320px; /* do NOT let it grow */
    min-width: 320px;
    max-width: 400px;
    height: 80vh;
    position: sticky;
    top: 110px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0,0,0,0.10);
    background: #eee;
    margin-right: 10px;
}
#map {  height: 100%; min-height: 350px;}
@media (max-width: 768px) { .properties-map { display: none; } }

/*--- 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 var(--transition-main), transform var(--transition-main);}
.footer-social a:hover { color: var(--accent); transform: scale(1.18);}
.footer-bottom { color: #58595B; font-size: 1rem; margin-top: 1.2rem; text-align: center;}

/*--- HAMBURGER ---*/
.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-left: auto; /* Push to the right */
    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);
}
/*--- MOBILE NAV ---*/
/* --- MOBILE NAV --- */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
        z-index: 4000;
    }
    
    .main-nav {
        position: fixed;
        top: 80px; /* below header */
        left: 0;
        right: 0;
        background: #fff;
        box-shadow: 0 8px 32px rgba(32, 58, 67, 0.13);
        z-index: 3000;
        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;
        background: #f1f1f1;
        border-radius: 36px;
        padding: 1.2rem 0.6rem;
        box-shadow: 0 8px 36px rgba(0,80,40,0.07);
    }
    
    .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;
    }
    
    .top-header {
        position: fixed !important;
        box-shadow: none !important;
        border-bottom: none !important;
        z-index: 2000;
    }
    
    body {
        padding-top: 5px !important;
        overflow-x: hidden;
    }
    
    /* Add the enquire button mobile styling from Home.css */
    .enquire-btn-mobile {
        display: inline-flex;
        margin-top: 8px;
        background: #005028;
        color: #fff;
        padding: 0.6rem 1.4rem;
        border-radius: 9999px;
        font-size: 1rem;
        font-weight: 600;
        border: none;
        text-decoration: none;
        align-items: center;
        gap: 0.5rem;
        transition: background 0.2s, color 0.2s;
        outline: none;
        cursor: pointer;
    }
    
    .enquire-btn-mobile:hover {
        background: #D12027;
        color: #fff;
    }
}

/* 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;
    }
    
    .enquire-btn-mobile {
        display: none !important;
    }
}

/* --- Desktop & Mobile Actions --- */
@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; }
}

/* --- Enquire Button Mobile --- */
@media (max-width: 950px) {
    .logo {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
}

/*--- SEARCHBAR VISIBILITY ---*/
.desktop-searchbar-container { display: block; }
.mobile-searchbar-container { display: none; }
@media (max-width: 700px) {
    .desktop-searchbar-container { display: none; }
    .mobile-searchbar-container { display: block; padding: 1.2rem 0 0 0; margin-top: 0; }
    .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; }
}

/*--- RESPONSIVE TWEAKS ---*/

@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;}
}
@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;}
}

/*--- MISC/OTHER ---*/
.card-link { 
    display: block; 
    text-decoration: none; 
    color: inherit; 
    transition: transform 0.15s, box-shadow 0.2s; 
}
.card-link .card { 
}
.card-link:focus .card { outline: 2px solid #0074a6; outline-offset: 2px; }
.card-link:hover { cursor: pointer; }
.card-grid > .card-link:last-child .card { margin-bottom: 0; }
.card-glow, .property-gallery.card-glow { box-shadow: 0 0 0 5px #ffb3b3 !important; transition: box-shadow 0.25s; }

.modal { display:none; position:fixed; top:0; left:0; width:100vw; height:100vh; background:rgba(0,0,0,0.5); z-index:1000; }
.modal-content { margin:5vh auto; padding:2em; max-width:700px; position:relative; max-height:90vh; overflow-y:auto; }
.close { position:absolute; top:10px; right:20px; font-size:2em; cursor:pointer; }
.form-row { display:flex; flex-wrap:wrap; gap:1em; margin-bottom:1em; }
.form-row label { flex:1 0 45%; }
.modal-content {
    max-width: 600px;
    width: 98%;
    margin: 5vh auto;
    padding: 2.5em 2em;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(32, 58, 67, 0.15);
}

.form-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
    margin-bottom: 1.2em;
}

.form-row label {
    flex: 1 1 48%;
    display: flex;
    flex-direction: column;
    font-weight: 500;
    margin-bottom: 0;
}

.form-row input,
.form-row select {
    width: 100%;
    padding: 0.7em 1em;
    border-radius: 5px;
    border: 1px solid #ccc;
    margin-top: 0.3em;
    font-size: 1.05em;
    background: #f9fafb;
}

@media (max-width: 700px) {
    .modal-content {
        padding: 1.2em 0.5em;
    }
    .form-row {
        flex-direction: column;
        gap: 0.6em;
    }
    .form-row label {
        flex: 1 1 100%;
    }
}

.btn-success {
    margin-top: 1.5em;
    width: 100%;
    padding: 1em 0;
    font-size: 1.15em;
    border-radius: 9999px;
    background: #27ae60;
    color: #fff;
    border: none;
    font-weight: 700;
}

/* Card glow for scroll-to-card and hover highlight */
.card-glow, .property-gallery.card-glow {
    box-shadow: 0 0 0 5px #ffb3b3 !important;
    transition: box-shadow 0.25s;
}

/*--- LAST RESORT: Force auto height on cards if any grid bug ---*/
.card-link, .card {
    height: auto !important;
    min-height: 0 !important;
}


/* --- NAVBAR 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 {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    border-radius: 9999px;
    padding: 0.2rem 1.2rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    outline: none;
    cursor: pointer;
    transition: background 0.18s, color 0.18s, box-shadow 0.18s;
    text-decoration: none;
    background: var(--primary, #005028);
    color: #fff;
}

/* Accent and hover styles for navbar buttons */
.navbar-btn.enquire-btn,
.navbar-btn.login-btn,
.navbar-btn.signup-btn {
    background: var(--primary, #005028);
}

.navbar-btn.enquire-btn:hover,
.navbar-btn.login-btn:hover,
.navbar-btn.signup-btn:hover {
    background: var(--accent, #D12027);
}

/* Responsive adjustments for smaller screens */
@media (max-width: 960px) {
    .navbar-btn { padding: 0.6rem 1.2rem; }
}

@media (max-width: 700px) {
    .navbar-btn { padding: 0.6rem 0.7rem; font-size: 0.9rem; }
    .navbar-actions { margin-left: 0.5rem; gap: 1rem; }
}

/* Hide/show actions for desktop vs mobile */
.desktop-only { display: flex !important; }
.mobile-only { 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; }
}

.btn-details,
.btn-book-property {
    background: #27ae60;
    color: #fff;
}

/* --- EXPRESSION OF INTEREST MODAL FORM STYLING (BOOK THIS PROPERTY) --- */
#bookingModal .modal-content {
    padding: 0 !important;
    background: #fff;
    border-radius: 18px;
    max-width: 820px;
    width: 95vw;
    margin: 2rem auto;
    overflow-y: auto;
}

#bookingForm {
    padding: 1.5rem 2.5rem 2rem 2.5rem;
    background: #fff;
    border-radius: 18px;
    font-family: 'Montserrat', Arial, sans-serif;
}

.eoi-modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 10px;
}
.eoi-modal-title-block {
    flex: 1;
    text-align: center;
}
.eoi-modal-title {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #46342b;
}
.eoi-modal-subtitle {
    color: #009688;
    font-size: 1.1rem;
    font-weight: 600;
    border-bottom: 2px solid #009688;
    display: inline-block;
    margin-bottom: 0.8em;
}
.eoi-modal-row, .eoi-modal-2col, .eoi-modal-3col {
    margin-bottom: 12px;
}
.eoi-modal-row {
    display: flex;
    gap: 18px;
    align-items: center;
    flex-wrap: wrap;
}
.eoi-modal-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 22px;
}
.eoi-modal-3col {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px 16px;
}
#bookingForm label {
    font-weight: 600;
    color: #46342b;
    font-size: 1.01rem;
    margin-bottom: 2px;
    display: block;
}
#bookingForm input[type="text"],
#bookingForm input[type="email"],
#bookingForm input[type="date"],
#bookingForm input[type="number"],
#bookingForm select {
    width: 100%;
    border: none;
    background: #bda79c;
    color: #fff;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 7px;
    padding: 7px 10px;
    margin-bottom: 3px;
    min-height: 32px;
}
#bookingForm input[type="text"]:read-only,
#bookingForm input[type="number"]:read-only {
    background: #cfcfcf;
    color: #383838;
}
#bookingForm input[type="checkbox"] {
    margin-right: 5px;
    accent-color: #46342b;
}
.payment-plan-row {
    background: #bda79c;
    border-radius: 7px;
    padding: 7px 10px;
    gap: 16px;
    color: #fff;
    margin-bottom: 12px;
}
.payment-plan-row label {
    color: #fff !important;
    margin-bottom: 0;
    font-weight: 500;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    margin-right: 13px;
}
.eoi-modal-note {
    font-size: 0.96rem;
    color: #46342b;
    gap: 18px;
}
.eoi-modal-note .note-block {
    flex: 1;
    background: #f7c791;
    border-radius: 4px;
    padding: 5px 8px;
}
.eoi-modal-submit {
    width: 100%;
    margin-top: 1.5rem;
    font-size: 1.11rem;
    font-weight: bold;
    letter-spacing: 1.2px;
    border-radius: 9px;
    background: #009688 !important;
    border: none;
    color: #fff;
    padding: 12px 0;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.eoi-modal-submit:hover {
    background: #00695c !important;
}
@media (max-width: 800px) {
    #bookingForm { padding: 1rem 0.5rem; }
    .eoi-modal-2col, .eoi-modal-3col { grid-template-columns: 1fr; }
}
#crm-chatbot-btn {
    position: fixed; bottom: 32px; right: 32px; z-index:1001;
    background: #005028; color: #fff; border-radius: 50%;
    width: 60px; height: 60px; display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 2rem; box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
#crm-chatbot-window {
    position: fixed; bottom: 100px; right: 32px; z-index:1002;
    background: #fff; border-radius: 14px; box-shadow: 0 8px 28px rgba(0,0,0,0.22);
    width: 330px; max-width: 96vw; min-height: 330px;
    max-height: 420px; /* Add this line */
    display: flex; flex-direction: column;
}

.chatbot-body {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    font-size: 1rem;
    background: #f8fafb;
    max-height: 260px; /* Add this line */
}
.chatbot-header {
    background: #005028; color: #fff; padding: 0.7rem 1.2rem; display:flex; justify-content:space-between; align-items:center;
    font-weight: 600; font-size: 1.11rem;
}
.chatbot-header button { background: none; border: none; color: #fff; font-size: 1.4rem; cursor: pointer; }
.chatbot-body {
    flex: 1; padding: 1rem; overflow-y: auto; font-size: 1rem;
    background: #f8fafb;
}
.bot-msg, .user-msg {
    margin: 0.45rem 0; padding: 0.7rem 1rem; border-radius: 9px; max-width: 85%;
}
.bot-msg { background: #e9f5ee; color: #005028; align-self: flex-start; }
.user-msg { background: #d1e6fa; color: #1a2641; align-self: flex-end; text-align: right; }
#chatbotInput {
    border: none; border-top: 1px solid #eee; padding: 0.9rem; font-size: 1rem; outline: none;
    width: 100%; box-sizing: border-box;
}
#chatbotActions {
    margin: 0.5rem 0 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

#chatbotActions button {
    background: #e9f5ee;
    color: #005028;
    border: 1px solid #b7e0d0;
    border-radius: 7px;
    padding: 0.45rem 0.8rem;
    font-size: 0.96rem;
    cursor: pointer;
    transition: background 0.2s;
}

#chatbotActions button:hover {
    background: #d1e6fa;
    color: #1a2641;
    border-color: #7dc9b1;
}