/* ============================================================
   Hauzian.com — Custom Styles
   ============================================================ */

/* ── Global ── */
body {
    font-family: 'Lato', 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: #f5f7fb;
}

/* (topbar removed — phone moved into brand) */

/* ── Luxury Navbar ── */
.hz-navbar {
    background: #fff;
    border-bottom: 1px solid #e8e0d5;
    padding: 0;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
    z-index: 1030;
}

.hz-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.15;
    text-decoration: none !important;
    padding: .4rem 0;
}
.hz-brand-img {
    height: 48px;
    width: auto;
    display: block;
}
.hz-brand-phone {
    font-family: 'Lato', sans-serif;
    font-size: .72rem;
    font-weight: 700;
    color: #c5a55a;
    letter-spacing: .04em;
    margin-top: .15rem;
}

.hz-nav-link {
    font-family: 'Lato', sans-serif;
    font-size: .95rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #2c2c2c !important;
    padding: 1.3rem .9rem !important;
    position: relative;
    transition: color .2s;
}
.hz-nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: .9rem;
    right: .9rem;
    height: 2px;
    background: #c5a55a;
    transform: scaleX(0);
    transition: transform .22s ease;
}
.hz-nav-link:hover,
.hz-nav-link:focus { color: #c5a55a !important; }
.hz-nav-link:hover::after,
.hz-nav-link.show::after { transform: scaleX(1); }

/* Dropdown */
.hz-dropdown {
    border: none;
    border-top: 2px solid #c5a55a;
    border-radius: 0 0 6px 6px;
    box-shadow: 0 10px 28px rgba(0,0,0,.12);
    min-width: 230px;
    padding: .5rem 0;
    margin-top: 0 !important;
}
.hz-drop-header {
    font-family: 'Lato', sans-serif;
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #c5a55a;
    padding: .4rem 1rem .2rem;
}
.hz-dropdown .dropdown-item {
    font-family: 'Lato', sans-serif;
    font-size: .83rem;
    color: #333;
    padding: .5rem 1.1rem;
    transition: background .15s, color .15s;
}
.hz-dropdown .dropdown-item:hover {
    background: #faf7f2;
    color: #c5a55a;
}

/* Auth buttons */
.hz-btn-outline {
    border: 1.5px solid #2c2c2c !important;
    color: #2c2c2c !important;
    font-family: 'Lato', sans-serif;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    padding: .3rem .9rem !important;
    border-radius: 2px;
    background: transparent;
    transition: all .2s;
}
.hz-btn-outline:hover {
    background: #2c2c2c !important;
    color: #fff !important;
}
.hz-btn-solid {
    background: #c5a55a !important;
    color: #fff !important;
    border: 1.5px solid #c5a55a !important;
    font-family: 'Lato', sans-serif;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .09em;
    text-transform: uppercase;
    padding: .3rem .9rem !important;
    border-radius: 2px;
    transition: all .2s;
}
.hz-btn-solid:hover {
    background: #b8944a !important;
    border-color: #b8944a !important;
}

/* ── Luxury Footer ── */
.hz-footer {
    background: #1a1a1a;
    color: #999;
}
.hz-footer-logo-img {
    height: 60px;
    width: auto;
    display: block;
    filter: brightness(0) invert(1);
}
.hz-footer-sub {
    font-family: 'Lato', sans-serif;
    font-size: .6rem;
    letter-spacing: .26em;
    color: #8a7a6a;
    text-transform: uppercase;
}
.hz-footer h6 {
    font-family: 'Lato', sans-serif;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: #c5a55a;
    margin-bottom: .8rem;
}
.hz-footer a {
    color: #999;
    text-decoration: none;
    transition: color .2s;
}
.hz-footer a:hover { color: #c5a55a; }
.hz-footer .social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid #444;
    border-radius: 50%;
    color: #999;
    font-size: .95rem;
    margin-right: .35rem;
    transition: all .2s;
}
.hz-footer .social-links a:hover {
    border-color: #c5a55a;
    color: #c5a55a;
    background: rgba(197,165,90,.08);
}

/* ── Page Hero ── */
.hz-page-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 60%, #0f3460 100%);
    color: #fff;
    padding: 3.5rem 0;
}
.hz-page-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.4rem;
}
.hz-gold { color: #c5a55a; }
.hz-section-title {
    font-family: 'Playfair Display', serif;
}

/* ── Property Cards ── */
.property-card {
    border: none;
    transition: transform .18s ease, box-shadow .18s ease;
}

.property-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .14) !important;
}

.property-img {
    height: 210px;
    object-fit: cover;
    background: #e9ecef;
}

.price-badge {
    font-size: .8rem;
    letter-spacing: .01em;
}

/* ── Status Badges ── */
.status-badge-Active    { background-color: #198754 !important; color: #fff; }
.status-badge-Pending   { background-color: #ffc107 !important; color: #000; }
.status-badge-Closed    { background-color: #6c757d !important; color: #fff; }
.status-badge-Withdrawn { background-color: #dc3545 !important; color: #fff; }

/* ── Filter Bar ── */
.filter-panel {
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid #dee2e6;
}

/* ── Map ── */
.leaflet-container {
    font-family: inherit !important;
}

.price-marker {
    background: #c5a55a;
    color: #fff;
    font-weight: 700;
    font-size: .75rem;
    padding: 4px 9px;
    border-radius: 14px;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
    white-space: nowrap;
    cursor: pointer;
    transition: transform .1s, background .1s;
}

.price-marker:hover {
    background: #b8944a;
    transform: scale(1.08);
}

.price-marker.pending {
    background: #ffc107;
    color: #000;
}

/* ── Swiper Gallery ── */
.swiper-slide img {
    width: 100%;
    border-radius: 0;
}

.mySwiper2 .swiper-slide img {
    height: 440px;
    object-fit: cover;
}

.mySwiper .swiper-slide img {
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
    opacity: .65;
    cursor: pointer;
    transition: opacity .1s;
}

.mySwiper .swiper-slide-thumb-active img {
    opacity: 1;
    outline: 2px solid #c5a55a;
}

/* ── Detail Page ── */
.detail-section {
    border-left: 4px solid #c5a55a;
    padding-left: 14px;
    margin-bottom: 1.75rem;
}

.attribution-box {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    font-size: .72rem;
    line-height: 1.5;
}

/* ── Admin ── */
.stat-card {
    border-left: 4px solid #c5a55a;
    border-radius: 8px;
}

.log-row-Success { background: rgba(25, 135, 84, .06); }
.log-row-Failed  { background: rgba(220, 53, 69, .08); }
.log-row-Running { background: rgba(255, 193, 7, .1); }

/* ── Responsive ── */
@media (max-width: 991.98px) {
    /* Navbar: collapse menu has full-width links */
    .hz-nav-link {
        padding: .75rem 1rem !important;
        border-bottom: 1px solid #f0ebe3;
    }
    .hz-nav-link::after { display: none; }
    .hz-dropdown {
        border-top: none;
        border-left: 3px solid #c5a55a;
        box-shadow: none;
        margin-left: 1rem;
    }
    /* Auth buttons inline */
    .navbar-nav.gap-1 { flex-direction: row; flex-wrap: wrap; padding: .5rem 0; }

    /* Hero page title smaller on mobile */
    .hz-page-hero h1 { font-size: 1.75rem; }
    .hz-page-hero { padding: 2.5rem 0; }
}

@media (max-width: 768px) {
    /* Swiper gallery */
    .mySwiper2 .swiper-slide img { height: 250px; }

    /* Property grid: single column on small phones */
    .property-img { height: 180px; }

    /* Detail sidebar: full width below content on mobile */
    .col-lg-4 .card.sticky-top {
        position: static !important;
        max-height: none !important;
    }

    /* Contact form spacing */
    .card-body.p-md-5 { padding: 1.5rem !important; }

    /* Footer columns: 2-up on mobile */
    .hz-footer .col-lg-4 { margin-bottom: 1.5rem; }

    /* Breadcrumb truncate */
    .breadcrumb-item.active {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 200px;
    }

    /* Floating widget: smaller on mobile */
    #hz-contact-widget { width: 260px; }
}

@media (max-width: 480px) {
    .hz-brand-name { font-size: 1.25rem; }
    .hz-brand-sub { display: none; }
    .hz-brand-img { height: 38px; }
    .hz-brand-phone { font-size: .68rem; }

    /* Stack property filter dropdowns */
    #searchForm .row.g-2 > div { flex: 0 0 50%; max-width: 50%; }
    #searchForm .row.g-2 > div:last-child { flex: 0 0 100%; max-width: 100%; }

    /* Full width tour modal on small screen */
    .modal-dialog { margin: .5rem; }
}
