/* ===== Reset & Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f4f9fc;
    color: #333;
    padding-top: 150px; /* navbar height */
    min-height: 100vh;
    overflow-y: auto;
    scroll-behavior: smooth;
}

/* --- Animated Header Navbar --- */
.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: wrap;
    gap: 2.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: #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 a.active,
.nav-links a:hover {
    color: #D12027;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* 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.2rem 1.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;
}

/* --- Dropdown Styles --- */
.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;
}
.dropdown-toggle i {
    margin-left: 7px;
    font-size: 0.9rem;
    transition: transform 0.18s;
}
.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 0.22s;
}
.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;
}

/* --- 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: 900px) {
    .header-top-content {
        flex-wrap: wrap;
        padding: 0 1rem;
        gap: 1rem;
    }
    .logo img { height: 50px; width: 50px;}
    .logo span { font-size: 1.3rem; }
    .nav-links { gap: 1.5rem; }
    .navbar-btn { padding: 0.6rem 1.2rem; }
}
@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: 5 !important;
    }
}
@media (max-width: 700px) {
    .header-top-content {
        flex-direction: row;
        gap: 0.5rem;
        padding: 0 0.5rem;
    }
    .main-nav {
        top: 65px;
    }
    .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;
    }
}

/* ===== Section General Layout ===== */
.section {
    padding: 3rem 1rem;
    max-width: 1200px;
    margin: 0 auto;
}
.section-title {
    font-size: 2rem;
    color: #004c66;
    text-align: center;
    margin-bottom: 2rem;
}

.hero.small-hero {
    display: flex;
    align-items: center;   /* vertical center */
    justify-content: center; /* horizontal center */
    text-align: center;    /* center text */
    padding: 60px 20px;    /* spacing */
}

.hero.small-hero .container {
    max-width: 800px;
    margin: 0 auto; /* centers the container horizontally */
}


/* ===== Careers Cards ===== */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}
.card {
    border-radius: 12px;
    padding: 1.5rem;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}
.card-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.job-meta {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.8rem;
}
.job-meta p {
    margin: 2px 0;
}
.badge {
    display: inline-block;
    background: #25a25a;
    color: white;
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 5px;
    margin-bottom: 0.5rem;
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 2;
}
.active-role {
    border: 2px solid #25a25a;
}
.inactive-role {
    opacity: 0.65;
    border: 2px dashed #ccc;
}
.job-summary {
    font-size: 1rem;
    color: #555;
    margin-bottom: 10px;
}
.toggle-details {
    background: none;
    border: none;
    color: #25a25a;
    cursor: pointer;
    font-weight: bold;
    margin-bottom: 10px;
    font-size: 0.96rem;
}
.job-details {
    font-size: 0.95rem;
    color: #333;
    margin-bottom: 10px;
    border-top: 1px solid #eaeaea;
    padding-top: 10px;
}
.card ul {
    padding-left: 1.2rem;
    margin-bottom: 1rem;
}
.card ul li {
    font-size: 0.95rem;
    color: #234;
    margin-bottom: 0.3rem;
}
.card h4 {
    font-size: 1.08rem;
    color: #005028;
    margin-top: 0.8rem;
    margin-bottom: 0.3rem;
    font-weight: 600;
}

/* ===== Apply Button ===== */
.card .btn.btn-primary,
.btn-primary {
    display: inline-block;
    background: #25a25a;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    transition: background 0.2s ease;
    border: none;
}
.card .btn.btn-primary:hover,
.btn-primary:hover {
    background: #1e8148;
}
@media (max-width: 700px) {
    .card .btn.btn-primary {
        width: 100%;
        text-align: center;
    }
}

/* ===== Footer Section ===== */
.modern-footer {
    background: linear-gradient(90deg, #F1F1F1 0%, #fff 100%);
    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, text-shadow 0.18s;
    will-change: transform, color, text-shadow;
    text-shadow: 0 0 0px #D12027, 0 0 0px #ffb200;
}
.footer-social a:hover {
    color: #D12027;
    transform: scale(1.18) translateY(-4px);
    text-shadow: 0 0 8px #D12027, 0 0 16px #ffb200, 0 0 4px #fff;
}
.footer-social a:active {
    animation: bounce 0.35s;
}
@keyframes bounce {
    0% { transform: scale(1.18) translateY(-4px);}
    40% { transform: scale(0.93) translateY(2px);}
    100% { transform: scale(1.18) translateY(-4px);}
}
.footer-bottom {
    color: #58595B;
    font-size: 1rem;
    margin-top: 1.2rem;
    text-align: center;
}

/* Responsive Cards and Grid */
@media (max-width: 768px) {
    .card-grid {
        display: flex;
        flex-direction: column;
        gap: 1.5rem;
    }
    .section {
        padding-top: 1.5rem;
    }
}

@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; }
}
body {
    max-width: 100vw;
    overflow-x: hidden;
}
.section,
.hero,
.hero.small-hero,
.properties-searchbar-container,
.search-pill-form,
.card-grid,
.featured-properties-row,
.property-gallery,
.footer-container {
    max-width: 100vw;
    box-sizing: border-box;
    overflow-x: hidden;
}
@media (max-width: 700px) {
    .header-top-content,
    .section,
    .properties-searchbar-container,
    .search-pill-form,
    .footer-container,
    .hero,
    .hero.small-hero {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        max-width: 100vw !important;
    }
    .card-grid, .featured-properties-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .property-gallery, .card {
        min-width: 0 !important;
        max-width: 100vw !important;
        margin-left: auto;
        margin-right: auto;
    }
}
@media (max-width: 900px) {
  .header-top-content {
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 0.5rem;
    padding: 0 1rem;
  }
  .logo {
    flex-shrink: 1;
    min-width: 0;
  }
  .logo img {
    width: 90px;
    height: 90px;
  }
  .logo span {
    font-size: 1.2rem;
    white-space: nowrap;
    flex-shrink: 1;
    min-width: 0;
  }
  }
  .hamburger {
    margin-left: auto;
    margin-right: 0;
    align-self: center;
    display: flex;
  }
}
.btn.btn-disabled {
    background: #ccc !important;
    color: #888 !important;
    pointer-events: none;
    border: none;
    font-weight: 500;
    border-radius: 5px;
    padding: 0.7rem 1.2rem;
    font-size: 1rem;
}
@media (max-width: 900px) {
  .hamburger {
    display: flex;
    z-index: 4000;
  }
}
@media (max-width: 900px) {
  body {
    padding-top: 80px !important;
  }
}
@media (max-width: 700px) {
  body {
    padding-top: 60px !important;
  }
}
#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;
}