:root {
    --maroon: #7d1720;
    --maroon-dark: #4d0d13;
    --maroon-soft: #9f3038;
    --gold: #d9a52a;
    --gold-light: #f6d778;
    --cream: #fffaf0;
    --paper: #fffdf8;
    --ink: #332522;
    --muted: #756966;
    --line: #eadfc9;
    --shadow: 0 12px 35px rgba(73, 33, 18, .12);
}

* { box-sizing: border-box; }

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 15% 10%, rgba(217,165,42,.07), transparent 26%),
        radial-gradient(circle at 85% 40%, rgba(125,23,32,.045), transparent 28%),
        var(--cream);
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

.site-header {
    height: 86px;
    background: rgba(255,253,248,.98);
    border-bottom: 3px solid var(--gold);
    box-shadow: 0 5px 20px rgba(64, 27, 13, .10);
    z-index: 1030;
}

.site-header .container {
    height: 100%;
}

.navbar {
    min-height: 83px;
}

.brand-wrap {
    display: inline-flex;
    align-items: center;
    min-width: 0;
}

.brand-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    flex: 0 0 auto;
    margin-right: 12px;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.brand-title {
    color: var(--maroon);
    font-size: clamp(1rem, 2vw, 1.35rem);
    font-weight: 800;
    letter-spacing: .02em;
}

.brand-caption {
    color: #8f6b26;
    font-size: .79rem;
    font-weight: 700;
    letter-spacing: .08em;
    margin-top: 5px;
    text-transform: uppercase;
}

.nav-link {
    color: var(--maroon-dark);
    font-weight: 700;
    padding: .65rem .85rem !important;
}

.nav-link:hover,
.nav-link:focus {
    color: var(--gold);
}

.main-content {
    padding-top: 86px;
    min-height: calc(100vh - 350px);
}

.hero-section {
    position: relative;
    min-height: 410px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(72,10,16,.97), rgba(125,23,32,.86) 52%, rgba(94,17,23,.70)),
        url('../../profile.png') center/cover no-repeat;
    color: #fff;
}

.hero-section::after {
    content: "";
    position: absolute;
    inset: 14px;
    border: 1px solid rgba(246,215,120,.42);
    border-radius: 18px;
    pointer-events: none;
}

.hero-section h1 {
    max-width: 760px;
    font-size: clamp(2rem, 4vw, 3.7rem);
    line-height: 1.08;
    font-weight: 850;
    margin: 10px 0 18px;
}

.hero-section p {
    max-width: 650px;
    font-size: 1.08rem;
    line-height: 1.7;
    color: #fff5df;
}

.eyebrow {
    display: inline-block;
    color: var(--gold);
    font-size: .75rem;
    font-weight: 900;
    letter-spacing: .18em;
}

.btn-gold {
    background: var(--gold);
    border: 1px solid #b78313;
    color: #3f2800;
    font-weight: 800;
    border-radius: 9px;
    padding: .7rem 1.3rem;
}

.btn-gold:hover {
    background: var(--gold-light);
    color: #3f2800;
}

.btn-maroon {
    background: var(--maroon);
    border: 1px solid var(--maroon);
    color: #fff;
    font-weight: 750;
    border-radius: 9px;
}

.btn-maroon:hover {
    background: var(--maroon-dark);
    border-color: var(--maroon-dark);
    color: #fff;
}

.btn-outline-maroon {
    color: var(--maroon);
    border: 1px solid var(--maroon);
    font-weight: 700;
    border-radius: 9px;
}

.btn-outline-maroon:hover {
    background: var(--maroon);
    color: #fff;
}

.search-panel-wrap {
    margin-top: -38px;
    position: relative;
    z-index: 5;
}

.search-panel {
    background: var(--paper);
    border: 1px solid var(--line);
    border-top: 4px solid var(--gold);
    padding: 22px;
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.form-control,
.form-select {
    border-color: #dccfb9;
    border-radius: 8px;
    padding: .72rem .85rem;
    background: #fff;
}

.form-control:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 .2rem rgba(217,165,42,.15);
}

.section-space {
    padding: 65px 0;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    margin-bottom: 28px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
}

.section-heading h2 {
    color: var(--maroon);
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    font-weight: 850;
    margin: 4px 0 0;
}

.listing-card {
    height: 100%;
    overflow: hidden;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(72,35,20,.08);
    transition: transform .2s ease, box-shadow .2s ease;
}

.listing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 35px rgba(72,35,20,.15);
}

.listing-image-link {
    display: block;
    overflow: hidden;
    background: #eee6d7;
}

.listing-image {
    width: 100%;
    height: 235px;
    object-fit: cover;
    display: block;
    transition: transform .25s ease;
}

.listing-card:hover .listing-image {
    transform: scale(1.03);
}

.listing-body {
    padding: 18px;
}

.listing-badge {
    display: inline-block;
    padding: 4px 9px;
    border-radius: 50px;
    background: #f8ebc8;
    color: var(--maroon);
    font-size: .66rem;
    font-weight: 900;
    letter-spacing: .08em;
}

.listing-body h3 {
    font-size: 1.25rem;
    margin: 10px 0 6px;
    color: var(--maroon);
    font-weight: 800;
}

.listing-body h3 a:hover {
    color: var(--gold);
}

.listing-location {
    color: #80651e;
    font-size: .9rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.listing-body p {
    color: var(--muted);
    line-height: 1.55;
    min-height: 48px;
    margin-bottom: 15px;
}

.listing-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding-top: 13px;
    border-top: 1px solid var(--line);
}

.owner-name {
    color: var(--muted);
    font-size: .82rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.view-btn {
    color: var(--maroon);
    font-size: .85rem;
    font-weight: 850;
    white-space: nowrap;
}

.view-btn:hover {
    color: var(--gold);
}

.loading-box {
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--maroon);
}

.empty-state {
    padding: 55px 20px;
    text-align: center;
    border: 1px dashed #d7c6a9;
    background: rgba(255,255,255,.45);
    border-radius: 14px;
}

.empty-icon {
    font-size: 2.4rem;
    margin-bottom: 8px;
}

.page-banner {
    padding: 55px 0;
    color: #fff;
    background:
        linear-gradient(90deg, rgba(75,10,16,.98), rgba(125,23,32,.92)),
        url('../../profile.png') center/cover;
    border-bottom: 4px solid var(--gold);
}

.page-banner h1 {
    font-weight: 850;
    margin: 7px 0 8px;
}

.page-banner p {
    margin: 0;
    color: #fcefd5;
}

.form-card {
    max-width: 920px;
    padding: 30px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-top: 5px solid var(--gold);
    border-radius: 15px;
    box-shadow: var(--shadow);
}

.form-section-title {
    color: var(--maroon);
    font-size: 1.1rem;
    font-weight: 850;
    margin-bottom: 18px;
}

.required {
    color: #b01927;
}

.image-preview {
    width: 220px;
    height: 160px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--line);
}

.back-link {
    color: var(--maroon);
    font-weight: 800;
}

.detail-card {
    overflow: hidden;
    background: var(--paper);
    border: 1px solid var(--line);
    border-top: 5px solid var(--gold);
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.detail-image-col {
    background: #eee5d6;
}

.detail-image {
    width: 100%;
    height: 100%;
    min-height: 560px;
    object-fit: cover;
    display: block;
}

.detail-content {
    padding: 38px;
}

.detail-content h1 {
    color: var(--maroon);
    font-weight: 900;
    font-size: clamp(2rem, 4vw, 3rem);
    margin: 12px 0;
}

.detail-location {
    color: #81631c;
    font-weight: 750;
}

.detail-divider {
    height: 1px;
    background: var(--line);
    margin: 22px 0;
}

.detail-description {
    color: var(--muted);
    line-height: 1.8;
}

.owner-box {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fbf3df;
    border: 1px solid #eedcb5;
    padding: 13px;
    border-radius: 10px;
}

.owner-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    background: var(--maroon);
    font-weight: 850;
}

.owner-box small,
.owner-box strong {
    display: block;
}

.owner-box small {
    color: var(--muted);
}

.owner-box strong {
    color: var(--maroon);
}

.site-footer {
    margin-top: 30px;
    padding: 48px 0 0;
    color: #f8ead0;
    background:
        linear-gradient(rgba(68,9,14,.97), rgba(68,9,14,.97)),
        url('../../profile.png') center/cover;
    border-top: 4px solid var(--gold);
}

.site-footer h5,
.footer-brand {
    color: var(--gold-light);
    font-weight: 850;
    margin-bottom: 14px;
}

.site-footer p,
.site-footer address {
    color: #e8d8c2;
    line-height: 1.75;
}

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

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

.footer-links a {
    color: #f4dfb9;
}

.footer-links a:hover {
    color: #fff;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    border-top: 1px solid rgba(246,215,120,.25);
    margin-top: 35px;
    padding: 18px 0;
    color: #d8c6ae;
    font-size: .82rem;
}

.toast {
    border-radius: 9px;
}

@media (max-width: 991.98px) {
    .site-header {
        height: auto;
        min-height: 82px;
    }

    .navbar {
        min-height: 80px;
        padding: 8px 0;
    }

    .navbar-collapse {
        padding: 10px 0 14px;
    }

    .nav-link {
        padding-left: 0 !important;
    }

    .main-content {
        padding-top: 82px;
    }

    .hero-section {
        min-height: 440px;
    }
}

@media (max-width: 767.98px) {
    .brand-logo {
        width: 54px;
        height: 54px;
        margin-right: 8px;
    }

    .brand-title {
        font-size: .98rem;
    }

    .brand-caption {
        font-size: .62rem;
    }

    .section-space {
        padding: 45px 0;
    }

    .section-heading {
        align-items: start;
        flex-direction: column;
    }

    .form-card {
        padding: 20px;
    }

    .detail-image {
        min-height: 300px;
        max-height: 420px;
    }

    .detail-content {
        padding: 24px;
    }

    .footer-bottom {
        flex-direction: column;
    }
}
