/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    --primary: #0d2354;     /* Deep Navy Blue */
    --primary-light: #1a3575;
    --accent: #f38b00;      /* Vibrant Orange */
    --accent-hover: #d97700;
    --cyan: #00a4e4;        /* Bright Cyan Blue */
    --dark: #071530;        /* Footer Dark */
    --light: #f4f6f8;       /* Light Grey */
    --text: #1d2733;        /* Body Text */
    --radius: 10px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

body {
    color: var(--text);
    background: #fff;
    line-height: 1.6;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--accent);
}
a[href="lister-add-property.php"]:hover {
    background: var(--primary-light) !important;
    transform: translateY(-2px);
    transition: all 0.2s ease;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =========================================
   2. HEADER & MOBILE NAVIGATION
   ========================================= */
.site-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    gap: 20px;
    position: relative;
}
.site-header nav a:hover,
.site-header nav a.active {
    background: var(--accent); /* Orange background for active/hover */
    color: #ffffff;
    transform: translateY(-1px);
}
.logo {
    height: 70px;
    width: auto;
}

/* The Blue Box for the Menu */
.site-header nav {
    display: flex;
    gap: 5px;
    align-items: center;
    background: var(--primary); /* Blue Box */
    padding: 6px 12px;
    border-radius: 30px;
    box-shadow: 0 4px 12px rgba(13, 35, 84, 0.2);
}

.site-header nav a {
    color: #ffffff;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
}

.site-header nav a:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    transform: translateY(-1px);
}

.site-header nav a.btn {
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    padding: 8px 20px;
}

.site-header nav a.btn:hover {
    background: var(--accent-hover);
    color: #fff;
}

/* Mobile Menu */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 32px;
    color: var(--primary);
    cursor: pointer;
}

@media (max-width: 900px) {
    .menu-toggle {
        display: block;
    }
    
    .site-header nav {
        display: none; /* Hidden by default on mobile */
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--primary); /* Keep blue box on mobile */
        flex-direction: column;
        padding: 15px;
        border-radius: 0 0 15px 15px;
        box-shadow: 0 10px 20px rgba(0,0,0,0.15);
        align-items: stretch;
    }

    .site-header nav.active {
        display: flex !important;
    }

    .site-header nav a {
        padding: 12px 15px;
        border-radius: 8px;
        text-align: center;
        margin-bottom: 5px;
    }
}

/* =========================================
   3. HERO SLIDER & SEARCH
   ========================================= */
.hero-slider {
    position: relative;
    height: 80vh;
    min-height: 550px;
    overflow: hidden;
}

.hero-slider .slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s ease;
    animation: kb 18s ease-in-out infinite alternate;
}

.hero-slider .slide.active {
    opacity: 1;
}

@keyframes kb {
    0% { transform: scale(1); }
    100% { transform: scale(1.15); }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding-top: 12vh;
    background: rgba(13, 35, 84, 0.5); /* Navy overlay */
    height: 100%;
}

.hero-content h1 {
    font-size: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: 30px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.hero-search {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 900px;
    margin: auto;
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 12px;
    backdrop-filter: blur(5px);
}

.hero-search input,
.hero-search select {
    padding: 14px;
    border: none;
    border-radius: 8px;
    min-width: 180px;
    font-size: 1rem;
    outline: none;
}

.hero-search button {
    padding: 14px 30px;
    background: var(--accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s;
}

.hero-search button:hover {
    background: var(--accent-hover);
}

/* Slider Controls */
.hero-slider .prev,
.hero-slider .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    color: #fff;
    border: none;
    font-size: 24px;
    padding: 15px 20px;
    border-radius: 50%;
    z-index: 3;
    cursor: pointer;
    transition: background 0.2s;
}

.hero-slider .prev:hover,
.hero-slider .next:hover {
    background: var(--primary);
}

.hero-slider .prev { left: 20px; }
.hero-slider .next { right: 20px; }

.dots {
    position: absolute;
    bottom: 25px;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 3;
}

.dots span {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    margin: 0 6px;
    cursor: pointer;
    transition: background 0.3s;
}

.dots span.active {
    background: var(--accent);
    transform: scale(1.2);
}

/* =========================================
   4. PROPERTY CARDS
   ========================================= */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    padding: 30px 0;
}

.card {
    position: relative;
    background: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    color: inherit;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid #eee;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(13, 35, 84, 0.15);
}

.card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.card-body {
    padding: 20px;
}

.card-body h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
    color: var(--primary);
}

.card-body p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.card-body strong {
    color: var(--accent);
    font-size: 1.2rem;
}

.badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--accent);
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* =========================================
   5. FORMS & AUTHENTICATION
   ========================================= */
.auth-card {
    max-width: 500px;
    margin: 60px auto;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    padding: 40px;
    border-top: 5px solid var(--primary);
}

.auth-card h2 {
    margin-bottom: 25px;
    color: var(--primary);
    text-align: center;
}

.auth-card label {
    display: block;
    margin: 15px 0 5px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
}

.auth-card input,
.auth-card select,
.auth-card textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #d1d8e0;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: border-color 0.2s;
}

.auth-card input:focus,
.auth-card select:focus,
.auth-card textarea:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(13, 35, 84, 0.1);
}

.auth-card button {
    margin-top: 25px;
    width: 100%;
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.auth-card button:hover {
    background: var(--primary-light);
}

.auth-card button:active {
    transform: scale(0.98);
}

/* =========================================
   6. ALERTS
   ========================================= */
.alert {
    max-width: 1200px;
    margin: 15px auto;
    padding: 15px 20px;
    border-radius: 8px;
    font-weight: 500;
}
.alert-success { background: #dff7e6; color: #0a6b52; border-left: 5px solid #0a6b52; }
.alert-error { background: #fde2e2; color: #a30000; border-left: 5px solid #a30000; }
.alert-info { background: #e2f0fd; color: #0b4b8a; border-left: 5px solid #0b4b8a; }

/* =========================================
   7. CHAT WIDGET
   ========================================= */
.chat-widget {
    position: fixed;
    right: 25px;
    bottom: 25px;
    z-index: 999;
    font-size: 14px;
}

#chatToggle {
    background: var(--primary);
    color: #fff;
    border: none;
    padding: 15px 20px;
    border-radius: 30px;
    box-shadow: 0 6px 20px rgba(13, 35, 84, 0.3);
    cursor: pointer;
    font-weight: 600;
    transition: transform 0.2s;
}

#chatToggle:hover {
    transform: scale(1.05);
}

.chat-box {
    display: none;
    width: 340px;
    height: 450px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    flex-direction: column;
    overflow: hidden;
    margin-bottom: 15px;
    border: 1px solid #eee;
}

.chat-box:not([hidden]) {
    display: flex;
}

.chat-header {
    background: var(--primary);
    color: #fff;
    padding: 15px 20px;
    font-weight: 600;
    font-size: 1rem;
}

.chat-messages {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    background: #f8fafc;
}

.chat-messages .msg {
    margin-bottom: 12px;
    padding: 10px 14px;
    border-radius: 15px;
    max-width: 80%;
    word-break: break-word;
    font-size: 0.9rem;
}

.chat-messages .msg.visitor {
    background: var(--primary);
    color: #fff;
    margin-left: auto;
    border-bottom-right-radius: 2px;
}

.chat-messages .msg.admin {
    background: #e2e8f0;
    color: var(--text);
    border-bottom-left-radius: 2px;
}

#chatForm {
    display: flex;
    gap: 8px;
    padding: 12px;
    border-top: 1px solid #eee;
    background: #fff;
}

#chatForm input {
    flex: 1;
    min-width: 0;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px;
    outline: none;
}

#chatForm button {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

/* =========================================
   8. MAP & UTILITIES
   ========================================= */
#map {
    height: 450px;
    border-radius: 12px;
    margin: 25px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* =========================================
   9. COMPLETE FOOTER STYLING
   ========================================= */
.site-footer {
    background: var(--dark);
    color: #cbd2dc;
    margin-top: 80px;
    padding: 60px 20px 20px;
    font-size: 0.95rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    text-align: left;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-brand p {
    margin-top: 15px;
    color: #8da1b9;
    font-size: 0.9rem;
    line-height: 1.5;
}

.logo-footer {
    height: 85px;
    width: auto;
    background: #ffffff;
    padding: 10px 15px;
    border-radius: 8px;
}

.footer-contact h3, 
.footer-social h3 {
    color: #ffffff;
    margin-bottom: 20px;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.footer-contact p {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-contact a {
    color: #cbd2dc;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-contact a:hover {
    color: var(--accent);
}

.footer-contact i {
    color: var(--accent); /* This makes the phone/email icons orange */
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

/* Social Media Container - Tidy Alignment */
.social-icons {
    display: flex;
    justify-content: flex-start; /* Aligns them nicely under the "Follow Us" heading */
    align-items: center;
    gap: 12px; /* Even spacing between all icons */
    flex-wrap: wrap;
}

/* The Individual Icon Circles */
.soc-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Mobile Tidy Alignment */
@media (max-width: 768px) {
    .social-icons {
        justify-content: center; /* Centers them perfectly on mobile */
    }
}

.soc-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff; /* This makes the social icons white */
    font-size: 1.2rem;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.soc-icon:hover {
    transform: translateY(-6px) scale(1.1);
    color: #ffffff;
    box-shadow: 0 6px 15px rgba(0,0,0,0.3);
}

.soc-icon.fb:hover { background: #1877F2; }
.soc-icon.x:hover { background: #000000; }
.soc-icon.wa:hover { background: #25D366; }
.soc-icon.tk:hover { background: #000000; }
.soc-icon.ig:hover { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);}
.footer-bottom {
    text-align: center;
    margin-top: 50px;
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #8da1b9;
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .footer-content { text-align: center; }
    .footer-contact p { justify-content: center; }
    .social-icons { justify-content: center; }
    .hero-content h1 { font-size: 2rem; }
    .hero-search { flex-direction: column; padding: 10px; }
    .hero-search input, .hero-search select, .hero-search button { width: 100%; }
    .chat-widget { right: 10px; bottom: 10px; }
    .chat-box { width: calc(100vw - 20px); max-width: 350px; height: 60vh; }
}