/* ===============================
   GLOBAL THEME – MYROOMS (Logo colors)
================================ */

:root {
    /* Brand (logo) */
    --brand-green-dark: #2F4F3E;
    --brand-green-light: #9BC97D;
    --brand-gold: #C2913D;
    /* Base */
    --bg-offwhite: #F7F6F2;
    --text-dark: #1F2933;
    --text-muted: #6B7280;
    /* Legacy aliases */
    --primary: #2F4F3E;
    --dark: #1F2933;
    --light: #F7F6F2;
    --gray: #6B7280;
    --border: #e5e7eb;
}

/* RESET / BODY – navbar upar chipka (desktop + mobile dono) */
html,
body {
    margin-top: 0;
    padding-top: 0;
}
body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text-dark);
    background: var(--bg-offwhite);
    line-height: 1.6;
    padding-top: 0;
}

/* HEADINGS */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-dark);
}

/* LINKS */
a {
    text-decoration: none;
    color: inherit;
}

/* PRIMARY BUTTONS = dark green */
.btn-primary {
    background: var(--brand-green-dark);
    border-color: var(--brand-green-dark);
    font-weight: 500;
    border-radius: 8px;
}

.btn-primary:hover {
    background: var(--brand-green-light);
    border-color: var(--brand-green-light);
    color: var(--text-dark);
}

/* SUCCESS = green (login etc) */
.btn-success {
    background: var(--brand-green-dark);
    border-color: var(--brand-green-dark);
}

.btn-success:hover {
    background: var(--brand-green-light);
    border-color: var(--brand-green-light);
    color: var(--text-dark);
}

/* ACCENT / SPONSORED / PRICING = gold */
.badge.bg-info.sponsored,
.text-accent,
.badge.bg-warning.text-dark {
    background-color: var(--brand-gold) !important;
    border-color: var(--brand-gold);
}

/* FORM CONTROLS */
form .form-control {
    border-radius: 8px;
    border: 1px solid var(--border);
    padding: 10px 12px;
}

form .form-control:focus {
    border-color: var(--brand-green-dark);
    box-shadow: 0 0 0 3px rgba(47, 79, 62, 0.15);
}

/* THEME ALERTS */
.alert-success {
    background-color: rgba(155, 201, 125, 0.2);
    border-color: var(--brand-green-light);
    color: var(--text-dark);
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.08);
    border-color: #dc3545;
}

.alert-warning {
    background-color: rgba(194, 145, 61, 0.15);
    border-color: var(--brand-gold);
}

/* NAVBAR */
.navbar-brand span {
    font-size: 1.25rem;
    letter-spacing: 0.3px;
}

.nav-link {
    font-weight: 500;
    color: var(--text-dark) !important;
}

.nav-link:hover {
    color: var(--brand-green-dark) !important;
}

/* PAGE WRAPPER */
.page-wrapper {
    padding-top: 20px;
}

/* PROPERTY CARD */
.property-card {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.25s ease;
}

.property-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.property-card img {
    height: 200px;
    object-fit: cover;
}

.property-card h6 {
    font-size: 1rem;
    margin-bottom: 4px;
}

.property-card small {
    color: var(--text-muted);
}

/* FOOTER */
footer {
    border-top: 1px solid var(--border);
    margin-top: 60px;
    padding: 30px 0;
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* AUTH PAGE – responsive wrapper + body */
.auth-page-body {
    background: var(--bg-offwhite) !important;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 0 2rem;
    box-sizing: border-box;
}

.auth-page-wrapper {
    width: 100%;
    max-width: 440px;
    flex: 0 0 auto;
    padding-left: 1rem;
    padding-right: 1rem;
    box-sizing: border-box;
}

@media (min-width: 576px) {
    .auth-page-body {
        padding-top: 2rem;
    }
    .auth-page-wrapper {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

/* AUTH CARD */
.auth-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    border: 1px solid var(--border);
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 575px) {
    .auth-card {
        padding: 1rem 1rem !important;
        border-radius: 12px;
    }
    .auth-card h3 {
        font-size: 1.25rem;
    }
}

.auth-page-wrapper a[href] img {
    max-width: 100%;
    height: auto;
}

/* Password field: space for toggle button */
.position-relative .password-field {
    padding-right: 2.75rem;
}

/* MOBILE */
@media (max-width: 768px) {
    .property-card img {
        height: 170px;
    }
    h2 {
        font-size: 1.4rem;
    }
}

/* NAVBAR INTERACTION */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1100;
    background: #fff;
    margin-top: 0;
}

.hero-section,
.trust-section,
.listing-section {
    position: relative;
    z-index: 1;
}

@media (max-width: 991px) {
    body {padding-top: 0px;}
}
@media (max-width: 768px) {
    body { padding-top: 0; }
    .navbar { top: 0; margin-top: 0; }
}
@media (max-width: 576px) {
    body { padding-top: 0; }
}

.listing-section { margin-top: 60px; }
.trust-section { margin-top: 40px; }
.hero-section {
    padding-bottom: 60px;
    position: relative;
    overflow: hidden;
}
.hero-img {
    display: block;
    max-height: 380px;
    width: 100%;
    object-fit: cover;
}
.trust-section,
.listing-section {
    clear: both;
    position: relative;
    z-index: 1;
    margin-top: 40px;
}
@media (max-width: 768px) {
    .hero-img {
        max-height: 260px;
    }
}

/* Location autocomplete – additive only, no overrides */
.location-suggest-box {
    position: fixed;
    max-height: 220px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid var(--border, #e5e7eb);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    margin-top: 2px;
}
.location-suggest-item {
    padding: 8px 12px;
    cursor: pointer;
    font-size: 0.9375rem;
    border-bottom: 1px solid #f3f4f6;
}
.location-suggest-item:last-child { border-bottom: none; }
.location-suggest-item:hover,
.location-suggest-item.active {
    background: var(--bg-offwhite, #F7F6F2);
}

/* ===============================
   OWNER VERIFICATION BADGE (trust feature)
   Shown only on property detail and owner profile/dashboard.
   Same pill shape; never solid filled; no warning colors or animations.
================================ */
.owner-badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 9999px;
    border: 1px solid;
    white-space: nowrap;
}
/* Verified: darker primary border, light semi-transparent primary bg, primary text */
.owner-badge.owner-badge-verified {
    border-color: #1e3328;
    background: rgba(47, 79, 62, 0.12);
    color: var(--primary);
}
/* Unverified: light gray border, very light gray semi-transparent bg, neutral gray text */
.owner-badge.owner-badge-unverified {
    border-color: #d1d5db;
    background: rgba(107, 114, 128, 0.08);
    color: var(--text-muted);
}

/* Ad slots – responsive, no layout break */
.ad-slot {
    max-width: 100%;
    box-sizing: border-box;
}
.ad-slot-third-party .border.rounded { min-height: 40px; }
.ad-slot-local .card-img-top {
    width: 100%;
    height: auto;
    max-height: 180px;
}
@media (max-width: 768px) {
    .ad-slot-local .card-img-top { max-height: 140px; }
}

/* Local ad cards – dedicated layout (mobile-first) */
.ad-card {
    border-radius: 0.5rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.ad-image-wrapper {
    width: 100%;
    height: 260px;              /* desktop default */
    overflow: hidden;
    background: #f2f2f2;
}

.ad-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;          /* crop allowed */
    display: block;
}

.ad-card .btn {
    width: 100%;
}

@media (max-width: 768px) {
    .ad-image-wrapper {
        height: 200px;
    }
}

/* Sidebar ad card – slightly smaller height so it doesn't dominate column */
.ad-card-sidebar .ad-image-wrapper {
    height: 150px;
}

/* Content area ko card ke bottom tak push kare, taaki buttons listings ke buttons ke line me aaye */
.ad-card > .p-2 {
    margin-top: auto;
}

/* No extra max-height on breakpoints – let image height adapt to aspect ratio */

/* Generic banner wrapper for future homepage/footer banners */
.ad-banner img {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: contain;
    display: block;
}
