/* =========================================================
   RentEase — Global Stylesheet
   Colors are driven by CSS variables set in header.php,
   pulled live from the admin Settings (maintenance-based).
   ========================================================= */

:root {
    --brand-primary: #0d6efd;
    --brand-secondary: #212529;
    --brand-accent: #ffc107;
}

body {
    font-family: 'Inter', sans-serif;
    color: #2b2f33;
    background-color: #f7f8fa;
}

h1, h2, h3, h4, h5, h6, .brand-text, .footer-brand {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
}

a { text-decoration: none; }

/* ---------- Buttons ---------- */
.btn-brand-primary {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
    color: #fff;
    font-weight: 600;
}
.btn-brand-primary:hover {
    filter: brightness(0.9);
    color: #fff;
}
.btn-outline-brand {
    border: 2px solid var(--brand-primary);
    color: var(--brand-primary);
    font-weight: 600;
}
.btn-outline-brand:hover {
    background-color: var(--brand-primary);
    color: #fff;
}
.text-brand { color: var(--brand-primary) !important; }
.bg-brand { background-color: var(--brand-primary) !important; }

/* ---------- Navbar ---------- */
.site-navbar {
    background-color: var(--brand-secondary);
    padding-top: .85rem;
    padding-bottom: .85rem;
}
.brand-logo { height: 42px; width: auto; object-fit: contain; }
.brand-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 10px;
    background: var(--brand-primary); color: #fff; font-size: 1.1rem;
}
.brand-text { color: #fff; font-size: 1.25rem; }
.site-navbar .nav-link { color: rgba(255,255,255,.85); font-weight: 500; }
.site-navbar .nav-link:hover, .site-navbar .nav-link.active { color: #fff; }

/* ---------- Hero ---------- */
.hero-section {
    position: relative;
    background: linear-gradient(120deg, var(--brand-secondary) 0%, #000 100%);
    color: #fff;
    overflow: hidden;
    min-height: 480px;
    display: flex;
    align-items: center;
}
.hero-bg-image {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: .35;
}
.hero-content { position: relative; z-index: 2; }
.hero-content h1 { font-size: 2.75rem; line-height: 1.2; }
@media (max-width: 768px) {
    .hero-content h1 { font-size: 2rem; }
    .hero-section { min-height: 380px; }
}

/* ---------- Section headings ---------- */
.section-title { font-size: 2rem; margin-bottom: .5rem; }
.section-subtitle { color: #6c757d; max-width: 620px; margin: 0 auto; }

/* ---------- Category pills ---------- */
.category-card {
    background: #fff; border-radius: 16px; padding: 1.75rem 1rem;
    text-align: center; box-shadow: 0 2px 12px rgba(0,0,0,.05);
    transition: transform .2s ease, box-shadow .2s ease;
    border: 1px solid #eef0f2;
    height: 100%;
}
.category-card:hover { transform: translateY(-6px); box-shadow: 0 10px 24px rgba(0,0,0,.09); }
.category-icon {
    width: 64px; height: 64px; border-radius: 50%;
    background: color-mix(in srgb, var(--brand-primary) 12%, white);
    color: var(--brand-primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem; margin: 0 auto 1rem;
}

/* ---------- Listing Cards (aligned panels, uniform image area) ---------- */
.listing-card {
    background: #fff; border-radius: 16px; overflow: hidden;
    box-shadow: 0 2px 14px rgba(0,0,0,.06);
    border: 1px solid #eef0f2;
    height: 100%;
    display: flex; flex-direction: column;
    transition: transform .2s ease, box-shadow .2s ease;
}
.listing-card:hover { transform: translateY(-5px); box-shadow: 0 12px 26px rgba(0,0,0,.1); }
.listing-card-imgwrap {
    position: relative;
    width: 100%;
    height: 210px;
    background: #eef0f2;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.listing-card-imgwrap img {
    width: 100%; height: 100%; object-fit: cover; object-position: center;
}
.listing-card-imgwrap .no-image {
    color: #adb5bd; font-size: 2.5rem;
}
.listing-card-body { padding: 1.25rem; display: flex; flex-direction: column; flex: 1; }
.listing-card-body h5 { font-size: 1.05rem; margin-bottom: .35rem; }
.listing-card-body .desc { color: #6c757d; font-size: .9rem; flex: 1; }
.listing-price { font-weight: 700; color: var(--brand-primary); font-size: 1.15rem; }
.badge-featured {
    position: absolute; top: 10px; left: 10px; z-index: 2;
    background: var(--brand-accent); color: #212529; font-weight: 600;
    font-size: .72rem; padding: .35em .7em; border-radius: 20px;
}
.badge-status { position: absolute; top: 10px; right: 10px; z-index: 2; }

/* ---------- Detail Carousel (auto-centered images, mixed sizes ok) ---------- */
.detail-carousel .carousel-inner {
    border-radius: 16px; overflow: hidden;
    background: #111;
}
.detail-carousel .carousel-item {
    height: 420px;
    display: flex; align-items: center; justify-content: center;
    background: #111;
}
.detail-carousel .carousel-item img {
    max-height: 100%; max-width: 100%;
    width: auto; height: auto;
    object-fit: contain;
    margin: 0 auto;
}
@media (max-width: 576px) {
    .detail-carousel .carousel-item { height: 280px; }
}
.detail-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.detail-thumbs img {
    width: 70px; height: 55px; object-fit: cover; border-radius: 8px;
    cursor: pointer; border: 2px solid transparent; opacity: .75;
}
.detail-thumbs img:hover, .detail-thumbs img.active { border-color: var(--brand-primary); opacity: 1; }

/* ---------- Footer ---------- */
.site-footer { background: var(--brand-secondary); color: #e9ecef; }
.footer-brand { color: #fff; }
.footer-heading { color: #fff; font-size: .95rem; margin-bottom: 1rem; }
.footer-links li { margin-bottom: .55rem; font-size: .9rem; }
.footer-links a { color: rgba(255,255,255,.75); }
.footer-links a:hover { color: #fff; }
.text-light-50 { color: rgba(255,255,255,.65); }
.social-btn {
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(255,255,255,.1); color: #fff;
    display: flex; align-items: center; justify-content: center;
}
.social-btn:hover { background: var(--brand-primary); color: #fff; }

/* ---------- Forms ---------- */
.auth-card, .form-card {
    background: #fff; border-radius: 16px; box-shadow: 0 2px 20px rgba(0,0,0,.06);
    border: 1px solid #eef0f2;
}

/* ---------- Misc ---------- */
.rounded-16 { border-radius: 16px; }
.shadow-soft { box-shadow: 0 2px 14px rgba(0,0,0,.06); }
