/* ═══════════════════════════════════════════════════════════
   JIRANISOKO — Your Neighbourhood Marketplace
   Inspired by Karrot · Orange #FF6F0F
   Production-grade CSS · 2026
   ═══════════════════════════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300..800;1,9..40,300..800&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');

:root {
    --orange: #FF6F0F;
    --orange-hover: #E55A00;
    --orange-light: #FF9A52;
    --orange-bg: #FFF5EE;
    --orange-glow: rgba(255, 111, 15, 0.15);
    --dark: #141416;
    --dark-secondary: #23262F;
    --gray-900: #353945;
    --gray-700: #555;
    --gray-500: #777E90;
    --gray-400: #9A9FA5;
    --gray-300: #C4C4C4;
    --gray-200: #E6E8EC;
    --gray-100: #F4F5F6;
    --gray-50: #FAFAFB;
    --white: #FFFFFF;
    --green: #45B26B;
    --green-bg: #E8F5E9;
    --red: #EF466F;
    --red-bg: #FFEBEE;
    --blue: #3772FF;
    --blue-bg: #E3F2FD;
    --yellow: #FFD166;
    --yellow-bg: #FFF8E1;
    --radius-xs: 6px;
    --radius-sm: 10px;
    --radius: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 100px;
    --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
    --shadow: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.10);
    --shadow-xl: 0 16px 48px rgba(0,0,0,0.12);
    --shadow-orange: 0 4px 20px rgba(255,111,15,0.25);
    --transition-fast: 0.15s ease;
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --font-heading: 'Plus Jakarta Sans', -apple-system, sans-serif;
    --font-body: 'DM Sans', -apple-system, sans-serif;
    --header-height: 72px;
    --max-width: 1280px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; width: 100%; }
body {
    font-family: var(--font-body), serif;
    color: var(--dark);
    background: var(--gray-50);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    width: 100%;
}
a { color: inherit; text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--orange); }
img, video { max-width: 100%; height: auto; display: block; }
input, select, textarea, button { font-family: inherit; font-size: inherit; border: none; outline: none; }
h1, h2, h3, h4, h5 {
    font-family: var(--font-heading), serif; line-height: 1.25; font-weight: 700; color: var(--dark); }
h1 { font-size: clamp(1.75rem, 3vw, 2.25rem); }
h2 { font-size: clamp(1.35rem, 2.5vw, 1.75rem); }
h3 { font-size: clamp(1.05rem, 2vw, 1.25rem); }
::selection { background: var(--orange-bg); color: var(--orange); }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; border-radius: var(--radius-xs); }

/* ── Layout ── */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.25rem; width: 100%; }
.main-content { min-height: calc(100vh - var(--header-height) - 300px); }
.page-content { padding: 2rem 0 3rem; animation: fadeIn 0.35s ease; }
.text-center { text-align: center; }
.text-orange { color: var(--orange); }

/* ══════════════════════════════════════
   HEADER — no backdrop-filter to avoid stacking context
   ══════════════════════════════════════ */
.site-header {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: 1.5rem;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-heading), serif;
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    flex-shrink: 0;
}
.logo:hover { color: var(--dark); }
.logo-icon {
    background: linear-gradient(135deg, var(--orange), var(--orange-hover));
    color: var(--white);
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.15rem;
    box-shadow: var(--shadow-orange);
    transition: transform var(--transition);
}
.logo:hover .logo-icon { transform: rotate(-6deg) scale(1.05); }
.logo-text { color: var(--dark); }
.logo-text b { color: var(--orange); }

/* Desktop Nav — inline flex row in header */
.desktop-nav {
    display: flex;
    gap: 0.25rem;
}
.nav-link {
    padding: 0.55rem 0.9rem;
    border-radius: var(--radius-full);
    color: var(--gray-700);
    font-weight: 600;
    font-size: 0.88rem;
    transition: all var(--transition);
    position: relative;
    letter-spacing: -0.01em;
    white-space: nowrap;
}
.nav-link:hover { color: var(--orange); background: var(--orange-bg); }
.nav-link.active { color: var(--orange); background: var(--orange-bg); }

/* Header Actions — Desktop only */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
}
.nav-icon {
    font-size: 1.2rem;
    padding: 0.55rem;
    border-radius: var(--radius);
    transition: all var(--transition);
    position: relative;
}
.nav-icon:hover { background: var(--gray-100); transform: scale(1.1); }

/* Mobile menu button — hidden on desktop */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.4rem;
    color: var(--dark);
}

/* ══════════════════════════════════════
   MOBILE NAV OVERLAY
   Lives OUTSIDE <header> in DOM so z-index works
   ══════════════════════════════════════ */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    flex-direction: column;
    padding: 0;
    z-index: 99999;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    border-top: 2px solid var(--gray-200);
    box-shadow: var(--shadow-xl);
}
.mobile-nav-overlay.open {
    display: flex;
}
.mobile-nav-overlay .nav-link {
    font-size: 1rem;
    padding: 0.9rem 1.25rem;
    border-radius: 0;
    border-bottom: 1px solid var(--gray-100);
    width: 100%;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}
.mobile-nav-overlay .nav-link:hover {
    background: var(--orange-bg);
    color: var(--orange);
}
.mobile-nav-overlay .nav-link:active {
    background: var(--orange-bg);
}
.mobile-nav-overlay hr {
    border: none;
    border-top: 2px solid var(--gray-200);
    margin: 0;
}

/* User Menu */
.user-menu { position: relative; }
.user-menu-btn {
    background: var(--gray-100);
    border: 1.5px solid var(--gray-200);
    border-radius: var(--radius-full);
    padding: 0.45rem 0.9rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--dark);
    transition: all var(--transition);
}
.user-menu-btn:hover { border-color: var(--orange); background: var(--orange-bg); }
.user-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-xl);
    min-width: 220px;
    padding: 0.5rem;
    z-index: 2000;
    border: 1px solid var(--gray-200);
    animation: dropIn 0.2s ease;
}
@keyframes dropIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}
.user-menu.open .user-dropdown { display: block; }
.user-dropdown a {
    display: flex;
    align-items: center;
    padding: 0.6rem 0.85rem;
    font-size: 0.88rem;
    color: var(--dark);
    border-radius: var(--radius-sm);
    font-weight: 500;
    transition: all var(--transition-fast);
}
.user-dropdown a:hover { background: var(--orange-bg); color: var(--orange); }
.user-dropdown hr { border: none; border-top: 1px solid var(--gray-200); margin: 0.35rem 0; }

/* ══════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.65rem 1.4rem;
    border-radius: var(--radius-full);
    font-family: var(--font-heading), serif;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all var(--transition);
    text-align: center;
    letter-spacing: -0.01em;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}
.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(255,255,255,0.15), transparent);
    pointer-events: none;
}
.btn-primary {
    background: linear-gradient(135deg, var(--orange), var(--orange-hover));
    color: var(--white);
    border-color: var(--orange);
    box-shadow: var(--shadow-orange);
}
.btn-primary:hover {
    background: linear-gradient(135deg, var(--orange-hover), #CC4700);
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(255,111,15,0.35);
    color: var(--white);
}
.btn-primary:active { transform: translateY(0); }
.btn-outline {
    background: var(--white);
    color: var(--orange);
    border-color: var(--gray-200);
}
.btn-outline::after { display: none; }
.btn-outline:hover {
    border-color: var(--orange);
    background: var(--orange-bg);
    color: var(--orange);
}
.btn-danger { background: var(--red); color: var(--white); border-color: var(--red); }
.btn-danger:hover { background: #D63A5E; transform: translateY(-1px); color: var(--white); }
.btn-sm { padding: 0.4rem 0.85rem; font-size: 0.8rem; }
.btn-lg { padding: 0.85rem 2.2rem; font-size: 1rem; }
.btn-full { width: 100%; }

/* ══════════════════════════════════════
   FORMS
   ══════════════════════════════════════ */
.form-input, select.form-input, textarea.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
    transition: all var(--transition);
    background: var(--white);
    color: var(--dark);
    line-height: 1.5;
}
.form-input:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 4px var(--orange-glow);
    background: var(--white);
}
.form-input::placeholder { color: var(--gray-400); }
select.form-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23777' fill='none' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}
textarea.form-input { resize: vertical; min-height: 100px; }
.form-group { margin-bottom: 1.25rem; }
.form-group label {
    display: block;
    font-family: var(--font-heading), serif;
    font-weight: 700;
    margin-bottom: 0.4rem;
    font-size: 0.88rem;
    color: var(--dark-secondary);
}
.form-error { color: var(--red); font-size: 0.78rem; margin-top: 0.3rem; display: block; font-weight: 500; }
.form-help { color: var(--gray-500); font-size: 0.78rem; margin-top: 0.2rem; display: block; }
.form-card {
    background: var(--white);
    padding: 2rem 2.25rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    max-width: 720px;
    border: 1px solid var(--gray-200);
}
input[type="checkbox"], input[type="radio"] { accent-color: var(--orange); width: 18px; height: 18px; cursor: pointer; }
input[type="file"] {
    padding: 0.6rem;
    border: 2px dashed var(--gray-300);
    border-radius: var(--radius-sm);
    width: 100%;
    cursor: pointer;
    transition: border-color var(--transition);
    background: var(--gray-50);
}
input[type="file"]:hover { border-color: var(--orange); background: var(--orange-bg); }

/* ══════════════════════════════════════
   ALERTS / MESSAGES
   ══════════════════════════════════════ */
.messages-container { padding: 0.75rem 1.25rem; max-width: var(--max-width); margin: 0 auto; }
.alert {
    padding: 0.85rem 1.15rem;
    border-radius: var(--radius-sm);
    margin-bottom: 0.6rem;
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: slideDown 0.3s ease;
    border-left: 4px solid;
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
.alert-success { background: var(--green-bg); color: #2E7D32; border-left-color: var(--green); }
.alert-error, .alert-danger { background: var(--red-bg); color: #C62828; border-left-color: var(--red); }
.alert-warning { background: var(--yellow-bg); color: #F57F17; border-left-color: var(--yellow); }
.alert-info { background: var(--blue-bg); color: #1565C0; border-left-color: var(--blue); }
.alert-close { font-size: 1.3rem; opacity: 0.4; transition: opacity var(--transition-fast); line-height: 1; }
.alert-close:hover { opacity: 1; }

/* ══════════════════════════════════════
   HERO SECTION
   ══════════════════════════════════════ */
.hero {
    background: linear-gradient(165deg, var(--orange-bg) 0%, #FFF9F5 30%, var(--white) 100%);
    padding: 4.5rem 0 4rem;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(255,111,15,0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}
.hero-content { max-width: 620px; position: relative; z-index: 1; }
.hero h1 {
    font-size: clamp(2rem, 4.5vw, 3rem);
    font-weight: 800;
    margin-bottom: 0.85rem;
    letter-spacing: -0.03em;
    line-height: 1.15;
}
.hero p {
    font-size: 1.1rem;
    color: var(--gray-700);
    margin-bottom: 2rem;
    line-height: 1.7;
}
.hero-search {
    display: flex;
    gap: 0;
    background: var(--white);
    border-radius: var(--radius-full);
    padding: 6px;
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--gray-200);
    transition: border-color var(--transition);
}
.hero-search:focus-within {
    border-color: var(--orange);
    box-shadow: var(--shadow-lg), 0 0 0 4px var(--orange-glow);
}
.hero-search-input {
    flex: 1;
    padding: 0.85rem 1.25rem;
    border: none;
    background: transparent;
    font-size: 1rem;
    color: var(--dark);
    font-family: var(--font-body), serif;
    min-width: 0;
}
.hero-search-input::placeholder { color: var(--gray-400); }
.hero-search .btn { border-radius: var(--radius-full); padding: 0.75rem 2rem; flex-shrink: 0; }

/* ══════════════════════════════════════
   SECTIONS
   ══════════════════════════════════════ */
.section { padding: 3.5rem 0; }
.section-alt { background: var(--white); }
.section-title {
    font-size: clamp(1.25rem, 2.5vw, 1.6rem);
    font-weight: 800;
    margin-bottom: 1.75rem;
    letter-spacing: -0.02em;
}
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.75rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* ══════════════════════════════════════
   CATEGORY GRID
   ══════════════════════════════════════ */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
}
.category-card {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 1.5rem 0.75rem;
    text-align: center;
    transition: all var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.category-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--orange-bg), transparent);
    opacity: 0;
    transition: opacity var(--transition);
}
.category-card:hover {
    border-color: var(--orange);
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}
.category-card:hover::before { opacity: 1; }
.category-icon { font-size: 2.2rem; margin-bottom: 0.6rem; position: relative; z-index: 1; }
.category-card span {
    font-family: var(--font-heading);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--dark);
    position: relative;
    z-index: 1;
}

/* ══════════════════════════════════════
   LISTING GRID & CARDS
   ══════════════════════════════════════ */
.listing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 1.25rem;
}
.listing-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--gray-200);
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
}
.listing-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: transparent;
}
.listing-card-img {
    position: relative;
    height: 210px;
    background: var(--gray-100);
    overflow: hidden;
}
.listing-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}
.listing-card:hover .listing-card-img img { transform: scale(1.06); }
.listing-card-placeholder {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--gray-300);
    background: linear-gradient(135deg, var(--gray-100), var(--gray-50));
}
.listing-card-status {
    position: absolute;
    top: 0.65rem;
    left: 0.65rem;
    padding: 0.2rem 0.7rem;
    border-radius: var(--radius-full);
    font-family: var(--font-heading);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    backdrop-filter: blur(8px);
}
.status-active { background: rgba(69,178,107,0.9); color: var(--white); }
.status-reserved { background: rgba(255,111,15,0.9); color: var(--white); }
.status-sold { background: rgba(239,70,111,0.9); color: var(--white); }
.listing-card-body {
    padding: 1rem 1.15rem 1.15rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.listing-card-title {
    font-family: var(--font-heading);
    font-size: 0.92rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--dark);
}
.listing-card-price {
    color: var(--orange);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: -0.02em;
}
.listing-card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.76rem;
    color: var(--gray-500);
    margin-top: auto;
    padding-top: 0.6rem;
    border-top: 1px solid var(--gray-100);
    flex-wrap: wrap;
    gap: 0.25rem;
}

/* ══════════════════════════════════════
   JOB GRID & CARDS
   ══════════════════════════════════════ */
.job-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.15rem;
}
.job-card {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 1.35rem;
    transition: all var(--transition);
    position: relative;
}
.job-card::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: var(--orange);
    border-radius: var(--radius) 0 0 var(--radius);
    opacity: 0;
    transition: opacity var(--transition);
}
.job-card:hover { border-color: var(--orange); box-shadow: var(--shadow); }
.job-card:hover::before { opacity: 1; }
.job-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.6rem;
    margin-bottom: 0.6rem;
    flex-wrap: wrap;
}
.job-card h3 { font-size: 1rem; font-weight: 700; line-height: 1.35; }
.job-type-badge {
    background: var(--orange-bg);
    color: var(--orange);
    padding: 0.2rem 0.65rem;
    border-radius: var(--radius-full);
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 700;
    white-space: nowrap;
    letter-spacing: 0.02em;
    flex-shrink: 0;
}
.job-company { color: var(--gray-700); font-weight: 600; font-size: 0.9rem; }
.job-location { color: var(--gray-500); font-size: 0.85rem; margin-top: 0.2rem; }
.job-salary { color: var(--green); font-weight: 700; font-size: 0.9rem; margin-top: 0.35rem; }

/* ══════════════════════════════════════
   DETAIL PAGE
   ══════════════════════════════════════ */
.detail-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 2rem;
    align-items: start;
}
.detail-gallery { margin-bottom: 1.5rem; position: relative; }
.detail-img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    margin-bottom: 0.6rem;
    cursor: pointer;
    transition: opacity var(--transition);
}
.detail-img-placeholder {
    height: 320px;
    background: linear-gradient(135deg, var(--gray-100), var(--gray-50));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--gray-400);
}
.detail-price {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--orange);
    margin: 0.6rem 0;
    letter-spacing: -0.03em;
}
.detail-meta { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.25rem 0; }
.detail-meta span {
    background: var(--gray-100);
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-full);
    font-size: 0.82rem;
    color: var(--gray-700);
    font-weight: 500;
}
.detail-info { padding: 0.5rem 0; }
.detail-info h3 {
    margin-top: 1.75rem;
    margin-bottom: 0.6rem;
    font-size: 1.1rem;
    color: var(--dark);
    padding-bottom: 0.4rem;
    border-bottom: 2px solid var(--gray-100);
}
.detail-sidebar { position: sticky; top: calc(var(--header-height) + 1.5rem); }
.seller-card {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    text-align: center;
    margin-bottom: 1.15rem;
}
.seller-avatar {
    width: 68px; height: 68px; border-radius: 50%;
    background: linear-gradient(135deg, var(--orange), var(--orange-hover));
    color: var(--white);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-heading); font-size: 1.6rem; font-weight: 800;
    margin: 0 auto 0.85rem;
    box-shadow: var(--shadow-orange);
}
.seller-card h3 { margin-bottom: 0.85rem; font-size: 1.05rem; }
.seller-actions { margin-top: 0.85rem; display: flex; flex-direction: column; gap: 0.5rem; }
.safety-card {
    background: var(--yellow-bg);
    border: 2px solid #FFE082;
    border-radius: var(--radius);
    padding: 1.15rem;
    display: flex;
    gap: 0.85rem;
    font-size: 0.85rem;
    margin-bottom: 1.15rem;
    line-height: 1.55;
}
.safety-card span { font-size: 1.6rem; flex-shrink: 0; }

/* ══════════════════════════════════════
   AUTH PAGES
   ══════════════════════════════════════ */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - var(--header-height) - 100px);
    padding: 2rem 1rem;
}
.auth-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    padding: 2.75rem;
    width: 100%;
    max-width: 460px;
    border: 1px solid var(--gray-200);
}
.auth-card h1 { font-size: 1.75rem; margin-bottom: 0.3rem; text-align: center; font-weight: 800; }
.auth-subtitle { text-align: center; color: var(--gray-500); margin-bottom: 2rem; font-size: 0.95rem; }
.auth-link { text-align: center; margin-top: 1.5rem; font-size: 0.9rem; color: var(--gray-500); }
.auth-link a { color: var(--orange); font-weight: 700; }
.auth-link a:hover { text-decoration: underline; }

/* ══════════════════════════════════════
   NEIGHBOURHOOD SELECT
   ══════════════════════════════════════ */
.neighbourhood-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.6rem;
    margin-bottom: 1.75rem;
}
.neighbourhood-label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.65rem 0.85rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 500;
    transition: all var(--transition);
}
.neighbourhood-label:hover { border-color: var(--orange); background: var(--orange-bg); }
.neighbourhood-label:has(input:checked) {
    border-color: var(--orange);
    background: var(--orange-bg);
    color: var(--orange);
    font-weight: 700;
}

/* ══════════════════════════════════════
   DASHBOARD
   ══════════════════════════════════════ */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 1.5rem;
}
.dashboard-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 2px solid var(--gray-200);
    padding: 1.5rem;
    transition: border-color var(--transition);
}
.dashboard-card:hover { border-color: var(--gray-300); }
.dashboard-card h3 {
    margin-bottom: 1.15rem;
    font-size: 1.1rem;
    padding-bottom: 0.65rem;
    border-bottom: 2px solid var(--gray-100);
}
.dashboard-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--gray-100);
}
.dashboard-item:last-of-type { border-bottom: none; }
.dashboard-item a { color: var(--dark); font-weight: 600; font-size: 0.9rem; }
.dashboard-item a:hover { color: var(--orange); }

/* ══════════════════════════════════════
   BADGES
   ══════════════════════════════════════ */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.badge-active, .badge-green { background: var(--green-bg); color: var(--green); }
.badge-reserved, .badge-orange { background: var(--orange-bg); color: var(--orange); }
.badge-sold { background: var(--red-bg); color: var(--red); }

/* ══════════════════════════════════════
   PAGE HEADER & FILTER
   ══════════════════════════════════════ */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}
.filter-bar {
    display: flex;
    gap: 0.6rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    padding: 1rem 1.25rem;
    background: var(--white);
    border-radius: var(--radius);
    border: 2px solid var(--gray-200);
}
.filter-bar .form-input { max-width: 240px; padding: 0.6rem 0.85rem; font-size: 0.88rem; }

/* ══════════════════════════════════════
   PROMOTIONS
   ══════════════════════════════════════ */
.promo-tiers { display: grid; gap: 1rem; margin-bottom: 2rem; }
.promo-tier {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.35rem;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    cursor: pointer;
    transition: all var(--transition);
}
.promo-tier:has(input:checked) {
    border-color: var(--orange);
    background: var(--orange-bg);
    box-shadow: var(--shadow-orange);
}
.promo-tier input { margin-top: 0.25rem; }
.promo-tier-content h3 { font-size: 1.05rem; margin-bottom: 0.15rem; }
.promo-tier-content p { font-size: 0.85rem; color: var(--gray-500); }
.promo-price {
    color: var(--orange);
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.15rem;
}

/* ══════════════════════════════════════
   CHAT
   ══════════════════════════════════════ */
.chat-list { max-width: 720px; }
.chat-preview {
    display: flex;
    gap: 1rem;
    padding: 1.1rem 1rem;
    border-bottom: 1px solid var(--gray-100);
    align-items: center;
    transition: all var(--transition);
    border-radius: var(--radius-sm);
    margin-bottom: 2px;
}
.chat-preview:hover { background: var(--orange-bg); }
.chat-preview.unread { background: #FFF8F0; border-left: 3px solid var(--orange); }
.chat-preview-avatar {
    width: 52px; height: 52px; border-radius: 50%;
    background: linear-gradient(135deg, var(--orange), var(--orange-hover));
    color: var(--white);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-heading); font-weight: 800; font-size: 1.15rem;
    flex-shrink: 0;
}
.chat-preview-content { min-width: 0; flex: 1; }
.chat-preview-content h4 { font-size: 0.95rem; display: flex; align-items: center; gap: 0.5rem; font-weight: 700; }
.chat-preview-content p { font-size: 0.85rem; color: var(--gray-500); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.15rem; flex-wrap: wrap; }
.chat-messages {
    height: 500px;
    overflow-y: auto;
    padding: 1.25rem;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
}
.msg { margin-bottom: 1rem; max-width: 75%; }
.msg-mine { margin-left: auto; text-align: right; }
.msg-bubble {
    display: inline-block;
    padding: 0.75rem 1.1rem;
    border-radius: 20px;
    max-width: 100%;
    font-size: 0.92rem;
    line-height: 1.5;
    word-wrap: break-word;
    overflow-wrap: break-word;
}
.msg-mine .msg-bubble {
    background: linear-gradient(135deg, var(--orange), var(--orange-hover));
    color: var(--white);
    border-bottom-right-radius: 6px;
}
.msg-other .msg-bubble {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-bottom-left-radius: 6px;
}
.msg-time { font-size: 0.72rem; color: var(--gray-400); margin-top: 0.25rem; }
.msg-system { max-width: 100%; text-align: center; margin-bottom: 0.75rem; }
.msg-system-bubble {
    display: inline-block;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    background: var(--gray-100);
    color: var(--gray-500);
    font-size: 0.82rem;
    font-weight: 600;
}
.chat-input-area { display: flex; gap: 0.6rem; margin-top: 1rem; }

/* ══════════════════════════════════════
   PROFILE
   ══════════════════════════════════════ */
.profile-header {
    display: flex;
    gap: 1.75rem;
    align-items: center;
    margin-bottom: 2.5rem;
    padding: 2rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 2px solid var(--gray-200);
    flex-wrap: wrap;
}
.profile-avatar {
    width: 88px; height: 88px; border-radius: 50%;
    background: linear-gradient(135deg, var(--orange), var(--orange-hover));
    color: var(--white);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-heading); font-size: 2.2rem; font-weight: 800;
    flex-shrink: 0;
    box-shadow: var(--shadow-orange);
}

/* ══════════════════════════════════════
   APPLICATION CARD
   ══════════════════════════════════════ */
.application-card {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 1.5rem;
    margin-bottom: 1.15rem;
    transition: border-color var(--transition);
}
.application-card:hover { border-color: var(--gray-300); }
.application-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.85rem;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.inline-actions { display: flex; gap: 0.5rem; margin-top: 0.85rem; flex-wrap: wrap; }

/* ══════════════════════════════════════
   SAFETY BANNER
   ══════════════════════════════════════ */
.safety-banner {
    background: linear-gradient(135deg, var(--yellow-bg), #FFF3D0);
    padding: 2.25rem 0;
    margin-top: 3rem;
    border-top: 2px solid #FFE082;
}
.safety-content { display: flex; gap: 1.15rem; align-items: center; flex-wrap: wrap; }
.safety-icon { font-size: 2.75rem; }
.safety-content h3 { color: var(--dark); margin-bottom: 0.3rem; font-size: 1.15rem; }
.safety-content p { color: var(--gray-700); font-size: 0.95rem; line-height: 1.6; }

/* ══════════════════════════════════════
   PAGINATION
   ══════════════════════════════════════ */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 2px solid var(--gray-100);
    flex-wrap: wrap;
}
.page-info { font-size: 0.88rem; color: var(--gray-500); font-weight: 600; }

/* ══════════════════════════════════════
   EMPTY STATE
   ══════════════════════════════════════ */
.empty-state {
    text-align: center;
    padding: 4rem 1.5rem;
    color: var(--gray-500);
    font-size: 1.05rem;
    grid-column: 1 / -1;
}
.empty-state a { color: var(--orange); font-weight: 700; }

/* ══════════════════════════════════════
   NOTIFICATIONS
   ══════════════════════════════════════ */
.notification-item {
    display: flex;
    gap: 1rem;
    padding: 1.15rem;
    border-bottom: 1px solid var(--gray-100);
    align-items: center;
    transition: all var(--transition);
    border-radius: var(--radius-sm);
}
.notification-item:hover { background: var(--orange-bg); }
.notification-item.unread { background: #FFF8F0; border-left: 3px solid var(--orange); }
.notification-icon { font-size: 1.5rem; flex-shrink: 0; }
.notification-content h4 { font-size: 0.92rem; margin-bottom: 0.2rem; font-weight: 700; }
.notification-content p { font-size: 0.82rem; color: var(--gray-500); }
.notification-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--orange); flex-shrink: 0; }

/* ══════════════════════════════════════
   FOOTER
   ══════════════════════════════════════ */
.site-footer {
    background: var(--dark);
    color: var(--gray-400);
    padding: 3.5rem 0 1.75rem;
    margin-top: 4rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}
.footer-brand .logo { margin-bottom: 0.85rem; }
.footer-brand .logo-text { color: var(--white); }
.footer-brand p { font-size: 0.9rem; color: var(--gray-500); line-height: 1.6; }
.footer-links h4 {
    color: var(--white);
    font-family: var(--font-heading);
    margin-bottom: 1rem;
    font-size: 0.95rem;
    font-weight: 700;
}
.footer-links a {
    display: block;
    color: var(--gray-500);
    font-size: 0.88rem;
    padding: 0.25rem 0;
    transition: all var(--transition-fast);
}
.footer-links a:hover { color: var(--orange); padding-left: 4px; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 1.25rem;
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    color: var(--gray-500);
    flex-wrap: wrap;
    gap: 0.5rem;
}
.footer-safety { color: var(--orange); font-weight: 600; }

/* ══════════════════════════════════════
   UTILITY & ANIMATION
   ══════════════════════════════════════ */
.img-preview { border-radius: var(--radius-sm); margin-top: 0.5rem; border: 2px solid var(--gray-200); }
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--gray-100); }
::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--gray-500); }

/* ══════════════════════════════════════
   DELIVERY PARTNER
   ══════════════════════════════════════ */
.delivery-level-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.65rem;
    border-radius: var(--radius-full);
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.delivery-level-1 { background: var(--blue-bg); color: var(--blue); }
.delivery-level-2 { background: var(--green-bg); color: var(--green); }
.delivery-level-3 { background: var(--orange-bg); color: var(--orange); }
.delivery-level-4 { background: #F3F0FF; color: #7B61FF; }

.star-rating i { cursor: pointer; transition: color var(--transition-fast), transform var(--transition-fast); }
.star-rating i:hover { transform: scale(1.15); }

.delivery-recommend-card {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 1.25rem;
    transition: all var(--transition);
}
.delivery-recommend-card:hover {
    border-color: var(--orange);
    box-shadow: var(--shadow);
}

/* ══════════════════════════════════════
   INFO CARDS (reusable)
   ══════════════════════════════════════ */
.info-card {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
    transition: all var(--transition);
}
.info-card:hover {
    border-color: var(--gray-300);
    box-shadow: var(--shadow-sm);
}
.info-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.85rem;
    font-size: 1.3rem;
}
.info-card h4 { font-size: 0.95rem; margin-bottom: 0.3rem; }
.info-card p { font-size: 0.82rem; color: var(--gray-500); line-height: 1.55; margin: 0; }

/* ══════════════════════════════════════
   STATS GRID (reusable)
   ══════════════════════════════════════ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 1rem;
}
.stat-card {
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius);
    padding: 1.25rem;
    text-align: center;
    transition: border-color var(--transition);
}
.stat-card:hover { border-color: var(--gray-300); }
.stat-card .stat-value {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--orange);
    line-height: 1.2;
}
.stat-card .stat-label {
    font-size: 0.82rem;
    color: var(--gray-500);
    margin-top: 0.25rem;
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE — TABLET (max-width: 1024px)
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .detail-layout {
        grid-template-columns: 1fr 280px;
        gap: 1.5rem;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE — MOBILE (max-width: 768px)
   KEY FIX: .desktop-nav is simply hidden.
   Mobile menu is handled by .mobile-nav-overlay outside header.
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
    :root {
        --header-height: 60px;
    }

    /* Simply hide desktop nav and actions */
    .desktop-nav {
        display: none !important;
    }
    .header-actions {
        display: none !important;
    }

    /* Show hamburger */
    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border-radius: var(--radius-sm);
        transition: background var(--transition-fast);
    }
    .mobile-menu-btn:hover {
        background: var(--gray-100);
    }
    .header-inner {
        padding: 0 0.75rem;
    }

    /* Update mobile overlay top for smaller header */
    .mobile-nav-overlay {
        top: var(--header-height);
    }

    /* ── Hero ── */
    .hero {
        padding: 2.5rem 0 2rem;
    }
    .hero h1 {
        font-size: 1.75rem;
    }
    .hero p {
        font-size: 0.95rem;
        margin-bottom: 1.5rem;
    }
    .hero-search {
        flex-direction: column;
        border-radius: var(--radius);
        padding: 0.5rem;
    }
    .hero-search-input {
        padding: 0.75rem;
    }
    .hero-search .btn {
        border-radius: var(--radius-sm);
        width: 100%;
    }

    /* ── Detail page ── */
    .detail-layout {
        grid-template-columns: 1fr !important;
    }
    .detail-sidebar {
        position: static;
    }
    .detail-img {
        max-height: 300px;
    }
    .detail-price {
        font-size: 1.6rem;
    }

    /* ── Listing grid ── */
    .listing-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.85rem;
    }
    .listing-card-img {
        height: 155px;
    }
    .listing-card-body {
        padding: 0.75rem 0.85rem;
    }
    .listing-card-title {
        font-size: 0.85rem;
    }
    .listing-card-price {
        font-size: 0.95rem;
    }

    /* ── Job grid ── */
    .job-grid {
        grid-template-columns: 1fr !important;
    }

    /* ── Category grid ── */
    .category-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 0.65rem;
    }
    .category-card {
        padding: 1rem 0.5rem;
    }
    .category-icon {
        font-size: 1.75rem;
    }

    /* ── Dashboard ── */
    .dashboard-grid {
        grid-template-columns: 1fr !important;
    }

    /* ── Filter bar ── */
    .filter-bar {
        flex-direction: column !important;
        padding: 0.85rem;
    }
    .filter-bar .form-input,
    .filter-bar select,
    .filter-bar input {
        max-width: 100% !important;
        width: 100% !important;
    }

    /* ── Page header ── */
    .page-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 0.75rem !important;
    }

    /* ── Auth & forms ── */
    .auth-card {
        padding: 2rem 1.5rem;
        border-radius: var(--radius-lg);
        max-width: 100% !important;
        margin: 0 0.5rem !important;
    }
    .form-card {
        padding: 1.5rem;
        max-width: 100% !important;
        margin: 0 0.5rem !important;
    }

    /* ── Profile ── */
    .profile-header {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
    }

    /* ── Neighbourhood ── */
    .neighbourhood-grid {
        grid-template-columns: 1fr 1fr;
    }

    /* ── Chat ── */
    .chat-messages {
        height: 400px;
    }
    .chat-preview-content p {
        max-width: 200px;
    }

    /* ── Footer ── */
    .footer-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    /* ── Sections ── */
    .section {
        padding: 2.25rem 0;
    }
    .section-title {
        font-size: 1.25rem;
    }

    /* ── Seller card ── */
    .seller-card {
        width: 100% !important;
    }

    /* ── Tables ── */
    table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* ══ Override inline styles from Django templates ══ */
    [style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
    [style*="display:flex"],
    [style*="display: flex"] {
        flex-wrap: wrap !important;
    }
    .page-content,
    .page-content > *,
    .page-content > * > *,
    .page-content > * > * > * {
        max-width: 100% !important;
        overflow-wrap: break-word;
        word-wrap: break-word;
    }
    section[style*="background"] {
        overflow: hidden;
    }
    .page-content [style*="gap:1.25rem"],
    .page-content [style*="gap: 1.25rem"],
    .page-content [style*="gap:1.5rem"],
    .page-content [style*="gap: 1.5rem"],
    .page-content [style*="gap:2rem"],
    .page-content [style*="gap: 2rem"] {
        gap: 0.75rem !important;
    }
    .specs-grid,
    .stats-grid {
        grid-template-columns: 1fr 1fr !important;
    }
    .photo-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE — SMALL PHONES (max-width: 480px)
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
    .listing-grid {
        grid-template-columns: 1fr !important;
    }
    .container {
        padding: 0 0.75rem;
    }
    h1 {
        font-size: 1.3rem !important;
    }
    .btn-lg {
        padding: 0.75rem 1.25rem !important;
        font-size: 0.88rem !important;
    }
    .detail-gallery img.detail-img {
        max-height: 250px !important;
    }
    .neighbourhood-grid {
        grid-template-columns: 1fr !important;
    }
    [style*="grid-template-columns"] {
        grid-template-columns: 1fr !important;
    }
    [style*="display:flex"],
    [style*="display: flex"] {
        flex-wrap: wrap !important;
    }
    .specs-grid,
    .stats-grid {
        grid-template-columns: 1fr 1fr !important;
    }
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE — VERY SMALL PHONES (max-width: 400px)
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 400px) {
    .listing-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 0.6rem;
    }
    .listing-card-img {
        height: 130px;
    }
    .listing-card-body {
        padding: 0.6rem;
    }
    .listing-card-title {
        font-size: 0.78rem;
    }
    .listing-card-price {
        font-size: 0.85rem;
    }
    .listing-card-meta {
        display: none;
    }
    .container {
        padding: 0 0.85rem;
    }
    .specs-grid,
    .stats-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ══════════════════════════════════════════════════════════════
   BUSINESS SWITCHER
   ══════════════════════════════════════════════════════════════ */
.biz-switcher {
    padding: 0.5rem 0;
}
.biz-switcher-label {
    font-size: 0.72rem;
    color: var(--gray-500);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.25rem 1rem 0.35rem;
}
.biz-switch-option {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0.5rem 1rem;
    border: none;
    background: none;
    font-size: 0.88rem;
    font-family: var(--font-body);
    color: var(--dark);
    cursor: pointer;
    transition: background var(--transition-fast);
    text-align: left;
}
.biz-switch-option:hover {
    background: var(--gray-50);
}
.biz-switch-option.active {
    background: var(--orange-bg);
    color: var(--orange);
    font-weight: 600;
}
.biz-switch-tag {
    font-size: 0.68rem;
    color: var(--gray-400);
    margin-left: auto;
    font-weight: 500;
}
.biz-active-banner {
    background: linear-gradient(135deg, var(--orange-bg), #fff3e8);
    border-bottom: 1px solid rgba(255, 111, 15, 0.2);
    padding: 0.4rem 0;
    text-align: center;
    font-size: 0.85rem;
    color: var(--dark);
}
.biz-mobile-switcher {
    padding: 0.5rem 0;
}
.biz-posting-banner {
    background: var(--orange-bg);
    border: 2px solid rgba(255, 111, 15, 0.2);
    border-radius: var(--radius);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    font-size: 0.88rem;
}
.biz-posting-banner i {
    color: var(--orange);
    font-size: 1.1rem;
}
.biz-posting-banner strong {
    color: var(--orange);
}

/* ══════════════════════════════════════════════════════════════
   PRINT
   ══════════════════════════════════════════════════════════════ */
/* ══════════════════════════════════════════════════════════════
   MOBILE BOTTOM NAV BAR (Korean Karrot-style)
   Hidden on desktop, shown on mobile for authenticated users.
   ══════════════════════════════════════════════════════════════ */
.mobile-bottom-nav {
    display: none; /* shown only on mobile via media query */
}

.mobile-header-icons {
    display: none; /* shown only on mobile via media query */
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 9000;
        background: var(--white);
        border-top: 1px solid var(--gray-200);
        box-shadow: 0 -2px 12px rgba(0,0,0,0.08);
        padding: 0.3rem 0;
        padding-bottom: max(0.3rem, env(safe-area-inset-bottom));
        justify-content: space-around;
        align-items: center;
    }
    .bottom-tab {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        color: var(--gray-500);
        font-size: 0.68rem;
        font-weight: 600;
        padding: 0.3rem 0.5rem 0.15rem;
        border-radius: 8px;
        transition: all 0.15s;
        min-width: 52px;
        gap: 0.1rem;
    }
    .bottom-tab i {
        font-size: 1.3rem;
        line-height: 1;
    }
    .bottom-tab span {
        line-height: 1.2;
        letter-spacing: -0.01em;
    }
    .bottom-tab:hover,
    .bottom-tab:active {
        color: var(--orange);
    }
    .bottom-tab.active {
        color: var(--orange);
    }
    .bottom-tab.active i {
        transform: scale(1.1);
    }

    /* Center sell button with raised orange circle */
    .bottom-tab-sell {
        position: relative;
        color: var(--orange);
    }
    .sell-btn-circle {
        width: 44px;
        height: 44px;
        border-radius: 50%;
        background: var(--orange);
        color: var(--white);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.4rem;
        margin-top: -18px;
        box-shadow: 0 3px 12px rgba(255,111,15,0.35);
        transition: all 0.2s;
    }
    .bottom-tab-sell:hover .sell-btn-circle,
    .bottom-tab-sell:active .sell-btn-circle {
        transform: scale(1.08);
        box-shadow: 0 4px 16px rgba(255,111,15,0.45);
    }
    .bottom-tab-sell span {
        color: var(--orange);
        margin-top: 0.15rem;
    }

    /* Mobile header icons (map + notifications near hamburger) */
    .mobile-header-icons {
        display: flex;
        align-items: center;
        gap: 0.25rem;
        margin-left: auto;
        margin-right: 0.25rem;
    }
    .mobile-icon {
        font-size: 1.15rem;
        padding: 0.45rem;
        border-radius: var(--radius-sm);
        color: var(--dark);
        transition: all 0.15s;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .mobile-icon:hover,
    .mobile-icon:active {
        background: var(--orange-bg);
        color: var(--orange);
    }

    /* Add bottom padding to main content so it's not hidden behind bottom nav */
    .main-content {
        padding-bottom: 70px;
    }

    /* Also add bottom padding to footer */
    .site-footer {
        padding-bottom: 70px;
    }
}

/* ══════════════════════════════════════════════════════════════
   PRINT
   ══════════════════════════════════════════════════════════════ */
@media print {
    .site-header, .site-footer, .safety-card, .safety-banner,
    .btn, .filter-bar, .mobile-nav-overlay, .mobile-bottom-nav {
        display: none !important;
    }
    body {
        background: white;
    }
    .detail-layout {
        grid-template-columns: 1fr;
    }
}