/* ================================
   GLOBAL PAGE WRAPPER (Center)
================================ */
body {
    margin: 0;
    font-family: 'Poppins', sans-serif;
    background: #f1f5f9; /* light grey */
    color: #0f172a;
}

.page-wrapper {
    background: #ffffff;
    min-height: 100vh;
    padding: 0;
}

.container {
    width: 92%;
    max-width: 1200px;
    margin: 0 auto;
}

@media (max-width: 1200px) { .container { width: 75%; } }
@media (max-width: 900px) { .container { width: 95%; } }

/* ================================
   HEADER / NAVBAR
================================ */
header {
    background: #0f172a;
    padding: 16px;
    text-align: center;
    color: white;
    border-bottom: 2px solid #38bdf8;
}

header a {
    color: #e2e8f0;
    padding: 8px 14px;
    margin: 0 4px;
    border-radius: 6px;
    display: inline-block;
    font-weight: 500;
}

header a:hover {
    background: #1e293b;
}

/* ================================
   HERO SECTION
================================ */
.hero {
    background: linear-gradient(135deg, #0ea5e9, #1e293b);
    padding: 60px 20px;
    text-align: center;
    color: white;
    margin-bottom: 30px;
}

.hero h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

.hero p {
    font-size: 16px;
    opacity: 0.9;
}

/* ================================
   ADVANCED SEARCH FORM
================================ */
.search-box {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.search-box input,
.search-box select {
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    font-size: 15px;
    min-width: 150px;
    background: white;
}

.search-box button {
    background: #38bdf8;
    border: none;
    padding: 11px 18px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    color: #0f172a;
}

.search-box button:hover {
    background: #0ea5e9;
    color: white;
}

/* ================================
   PROPERTY CARD GRID
================================ */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
}

.card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-6px);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.card .p {
    padding: 14px;
}

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 8px;
    background: #0ea5e9;
    color: white;
    font-size: 13px;
}

.price {
    color: #16a34a;
    font-size: 17px;
    font-weight: bold;
    margin: 6px 0;
}

.contact-btn {
    background: #2563eb;
    color: white;
    padding: 8px 14px;
    border-radius: 8px;
    display: inline-block;
    font-weight: bold;
}

.contact-btn:hover {
    background: #1e40af;
}

/* ================================
   PROPERTY PAGE LAYOUT
================================ */
.back-btn {
    display: inline-block;
    margin-bottom: 15px;
    padding: 8px 14px;
    background: #e2e8f0;
    color: #1e293b;
    border-radius: 6px;
}

.property-container {
    display: flex;
    gap: 30px;
}

.property-container main { flex: 3; }
.property-container aside { flex: 1; }

/* ================================
   GALLERY
================================ */
#mainImage {
    width: 100%;
    height: 350px;
    border-radius: 12px;
    object-fit: cover;
    margin-bottom: 12px;
}

.thumbs img {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid #e0e7ff;
    margin-right: 6px;
}

.thumbs img:hover {
    border-color: #0ea5e9;
}

/* ================================
   PROPERTY DETAILS
================================ */
.property-price {
    font-size: 26px;
    font-weight: bold;
    color: #16a34a;
    margin-bottom: 10px;
}

/* ================================
   CONTACT OWNER BOX
================================ */
.contact-card {
    background: #f8fafc;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    text-align: center;
}

/* ================================
   POPUP FORM
================================ */
.popup-bg {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.popup {
    background: white;
    width: 350px;
    padding: 20px;
    border-radius: 12px;
}

.popup input,
.popup textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    margin-top: 8px;
}

.popup button {
    width: 100%;
    padding: 12px;
    background: #2563eb;
    color: white;
    border-radius: 8px;
    margin-top: 10px;
}

.popup button:hover {
    background: #1d4ed8;
}

/* ================================
   FOOTER
================================ */
footer {
    background: #0f172a;
    color: #cbd5e1;
    padding: 18px;
    text-align: center;
    margin-top: 40px;
}
/* ================================
   HEADER / NAVIGATION
================================ */
.site-header {
    background: #0f172a;
    border-bottom: 2px solid #38bdf8;
    padding: 12px 0;
}

.nav-inner {
    width: 60%;
    margin: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 24px;
    font-weight: 800;
    color: #38bdf8;
    text-decoration: none;
}

.logo span {
    color: #0ea5e9;
}

.nav-links {
    display: flex;
    gap: 12px;
    align-items: center;
}

.nav-btn {
    padding: 8px 14px;
    background: transparent;
    color: #e2e8f0;
    border-radius: 6px;
    text-decoration: none;
    transition: 0.2s;
}

.nav-btn:hover {
    background: #1e293b;
}

.nav-btn.primary {
    background: #0ea5e9;
    color: #0f172a;
    font-weight: bold;
}

.nav-btn.primary:hover {
    background: #38bdf8;
}

.user-name {
    color: #a5f3fc;
    font-size: 14px;
}
/* 🔷 Popup Background */
.popup-bg {
    position: fixed;
    display: none;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.55);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* 🔷 Popup Box */
.popup-box {
    background: #ffffff;
    width: 380px;
    padding: 25px;
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    text-align: center;
    animation: scaleIn 0.3s ease;
}

.popup-box {
    background: #0f172a;
    width: 380px;
    padding: 25px;
    border-radius: 16px;
    color: #e2e8f0;
    border: 2px solid #38bdf8;
    box-shadow: 0 4px 25px rgba(0,255,255,0.3);
}

.service-list li {
    background: rgba(56, 189, 248, 0.15);
    color: #bae6fd;
}

@media (max-width: 600px) {
    .grid {
        grid-template-columns: 1fr !important;
    }
    .card img {
        height: 180px !important;
    }
}
header nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}
header .btn {
    margin: 4px 5px;
}
/* ----------------------------
   Small Right-Side Slider Box
-----------------------------*/
.small-slider {
    width: 300px;           /* approx 6 inches on normal laptop */
    height: 300px;          /* 6 inches */
    position: absolute;
    top: 90px;              /* adjust based on header height */
    right: 30px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.4);
    background: #000;
    z-index: 999;
}

.small-slider .slides img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.small-slider .slides img.active {
    opacity: 1;
}

/* Mobile: hide slider */
@media (max-width: 768px) {
    .small-slider {
        display: none;
    }
}
/* ================================
   Floating Property Slideshow
   ================================ */
.floating-property {
    position: fixed;
    left: 18px;
    bottom: 90px;
    width: 110px;
    background: #020617;
    border-radius: 14px;
    overflow: hidden;
    cursor: pointer;
    z-index: 9999;
    box-shadow: 0 12px 30px rgba(0,0,0,0.35);
    transition: transform 0.3s ease;
}

.floating-property img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    transition: opacity 0.6s ease;
}

.floating-property span {
    display: block;
    text-align: center;
    font-size: 11px;
    padding: 6px;
    color: #e5e7eb;
    background: #0f172a;
}

.floating-property:hover {
    transform: translateY(-6px);

