:root {
    --prop-primary: #2563eb;
    --prop-primary-light: #eff6ff;
    --prop-primary-hover: #1d4ed8;
    --prop-secondary: #059669;
    --prop-secondary-light: #ecfdf5;
    --prop-dark: #0f172a;
    --prop-muted: #64748b;
    --prop-border: #e2e8f0;
    --prop-bg: #f8fafc;
    --prop-radius-lg: 16px;
    --prop-radius-md: 10px;
    --prop-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.08);
    --prop-shadow-hover: 0 20px 40px -15px rgba(37, 99, 235, 0.15);
}

/* --- Themes Setup --- */
.prop-theme-white {
    --prop-primary: #2563eb;
    --prop-primary-light: #eff6ff;
    --prop-primary-hover: #1d4ed8;
    --prop-secondary: #059669;
    --prop-secondary-light: #ecfdf5;
    --prop-dark: #0f172a;
    --prop-muted: #64748b;
    --prop-border: #cbd5e1;
    --prop-bg: #f3f4f6;
    --prop-shadow-color: rgba(0, 0, 0, 0.05);
    --prop-shadow-hover: 0 20px 40px -15px rgba(0, 0, 0, 0.08);

    /* Navbar */
    --prop-nav-bg: #f8fafc;
    --prop-nav-color: #334155;
    --prop-nav-hover-color: #2563eb;
    --prop-logo-color: #0f172a;
    --prop-logo-accent: #2563eb;
    --prop-nav-border: #e2e8f0;
    --prop-nav-btn-bg: #ffffff;
    --prop-nav-btn-color: #2563eb;

    /* Hero */
    --prop-hero-bg: #f3f4f6;
    --prop-hero-color: #0f172a;
    --prop-hero-sub-color: #64748b;
    --prop-hero-gradient: none;
    --prop-tab-color: #64748b;

    /* Sticky Search Bar */
    --prop-sticky-bg: #2563eb;
    --prop-sticky-color: #ffffff;
    --prop-sticky-input-bg: #ffffff;
    --prop-sticky-submit-color: #2563eb;

    /* Footer */
    --prop-footer-bg: #0f172a;
    --prop-footer-color: #94a3b8;
    --prop-footer-title-color: #ffffff;
}

.prop-theme-green {
    --prop-primary: #15803d; /* Mid Green */
    --prop-primary-light: #f0fdf4; /* Light Green */
    --prop-primary-hover: #166534; /* Darker Green */
    --prop-secondary: #047857; /* Emerald */
    --prop-secondary-light: #ecfdf5;
    --prop-dark: #14532d; /* Very Dark Forest Green */
    --prop-muted: #4b5563; /* Muted slate/grey */
    --prop-border: #cbd5e1;
    --prop-bg: #f4faf6; /* Nature / Earthy soft minty page background */
    --prop-shadow-color: rgba(21, 128, 61, 0.2);
    --prop-shadow-hover: 0 20px 40px -15px rgba(21, 128, 61, 0.15);

    /* Navbar */
    --prop-nav-bg: #ffffff;
    --prop-nav-color: #334155;
    --prop-nav-hover-color: #15803d;
    --prop-logo-color: #14532d;
    --prop-logo-accent: #15803d;
    --prop-nav-border: #e2e8f0;
    --prop-nav-btn-bg: transparent;
    --prop-nav-btn-color: #15803d;

    /* Hero */
    --prop-hero-bg: #ebf5ee; /* Nature/Earthy soft hero background */
    --prop-hero-color: #14532d;
    --prop-hero-sub-color: #4b5563;
    --prop-hero-gradient: radial-gradient(circle at 70% 30%, rgba(21, 128, 61, 0.08) 0%, transparent 60%);
    --prop-tab-color: #4b5563;

    /* Sticky Search Bar */
    --prop-sticky-bg: #15803d;
    --prop-sticky-color: #ffffff;
    --prop-sticky-input-bg: #ffffff;
    --prop-sticky-submit-color: #15803d;

    /* Footer */
    --prop-footer-bg: #14532d; /* Forest Green footer */
    --prop-footer-color: #d1d5db;
    --prop-footer-title-color: #ffffff;
}

/* --- Background Decorative Leaves (Green Theme) --- */
.prop-decor-leaves {
    position: absolute;
    width: 200px;
    height: 200px;
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.prop-decor-left {
    left: 10px;
    top: 250px;
}

.prop-decor-right {
    right: 10px;
    top: 250px;
}

.prop-decor-right svg {
    transform: scaleX(-1);
}

.prop-theme-green .prop-decor-leaves {
    opacity: 0.85;
}

.prop-decor-leaves svg {
    width: 100%;
    height: 100%;
    filter: blur(1px);
}

.prop-theme-green.prop-portal-wrapper {
    background-image: url('/az_publick_propery/static/src/img/leaves_decor.png'), url('/az_publick_propery/static/src/img/leaves_decor.png');
    background-repeat: no-repeat, no-repeat;
    background-position: left -40px top 220px, right -40px top 220px;
    background-size: 220px 220px, 220px 220px;
}

.prop-portal-wrapper {
    font-family: 'Plus Jakarta Sans', sans-serif !important;
    background-color: var(--prop-bg);
    min-height: 100vh;
}

/* Header & Banner styling */
.prop-hero {
    background: var(--prop-hero-bg, #ffffff);
    color: var(--prop-hero-color, var(--prop-dark));
    padding: 40px 0 50px 0;
    text-align: center;
    position: relative;
    overflow: visible;
    border-bottom: none;
}

.prop-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--prop-hero-gradient, radial-gradient(circle at 70% 30%, rgba(37, 99, 235, 0.08) 0%, transparent 60%));
    pointer-events: none;
}

.prop-hero h1 {
    font-weight: 800;
    font-size: 2.25rem;
    letter-spacing: -0.03em;
    margin-bottom: 15px;
}

.prop-hero p {
    font-size: 1.15rem;
    color: var(--prop-hero-sub-color, var(--prop-muted));
    max-width: 600px;
    margin: 0 auto 30px auto;
}

/* Old search container kept for backward compat but hidden */
.prop-search-container {
    display: none;
}

/* ── Hero inline search styles ─────────────────────────────── */

/* Tab row — centered, all items in one line */
.prop-purpose-tabs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

/* Buy / Rent tab buttons */
.prop-tab-btn {
    background: transparent;
    border: none;
    color: var(--prop-tab-color, #64748b);
    font-size: 1.05rem;
    font-weight: 600;
    padding: 10px 22px;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
    letter-spacing: 0.01em;
    line-height: 1;
}

.prop-tab-btn:hover {
    color: var(--prop-primary);
}

.prop-tab-btn.active {
    color: var(--prop-primary);
    border-bottom-color: var(--prop-primary);
}

/* Separator pipe between Rent and Post Free Ad */
.prop-tab-sep {
    color: var(--prop-border);
    font-size: 1.1rem;
    padding: 0 14px;
    line-height: 1;
    user-select: none;
}

/* Post Free Property Ad — styled like the reference image */
.prop-tab-post-btn {
    color: var(--prop-primary);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    padding: 8px 18px;
    border: 1.5px solid var(--prop-primary);
    border-radius: 22px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.prop-tab-post-btn:hover {
    background: var(--prop-primary-light);
    color: var(--prop-primary-hover);
    border-color: var(--prop-primary-hover);
    text-decoration: none;
}

/* Single inline search bar — pill shape */
.prop-hero-searchbar {
    display: flex;
    align-items: center;
    background: #fff;
    border-radius: 50px;
    box-shadow: var(--prop-shadow);
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 7px 7px 7px 24px;
    max-width: 820px;
    margin: 0 auto;
    gap: 0;
    position: relative;
    z-index: 20;
}

.prop-hero-field {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
    padding: 6px 16px 6px 4px;
    cursor: pointer;
}

.prop-hero-field-city {
    padding-left: 0;
    flex: 1.3;
}

.prop-hero-icon {
    color: var(--prop-primary);
    font-size: 1rem;
    margin-right: 8px;
    flex-shrink: 0;
}

.prop-hero-select {
    border: none;
    outline: none;
    background: transparent;
    font-size: 0.95rem;
    font-weight: 500;
    color: #1a202c;
    width: 100%;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    padding-right: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23718096'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 4px center;
}

.prop-hero-divider {
    width: 1px;
    height: 34px;
    background: rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
    margin: 0 6px;
}

.prop-hero-search-btn {
    background: var(--prop-primary);
    color: #fff;
    border: none;
    border-radius: 40px;
    padding: 14px 34px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s ease, transform 0.15s ease;
    letter-spacing: 0.02em;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.prop-hero-search-btn:hover {
    background: var(--prop-primary-hover);
    transform: scale(1.03);
}

/* ── End hero search styles ─────────────────────────────────── */


.prop-form-control {
    border-radius: var(--prop-radius-md);
    border: 1px solid var(--prop-border);
    padding: 12px 16px;
    font-size: 0.95rem;
    color: var(--prop-dark);
    transition: all 0.2s ease-in-out;
}

.prop-form-control:focus {
    border-color: var(--prop-primary);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    outline: none;
}

.prop-btn-primary {
    background-color: var(--prop-primary);
    color: white !important;
    border-radius: var(--prop-radius-md);
    padding: 12px 24px;
    font-weight: 600;
    border: none;
    transition: all 0.2s ease;
}

.prop-btn-primary:hover {
    background-color: var(--prop-primary-hover);
    transform: translateY(-2px);
}

.prop-btn-secondary {
    background-color: var(--prop-primary-light);
    color: var(--prop-primary) !important;
    border-radius: var(--prop-radius-md);
    padding: 12px 24px;
    font-weight: 600;
    border: none;
    transition: all 0.2s ease;
}

.prop-btn-secondary:hover,
.prop-btn-secondary:focus,
.prop-btn-secondary:active,
.prop-btn-outline:hover,
.prop-btn-outline:focus,
.prop-btn-outline:active,
.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active,
a.prop-btn-secondary:hover,
a.prop-btn-outline:hover,
a.btn-outline-primary:hover {
    background: #eff6ff !important;
    background-color: #eff6ff !important;
    color: var(--prop-primary) !important;
    border-color: var(--prop-primary) !important;
    text-decoration: underline !important;
    transform: translateY(-2px);
    opacity: 1 !important;
    box-shadow: none !important;
}


.prop-btn-solid {
    background-color: var(--prop-primary) !important;
    border: 2px solid var(--prop-primary) !important;
    color: #ffffff !important;
    transition: all 0.2s ease;
}

.prop-btn-solid:hover {
    background-color: var(--prop-primary-hover) !important;
    border-color: var(--prop-primary-hover) !important;
}

/* Property card styling */
.prop-card {
    background: white;
    border-radius: var(--prop-radius-lg);
    border: 1px solid var(--prop-border);
    overflow: hidden;
    box-shadow: var(--prop-shadow);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.prop-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--prop-shadow-hover);
    border-color: rgba(37, 99, 235, 0.2);
}

.prop-card-img-wrapper {
    position: relative;
    padding-top: 65%;
    overflow: hidden;
    background-color: #f1f5f9;
}

.prop-card-img {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.prop-card:hover .prop-card-img {
    transform: scale(1.06);
}

.prop-badge-type {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(15, 23, 42, 0.85);
    color: white;
    padding: 6px 12px;
    border-radius: 30px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    backdrop-filter: blur(4px);
}

.prop-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.prop-card-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--prop-primary);
    margin-bottom: 8px;
}

.prop-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--prop-dark);
    line-height: 1.4;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 44px;
}

.prop-card-location {
    font-size: 0.88rem;
    color: var(--prop-muted);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.prop-card-specs {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-top: 15px;
    border-top: 1px solid var(--prop-border);
    margin-top: auto;
    font-size: 0.85rem;
    color: var(--prop-muted);
}

.prop-spec-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Detail page styling */
.prop-detail-header {
    background: white;
    padding: 30px 0;
    border-bottom: 1px solid var(--prop-border);
    margin-bottom: 40px;
}

.prop-detail-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--prop-dark);
}

.prop-detail-gallery {
    margin-bottom: 30px;
}

.prop-gallery-main {
    position: relative;
    background-color: #f1f5f9;
    border-radius: 12px;
    overflow: hidden;
}

.prop-gallery-main img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    display: block;
}

.prop-gallery-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.prop-gallery-thumb {
    width: 80px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s ease, transform 0.15s ease;
    flex-shrink: 0;
}

.prop-gallery-thumb.active, .prop-gallery-thumb:hover {
    border-color: var(--prop-primary);
    transform: scale(1.05);
}

.prop-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.prop-info-card {
    background: white;
    border-radius: var(--prop-radius-lg);
    border: 1px solid var(--prop-border);
    padding: 30px;
    box-shadow: var(--prop-shadow);
    margin-bottom: 30px;
}

.prop-contact-card {
    background: linear-gradient(135deg, var(--prop-dark) 0%, #1e293b 100%);
    color: white;
    border-radius: var(--prop-radius-lg);
    padding: 30px;
    box-shadow: var(--prop-shadow);
    position: sticky;
    top: 100px;
}

.prop-contact-btn-whatsapp {
    background-color: #25d366 !important;
    color: white !important;
    border: none;
    border-radius: var(--prop-radius-md);
    padding: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.prop-contact-btn-whatsapp:hover {
    background-color: #128c7e !important;
    transform: translateY(-2px);
}

.prop-contact-btn-phone {
    background-color: var(--prop-primary) !important;
    color: white !important;
    border: none;
    border-radius: var(--prop-radius-md);
    padding: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.prop-contact-btn-phone:hover {
    background-color: var(--prop-primary-hover) !important;
    transform: translateY(-2px);
}

/* Register form styling */
.prop-register-card {
    background: white;
    border-radius: 24px;
    border: 1px solid var(--prop-border);
    box-shadow: var(--prop-shadow);
    padding: 40px;
    margin-top: 30px;
    margin-bottom: 60px;
}

.prop-section-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--prop-dark);
    margin-bottom: 24px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--prop-primary-light);
    display: flex;
    align-items: center;
    gap: 8px;
}

.prop-upload-zone {
    border: 2px dashed var(--prop-border);
    border-radius: var(--prop-radius-lg);
    padding: 30px;
    text-align: center;
    background: var(--prop-bg);
    cursor: pointer;
    transition: all 0.2s ease;
}

.prop-upload-zone:hover {
    border-color: var(--prop-primary);
    background: var(--prop-primary-light);
}

.prop-upload-icon {
    font-size: 2.5rem;
    color: var(--prop-primary);
    margin-bottom: 12px;
}

/* Float Alert Custom */
.prop-alert-success {
    background-color: var(--prop-secondary-light);
    border-left: 5px solid var(--prop-secondary);
    color: var(--prop-secondary);
    border-radius: var(--prop-radius-md);
    padding: 16px;
    margin-bottom: 24px;
    font-weight: 500;
}

/* Horizontal Card Custom Styles */
.prop-card-horizontal {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.prop-card-horizontal:hover {
    transform: translateY(-5px);
    box-shadow: var(--prop-shadow-hover) !important;
    border-color: rgba(37, 99, 235, 0.2) !important;
}
.prop-card-h-img-wrapper img {
    transition: transform 0.5s ease;
}
.prop-card-horizontal:hover .prop-card-h-img-wrapper img {
    transform: scale(1.05);
}

/* ── Property Card Image Slider ─────────────────────────────────────────────── */

/* Outer container — clips everything to the image wrapper bounds */
.prop-img-slider {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: 0;  /* inherits parent rounding */
    background: #1a202c;
    cursor: grab;
}
.prop-img-slider:active {
    cursor: grabbing;
}

/* Sliding strip that holds all slide divs side-by-side */
.prop-slider-track {
    display: flex;
    height: 100%;
    will-change: transform;
    transition: transform 0.42s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Each individual slide — same width as the wrapper */
.prop-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}
.prop-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
    transition: transform 0.5s ease;
}
.prop-img-slider:hover .prop-slide img {
    transform: scale(1.04);
}

/* Prev / Next arrow buttons — always visible */
.prop-slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
    border: 1.5px solid rgba(255,255,255,0.55);
    border-radius: 50%;
    width: 30px;
    height: 30px;
    font-size: 0.78rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;                          /* always visible */
    transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
.prop-slider-prev {
    left: 8px;
}
.prop-slider-next {
    right: 8px;
}
.prop-slider-btn:hover {
    background: rgba(255, 255, 255, 0.42);
    border-color: rgba(255,255,255,0.9);
    transform: translateY(-50%) scale(1.12);
}
.prop-slider-btn:active {
    transform: translateY(-50%) scale(0.93);
}

/* Dot indicators at the bottom */
.prop-slider-dots {
    position: absolute;
    bottom: 28px;   /* sits just above the "Posted:" date text */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
    z-index: 10;
    pointer-events: none;
}
.prop-slider-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(255,255,255,0.6);
    transition: background 0.25s ease, transform 0.25s ease;
    pointer-events: all;
    cursor: pointer;
}
.prop-slider-dot.active {
    background: #fff;
    transform: scale(1.4);
}

/* ── End Property Card Image Slider ──────────────────────────────────────────── */

/* Gutter Ads styling */
.prop-gutter-ad {
    position: fixed;
    top: 220px;
    width: 240px;
    z-index: 100;
}
.prop-gutter-ad-left {
    left: 20px;
    width: 200px !important;
}
.prop-gutter-ad-left .prop-ad-vertical,
.prop-gutter-ad-left .prop-ad-banner {
    width: 200px !important;
    height: 450px !important;
    max-height: 450px !important;
}
.prop-gutter-ad-left .prop-ad-vertical-img,
.prop-gutter-ad-left .prop-ad-banner img {
    width: 200px !important;
    height: 450px !important;
    max-height: 450px !important;
    object-fit: contain !important;
}
.prop-gutter-ad-right {
    right: 20px;
}
.prop-gutter-ad img {
    box-shadow: var(--prop-shadow);
    border: 1px solid var(--prop-border);
    background: #fff;
    transition: transform 0.2s ease;
}
.prop-gutter-ad img:hover {
    transform: scale(1.03);
}

@media (max-width: 1340px) {
    .prop-gutter-ad {
        display: none !important;
    }
}

/* ─── Vertical / Skyscraper Ad Card ──────────────────────────────────────── */

.prop-ad-vertical {
    width: 240px;
    height: 500px !important;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px -8px rgba(0, 0, 0, 0.22);
    background: #fff;
    cursor: pointer;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.prop-ad-vertical:hover {
    box-shadow: 0 16px 48px -10px rgba(0, 0, 0, 0.32);
    transform: translateY(-3px);
}

/* The anchor / div wrapper fills the card */
.prop-ad-vertical-link {
    display: block;
    position: relative;
    text-decoration: none;
    height: 100% !important;
}

/* Portrait image: fills full width, natural portrait height */
.prop-ad-vertical-img {
    width: 240px !important;
    height: 500px !important;
    object-fit: contain !important;
    display: block;
    border-radius: 12px !important;
    border: none !important;
    background: #fff !important;
    box-shadow: none !important;
    transition: transform 0.4s ease;
}

.prop-ad-vertical:hover .prop-ad-vertical-img {
    transform: scale(1.03);
}

/* Smooth dark gradient overlay, revealed on hover */
.prop-ad-vertical-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        transparent 50%,
        rgba(10, 15, 30, 0.72) 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 12px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 18px;
}

.prop-ad-vertical:hover .prop-ad-vertical-overlay {
    opacity: 1;
}

/* "View Ad" pill button inside the overlay */
.prop-ad-vertical-cta {
    background: rgba(255, 255, 255, 0.15);
    border: 1.5px solid rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(6px);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 6px 18px;
    border-radius: 30px;
    transition: background 0.2s ease;
}

.prop-ad-vertical:hover .prop-ad-vertical-cta {
    background: rgba(255, 255, 255, 0.28);
}

/* Tiny "Ad" badge — top-right corner */
.prop-ad-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(4px);
    color: #fff;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 2px 7px;
    border-radius: 20px;
    text-transform: uppercase;
    pointer-events: none;
    z-index: 10;
}

/* ── Hide Odoo Default Header & Footer on Property Portal Pages ───────────────── */
#wrapwrap > header,
#wrapwrap > footer,
header[data-name="Header"],
footer[data-name="Footer"] {
    display: none !important;
}

/* Ensure Odoo body layout fits our custom navbar */
#wrapwrap {
    padding-top: 0 !important;
}

/* ── Custom Navbar ───────────────────────────────────────────────────────────── */
.prop-custom-navbar {
    background-color: var(--prop-nav-bg, #0f172a);
    border-bottom: 1px solid var(--prop-nav-border, #1e293b);
    position: relative;
    z-index: 999;
    padding: 0 24px;
    height: 72px;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.03), 0 2px 4px -1px rgba(0,0,0,0.02);
}

.prop-nav-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.prop-nav-logo {
    font-size: 1.45rem;
    font-weight: 800;
    color: var(--prop-logo-color, #ffffff) !important;
    text-decoration: none !important;
    letter-spacing: -0.02em;
}

.prop-logo-accent {
    color: var(--prop-logo-accent, #e53e3e);
}

.prop-nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.prop-nav-link {
    color: var(--prop-nav-color, #94a3b8) !important;
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none !important;
    padding: 10px 16px;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
}

.prop-nav-link:hover {
    color: var(--prop-nav-hover-color, #ffffff) !important;
    background-color: var(--prop-primary-light, rgba(255, 255, 255, 0.05));
}

.prop-badge-new {
    background-color: var(--prop-primary);
    color: #ffffff;
    font-size: 9px;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 4px;
    margin-left: 6px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.prop-nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.prop-nav-post-btn {
    background-color: var(--prop-nav-btn-bg, #ffffff);
    color: var(--prop-nav-btn-color, #0f172a) !important;
    font-size: 0.88rem;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 30px;
    border: 1.5px solid var(--prop-nav-btn-color, transparent);
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

.prop-nav-post-btn:hover {
    background-color: var(--prop-primary-light, #f1f5f9);
    color: var(--prop-primary-hover, #0f172a) !important;
    border-color: var(--prop-primary-hover, transparent);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

.prop-post-free-badge {
    background-color: #10b981;
    color: #ffffff;
    font-size: 9px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}

.prop-nav-icon-btn {
    color: var(--prop-nav-color, #94a3b8) !important;
    font-size: 1.25rem;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    text-decoration: none !important;
}

.prop-nav-icon-btn:hover {
    color: var(--prop-nav-hover-color, #ffffff) !important;
    background-color: var(--prop-primary-light, rgba(255, 255, 255, 0.05));
}

.prop-profile-btn {
    position: relative;
}

.prop-profile-dot {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 7px;
    height: 7px;
    background-color: var(--prop-primary);
    border-radius: 50%;
    border: 1.5px solid var(--prop-nav-bg, #0f172a);
}

.prop-hamburger-btn {
    display: none;
}

/* Mobile Drawer */
.prop-mobile-menu-drawer {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background-color: var(--prop-nav-bg, #0f172a);
    border-bottom: 1px solid var(--prop-nav-border, #1e293b);
    padding: 16px 24px;
    gap: 12px;
    z-index: 998;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.prop-mobile-menu-drawer.active {
    display: flex;
}

.prop-mobile-link {
    color: var(--prop-nav-color, #94a3b8) !important;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none !important;
    padding: 10px 0;
    border-bottom: 1px solid var(--prop-nav-border, #1e293b);
}

.prop-mobile-link:last-of-type {
    border-bottom: none;
}

.prop-mobile-post-btn {
    background-color: var(--prop-nav-btn-bg, #ffffff);
    color: var(--prop-nav-btn-color, #0f172a) !important;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 12px;
    border: 1.5px solid var(--prop-nav-btn-color, transparent);
    border-radius: 10px;
    text-align: center;
    text-decoration: none !important;
    margin-top: 8px;
}

/* ── Sticky Search Header (Reference Image Recreated) ────────────────────────── */
.prop-sticky-search-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 64px;
    background-color: var(--prop-sticky-bg, #0059b3);
    z-index: 1000;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.prop-sticky-search-bar.visible {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.prop-sticky-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.prop-sticky-form {
    display: flex;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.prop-sticky-location-select {
    display: flex;
    align-items: center;
    min-width: 100px;
}

.prop-sticky-select {
    border: none;
    outline: none;
    background: transparent;
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--prop-sticky-color, #ffffff);
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    padding-right: 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23ffffff'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right center;
}

.prop-sticky-search-group {
    display: flex;
    align-items: center;
    background-color: var(--prop-sticky-input-bg, #ffffff);
    border-radius: 4px;
    padding: 4px 4px 4px 16px;
    flex-grow: 1;
    max-width: 800px;
}

.prop-sticky-purpose-select {
    display: flex;
    align-items: center;
}

.prop-sticky-select-inner {
    border: none;
    outline: none;
    background: transparent;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--prop-dark, #334155);
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    padding-right: 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23475569'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right center;
}

.prop-sticky-divider {
    width: 1px;
    height: 20px;
    background-color: var(--prop-border);
    margin: 0 12px;
}

.prop-sticky-input {
    border: none;
    outline: none;
    font-size: 0.88rem;
    color: #1e293b;
    width: 100%;
    padding: 6px 0;
    background: transparent;
}

.prop-sticky-input::placeholder {
    color: #94a3b8;
}

.prop-sticky-icons {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-right: 12px;
}

.prop-sticky-icon-item {
    color: var(--prop-primary);
    font-size: 1.05rem;
    cursor: pointer;
    padding: 4px;
    transition: opacity 0.2s;
}

.prop-sticky-icon-item:hover {
    opacity: 0.7;
}

.prop-sticky-submit-btn {
    background: transparent;
    border: none;
    color: var(--prop-dark, #334155);
    font-size: 1.15rem;
    padding: 6px 12px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.prop-sticky-submit-btn:hover {
    color: var(--prop-primary);
}

/* ── Custom Footer ───────────────────────────────────────────────────────────── */
.prop-custom-footer {
    background-color: var(--prop-footer-bg, #0f172a);
    color: var(--prop-footer-color, #94a3b8);
    border-top: 1px solid var(--prop-nav-border, #1e293b);
    padding: 60px 0 30px 0;
    font-size: 0.9rem;
}

.prop-footer-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.prop-footer-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--prop-footer-title-color, #ffffff);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.prop-footer-text {
    line-height: 1.6;
}

.prop-footer-title {
    color: var(--prop-footer-title-color, #ffffff);
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 20px;
}

.prop-footer-links {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.prop-footer-links li {
    margin-bottom: 12px;
}

.prop-footer-links a {
    color: var(--prop-footer-color, #94a3b8) !important;
    text-decoration: none !important;
    transition: color 0.2s ease;
}

.prop-footer-links a:hover {
    color: var(--prop-footer-title-color, #ffffff) !important;
}

.prop-footer-contact {
    list-style: none;
    padding-left: 0;
}

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

.prop-footer-bottom {
    border-top: 1px solid var(--prop-nav-border, #1e293b);
}

/* ── Responsive Styling ──────────────────────────────────────────────────────── */
@media (max-width: 991px) {
    .prop-nav-menu {
        display: none;
    }
    .prop-nav-actions .prop-nav-post-btn,
    .prop-nav-actions .prop-nav-icon-btn:not(.prop-hamburger-btn) {
        display: none;
    }
    .prop-hamburger-btn {
        display: inline-flex;
    }
    
    .prop-sticky-container {
        padding: 0 16px;
    }
    .prop-sticky-location-select {
        display: none;
    }
}

/* Collapsible specs chevron icon rotation */
button[aria-expanded="true"] .prop-collapse-icon {
    transform: rotate(180deg);
}

/* Horizontal Card Image Wrapper Style */
.prop-card-h-img-wrapper {
    width: 100%;
    max-width: 280px;
    height: 180px;
    min-height: 180px;
    background: #f8f9fa;
    flex-shrink: 0;
}

@media (max-width: 767.98px) {
    .prop-card-h-img-wrapper {
        max-width: 100% !important;
        height: 200px !important;
    }
}

/* Mobile responsive specifications grid and stacked action buttons */
@media (max-width: 575.98px) {
    /* Make specs grid-based to fit perfectly */
    .prop-spec-box .border-start {
        border-left: none !important;
        padding-left: 0 !important;
    }
    
    .prop-spec-box .d-flex.align-items-center.flex-grow-1,
    .prop-spec-box .collapse .d-flex.align-items-center.justify-content-start {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    
    /* Make footer description and actions stack vertically */
    .prop-card-h-body .d-flex.justify-content-between.align-items-end {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
    }
    
    .prop-card-h-body .d-flex.gap-2.flex-shrink-0 {
        width: 100% !important;
        justify-content: stretch !important;
    }
    
    .prop-card-h-body .d-flex.gap-2.flex-shrink-0 a {
        flex: 1 !important;
        text-align: center !important;
    }
    
    .prop-card-h-body p.text-muted {
        width: 100% !important;
        max-width: 100% !important;
        padding-right: 0 !important;
        margin-bottom: 4px !important;
    }
}

/* Lightbox Modal styles */
.prop-lightbox-modal {
    position: fixed;
    z-index: 999999;
    padding-top: 50px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.95);
    user-select: none;
}

.prop-lightbox-close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 1000000;
}

.prop-lightbox-close:hover,
.prop-lightbox-close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

.prop-lightbox-content-wrapper {
    position: relative;
    margin: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 80%;
    max-width: 1200px;
    height: 75vh;
}

.prop-lightbox-slide-container {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.prop-lightbox-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 4px;
}

/* Next & prev buttons */
.prop-lightbox-prev,
.prop-lightbox-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white !important;
    font-weight: bold;
    font-size: 24px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0, 0, 0, 0.5);
    text-decoration: none !important;
    z-index: 100000;
}

.prop-lightbox-prev {
    left: 0;
    border-radius: 3px 0 0 3px;
}

/* Position the "next button" to the right */
.prop-lightbox-next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prop-lightbox-prev:hover,
.prop-lightbox-next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.prop-lightbox-controls {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    z-index: 100000;
}

/* Compact search header shown when search is active */
.prop-hero-compact {
    padding: 15px 0 !important;
    background: var(--prop-primary) !important; /* solid primary color header like the red header in Magicbricks! */
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
.prop-hero-compact::before {
    display: none !important; /* hide radial gradient overlay */
}
.prop-hero-compact .prop-hero-searchbar {
    background: #ffffff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    border: none;
    max-width: 900px;
}

/* ── Mobile Responsive (≤768px) — Portal Pages ──────────────────────────────── */
@media (max-width: 768px) {
    .prop-hero { padding: 28px 0 32px 0; }
    .prop-hero h1 { font-size: 1.6rem; padding: 0 16px; }
    .prop-hero p { font-size: 0.95rem; padding: 0 16px; }

    .prop-hero-searchbar {
        flex-direction: column;
        border-radius: 16px;
        padding: 14px 14px 8px 14px;
        gap: 0;
        margin: 0 16px;
    }
    .prop-hero-divider { display: none; }
    .prop-hero-field {
        width: 100%;
        padding: 10px 4px;
        border-bottom: 1px solid rgba(0,0,0,0.07);
    }
    .prop-hero-field:last-of-type { border-bottom: none; }
    .prop-hero-search-btn {
        width: 100%;
        justify-content: center;
        border-radius: 12px;
        padding: 14px;
        margin-top: 8px;
    }

    .prop-purpose-tabs { flex-wrap: wrap; gap: 4px; padding: 0 16px; }
    .prop-tab-btn { font-size: 0.9rem; padding: 8px 12px; }
    .prop-tab-sep { display: none; }
    .prop-tab-post-btn { font-size: 0.82rem; padding: 6px 12px; }

    .prop-card-horizontal { flex-direction: column !important; }
    .prop-card-h-img-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        height: 220px !important;
        min-height: 220px !important;
    }

    .prop-detail-title { font-size: 1.5rem; }
    .prop-gallery-main img { max-height: 280px; }
    .prop-contact-card { position: relative; top: auto; margin-top: 24px; }
    .prop-info-card { padding: 20px 16px; }

    .prop-register-card { padding: 22px 14px; border-radius: 16px; margin-left: 0; margin-right: 0; }

    .prop-custom-navbar { padding: 0 14px; }
    .prop-mobile-menu-drawer { padding: 10px 14px; }
    .prop-custom-footer { padding: 40px 0 20px 0; }
    .prop-footer-container { padding: 0 14px; }

    .prop-sticky-form { gap: 8px; }
    .prop-sticky-search-group { padding: 4px 4px 4px 10px; }
}

/* ── Extra-small (≤576px) ───────────────────────────────────────────────────── */
@media (max-width: 576px) {
    .prop-hero h1 { font-size: 1.35rem; }
    .prop-card-specs { flex-wrap: wrap; gap: 10px; }
    .prop-gallery-thumb { width: 60px; height: 46px; }
    .prop-section-title { font-size: 1.05rem; }
    .prop-contact-btn-whatsapp, .prop-contact-btn-phone { font-size: 0.9rem; padding: 12px; }
    .prop-upload-zone { padding: 18px 12px; }
    .breadcrumb { font-size: 0.78rem; flex-wrap: wrap; }
    .page-link { padding: 5px 9px; font-size: 0.82rem; }
}
