/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f7f3f0;
    color: #333;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a { color: #990633; text-decoration: none; }
a:hover { color: #b30a3e; }

/* ===== HEADER ===== */
.site-header {
    background: #fff;
    border-bottom: 2px solid #990633;
    position: sticky;
    top: 0;
    z-index: 200;
}

.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 56px;
}

.logo { display: flex; align-items: center; }
.logo img { height: 28px; }

.header-nav { display: flex; align-items: center; gap: 24px; }

.header-nav a {
    color: #444;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}

.header-nav a:hover { color: #990633; }

.btn-post-ad {
    background: #990633;
    color: #fff !important;
    padding: 7px 16px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 13px;
    transition: background 0.2s;
}

.btn-post-ad:hover { background: #b30a3e; }

/* Burger Menu */
.burger-menu {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    z-index: 200;
}

.burger-menu span {
    width: 22px;
    height: 2px;
    background: #333;
    border-radius: 2px;
    transition: all 0.3s;
}

.burger-menu.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.burger-menu.active span:nth-child(2) { opacity: 0; }
.burger-menu.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile Nav */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 149;
}

.mobile-nav-overlay.active { display: block; }

.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100%;
    background: #fff;
    z-index: 150;
    padding: 70px 24px 24px;
    flex-direction: column;
    gap: 0;
    transition: right 0.3s;
    box-shadow: -4px 0 20px rgba(0,0,0,0.15);
}

.mobile-nav.active { right: 0; }

.mobile-nav a {
    color: #333;
    font-size: 15px;
    font-weight: 500;
    padding: 14px 0;
    border-bottom: 1px solid #eee;
    text-decoration: none;
}

.mobile-nav a:hover { color: #990633; }

.btn-post-ad-mobile {
    background: #990633;
    color: #fff !important;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    margin-top: 12px;
    border-bottom: none !important;
}

/* ===== BREADCRUMB ===== */
.breadcrumb-bar {
    background: #f7f3f0;
    border-bottom: 1px solid #e5dfda;
    padding: 10px 0;
    font-size: 13px;
}

.breadcrumb-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    color: #888;
}

.breadcrumb-inner a { color: #990633; }
.breadcrumb-inner span { margin: 0 6px; color: #aaa; }

/* ===== PAGE TITLE ===== */
.page-title {
    background: #f7f3f0;
    padding: 16px 0 12px;
}

.page-title-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-title h1 {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.page-subtitle {
    font-size: 14px;
    color: #777;
    max-width: 800px;
}

/* ===== MAIN LAYOUT ===== */
.main-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 20px 40px;
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 28px;
    flex: 1;
}

.content-area { min-width: 0; }

/* ===== LISTING CARDS ===== */
.listing-card {
    background: #fff;
    border: 1px solid #e0d8d0;
    border-radius: 10px;
    padding: 16px;
    margin-bottom: 16px;
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 18px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.listing-card:hover {
    border-color: #c8bfb5;
    box-shadow: 0 4px 16px rgba(0,0,0,0.07);
}

.listing-image-wrapper { position: relative; }

.listing-image {
    width: 100%;
    aspect-ratio: 4 / 4;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.listing-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: rgba(0,0,0,0.65);
    color: #ddd;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 4px;
    backdrop-filter: blur(4px);
}

.online-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0,0,0,0.6);
    color: #4caf50;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 5px;
    backdrop-filter: blur(4px);
}

.online-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #4caf50;
    border-radius: 50%;
}

.listing-content {
    display: flex;
    flex-direction: column;
}

.listing-title {
    font-size: 17px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
    line-height: 1.3;
}

.listing-title a { color: #1a1a1a; text-decoration: none; }
.listing-title a:hover { color: #990633; }

.listing-text {
    font-size: 13.5px;
    color: #666;
    margin-bottom: 12px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.listing-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.listing-tag {
    background: #fdf0f3;
    color: #990633;
    font-size: 11px;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 20px;
    border: 1px solid #f5d5de;
}

.listing-footer {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
}

.listing-username {
    font-size: 12px;
    color: #777;
    font-weight: 500;
    margin-left: auto;
}

.btn-view-profile {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #990633;
    color: #fff;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, transform 0.1s;
    white-space: nowrap;
}

.btn-view-profile:hover {
    background: #b30a3e;
    color: #fff;
    transform: translateY(-1px);
}

/* ===== VIEW ALL BUTTON ===== */
.view-all-wrapper {
    text-align: center;
    padding: 12px 0 8px;
}

.btn-view-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: #990633;
    border: 2px solid #990633;
    padding: 11px 28px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.btn-view-all:hover {
    background: #990633;
    color: #fff;
    transform: translateY(-1px);
}

/* ===== SIDEBAR ===== */
.sidebar { display: flex; flex-direction: column; gap: 20px; }

.sidebar-card {
    background: #fff;
    border: 1px solid #e0d8d0;
    border-radius: 10px;
    padding: 18px;
}

.sidebar-title {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid #990633;
}

.sidebar-card ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-card ul li a {
    color: #555;
    font-size: 13.5px;
    text-decoration: none;
    transition: color 0.2s;
}

.sidebar-card ul li a:hover { color: #990633; }

/* Quick Info */
.quick-info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.quick-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #555;
}

.quick-info-item svg {
    color: #990633;
    flex-shrink: 0;
}

/* ===== INFO SECTION ===== */
.info-section {
    background: #fff;
    border: 1px solid #e0d8d0;
    border-radius: 10px;
    padding: 28px;
    margin-top: 28px;
}

.info-section h2 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.info-section p {
    font-size: 14px;
    color: #666;
    margin-bottom: 16px;
    max-width: 720px;
    line-height: 1.7;
}

.info-section ul {
    list-style: none;
    margin-bottom: 24px;
}

.info-section ul li {
    padding: 12px 14px;
    border-bottom: 1px solid #f0ebe6;
    font-size: 14px;
    color: #555;
    display: flex;
    align-items: center;
    gap: 12px;
}

.info-section ul li:first-child {
    border-top: none;
}

.info-section ul li::before {
    content: '✓';
    color: #990633;
    font-weight: 700;
    font-size: 15px;
}

.info-section h3 {
    font-size: 17px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
    margin-top: 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid #990633;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-section ol {
    list-style: none;
    counter-reset: steps;
    margin-bottom: 24px;
}

.info-section ol li {
    counter-increment: steps;
    padding: 12px 14px;
    border-bottom: 1px solid #f0ebe6;
    font-size: 14px;
    color: #555;
    display: flex;
    align-items: center;
    gap: 12px;
}

.info-section ol li:first-child {
    border-top: none;
}

.info-section ol li::before {
    content: counter(steps);
    background: #990633;
    color: #fff;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

.info-section .disclaimer-text {
    background: #fdf6f0;
    border-left: 3px solid #990633;
    padding: 14px 16px;
    border-radius: 0 6px 6px 0;
    font-size: 13px;
    color: #666;
    margin-top: 8px;
}

/* ===== STATE PAGE ===== */
.state-page-container {
    display: block;
    width: 100%;
    max-width: 1200px;
}

.state-title-row {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 20px;
}

.state-title-row h1 {
    font-size: 22px;
}

.state-subtitle {
    font-size: 14px;
    color: #777;
    line-height: 1.6;
}

.city-search-wrapper {
    margin-bottom: 16px;
}

.city-search-input {
    width: 100%;
    padding: 12px 16px;
    font-size: 14px;
    font-family: inherit;
    border: 1px solid #e0d8d0;
    border-radius: 8px;
    background: #fff;
    color: #333;
    outline: none;
    transition: border-color 0.2s;
}

.city-search-input:focus {
    border-color: #990633;
}

.city-search-input::placeholder {
    color: #aaa;
}

.city-grid-section {
    grid-column: 1 / -1;
    width: 100%;
}

.city-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    min-width: 100%;
}

.city-card {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid #e0d8d0;
    padding: 14px 16px;
    border-radius: 10px;
    transition: all 0.2s ease;
    text-decoration: none;
    color: inherit;
}

.city-card:hover {
    border-color: #d4a0b0;
    box-shadow: 0 4px 16px rgba(153, 6, 51, 0.08);
    transform: translateY(-1px);
}

.city-card:hover .city-card-name {
    color: #990633;
}

.city-card:hover .city-card-arrow {
    opacity: 1;
    transform: translateX(2px);
}

.city-card-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fdf0f3;
    border-radius: 8px;
    flex-shrink: 0;
}

.city-card-icon svg {
    width: 18px;
    height: 18px;
    color: #990633;
}

.city-card-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    flex: 1;
    transition: color 0.2s;
}

.city-card-arrow {
    font-size: 18px;
    color: #990633;
    opacity: 0;
    transition: all 0.2s;
    flex-shrink: 0;
}

/* ===== FOOTER ===== */
.site-footer {
    background: #fff;
    color: #555;
    border-top: 2px solid #990633;
    padding: 40px 0 0;
    margin-top: auto;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-columns {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 32px;
    padding-bottom: 28px;
    border-bottom: 1px solid #e0d8d0;
}

.footer-heading {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 16px;
}

.footer-brand-text {
    font-size: 13px;
    color: #777;
    line-height: 1.6;
}

.footer-col ul { list-style: none; }

.footer-col ul li { margin-bottom: 10px; }

.footer-col ul li a {
    color: #666;
    font-size: 13px;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-col ul li a:hover { color: #990633; }

.footer-bottom {
    padding: 20px 0;
    text-align: center;
}

.footer-copy {
    font-size: 12px;
    color: #999;
    margin-bottom: 8px;
}

.footer-disclaimer {
    font-size: 11px;
    color: #aaa;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.5;
}

/* ===== STATIC PAGES ===== */
.static-page-container {
    display: block;
    max-width: 800px;
}

.static-page-card {
    background: #fff;
    border: 1px solid #e0d8d0;
    border-radius: 10px;
    padding: 32px;
}

.static-page-card h1 {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.static-page-card h2 {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin-top: 24px;
    margin-bottom: 10px;
}

.static-page-card p {
    font-size: 14px;
    color: #555;
    margin-bottom: 14px;
    line-height: 1.7;
}

.static-page-card a { color: #990633; }
.static-page-card a:hover { text-decoration: underline; }

.static-page-card ul, .static-page-card ol {
    margin-bottom: 14px;
    padding-left: 20px;
}

.static-page-card li {
    font-size: 14px;
    color: #555;
    margin-bottom: 6px;
    line-height: 1.6;
}

.static-page-cta {
    text-align: center;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #f0ebe6;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .header-nav { display: none; }
    .burger-menu { display: flex; }
    .mobile-nav { display: flex; }

    .main-container {
        grid-template-columns: 1fr;
        padding: 16px 16px 32px;
    }

    .sidebar { order: 2; }
    .content-area { order: 1; }

    .footer-columns {
        grid-template-columns: 1fr 1fr;
        gap: 24px;
    }

    .city-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .listing-card {
        grid-template-columns: 110px 1fr;
        gap: 12px;
        padding: 12px;
    }

    .listing-image-wrapper { align-self: stretch; }

    .listing-image {
        aspect-ratio: auto;
        height: 100%;
        min-height: 140px;
    }

    .listing-title { font-size: 15px; margin-bottom: 8px; }
    .listing-text { font-size: 12.5px; -webkit-line-clamp: 3; }
    .listing-tags { margin-bottom: 8px; }

    .listing-footer {
        flex-wrap: wrap;
        gap: 6px;
    }

    .btn-view-profile {
        padding: 6px 12px;
        font-size: 12px;
    }

    .page-title h1 { font-size: 20px; }

    .footer-columns { grid-template-columns: 1fr; }

    .quick-info-grid { grid-template-columns: 1fr 1fr; }

    .static-page-card { padding: 20px; }

    .city-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .city-card {
        padding: 12px 14px;
    }

    .city-card-icon {
        width: 28px;
        height: 28px;
        border-radius: 6px;
    }

    .city-card-icon svg {
        width: 15px;
        height: 15px;
    }

    .city-card-name { font-size: 13px; }
    .city-card-arrow { opacity: 1; }
}
