/* ========================================================
   CapriHomeGh — Public Stylesheet
   Theme: Light Content / Dark Nav & Footer / Blue Accents
   ======================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ── CSS Variables ── */
:root {
    /* Blue accents — unchanged */
    --blue:        #2979ff;
    --blue-glow:   rgba(41, 121, 255, 0.25);
    --blue-soft:   rgba(41, 121, 255, 0.08);
    --blue-mid:    rgba(41, 121, 255, 0.15);

    /* Light content backgrounds */
    --bg:          #f4f6f9;
    --bg2:         #edf0f4;
    --bg3:         #ffffff;

    /* Card surfaces */
    --surface:     #ffffff;
    --surface2:    #f0f2f6;

    /* Borders */
    --border:      #e2e5eb;
    --border-blue: rgba(41,121,255,0.3);

    /* Text on light background */
    --text:        #111827;
    --text-muted:  #6b7280;
    --text-dim:    #374151;

    /* Dark nav/footer specific */
    --nav-bg:      #050810;
    --nav-border:  rgba(255,255,255,0.08);
    --nav-text:    rgba(255,255,255,0.75);
    --footer-bg:   #080d1a;

    --radius:      14px;
    --radius-lg:   20px;
    --shadow:      0 4px 20px rgba(0,0,0,0.08);
    --shadow-card: 0 2px 12px rgba(0,0,0,0.06);
    --glow:        0 8px 30px rgba(41,121,255,0.15);
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    line-height: 1.65;
    padding-top: 0;
    min-height: 100vh;
}

/* Remove dark grid pattern — not needed on light bg */
body::before { display: none; }

.container, section, footer, header { position: relative; z-index: 1; }

/* ── HEADER / NAVBAR — stays dark ── */
.site-header {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(5,8,16,0.95);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--nav-border);
    box-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.header-spacer { height: 78px; }

.navbar { padding: 10px 0; }

.navbar-brand img { height: 65px; width: auto; }

.nav-link {
    color: var(--nav-text) !important;
    font-weight: 500; font-size: 0.92rem;
    padding: 7px 14px !important; border-radius: 8px;
    transition: color 0.2s, background 0.2s;
}
.nav-link:hover {
    color: #fff !important;
    background: rgba(255,255,255,0.08);
}

.btn-nav-landlord {
    background: rgba(41,121,255,0.15) !important;
    border: 1px solid rgba(41,121,255,0.4) !important;
    color: #7eb3ff !important;
    font-weight: 600 !important;
}
.btn-nav-landlord:hover {
    background: var(--blue) !important;
    color: #fff !important;
}

/* ── BANNER ── */
.top-banner { width: 100%; overflow: hidden; line-height: 0; margin-top: 0; }
.top-banner img {
    width: 100%; height: 270px; object-fit: cover; display: block;
    opacity: 0; transform: scale(1.04);
    animation: bannerFade 1.6s ease forwards;
    filter: brightness(0.9);
}
@keyframes bannerFade { to { opacity:1; transform:scale(1); } }
@media (max-width: 768px) { .top-banner img { height: auto; } }

/* ── HERO SECTION — keeps dark gradient ── */
.hero-section {
    background: linear-gradient(180deg, #0a0f1e 0%, #111827 100%);
    padding: 90px 0 80px;
    text-align: center;
    position: relative; overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(41,121,255,0.12) 0%, transparent 70%);
    top: -200px; left: 50%; transform: translateX(-50%);
    border-radius: 50%; pointer-events: none;
}
.hero-section::after {
    content: '';
    position: absolute;
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(41,121,255,0.08) 0%, transparent 70%);
    bottom: -100px; right: 10%; border-radius: 50%; pointer-events: none;
}

.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(41,121,255,0.15);
    border: 1px solid rgba(41,121,255,0.35);
    color: #7eb3ff; font-size: 0.78rem; font-weight: 600;
    padding: 5px 16px; border-radius: 50px;
    margin-bottom: 22px; letter-spacing: 0.8px; text-transform: uppercase;
}
.hero-badge .dot {
    width: 6px; height: 6px; background: var(--blue);
    border-radius: 50%; animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.5;transform:scale(1.4)} }

.hero-section h1 {
    font-size: 3.4rem; font-weight: 900;
    line-height: 1.1; letter-spacing: -1px; margin-bottom: 18px;
    background: linear-gradient(135deg, #ffffff 0%, #7eb3ff 50%, var(--blue) 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.hero-section .lead {
    font-size: 1.1rem; color: rgba(255,255,255,0.55);
    max-width: 560px; margin: 0 auto 36px; line-height: 1.7;
}

/* ── SEARCH FORM — inside hero (dark) ── */
.search-wrap {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(41,121,255,0.3);
    backdrop-filter: blur(20px);
    border-radius: var(--radius-lg);
    padding: 26px 28px;
    max-width: 800px; margin: 0 auto;
    box-shadow: 0 0 40px rgba(41,121,255,0.08);
}
.search-wrap label {
    color: rgba(255,255,255,0.5); font-size: 0.78rem;
    font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase;
}
.search-wrap .form-control,
.search-wrap .form-select {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    color: #fff; border-radius: 10px; padding: 12px 16px;
    font-size: 0.95rem; transition: border-color 0.2s, box-shadow 0.2s;
}
.search-wrap .form-control::placeholder { color: rgba(255,255,255,0.35); }
.search-wrap .form-control:focus,
.search-wrap .form-select:focus {
    background: rgba(255,255,255,0.11);
    border-color: var(--blue);
    box-shadow: 0 0 0 3px var(--blue-glow);
    outline: none; color: #fff;
}
.search-wrap .form-select option { background: #111827; color: #fff; }

/* ── STATS TICKER — light version ── */
.ticker-wrap {
    background: #fff;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}
.ticker-inner {
    display: inline-block; white-space: nowrap; min-width: 100%;
    padding: 12px 0; font-size: 0.88rem; font-weight: 600; color: var(--text-dim);
    animation: tickerScroll 26s linear infinite;
}
.ticker-inner span { display: inline-block; margin-right: 60px; }
.ticker-dot { color: var(--blue); margin-right: 6px; }
.ticker-inner.paused { animation-play-state: paused; }
@keyframes tickerScroll { 0%{transform:translateX(100%)} 100%{transform:translateX(-100%)} }

/* ── SECTION TITLES ── */
.section-label {
    font-size: 0.75rem; font-weight: 700; letter-spacing: 1.5px;
    text-transform: uppercase; color: var(--blue); margin-bottom: 8px;
}
.section-title {
    font-size: 1.8rem; font-weight: 800; color: var(--text); margin-bottom: 6px;
}
.section-sub { font-size: 0.92rem; color: var(--text-muted); margin-bottom: 32px; }

/* ── PROPERTY CARDS ── */
.prop-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    display: flex; flex-direction: column; height: 100%;
    box-shadow: var(--shadow-card);
}
.prop-card:hover {
    transform: translateY(-6px);
    border-color: var(--blue);
    box-shadow: var(--glow);
}
.prop-card .card-img {
    width: 100%; height: 210px; object-fit: cover; display: block;
    transition: transform 0.4s ease;
}
.prop-card:hover .card-img { transform: scale(1.04); }
.prop-card .img-wrap { overflow: hidden; }

.prop-card .card-body {
    padding: 18px 20px 20px; flex: 1; display: flex; flex-direction: column;
    background: #fff;
}

.prop-card .prop-location {
    font-weight: 700; font-size: 1rem; color: var(--text);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 3px;
}
.prop-card .prop-type { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 12px; }
.prop-card .prop-price {
    font-size: 1.2rem; font-weight: 800; color: var(--blue);
    font-variant-numeric: tabular-nums;
}
.prop-card .prop-time { font-size: 0.78rem; color: var(--text-muted); }
.prop-card .prop-meta {
    display: flex; justify-content: space-between;
    align-items: flex-end; margin-bottom: 16px;
}

.btn-view {
    display: block; width: 100%; text-align: center;
    background: var(--blue-soft); color: var(--blue);
    border: 1px solid var(--border-blue); border-radius: 10px;
    padding: 10px 0; font-weight: 600; font-size: 0.9rem;
    text-decoration: none; transition: background 0.2s, color 0.2s, box-shadow 0.2s;
    margin-top: auto;
}
.btn-view:hover {
    background: var(--blue); color: #fff;
    box-shadow: 0 4px 16px var(--blue-glow);
}

/* Share btn */
.share-btn {
    background: transparent; border: none; cursor: pointer;
    padding: 5px 7px; border-radius: 7px; transition: background 0.2s;
}
.share-btn:hover { background: var(--surface2); }
.share-btn i { font-size: 1rem; color: var(--text-muted); transition: color 0.2s; }
.share-btn:hover i { color: var(--blue); }

/* ── BUTTONS (global) ── */
.btn-primary {
    background: var(--blue); border: none; border-radius: 10px;
    font-weight: 600; color: #fff; transition: all 0.2s;
}
.btn-primary:hover {
    background: #1565c0; color: #fff;
    transform: translateY(-2px); box-shadow: 0 6px 20px var(--blue-glow);
}

.btn-outline-light {
    border: 1px solid rgba(255,255,255,0.35); color: #fff;
    background: transparent; border-radius: 10px; font-weight: 500;
    transition: all 0.2s;
}
.btn-outline-light:hover { background: rgba(255,255,255,0.12); color: #fff; border-color: rgba(255,255,255,0.6); }

.btn-outline-primary {
    border: 1px solid var(--border-blue); color: var(--blue);
    background: transparent; border-radius: 10px; font-weight: 600;
    transition: all 0.2s;
}
.btn-outline-primary:hover { background: var(--blue); color: #fff; }

.btn-outline-danger {
    border: 1px solid rgba(239,68,68,0.4); color: #dc2626;
    background: transparent; border-radius: 10px; font-weight: 600;
    transition: all 0.2s;
}
.btn-outline-danger:hover { background: #dc2626; color: #fff; border-color: #dc2626; }

.btn-outline-secondary {
    border: 1px solid var(--border); color: var(--text-dim);
    background: transparent; border-radius: 10px; font-weight: 500;
    transition: all 0.2s;
}
.btn-outline-secondary:hover { background: var(--surface2); color: var(--text); border-color: #ccc; }

/* ── FORMS (light) ── */
.form-control, .form-select {
    background: #fff; border: 1px solid var(--border);
    color: var(--text); border-radius: 10px; padding: 11px 14px; font-size: 0.95rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.form-control::placeholder { color: var(--text-muted); }
.form-control:focus, .form-select:focus {
    background: #fff; border-color: var(--blue);
    box-shadow: 0 0 0 3px var(--blue-glow); color: var(--text); outline: none;
}
.form-select option { background: #fff; color: var(--text); }
.form-label { color: var(--text-dim); font-weight: 500; font-size: 0.9rem; margin-bottom: 6px; }

/* ── GLASS CARD — now a clean white card ── */
.glass-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: var(--shadow);
}
.glass-card h4 { font-weight: 800; font-size: 1.4rem; color: var(--text); margin-bottom: 6px; }
.glass-card p.sub { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 26px; }

/* ── AUTH WRAPPER ── */
.auth-wrap {
    min-height: 70vh; display: flex; align-items: center;
    justify-content: center; padding: 40px 16px;
    background: var(--bg);
}
.auth-box { width: 100%; max-width: 460px; }
.auth-box .icon-top { font-size: 2.5rem; color: var(--blue); margin-bottom: 14px; }

/* ── ALERTS ── */
.alert-danger  { background: #fef2f2; border: 1px solid #fecaca; color: #dc2626; border-radius: 10px; padding: 12px 16px; }
.alert-success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #16a34a; border-radius: 10px; padding: 12px 16px; }
.alert-info    { background: #eff6ff; border: 1px solid #bfdbfe; color: #2563eb; border-radius: 10px; padding: 12px 16px; }

/* ── BADGE ── */
.badge-status { display: inline-block; padding: 4px 12px; border-radius: 50px; font-size: 0.78rem; font-weight: 600; }
.badge-approved  { background: #dcfce7; color: #16a34a; border: 1px solid #bbf7d0; }
.badge-pending   { background: #fefce8; color: #ca8a04; border: 1px solid #fde68a; }
.badge-suspended { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.badge-removed   { background: var(--surface2); color: var(--text-muted); border: 1px solid var(--border); }

/* ── LANDLORD DASHBOARD ── */
.welcome-banner {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 1px solid #bfdbfe; border-radius: var(--radius-lg);
    padding: 28px 32px; margin-bottom: 28px;
}
.welcome-banner h4 { font-weight: 800; margin-bottom: 4px; color: var(--text); }
.welcome-banner p  { color: var(--text-muted); margin: 0; font-size: 0.9rem; }

.stat-chip {
    background: #fff; border: 1px solid var(--border);
    border-radius: var(--radius); padding: 20px; text-align: center;
    box-shadow: var(--shadow-card);
}
.stat-chip .num { font-size: 2.2rem; font-weight: 900; color: var(--blue); line-height: 1; }
.stat-chip .lbl { font-size: 0.82rem; color: var(--text-muted); margin-top: 4px; }

.action-card {
    background: #fff; border: 1px solid var(--border);
    border-radius: var(--radius-lg); padding: 28px; text-align: center;
    transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
    box-shadow: var(--shadow-card);
}
.action-card:hover {
    border-color: var(--blue); transform: translateY(-5px);
    box-shadow: var(--glow);
}
.action-card i { font-size: 2rem; color: var(--blue); margin-bottom: 12px; display: block; }
.action-card h6 { font-weight: 700; color: var(--text); margin-bottom: 6px; }
.action-card p  { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 18px; }

/* ── PROPERTY DETAIL PAGE ── */
.detail-main-img {
    width: 100%; height: 400px; object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}
.thumb-grid { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.thumb-grid img {
    width: 76px; height: 60px; object-fit: cover; border-radius: 8px; cursor: pointer;
    border: 2px solid transparent; transition: border-color 0.2s, transform 0.2s;
}
.thumb-grid img:hover { border-color: var(--blue); transform: scale(1.06); }

.contact-box {
    background: #eff6ff; border: 1px solid #bfdbfe;
    border-radius: var(--radius); padding: 22px;
}
.contact-box h6 { color: var(--blue); font-weight: 700; margin-bottom: 12px; }

.amenity-tag {
    display: inline-flex; align-items: center; gap: 6px;
    background: #f8fafc; border: 1px solid var(--border);
    border-radius: 8px; padding: 6px 14px;
    font-size: 0.84rem; color: var(--text-dim); font-weight: 500;
}
.amenity-tag i { color: var(--blue); }

/* ── NO RESULTS ── */
.no-results {
    text-align: center; padding: 70px 20px; color: var(--text-muted);
}
.no-results i { font-size: 3.5rem; color: #d1d5db; display: block; margin-bottom: 16px; }
.no-results h5 { color: var(--text-dim); margin-bottom: 8px; }

/* ── TABLE ── */
.table { color: var(--text); border-color: var(--border); }
.table th {
    color: var(--text-muted); font-size: 0.82rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.5px;
    border-color: var(--border); background: #f8fafc;
}
.table td { border-color: var(--border); vertical-align: middle; }
.table-hover tbody tr:hover { background: #f8fafc; }
.table-responsive { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }

/* ── SUGGESTIONS / ANNOUNCEMENTS ── */
.sug-card {
    background: #fff; border: 1px solid var(--border);
    border-radius: var(--radius); padding: 22px; margin-bottom: 16px;
    box-shadow: var(--shadow-card);
}
.sug-name { font-weight: 700; color: var(--text); margin-bottom: 3px; }
.sug-time { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 10px; }
.sug-msg  { color: var(--text-dim); white-space: pre-line; margin-bottom: 14px; }
.reply-thread {
    margin-left: 18px; padding-left: 16px;
    border-left: 3px solid var(--blue); margin-top: 12px;
}
.reply-name { font-weight: 700; font-size: 0.9rem; color: var(--text); }
.reply-time { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 4px; }
.reply-msg  { font-size: 0.92rem; color: var(--text-dim); white-space: pre-line; }

.ann-card {
    background: #fff; border: 1px solid var(--border);
    border-radius: var(--radius-lg); overflow: hidden;
    transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
    box-shadow: var(--shadow-card);
}
.ann-card:hover { border-color: var(--blue); transform: translateY(-4px); box-shadow: var(--glow); }
.ann-card img  { width: 100%; height: 200px; object-fit: cover; }
.ann-body { padding: 20px; }
.ann-date { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 8px; }
.ann-title { font-weight: 700; color: var(--text); margin-bottom: 8px; }
.ann-msg   { font-size: 0.9rem; color: var(--text-dim); }

/* ── PAGE HERO (inner pages) — stays dark ── */
.page-hero {
    background: linear-gradient(135deg, #0a0f1e 0%, #111827 100%);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    padding: 50px 0 40px; text-align: center;
}
.page-hero h1 { font-size: 2.2rem; font-weight: 800; margin-bottom: 8px; color: #fff; }
.page-hero p  { color: rgba(255,255,255,0.5); }

/* ── FOOTER — stays dark ── */
.site-footer {
    background: var(--footer-bg);
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 50px 0 0; margin-top: 80px;
}
.footer-logo { height: 55px; width: auto; opacity: 0.9; }
.footer-desc { font-size: 0.88rem; color: rgba(255,255,255,0.4); line-height: 1.7; }
.footer-heading {
    font-size: 0.78rem; font-weight: 700;
    color: rgba(255,255,255,0.6); text-transform: uppercase;
    letter-spacing: 1px; margin-bottom: 14px;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; font-size: 0.88rem; color: rgba(255,255,255,0.4); }
.footer-links a { color: rgba(255,255,255,0.4); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--blue); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.06); margin-top: 40px;
    padding: 18px 0; text-align: center;
    font-size: 0.82rem; color: rgba(255,255,255,0.3);
}

/* ── ANIMATIONS ── */
.fade-up { opacity:0; transform:translateY(28px); animation: fadeUp 0.8s ease forwards; }
.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.3s; }
.delay-3 { animation-delay: 0.5s; }
@keyframes fadeUp { to { opacity:1; transform:translateY(0); } }

/* ── RESPONSIVE ── */
@media (max-width: 992px) { .hero-section h1 { font-size: 2.6rem; } }
@media (max-width: 768px) {
    body { padding-top: 0; }
    .header-spacer { height: 68px; }
    .navbar-brand img { height: 52px; }
    .hero-section { padding: 70px 0 60px; }
    .hero-section h1 { font-size: 2rem; }
    .search-wrap { padding: 18px; }
    .glass-card { padding: 24px 18px; }
    .detail-main-img { height: 260px; }
}