:root {
    --primary: #12b7b0;
    --primary-dark: #0b8f8a;
    --primary-soft: #dff8f6;
    --primary-soft-2: #c8f0ec;
    --accent: #ebfbfa;
    --text: #17313a;
    --muted: #5d7480;
    --border: #cfe9e7;
    --bg: #f5fbfb;
    --surface: #ffffff;
    --surface-2: #f8fdfd;
    --white: #ffffff;
    --success-bg: #e8f7ee;
    --success-text: #1f7a45;
    --error-bg: #fdeeee;
    --error-text: #b42318;
    --shadow: 0 16px 40px rgba(18, 183, 176, 0.10);
    --footer-text: rgba(255,255,255,0.92);
    --footer-muted: rgba(255,255,255,0.78);
}

html[data-theme='dark'] {
    --primary-soft: #153c3b;
    --primary-soft-2: #174847;
    --accent: #102f31;
    --text: #e7f8f7;
    --muted: #a9c5c7;
    --border: #23494c;
    --bg: #081819;
    --surface: #0d2325;
    --surface-2: #10292b;
    --white: #ffffff;
    --success-bg: #143324;
    --success-text: #a6e0bc;
    --error-bg: #3a1c1c;
    --error-text: #ffb1a9;
    --shadow: 0 18px 44px rgba(0, 0, 0, 0.35);
}

* {
    box-sizing: border-box;
}

html {
    color-scheme: light;
}

html[data-theme='dark'] {
    color-scheme: dark;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    background: linear-gradient(180deg, var(--surface-2) 0%, var(--bg) 100%);
    color: var(--text);
    transition: background .25s ease, color .25s ease;
}

a {
    color: var(--primary-dark);
}

.navbar {
    background: color-mix(in srgb, var(--surface) 88%, transparent);
    border-bottom: 1px solid var(--border);
    padding: 14px 0 16px;
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(14px);
    box-shadow: 0 6px 24px rgba(15, 23, 42, 0.05);
}

.container {
    width: 92%;
    max-width: 1120px;
    margin: 0 auto;
}

.nav-shell {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.nav-top-row {
    min-height: 54px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: var(--text);
    font-weight: bold;
    font-size: 20px;
    flex-shrink: 0;
}

.brand-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1;
}

.brand-text strong {
    display: block;
    font-size: 19px;
    letter-spacing: -0.3px;
}

.brand-text small {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.brand-badge {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    background:
        radial-gradient(circle at 28% 22%, rgba(255,255,255,.28), transparent 30%),
        linear-gradient(135deg, #0f1b4d 0%, #0b8f8a 55%, #39d4ce 100%);
    color: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow: 0 14px 30px rgba(18, 183, 176, 0.22);
    position: relative;
    overflow: hidden;
}

.brand-badge::after {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: 17px;
    border: 1px solid rgba(255,255,255,.14);
    pointer-events: none;
}

.brand-badge svg {
    width: 30px;
    height: 30px;
    position: relative;
    z-index: 1;
}

.nav-links,
.nav-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.nav-primary-links {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.navbar a.nav-link,
.navbar a.nav-action,
.theme-toggle {
    color: var(--text);
    text-decoration: none;
    padding: 10px 14px;
    border-radius: 12px;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
    font-weight: 600;
    border: 1px solid transparent;
    background: transparent;
    font-size: 14px;
}

.navbar a.nav-link:hover,
.navbar a.nav-action:hover,
.theme-toggle:hover {
    background: var(--accent);
    border-color: var(--border);
}

.navbar a.nav-action.primary-mini {
    background: linear-gradient(135deg, var(--primary) 0%, #27c7c1 100%);
    color: var(--white);
    box-shadow: 0 12px 24px rgba(18, 183, 176, 0.18);
}

.navbar a.nav-action.primary-mini:hover {
    background: var(--primary-dark);
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    border: 1px solid var(--border);
    background: var(--surface);
}

.theme-dark { display: none; }
html[data-theme='dark'] .theme-dark { display: inline; }
html[data-theme='dark'] .theme-light { display: none; }

.nav-categories-row {
    display: grid;
    grid-template-columns: auto minmax(280px, 540px);
    gap: 16px;
    align-items: center;
    padding-left: 2px;
}

.nav-categories-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-weight: 700;
    letter-spacing: 0.2px;
}

.nav-categories-label-icon {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--primary-soft);
    color: var(--primary-dark);
}

.nav-categories-dropdown {
    position: relative;
}

.nav-categories-trigger {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    border: 1px solid var(--border);
    background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
    color: var(--text);
    border-radius: 18px;
    padding: 14px 18px;
    cursor: pointer;
    box-shadow: 0 10px 28px rgba(18, 183, 176, 0.08);
}

.nav-categories-trigger-left {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: 3px;
}

.nav-categories-trigger-title {
    font-weight: 700;
}

.nav-categories-trigger-sub {
    font-size: 12px;
    color: var(--muted);
}

.nav-categories-trigger .chevron {
    transition: transform .2s ease;
    color: var(--primary-dark);
}

.nav-categories-dropdown.open .nav-categories-trigger .chevron {
    transform: rotate(180deg);
}

.nav-categories-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    width: min(760px, 82vw);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 18px;
    box-shadow: 0 26px 70px rgba(7, 20, 24, 0.16);
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity .18s ease, transform .18s ease;
}

.nav-categories-dropdown.open .nav-categories-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.nav-categories-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.nav-categories-menu-header strong {
    font-size: 18px;
}

.nav-categories-menu-header span {
    color: var(--muted);
    font-size: 13px;
}

.nav-categories-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.nav-category-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 15px;
    border-radius: 16px;
    text-decoration: none;
    color: var(--text);
    background: var(--surface-2);
    border: 1px solid var(--border);
    font-weight: 600;
    transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.nav-category-item:hover {
    transform: translateY(-1px);
    background: var(--accent);
    border-color: color-mix(in srgb, var(--primary) 40%, var(--border));
    box-shadow: 0 12px 24px rgba(18, 183, 176, 0.10);
}

.nav-category-item.active {
    background: linear-gradient(135deg, var(--primary-soft) 0%, var(--primary-soft-2) 100%);
    border-color: color-mix(in srgb, var(--primary) 60%, var(--border));
}

.cat-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--primary) 16%, var(--surface));
    font-size: 18px;
}

.welcome {
    color: var(--muted);
    margin-right: 6px;
    font-weight: bold;
}

.body-content {
    margin-top: 28px;
    margin-bottom: 40px;
}

.page-header {
    margin-bottom: 18px;
}

.page-header h1,
.page-header h2 {
    margin: 0 0 8px 0;
}

.page-header p {
    margin: 0;
    color: var(--muted);
}

.hero {
    background: linear-gradient(135deg, #eaf7f4 0%, #ffffff 62%, #f6fbfa 100%);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 34px;
    display: flex;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
}

.hero .button-link {
    box-shadow: 0 10px 22px rgba(15, 93, 94, 0.12);
}

.hero h1 {
    margin: 0 0 10px 0;
    font-size: 34px;
    line-height: 1.2;
}

.hero p {
    margin: 0 0 18px 0;
    color: var(--muted);
    line-height: 1.6;
}

.hero-stats {
    min-width: 240px;
    display: grid;
    gap: 14px;
}

.hero-stat {
    background: rgba(255,255,255,0.92);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 18px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.hero-stat strong {
    display: block;
    font-size: 24px;
    margin-bottom: 4px;
}

.card,
.form-card,
.detail-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 22px;
    margin-bottom: 22px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.form-card {
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: var(--shadow);
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 14px;
}

.section-title h2,
.section-title h3 {
    margin: 0;
}

.section-title span {
    color: var(--muted);
    font-size: 14px;
}

label {
    display: block;
    font-weight: bold;
    margin-bottom: 6px;
}

input,
select,
textarea {
    width: 100%;
    padding: 13px 14px;
    margin-top: 2px;
    margin-bottom: 14px;
    border: 1px solid #cfe0dc;
    border-radius: 12px;
    font-size: 14px;
    background: #fcfefe;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(31, 78, 121, 0.12);
}

button,
.button-link {
    background: linear-gradient(135deg, var(--primary) 0%, #16797a 100%);
    color: var(--white);
    border: none;
    padding: 11px 18px;
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    font-weight: bold;
    transition: background .2s ease, transform .05s ease, box-shadow .2s ease;
    box-shadow: 0 10px 22px rgba(15, 93, 94, 0.12);
}

button:hover,
.button-link:hover {
    background: var(--primary-dark);
}

.button-link.secondary,
.secondary-button {
    background: #eef7f5;
    color: var(--text);
    box-shadow: none;
}

.button-link.secondary:hover,
.secondary-button:hover {
    background: #dde6ef;
}

.button-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: end;
}

.listing-card {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 24px;
    align-items: start;
}

.listing-card:hover {
    transform: translateY(-2px);
    transition: transform .18s ease, box-shadow .18s ease;
    box-shadow: var(--shadow);
}

.listing-image,
.listing-image img,
.no-image,
.detail-image-wrap,
.detail-image {
    width: 100%;
}

.listing-image img,
.detail-image {
    height: 190px;
    border-radius: 16px;
    object-fit: cover;
    border: 1px solid var(--border);
}

.detail-layout {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 24px;
    align-items: start;
}

.no-image {
    height: 190px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef2f7;
    border: 1px dashed #c3ced9;
    border-radius: 14px;
    color: var(--muted);
    font-weight: bold;
}

.listing-content h3,
.detail-info h2 {
    margin-top: 0;
    margin-bottom: 12px;
}

.listing-meta,
.detail-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.meta-box {
    background: #f8fcfb;
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 13px;
}

.meta-box small {
    color: var(--muted);
    display: block;
    margin-bottom: 4px;
}

.meta-box strong {
    font-size: 15px;
}

.description-box {
    line-height: 1.7;
    color: #374151;
}

.table-wrapper {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--white);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.04);
}

.table-box {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
}

.table-box th,
.table-box td {
    border-bottom: 1px solid #e5edf5;
    padding: 13px 12px;
    text-align: left;
    vertical-align: top;
}

.table-box th {
    background: #f8fafc;
    font-size: 14px;
}

.table-box tr:last-child td {
    border-bottom: none;
}

.small-link {
    color: var(--primary);
    margin-right: 10px;
    text-decoration: none;
    font-weight: bold;
}

.small-link.danger {
    color: #c0392b;
}

.badge {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: bold;
}

.badge.success {
    background: #e8f7ee;
    color: #1f7a45;
}

.badge.warning {
    background: #fff4df;
    color: #9a6700;
}

.badge.admin {
    background: #e7f0fb;
    color: #154b75;
}

.success-box {
    background: var(--success-bg);
    color: var(--success-text);
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 14px;
    border: 1px solid #cfead9;
}

.error-box,
.field-error {
    background: var(--error-bg);
    color: var(--error-text);
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 14px;
    display: block;
    border: 1px solid #f3c8c8;
}

.field-error:empty {
    display: none;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.stat-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.stat-card p {
    font-size: 30px;
    margin: 8px 0 0 0;
    font-weight: bold;
    color: var(--primary);
}

.quick-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 18px;
}

.quick-link-card {
    background: #f9fcfb;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 18px;
}

.quick-link-card p {
    color: var(--muted);
    min-height: 42px;
}



.filter-grid-advanced {
    grid-template-columns: 1.2fr 1fr auto;
}

.filter-actions {
    display: flex;
    gap: 10px;
    align-items: end;
    padding-bottom: 14px;
}

.empty-state {
    text-align: center;
    padding: 28px;
}

.empty-state h3 {
    margin-top: 0;
    margin-bottom: 8px;
}

.image-preview-wrap {
    margin-top: 4px;
    margin-bottom: 16px;
}

.image-preview {
    width: 100%;
    max-width: 320px;
    height: 220px;
    object-fit: cover;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: var(--white);
}

.image-preview-placeholder {
    width: 100%;
    max-width: 320px;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--muted);
    border: 1px dashed #c3ced9;
    border-radius: 14px;
    background: #f8fafc;
    padding: 12px;
}

.pending-card p {
    color: #9a6700;
}

@media (max-width: 768px) {
    .filter-grid-advanced {
        grid-template-columns: 1fr;
    }

    .filter-actions {
        padding-bottom: 0;
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}


.page-header.centered {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 18px auto;
}

.form-card.centered,
.narrow-card.centered {
    margin-left: auto;
    margin-right: auto;
}

.narrow-card {
    max-width: 900px;
}

.table-wrapper.centered {
    max-width: 980px;
    margin: 0 auto;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}

.hero {
    align-items: center;
}

.hero > div:first-child {
    max-width: 620px;
}

.hero-stats {
    justify-content: center;
}

.filter-grid-advanced {
    max-width: 940px;
    margin: 0 auto;
}

.listing-card {
    max-width: 980px;
    margin-left: auto;
    margin-right: auto;
}

.empty-state {
    text-align: center;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.dashboard-grid,
.quick-links {
    max-width: 980px;
    margin-left: auto;
    margin-right: auto;
}

.page-shell {
    max-width: 980px;
    margin: 0 auto;
}


.narrow-card {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.centered {
    margin-left: auto;
    margin-right: auto;
}

.empty-state {
    text-align: center;
    padding: 34px 24px;
}

.empty-state h3 {
    margin-top: 0;
}

@media (max-width: 768px) {
    .brand-text strong {
        font-size: 18px;
    }

    .hero {
        border-radius: 20px;
        padding: 24px;
    }
}

/* =============================================
   TASARIM İYİLEŞTİRMELERİ
   ============================================= */

/* Daha güzel font */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

body {
    font-family: 'Plus Jakarta Sans', Arial, sans-serif;
}

/* Logo badge - daha belirgin */
.brand-badge {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: linear-gradient(145deg, #0f7a7b 0%, #0a4748 100%);
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
    box-shadow: 0 6px 18px rgba(15, 93, 94, 0.30), inset 0 1px 0 rgba(255,255,255,0.15);
    transition: transform .2s ease, box-shadow .2s ease;
}

.brand:hover .brand-badge {
    transform: scale(1.07) rotate(-2deg);
    box-shadow: 0 10px 28px rgba(15, 93, 94, 0.38);
}

.brand-text strong {
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -0.3px;
}

/* Navbar glow effect */
.navbar {
    box-shadow: 0 4px 20px rgba(15, 93, 94, 0.07), 0 1px 0 var(--border);
}

/* Hero modernleştirme */
.hero {
    background: linear-gradient(135deg, #e3f5f2 0%, #f8fffe 50%, #edf9f7 100%);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(15,93,94,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.hero h1 {
    font-weight: 800;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #0a4748 0%, #0f7a7b 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Listing card hover */
.listing-card {
    transition: transform .2s ease, box-shadow .2s ease;
}

.listing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 48px rgba(15, 93, 94, 0.12) !important;
}

/* =============================================
   KATEGORİLER DROPDOWN MENÜSÜ
   ============================================= */

.categories-bar {
    position: relative;
    margin-bottom: 18px;
    user-select: none;
}

.categories-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: 14px;
    padding: 12px 18px;
    font-weight: 700;
    font-size: 15px;
    color: var(--text);
    cursor: pointer;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
    box-shadow: 0 4px 14px rgba(15, 93, 94, 0.06);
}

.categories-label:hover,
.categories-bar:hover .categories-label {
    border-color: var(--primary);
    background: #f0faf9;
    box-shadow: 0 6px 20px rgba(15, 93, 94, 0.12);
}

.categories-label .chevron {
    transition: transform .25s ease;
    color: var(--muted);
}

.categories-bar:hover .categories-label .chevron {
    transform: rotate(180deg);
}

.categories-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 240px;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: 18px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12), 0 4px 16px rgba(15, 93, 94, 0.08);
    padding: 8px;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px) scale(0.97);
    transition: opacity .2s ease, transform .2s ease;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2px;
}

.categories-bar:hover .categories-dropdown {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0) scale(1);
}

.cat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    transition: background .15s ease, color .15s ease;
    white-space: nowrap;
}

.cat-item:hover {
    background: var(--accent);
    color: var(--primary);
}

.cat-item.active {
    background: linear-gradient(135deg, #e0f7f4, #c8ede9);
    color: var(--primary);
    font-weight: 700;
}

.cat-icon {
    font-size: 16px;
    line-height: 1;
}

/* Listing card fiyat vurgusu */
.meta-box strong {
    color: var(--primary);
}

/* Buton iyileştirme */
button,
.button-link {
    letter-spacing: 0.2px;
    font-size: 14px;
}

/* Hero stat kartları */
.hero-stat {
    border-left: 3px solid var(--primary);
    border-radius: 14px;
    transition: transform .2s ease;
}

.hero-stat:hover {
    transform: translateX(4px);
}

.hero-stat strong {
    color: var(--primary);
    font-size: 28px;
    font-weight: 800;
}

/* Footer güzelleştirme */
.footer {
    border-top: 1px solid var(--border);
    background: linear-gradient(180deg, transparent, rgba(15,93,94,0.02));
}

/* =============================================
   NAVBAR KATEGORİ DROPDOWN + FOOTER TASARIMI
   ============================================= */

.nav-categories-dropdown {
    position: relative;
}

.nav-categories-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 172px;
    padding: 10px 14px;
    border: 1px solid rgba(15, 93, 94, 0.14);
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #f5fbfa 100%);
    color: var(--text);
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(15, 93, 94, 0.08);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.nav-categories-trigger:hover,
.nav-categories-dropdown.open .nav-categories-trigger,
.nav-categories-trigger.has-selection {
    border-color: rgba(15, 93, 94, 0.32);
    box-shadow: 0 16px 34px rgba(15, 93, 94, 0.14);
}

.nav-categories-trigger-left {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.nav-categories-trigger .chevron {
    color: var(--muted);
    transition: transform .2s ease;
}

.nav-categories-dropdown.open .nav-categories-trigger .chevron {
    transform: rotate(180deg);
}

.nav-categories-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    width: min(540px, calc(100vw - 32px));
    background: rgba(255,255,255,0.98);
    border: 1px solid rgba(15, 93, 94, 0.12);
    border-radius: 22px;
    padding: 14px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.14), 0 8px 24px rgba(15, 93, 94, 0.08);
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity .18s ease, transform .18s ease;
    z-index: 30;
}

.nav-categories-dropdown.open .nav-categories-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.nav-categories-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 4px 6px 14px;
}

.nav-categories-menu-header strong {
    font-size: 16px;
}

.nav-categories-menu-header span {
    color: var(--muted);
    font-size: 13px;
}

.nav-categories-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.nav-category-item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 12px 14px;
    border-radius: 16px;
    text-decoration: none;
    color: var(--text);
    background: #ffffff;
    border: 1px solid transparent;
    transition: background .18s ease, transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.nav-category-item:hover {
    background: #f2fbf9;
    border-color: rgba(15, 93, 94, 0.12);
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(15, 93, 94, 0.08);
}

.nav-category-item.active {
    background: linear-gradient(135deg, #def5f1 0%, #c7ebe6 100%);
    color: var(--primary);
    border-color: rgba(15, 93, 94, 0.12);
    font-weight: 700;
}

.footer {
    margin-top: 56px;
    padding: 0;
    border-top: 1px solid rgba(15, 93, 94, 0.10);
    background:
        radial-gradient(circle at top left, rgba(15,93,94,0.08), transparent 32%),
        linear-gradient(180deg, #f8fcfb 0%, #eef7f5 100%);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    padding: 34px 0 22px;
    align-items: flex-start;
}

.footer-brand {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    max-width: 460px;
}

.footer-badge {
    flex-shrink: 0;
}

.footer-brand strong {
    display: block;
    font-size: 20px;
    margin-bottom: 8px;
    color: #123536;
}

.footer-brand p {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}

.footer-links-group {
    display: flex;
    gap: 38px;
    flex-wrap: wrap;
}

.footer-column {
    min-width: 170px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-column h4 {
    margin: 0 0 4px;
    font-size: 15px;
    color: #123536;
}

.footer-column a,
.footer-column span {
    color: var(--muted);
    text-decoration: none;
    transition: color .18s ease;
}

.footer-column a:hover {
    color: var(--primary);
}

.footer-bottom {
    padding: 16px 0 26px;
    border-top: 1px solid rgba(15, 93, 94, 0.10);
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 14px;
}

@media (max-width: 900px) {
    .nav-categories-menu {
        width: min(460px, calc(100vw - 32px));
    }

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

@media (max-width: 768px) {
    .nav-categories-trigger {
        width: 100%;
    }

    .nav-categories-dropdown {
        width: 100%;
    }

    .nav-categories-menu {
        width: 100%;
    }

    .nav-categories-grid {
        grid-template-columns: 1fr;
    }

    .footer-links-group {
        width: 100%;
        justify-content: space-between;
        gap: 24px;
    }

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


.footer {
    margin-top: 52px;
    padding: 0;
    background: linear-gradient(135deg, #10b5af 0%, #0b8e8a 100%);
    color: var(--footer-text);
    border-top: 1px solid rgba(255,255,255,0.12);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 28px;
    padding: 42px 0 26px;
    align-items: start;
}

.footer-brand {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.footer-brand strong {
    display: block;
    font-size: 26px;
    margin-bottom: 8px;
    color: #fff;
}

.footer-brand p,
.footer-column span,
.footer-bottom span {
    color: var(--footer-muted);
    line-height: 1.7;
}

.footer-badge {
    background: rgba(255,255,255,0.16);
    border: 1px solid rgba(255,255,255,0.18);
    box-shadow: none;
}

.footer-highlight {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.footer-highlight span {
    padding: 9px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.12);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    border: 1px solid rgba(255,255,255,0.16);
}

.footer-links-group {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.footer-column h4 {
    margin: 0 0 14px 0;
    color: #fff;
    font-size: 16px;
}

.footer-column a,
.footer-column span {
    display: block;
    margin-bottom: 10px;
    text-decoration: none;
}

.footer-column a {
    color: rgba(255,255,255,0.92);
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 0 26px;
    border-top: 1px solid rgba(255,255,255,0.14);
    font-size: 14px;
}

@media (max-width: 900px) {
    .hero,
    .detail-layout,
    .listing-card {
        grid-template-columns: 1fr;
        display: grid;
    }

    .hero {
        padding: 22px;
    }

    .nav-categories-row,
    .footer-content,
    .footer-links-group {
        grid-template-columns: 1fr;
    }

    .nav-categories-menu {
        width: min(760px, 92vw);
    }
}

@media (max-width: 768px) {
    .nav-flex {
        flex-direction: column;
        align-items: stretch;
    }

    .nav-links,
    .nav-actions {
        justify-content: center;
    }

    .nav-links {
        flex-direction: column;
        align-items: stretch;
    }

    .brand {
        justify-content: center;
    }

    .nav-primary-links,
    .nav-actions {
        justify-content: center;
    }

    .nav-categories-label {
        justify-content: center;
    }

    .nav-categories-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .hero h1 {
        font-size: 26px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 560px) {
    .nav-categories-grid,
    .footer-links-group {
        grid-template-columns: 1fr;
    }

    .nav-categories-trigger {
        padding: 13px 14px;
    }

    .nav-categories-menu {
        padding: 14px;
        border-radius: 18px;
    }
}

/* --- Home page redesign overrides --- */
.brand-badge svg,
.nav-categories-label-icon svg,
.hero-shield svg,
.box-icon svg {
    width: 20px;
    height: 20px;
}

.brand-badge,
.footer-badge {
    background: #0c1b45;
    color: #fff;
    box-shadow: none;
}

.navbar {
    padding: 18px 0 14px;
}

.nav-shell {
    gap: 10px;
}

.nav-links {
    gap: 24px;
}

.nav-primary-links {
    gap: 12px;
}

.navbar a.nav-link,
.navbar a.nav-action,
.theme-toggle {
    font-size: 15px;
    font-weight: 600;
    padding: 10px 12px;
}

.navbar a.nav-action.primary-mini {
    background: #0c1b45;
}

.navbar a.nav-action.primary-mini:hover,
.featured-detail-button:hover {
    background: #08122f;
}

.theme-toggle {
    border-radius: 14px;
}

.nav-categories-row {
    grid-template-columns: 180px minmax(280px, 460px);
    align-items: center;
    gap: 18px;
    padding-top: 4px;
}

.nav-categories-label-wrap {
    display: flex;
    align-items: center;
    min-height: 56px;
}

.nav-categories-label {
    font-size: 16px;
}

.nav-categories-label-icon {
    background: rgba(18, 183, 176, 0.12);
    color: var(--primary-dark);
}

.nav-categories-trigger {
    min-height: 58px;
    border-radius: 18px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.nav-categories-menu {
    width: min(650px, 80vw);
    padding: 16px;
}

.nav-categories-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.body-content {
    margin-top: 34px;
    margin-bottom: 0;
}

.home-shell {
    display: flex;
    flex-direction: column;
    gap: 58px;
    padding-bottom: 64px;
}

.hero.hero-v2 {
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 26px 0 12px;
    align-items: center;
    gap: 48px;
}

.hero-copy {
    flex: 1 1 56%;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    margin-bottom: 26px;
    color: #0c1b45;
}

html[data-theme='dark'] .hero-badge {
    color: #d7f8f5;
}

.hero.hero-v2 h1 {
    font-size: clamp(52px, 6.5vw, 84px);
    line-height: 0.96;
    letter-spacing: -2px;
    margin-bottom: 28px;
    max-width: 520px;
    color: #07122a;
}

html[data-theme='dark'] .hero.hero-v2 h1 {
    color: #eefefd;
}

.hero.hero-v2 p {
    font-size: 18px;
    max-width: 620px;
    line-height: 1.65;
    margin-bottom: 28px;
}

.hero-actions {
    margin-bottom: 36px;
}

.hero-actions .button-link {
    min-width: 170px;
    text-align: center;
    padding: 15px 22px;
    border-radius: 16px;
    font-size: 16px;
}

.hero-actions .button-link::after,
.section-link::after {
    content: '›';
    margin-left: 12px;
    font-size: 20px;
    vertical-align: middle;
}

.hero-actions .button-link.secondary,
.section-link,
.hero-search-actions .button-link.secondary {
    background: var(--surface);
    border: 1px solid var(--border);
}

.hero-search-panel {
    flex: 0 0 520px;
    max-width: 520px;
    border-radius: 28px;
    padding: 30px;
    box-shadow: 0 22px 55px rgba(15, 23, 42, 0.10);
}

.hero-search-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}

.hero-search-head h2 {
    margin: 0;
    font-size: 28px;
    color: #07122a;
}

html[data-theme='dark'] .hero-search-head h2 {
    color: #eefefd;
}

.hero-shield {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-dark);
}

.hero-search-form input,
.hero-search-form select {
    margin-bottom: 0;
    height: 60px;
    border-radius: 18px;
    padding-left: 54px;
    font-size: 15px;
    background: var(--surface);
}

.hero-search-form select {
    padding-left: 16px;
}

.search-input-wrap {
    position: relative;
    margin-bottom: 16px;
}

.search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    z-index: 1;
}

.search-icon svg {
    width: 22px;
    height: 22px;
}

.hero-search-row {
    margin-bottom: 16px;
}

.hero-search-actions {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    margin-top: 20px;
}

.hero-search-actions button,
.hero-search-actions .button-link {
    height: 62px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 700;
}

.hero-search-actions button,
.featured-detail-button {
    background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 82%, #0c1b45 18%) 0%, color-mix(in srgb, var(--primary-dark) 68%, #0c1b45 32%) 100%);
    color: var(--white);
    border: 1px solid color-mix(in srgb, var(--primary) 42%, transparent);
    box-shadow: 0 14px 30px color-mix(in srgb, var(--primary) 22%, transparent);
    transition: transform .18s ease, box-shadow .18s ease, filter .18s ease, background .18s ease;
}

.hero-search-actions button:hover,
.featured-detail-button:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
    box-shadow: 0 18px 34px color-mix(in srgb, var(--primary-dark) 28%, transparent);
}

html[data-theme='dark'] .hero-search-actions button,
html[data-theme='dark'] .featured-detail-button {
    background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 42%, var(--surface)) 0%, color-mix(in srgb, var(--primary-dark) 52%, #071214 48%) 100%);
    border-color: color-mix(in srgb, var(--primary) 58%, var(--border));
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.28);
}

.hero-search-note {
    margin: 24px 0 0;
    text-align: center;
    color: var(--muted);
    font-size: 15px;
}

.hero-numbers {
    display: flex;
    gap: 56px;
    flex-wrap: wrap;
}

.hero-number-item strong {
    display: block;
    font-size: 54px;
    line-height: 1;
    color: #0c1b45;
    margin-bottom: 10px;
}

html[data-theme='dark'] .hero-number-item strong {
    color: #6be8e2;
}

.hero-number-item span {
    color: var(--muted);
    font-size: 16px;
}

.home-section {
    padding: 8px 0;
}

.section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 28px;
}

.section-header h2 {
    margin: 0 0 10px;
    font-size: clamp(34px, 4vw, 52px);
    line-height: 1.05;
    color: #07122a;
}

html[data-theme='dark'] .section-header h2,
html[data-theme='dark'] .popular-category-card h3 {
    color: #eefefd;
}

.section-header p,
.centered-header p {
    margin: 0;
    color: var(--muted);
    font-size: 18px;
}

.section-link {
    min-width: 170px;
    justify-content: center;
    padding: 14px 18px;
    border-radius: 18px;
}

.featured-grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr 1fr;
    gap: 34px;
    align-items: stretch;
}

.featured-card {
    border: 1px solid var(--border);
    border-radius: 28px;
    background: var(--surface);
    box-shadow: 0 12px 34px rgba(15, 23, 42, 0.05);
    overflow: hidden;
    min-height: 620px;
}

.featured-card-primary {
    display: flex;
    flex-direction: column;
}

.featured-image {
    height: 360px;
    background: linear-gradient(180deg, rgba(12, 27, 69, 0.04), rgba(12, 27, 69, 0.08));
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
}

.featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fancy-no-image {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    color: var(--muted);
    font-size: 20px;
}

.box-icon {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(12, 27, 69, 0.06);
    color: #7f8693;
}

.box-icon.small {
    width: 70px;
    height: 70px;
}

.featured-body {
    padding: 30px 28px 28px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.featured-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.featured-topline h3 {
    margin: 0;
    font-size: 27px;
}

.category-pill {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(12, 27, 69, 0.06);
    color: #0c1b45;
    font-weight: 700;
    font-size: 14px;
}

html[data-theme='dark'] .category-pill {
    background: rgba(107, 232, 226, 0.16);
    color: #b8fffb;
}

.featured-desc {
    margin: 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.55;
}

.featured-divider {
    height: 1px;
    background: var(--border);
}

.featured-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.featured-price {
    display: block;
    font-size: 28px;
    color: #0c1b45;
    margin-bottom: 6px;
}

html[data-theme='dark'] .featured-price {
    color: #eefefd;
}

.featured-date {
    color: var(--muted);
    font-size: 14px;
}

.featured-detail-button {
    min-width: 92px;
    text-align: center;
}

.featured-user {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--muted);
    margin-top: 6px;
}

.featured-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.featured-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    border-style: dashed;
    background: linear-gradient(180deg, rgba(255,255,255,0.74), rgba(247,250,250,0.96));
}

html[data-theme='dark'] .featured-card-placeholder {
    background: linear-gradient(180deg, rgba(16,41,43,0.8), rgba(13,35,37,1));
}

.placeholder-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 18px;
    color: var(--muted);
    padding: 24px;
}

.has-mini-content .placeholder-center strong {
    font-size: 22px;
    color: var(--text);
}

.text-link {
    font-weight: 700;
    color: var(--primary-dark);
    text-decoration: none;
}

.categories-showcase {
    padding-top: 8px;
}

.centered-header {
    justify-content: center;
    text-align: center;
    margin-bottom: 40px;
}

.popular-categories-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.popular-category-card {
    min-height: 176px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 32px;
    border-radius: 26px;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.05);
    text-decoration: none;
}

.popular-category-card h3 {
    margin: 0 0 10px;
    font-size: 24px;
    color: #07122a;
}

.popular-category-card span {
    color: var(--muted);
    font-size: 18px;
}

.popular-category-arrow {
    font-size: 52px;
    line-height: 1;
    color: #6b7280;
}

.footer.footer-v2 {
    background: linear-gradient(180deg, rgba(18,183,176,0.96), #0fa9a3);
    color: #fff;
    padding: 78px 0 28px;
    border-top-left-radius: 28px;
    border-top-right-radius: 28px;
    margin-top: 20px;
}

html[data-theme='dark'] .footer.footer-v2 {
    background: linear-gradient(180deg, #0f8f8c, #0b6f6c);
}

.footer-content-v2 {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    gap: 36px;
    align-items: start;
}

.footer-brand {
    align-items: flex-start;
    gap: 18px;
}

.footer-brand strong,
.footer-column h4 {
    color: #fff;
}

.footer-brand p,
.footer-column span,
.footer-column a,
.footer-bottom-v2 {
    color: rgba(255,255,255,0.92);
}

.footer-links-group-v2 {
    display: contents;
}

.footer-column {
    gap: 16px;
}

.footer-column a,
.footer-column span {
    font-size: 17px;
    text-decoration: none;
}

.footer-bottom-v2 {
    border-top: 1px solid rgba(255,255,255,0.22);
    margin-top: 44px;
    padding-top: 28px;
    justify-content: center;
    text-align: center;
}

@media (max-width: 1100px) {
    .hero-search-panel {
        flex-basis: 460px;
    }

    .featured-grid,
    .popular-categories-grid,
    .footer-content-v2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .featured-card {
        min-height: 420px;
    }
}

@media (max-width: 840px) {
    .nav-flex,
    .nav-links,
    .nav-actions,
    .nav-primary-links,
    .nav-categories-row,
    .hero.hero-v2,
    .section-header,
    .featured-grid,
    .popular-categories-grid,
    .footer-content-v2 {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: stretch;
    }

    .nav-categories-row {
        display: grid;
    }

    .hero-search-panel {
        max-width: 100%;
    }

    .hero.hero-v2 h1 {
        font-size: 52px;
    }

    .section-link {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 640px) {
    .container {
        width: calc(100% - 28px);
    }

    .hero.hero-v2 {
        gap: 28px;
        padding-top: 10px;
    }

    .hero.hero-v2 h1 {
        font-size: 42px;
        letter-spacing: -1.4px;
    }

    .hero-search-panel,
    .popular-category-card,
    .featured-card,
    .footer.footer-v2 {
        border-radius: 22px;
    }

    .hero-search-panel,
    .featured-body,
    .popular-category-card {
        padding: 22px;
    }

    .hero-search-actions {
        grid-template-columns: 1fr;
    }

    .hero-numbers {
        gap: 28px;
    }

    .hero-number-item strong {
        font-size: 42px;
    }

    .section-header h2 {
        font-size: 34px;
    }

    .featured-image {
        height: 260px;
    }
}


/* --- Final navbar categories + readability fixes --- */
.nav-categories-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-top: 2px;
}

.nav-categories-inline {
    position: relative;
}

.nav-categories-inline-trigger {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 58px;
    padding: 0 18px;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-size: 16px;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.nav-categories-inline-trigger .chevron {
    margin-left: 2px;
    color: var(--muted);
    transition: transform .18s ease;
}

.nav-categories-dropdown:hover .nav-categories-inline-trigger,
.nav-categories-dropdown.open .nav-categories-inline-trigger {
    border-color: color-mix(in srgb, var(--primary) 35%, var(--border));
    background: color-mix(in srgb, var(--surface) 85%, var(--accent));
}

.nav-categories-dropdown:hover .nav-categories-inline-trigger .chevron,
.nav-categories-dropdown.open .nav-categories-inline-trigger .chevron {
    transform: rotate(-90deg);
}

.nav-categories-menu-side {
    top: 50%;
    left: calc(100% + 16px);
    width: min(720px, 70vw);
    transform: translate(8px, -50%);
}

.nav-categories-dropdown:hover .nav-categories-menu-side,
.nav-categories-dropdown.open .nav-categories-menu-side {
    opacity: 1;
    pointer-events: auto;
    transform: translate(0, -50%);
}

.nav-categories-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.nav-category-item,
.nav-category-item span,
.nav-category-item.active,
.nav-category-item.active span {
    color: var(--text);
}

.nav-category-item.active {
    background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 18%, var(--surface)) 0%, color-mix(in srgb, var(--primary) 10%, var(--surface-2)) 100%);
    border-color: color-mix(in srgb, var(--primary) 38%, var(--border));
}

.nav-category-item:hover {
    background: color-mix(in srgb, var(--accent) 75%, var(--surface));
}

.cat-icon {
    color: var(--text);
}

.card,
.form-card,
.detail-card,
.featured-card,
.popular-category-card,
.hero-search-panel,
.table-wrapper,
.table-box,
.meta-box,
.quick-link-card,
.stat-card {
    background: var(--surface);
}

input,
select,
textarea,
.hero-search-form input,
.hero-search-form select {
    color: var(--text);
    background: var(--surface);
    border-color: var(--border);
}

input::placeholder,
textarea::placeholder,
.hero-search-form input::placeholder {
    color: var(--muted);
    opacity: 1;
}

.description-box,
.featured-topline h3,
.featured-price,
.hero-search-head h2,
.section-header h2,
.popular-category-card h3,
.footer-brand strong,
.footer-column h4 {
    color: var(--text);
}

.featured-card-placeholder,
.no-image,
.image-preview-placeholder {
    background: color-mix(in srgb, var(--surface-2) 90%, var(--surface));
    color: var(--muted);
}

html[data-theme='dark'] .brand,
html[data-theme='dark'] .navbar a.nav-link,
html[data-theme='dark'] .navbar a.nav-action,
html[data-theme='dark'] .theme-toggle,
html[data-theme='dark'] .nav-categories-inline-trigger,
html[data-theme='dark'] .section-link,
html[data-theme='dark'] .button-link.secondary,
html[data-theme='dark'] .hero-actions .button-link.secondary,
html[data-theme='dark'] .hero-search-actions .button-link.secondary {
    color: #eefefd;
}

html[data-theme='dark'] .nav-category-item,
html[data-theme='dark'] .featured-desc,
html[data-theme='dark'] .featured-user,
html[data-theme='dark'] .hero-search-note,
html[data-theme='dark'] .hero.hero-v2 p,
html[data-theme='dark'] .section-header p,
html[data-theme='dark'] .centered-header p,
html[data-theme='dark'] .page-header p,
html[data-theme='dark'] .footer-brand p,
html[data-theme='dark'] .footer-column a,
html[data-theme='dark'] .footer-column span,
html[data-theme='dark'] .footer-bottom span {
    color: #c7ddde;
}

html[data-theme='dark'] .nav-category-item.active,
html[data-theme='dark'] .nav-category-item.active span,
html[data-theme='dark'] .category-pill,
html[data-theme='dark'] .text-link {
    color: #eefefd;
}

html[data-theme='dark'] .hero-number-item strong,
html[data-theme='dark'] .featured-price,
html[data-theme='dark'] .featured-topline h3,
html[data-theme='dark'] .section-header h2,
html[data-theme='dark'] .popular-category-card h3,
html[data-theme='dark'] .hero-search-head h2 {
    color: #f4ffff;
}

@media (max-width: 900px) {
    .nav-categories-menu-side {
        top: calc(100% + 12px);
        left: 0;
        width: min(720px, 92vw);
        transform: translateY(8px);
    }

    .nav-categories-dropdown:hover .nav-categories-menu-side,
    .nav-categories-dropdown.open .nav-categories-menu-side {
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .nav-categories-inline-trigger {
        width: 100%;
        justify-content: flex-start;
    }

    .nav-categories-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .nav-categories-grid {
        grid-template-columns: 1fr;
    }
}


/* Category dropdown professional horizontal layout */
.nav-categories-row {
    display: flex;
    align-items: center;
    padding-left: 0;
}

.nav-categories-inline {
    position: relative;
}

.nav-categories-inline-trigger {
    min-width: 210px;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 18px;
    border: 1px solid color-mix(in srgb, var(--primary) 42%, var(--border));
    background: linear-gradient(135deg, color-mix(in srgb, var(--surface) 74%, var(--primary) 26%) 0%, color-mix(in srgb, var(--surface-2) 82%, var(--primary) 18%) 100%);
    color: var(--text);
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 16px 36px rgba(8, 40, 44, 0.14);
}

.nav-categories-inline-trigger:hover {
    border-color: color-mix(in srgb, var(--primary) 62%, var(--border));
    box-shadow: 0 18px 42px rgba(8, 40, 44, 0.18);
}

.nav-categories-inline-trigger .chevron {
    flex-shrink: 0;
    color: var(--primary);
}

.nav-categories-menu-side {
    top: 0;
    left: calc(100% + 16px);
    width: max-content;
    min-width: 760px;
    max-width: min(1080px, calc(100vw - 80px));
    padding: 16px;
    border-radius: 24px;
    transform: translateX(-8px);
    background: color-mix(in srgb, var(--surface) 96%, var(--bg) 4%);
}

.nav-categories-dropdown.open .nav-categories-menu-side {
    transform: translateX(0);
}

.nav-categories-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.nav-category-item {
    min-width: 220px;
    flex: 0 0 calc(33.333% - 8px);
    padding: 18px 18px;
    background: color-mix(in srgb, var(--surface-2) 94%, var(--white) 6%);
    color: var(--text) !important;
}

.nav-category-item span:last-child {
    color: var(--text) !important;
    opacity: 1 !important;
}

.nav-category-item:hover,
.nav-category-item:focus-visible {
    background: color-mix(in srgb, var(--primary-soft) 70%, var(--surface) 30%);
    color: var(--text) !important;
}

.nav-category-item.active {
    background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 18%, var(--surface) 82%) 0%, color-mix(in srgb, var(--primary) 24%, var(--surface-2) 76%) 100%);
    border-color: color-mix(in srgb, var(--primary) 72%, var(--border));
    color: var(--text) !important;
}

.cat-icon {
    background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 28%, var(--surface)) 0%, color-mix(in srgb, var(--primary-dark) 38%, var(--surface-2)) 100%);
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.1);
}

html[data-theme='dark'] .navbar {
    background: linear-gradient(90deg, rgba(4,19,21,0.96) 0%, rgba(7,32,35,0.95) 55%, rgba(4,19,21,0.96) 100%);
    border-bottom-color: rgba(29, 108, 112, 0.55);
}

html[data-theme='dark'] .brand,
html[data-theme='dark'] .navbar a.nav-link,
html[data-theme='dark'] .navbar a.nav-action,
html[data-theme='dark'] .theme-toggle,
html[data-theme='dark'] .welcome,
html[data-theme='dark'] .nav-categories-inline-trigger,
html[data-theme='dark'] .nav-category-item,
html[data-theme='dark'] .nav-category-item span:last-child {
    color: #ecfffe !important;
}

html[data-theme='dark'] .nav-categories-inline-trigger {
    background: linear-gradient(135deg, rgba(8,84,85,0.9) 0%, rgba(8,61,63,0.95) 100%);
    border-color: rgba(42, 188, 182, 0.55);
}

html[data-theme='dark'] .nav-categories-menu-side {
    background: #0e1718;
    border-color: rgba(52, 110, 112, 0.9);
    box-shadow: 0 24px 70px rgba(0,0,0,0.45);
}

html[data-theme='dark'] .nav-category-item {
    background: #132122;
    border-color: rgba(60, 96, 99, 0.95);
}

html[data-theme='dark'] .nav-category-item:hover,
html[data-theme='dark'] .nav-category-item:focus-visible {
    background: #173133;
    border-color: rgba(67, 184, 178, 0.75);
}

html[data-theme='dark'] .nav-category-item.active {
    background: linear-gradient(135deg, #0f5455 0%, #136668 100%);
    border-color: rgba(82, 222, 214, 0.92);
}

@media (max-width: 1100px) {
    .nav-categories-menu-side {
        min-width: 640px;
        max-width: calc(100vw - 40px);
    }

    .nav-category-item {
        flex-basis: calc(50% - 6px);
    }
}

@media (max-width: 860px) {
    .nav-categories-menu-side {
        left: 0;
        top: calc(100% + 12px);
        min-width: 100%;
        width: min(92vw, 720px);
    }

    .nav-categories-dropdown.open .nav-categories-menu-side {
        transform: translateY(0);
    }

    .nav-category-item {
        flex-basis: 100%;
        min-width: 0;
    }
}


/* === Final professional category menu + icon-only theme toggle === */
.theme-toggle {
    width: 46px;
    height: 46px;
    padding: 0;
    gap: 0;
    justify-content: center;
    border-radius: 14px;
}

.theme-toggle-text {
    display: none !important;
}

.theme-toggle-icon {
    font-size: 18px;
    line-height: 1;
}

.nav-categories-row {
    display: flex;
    align-items: center;
    padding: 2px 0 0;
}

.nav-categories-inline {
    position: relative;
}

.nav-categories-inline-trigger {
    min-width: 320px;
    height: 62px;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 0 18px;
    border-radius: 20px;
    border: 1px solid color-mix(in srgb, var(--primary) 28%, var(--border));
    background: linear-gradient(135deg, color-mix(in srgb, var(--surface) 92%, var(--primary-soft)) 0%, color-mix(in srgb, var(--surface-2) 90%, var(--primary-soft)) 100%);
    color: var(--text);
    box-shadow: 0 16px 34px rgba(8, 145, 138, 0.10);
}

.nav-categories-inline-trigger:hover,
.nav-categories-dropdown.open .nav-categories-inline-trigger {
    transform: translateY(-1px);
    border-color: color-mix(in srgb, var(--primary) 48%, var(--border));
    box-shadow: 0 20px 42px rgba(8, 145, 138, 0.16);
    background: linear-gradient(135deg, color-mix(in srgb, var(--surface) 86%, var(--primary-soft)) 0%, color-mix(in srgb, var(--surface-2) 84%, var(--primary-soft-2)) 100%);
}

.nav-categories-label-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    box-shadow: 0 10px 22px rgba(18, 183, 176, 0.22);
}

.nav-categories-trigger-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    text-align: left;
    flex: 1;
}

.nav-categories-trigger-text strong {
    color: var(--text);
    font-size: 16px;
    line-height: 1.1;
    letter-spacing: 0.1px;
}

.nav-categories-trigger-text small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
}

.nav-categories-inline-trigger .chevron {
    color: var(--primary-dark);
    opacity: 0.9;
}

.nav-categories-menu-side {
    top: calc(100% + 14px);
    left: 0;
    min-width: 820px;
    max-width: min(980px, calc(100vw - 48px));
    padding: 18px;
    border-radius: 24px;
    border: 1px solid color-mix(in srgb, var(--primary) 18%, var(--border));
    background: color-mix(in srgb, var(--surface) 96%, transparent);
    backdrop-filter: blur(16px);
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.16);
}

.nav-categories-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(170px, 1fr));
    gap: 14px;
}

.nav-category-item {
    min-height: 82px;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 18px;
    background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 92%, var(--primary-soft)) 0%, var(--surface-2) 100%);
    border: 1px solid color-mix(in srgb, var(--primary) 12%, var(--border));
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.45);
    color: var(--text);
}

.nav-category-item > span:last-child {
    color: var(--text);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.25;
}

.nav-category-item:hover {
    background: linear-gradient(135deg, color-mix(in srgb, var(--primary-soft) 86%, var(--surface)) 0%, color-mix(in srgb, var(--primary-soft-2) 90%, var(--surface-2)) 100%);
    border-color: color-mix(in srgb, var(--primary) 52%, var(--border));
    box-shadow: 0 18px 30px rgba(18, 183, 176, 0.14);
}

.nav-category-item.active {
    background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 18%, var(--surface)) 0%, color-mix(in srgb, var(--primary) 26%, var(--surface-2)) 100%);
    border-color: color-mix(in srgb, var(--primary) 70%, var(--border));
}

.cat-icon {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 14px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 28%, var(--surface)) 0%, color-mix(in srgb, var(--primary-dark) 34%, var(--surface-2)) 100%);
    color: var(--primary-dark);
    font-size: 18px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.45);
}

html[data-theme='dark'] .theme-toggle,
html[data-theme='dark'] .nav-categories-inline-trigger {
    color: #ecfeff;
}

html[data-theme='dark'] .theme-toggle {
    background: linear-gradient(180deg, #0f2f32 0%, #12383b 100%);
    border-color: #1f5758;
}

html[data-theme='dark'] .nav-categories-inline-trigger {
    background: linear-gradient(135deg, #0f2c2f 0%, #12373a 100%);
    border-color: #1f5b5d;
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.28);
}

html[data-theme='dark'] .nav-categories-trigger-text strong {
    color: #f4ffff;
}

html[data-theme='dark'] .nav-categories-trigger-text small {
    color: #b7d8d9;
}

html[data-theme='dark'] .nav-categories-menu-side {
    background: rgba(10, 26, 29, 0.97);
    border-color: #1f5356;
    box-shadow: 0 30px 72px rgba(0, 0, 0, 0.42);
}

html[data-theme='dark'] .nav-category-item {
    background: linear-gradient(180deg, #102b2e 0%, #0d2528 100%);
    border-color: #1a494b;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

html[data-theme='dark'] .nav-category-item > span:last-child {
    color: #ecfeff;
}

html[data-theme='dark'] .nav-category-item:hover {
    background: linear-gradient(135deg, #12363a 0%, #164246 100%);
    border-color: #27bdb7;
}

html[data-theme='dark'] .nav-category-item.active {
    background: linear-gradient(135deg, rgba(18,183,176,0.22) 0%, rgba(18,183,176,0.32) 100%);
    border-color: #31d0ca;
}

html[data-theme='dark'] .cat-icon {
    background: linear-gradient(135deg, rgba(18,183,176,0.24) 0%, rgba(18,183,176,0.15) 100%);
    color: #91fffb;
}

@media (max-width: 1100px) {
    .nav-categories-menu-side {
        min-width: 680px;
    }

    .nav-categories-grid {
        grid-template-columns: repeat(3, minmax(160px, 1fr));
    }
}

@media (max-width: 820px) {
    .nav-categories-inline-trigger {
        min-width: 100%;
        width: 100%;
    }

    .nav-categories-menu-side {
        left: 0;
        right: auto;
        min-width: min(100%, 100vw - 32px);
        max-width: min(100%, 100vw - 32px);
    }

    .nav-categories-grid {
        grid-template-columns: repeat(2, minmax(140px, 1fr));
    }
}

@media (max-width: 560px) {
    .nav-categories-inline-trigger {
        min-width: 100%;
        height: 58px;
        padding: 0 14px;
    }

    .nav-categories-trigger-text small {
        display: none;
    }

    .nav-categories-menu-side {
        padding: 14px;
    }

    .nav-categories-grid {
        grid-template-columns: 1fr;
    }

    .nav-category-item {
        min-height: 68px;
    }
}


/* navbar category + search upgrade */
.nav-categories-row {
    display: grid;
    grid-template-columns: minmax(280px, 480px) minmax(320px, 1fr);
    gap: 18px;
    align-items: stretch;
}

.nav-search-shell {
    min-width: 0;
    display: flex;
    align-items: stretch;
}

.nav-search-rainbow {
    position: relative;
    width: 100%;
    padding: 1.5px;
    border-radius: 22px;
    background: linear-gradient(90deg, #22c55e, #06b6d4, #3b82f6, #8b5cf6, #ec4899, #f59e0b, #22c55e);
    background-size: 300% 100%;
    animation: navRainbowMove 8s linear infinite;
    box-shadow: 0 14px 32px rgba(11, 23, 39, 0.08);
}

.nav-search-rainbow::before {
    content: "";
    position: absolute;
    inset: -8px;
    border-radius: 28px;
    background: inherit;
    background-size: 300% 100%;
    filter: blur(18px);
    opacity: 0.18;
    z-index: 0;
}

.nav-search-inner {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px 10px 16px;
    border-radius: 20px;
    background: color-mix(in srgb, var(--surface) 96%, transparent);
    border: 1px solid color-mix(in srgb, var(--border) 72%, transparent);
}

.nav-search-icon {
    width: 20px;
    height: 20px;
    color: var(--muted);
    flex-shrink: 0;
}

.nav-search-input {
    flex: 1;
    min-width: 0;
    border: 0;
    outline: none;
    box-shadow: none;
    margin: 0;
    padding: 8px 0;
    background: transparent;
    color: var(--text);
    font-size: 15px;
}

.nav-search-input::placeholder {
    color: var(--muted);
}

.nav-search-input:focus {
    box-shadow: none;
    border: 0;
}

.nav-search-submit {
    border: 0;
    margin: 0;
    padding: 12px 18px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    font-weight: 700;
    box-shadow: none;
    white-space: nowrap;
}

.nav-search-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(13, 148, 136, 0.18);
}

@keyframes navRainbowMove {
    0% { background-position: 0% 50%; }
    100% { background-position: 300% 50%; }
}

html[data-theme='dark'] .nav-search-inner {
    background: rgba(7, 18, 27, 0.92);
    border-color: rgba(88, 122, 137, 0.42);
}

html[data-theme='dark'] .nav-search-rainbow::before {
    opacity: 0.26;
}

@media (max-width: 980px) {
    .nav-categories-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .nav-search-inner {
        padding: 10px 10px 10px 14px;
        gap: 10px;
    }

    .nav-search-submit {
        padding: 10px 14px;
        border-radius: 12px;
    }
}


/* tight navbar category-search spacing */
.nav-categories-row {
    grid-template-columns: max-content minmax(320px, 1fr);
    gap: 8px;
    align-items: stretch;
}

.nav-categories-inline {
    margin-right: 0;
}

.nav-search-shell {
    margin-left: 0;
}

.nav-search-rainbow {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.nav-search-inner {
    border-top-left-radius: 7px;
    border-bottom-left-radius: 7px;
}

@media (max-width: 980px) {
    .nav-categories-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .nav-categories-inline-trigger,
    .nav-search-rainbow,
    .nav-search-inner {
        border-radius: 20px;
    }
}



/* Navbar category/search spacing refinement */
.nav-categories-row {
    display: flex;
    align-items: stretch;
    gap: 10px;
    padding: 2px 0 0;
}

.nav-categories-inline {
    flex: 0 0 auto;
}

.nav-categories-inline-trigger {
    min-width: 320px;
}

.nav-search-shell {
    flex: 1 1 auto;
    min-width: 0;
    margin-left: 0;
}

.nav-search-rainbow {
    width: 100%;
    border-radius: 22px;
}

.nav-search-inner {
    min-height: 62px;
    border-radius: 20px;
}

@media (max-width: 992px) {
    .nav-categories-row {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .nav-categories-inline,
    .nav-search-shell,
    .nav-categories-inline-trigger {
        width: 100%;
    }

    .nav-categories-inline-trigger {
        min-width: 0;
    }
}


/* featured section CTA dark mode fix */
html[data-theme='dark'] .hero-actions .button-link.secondary,
html[data-theme='dark'] .section-link,
html[data-theme='dark'] .hero-search-actions .button-link.secondary {
    background: linear-gradient(135deg, #12383a 0%, #0f2d2f 100%);
    border-color: #2c6767;
    color: #e9fffd;
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
}

html[data-theme='dark'] .hero-actions .button-link.secondary:hover,
html[data-theme='dark'] .section-link:hover,
html[data-theme='dark'] .hero-search-actions .button-link.secondary:hover {
    background: linear-gradient(135deg, #165255 0%, #12383a 100%);
    border-color: #47b5b1;
    color: #ffffff;
}

html[data-theme='dark'] .section-link::after {
    color: #8ff7f1;
}


/* theme toggle icon polish */
.theme-toggle {
    width: 56px;
    height: 56px;
    justify-content: center;
    padding: 0;
    border-radius: 18px;
}

.theme-toggle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-dark);
}

.theme-toggle-icon svg {
    width: 22px;
    height: 22px;
    display: block;
}

html[data-theme='dark'] .theme-toggle {
    background: linear-gradient(180deg, #103234 0%, #0d2325 100%);
    border-color: #2d6668;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

html[data-theme='dark'] .theme-toggle-icon {
    color: #8ff7f1;
}


/* listings page */
.listings-page {
    display: flex;
    flex-direction: column;
    gap: 26px;
    padding-bottom: 56px;
}

.listings-hero {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 24px;
    align-items: stretch;
}

.listings-hero-copy,
.listings-filter-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 28px;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.06);
}

.listings-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary-dark);
    font-weight: 700;
    margin-bottom: 14px;
}

.listings-hero-copy h1 {
    margin: 0 0 12px;
    font-size: clamp(34px, 5vw, 56px);
    line-height: 1.02;
    color: #07122a;
}

html[data-theme='dark'] .listings-hero-copy h1 {
    color: #eefefd;
}

.listings-hero-copy p {
    margin: 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.7;
    max-width: 680px;
}

.listings-filter-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 14px;
}

.listings-filter-row {
    margin-bottom: 0;
}

.listings-filter-actions {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    margin-top: 4px;
}

.listings-filter-actions button,
.listings-filter-actions .button-link {
    height: 58px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.listings-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 16px;
}

.listings-toolbar h2 {
    margin: 0 0 6px;
    font-size: 28px;
}

.listings-toolbar p {
    margin: 0;
    color: var(--muted);
}

.listings-grid-page {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.listing-showcase-card {
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 14px 34px rgba(15, 23, 42, 0.05);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.listing-showcase-card:hover {
    transform: translateY(-3px);
    border-color: color-mix(in srgb, var(--primary) 40%, var(--border));
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.09);
}

.listing-showcase-image {
    height: 240px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(12, 27, 69, 0.04), rgba(12, 27, 69, 0.08));
}

.listing-showcase-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.listing-showcase-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.listing-showcase-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: start;
}

.listing-showcase-top h3 {
    margin: 0;
    font-size: 28px;
}

.listing-showcase-desc {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
    min-height: 76px;
}

.listing-showcase-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.listing-showcase-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 4px;
}

.listings-empty {
    text-align: center;
    padding: 48px 22px;
}

.listings-empty h3 {
    margin-top: 0;
    margin-bottom: 8px;
}

@media (max-width: 1100px) {
    .listings-grid-page {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .listings-hero {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .listings-grid-page {
        grid-template-columns: 1fr;
    }

    .listing-showcase-meta {
        grid-template-columns: 1fr;
    }

    .listings-filter-actions {
        grid-template-columns: 1fr;
    }
}


/* listings filter form fixes */
.listings-filter-card {
    position: relative;
    overflow: hidden;
}

.listings-filter-card .search-input-wrap {
    margin-bottom: 12px;
}

.listings-filter-card .search-input-wrap input {
    height: 64px;
    margin: 0;
    padding-left: 62px;
    padding-right: 18px;
    border-radius: 18px;
    background: color-mix(in srgb, var(--surface) 96%, transparent);
    border: 1px solid color-mix(in srgb, var(--border) 88%, transparent);
    color: var(--text);
    line-height: 1.2;
}

.listings-filter-card .search-input-wrap .search-icon {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.listings-filter-card .search-input-wrap .search-icon svg {
    width: 22px;
    height: 22px;
}

.listings-filter-card .hero-category-select {
    height: 64px;
    margin: 0;
    padding: 0 52px 0 18px;
    border-radius: 18px;
    background: color-mix(in srgb, var(--surface) 96%, transparent);
    border: 1px solid color-mix(in srgb, var(--border) 88%, transparent);
    color: var(--text);
}

.listings-filter-actions {
    margin-top: 10px;
}

.listings-filter-actions button {
    border: 0;
    padding: 0 22px;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    box-shadow: 0 14px 28px rgba(11, 143, 138, 0.22);
}

.listings-filter-actions button:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 32px rgba(11, 143, 138, 0.28);
}

.listings-filter-actions .button-link.secondary {
    min-width: 132px;
    padding: 0 20px;
    font-weight: 700;
    background: #eef7f5;
    border: 1px solid var(--border);
    color: var(--text);
}

.listings-filter-actions .button-link.secondary:hover {
    background: #e2f0ee;
    color: var(--text);
}

html[data-theme='dark'] .listings-filter-card {
    background: linear-gradient(180deg, rgba(9, 32, 35, 0.96) 0%, rgba(6, 24, 27, 0.96) 100%);
    border-color: #1f4b4d;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

html[data-theme='dark'] .listings-filter-card .search-input-wrap input,
html[data-theme='dark'] .listings-filter-card .hero-category-select {
    background: rgba(6, 28, 31, 0.9);
    border-color: #1f5a5d;
    color: #e7f8f7;
}

html[data-theme='dark'] .listings-filter-card .search-input-wrap input::placeholder {
    color: #b8d0d3;
}

html[data-theme='dark'] .listings-filter-card .search-input-wrap .search-icon,
html[data-theme='dark'] .listings-filter-card .hero-category-select {
    color: #d8efef;
}

html[data-theme='dark'] .listings-filter-actions .button-link.secondary {
    background: linear-gradient(135deg, #eaf4f3 0%, #dce9e8 100%);
    border-color: #d7ece8;
    color: #17313a;
}

html[data-theme='dark'] .listings-filter-actions .button-link.secondary:hover {
    background: linear-gradient(135deg, #ffffff 0%, #e8f3f2 100%);
    color: #102629;
}


/* persistent upload / listing image polish */
.listing-showcase-image,
.featured-image {
    overflow: hidden;
}

.listing-showcase-image img,
.featured-image img {
    display: block;
}

/* select arrow fix */
.hero-category-select,
.listings-filter-card select,
.hero-search-form select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%235d7480' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 18px;
    padding-right: 52px;
}

.hero-category-select::-ms-expand,
.listings-filter-card select::-ms-expand,
.hero-search-form select::-ms-expand {
    display: none;
}

html[data-theme='dark'] .hero-category-select,
html[data-theme='dark'] .listings-filter-card select,
html[data-theme='dark'] .hero-search-form select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23d8efef' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}

html[data-theme='dark'] .hero-category-select option,
html[data-theme='dark'] .listings-filter-card select option,
html[data-theme='dark'] .hero-search-form select option {
    background: #0d2325;
    color: #e7f8f7;
}

html[data-theme='dark'] .hero-category-select:focus,
html[data-theme='dark'] .listings-filter-card select:focus,
html[data-theme='dark'] .hero-search-form select:focus {
    outline: none;
    border-color: #35b9b3;
    box-shadow: 0 0 0 4px rgba(18, 183, 176, 0.12);
}


/* select arrow visible fix */
.listings-filter-row,
.hero-search-row {
    position: relative;
}

.listings-filter-row::after,
.hero-search-row::after {
    content: "";
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    pointer-events: none;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23d8efef' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    z-index: 2;
}

.hero-category-select,
.listings-filter-card select,
.hero-search-form select {
    position: relative;
    z-index: 1;
    padding-right: 58px !important;
}

html:not([data-theme='dark']) .listings-filter-row::after,
html:not([data-theme='dark']) .hero-search-row::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%230b8f8a' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}


html[data-theme='dark'] .brand-badge {
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.34), 0 0 0 1px rgba(75, 233, 224, 0.08);
}


/* Ilanova brand refresh */
.brand {
    gap: 16px;
}

.brand-text strong {
    font-size: 20px;
    letter-spacing: -0.5px;
}

.brand-text small {
    font-size: 10px;
    letter-spacing: .18em;
}

.ilanova-badge {
    width: 58px;
    height: 58px;
    border-radius: 20px;
    background:
        radial-gradient(circle at 22% 18%, rgba(255,255,255,.26), transparent 32%),
        linear-gradient(135deg, #0f1f4f 0%, #109792 54%, #6bf2e5 100%);
    box-shadow:
        0 16px 32px rgba(18, 183, 176, 0.24),
        inset 0 1px 0 rgba(255,255,255,.12);
}

.ilanova-badge::after {
    inset: 1px;
    border-radius: 19px;
    border: 1px solid rgba(255,255,255,.12);
}

.ilanova-badge svg {
    width: 36px;
    height: 36px;
}

html[data-theme='dark'] .brand-text strong {
    color: #f2fffe;
}

html[data-theme='dark'] .brand-text small {
    color: #94d8d4;
}


.footer-brand-badge {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
}

.brand-text:has(small:empty) small {
    display: none;
}


.brand-text {
    justify-content: center;
}
.brand-text strong {
    line-height: 1;
}


/* ===== footer clean repair ===== */
.footer.footer-v2 {
    margin-top: 48px;
    padding: 0;
    background: linear-gradient(180deg, #18b8b3 0%, #10a9a4 100%);
    color: #ffffff;
    border-top-left-radius: 28px;
    border-top-right-radius: 28px;
    overflow: hidden;
    border-top: 1px solid rgba(255,255,255,0.14);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

html[data-theme='dark'] .footer.footer-v2 {
    background: linear-gradient(180deg, #0f8f8c 0%, #0b6f6c 100%);
}

.footer-content.footer-content-v2 {
    display: grid;
    grid-template-columns: minmax(280px, 1.2fr) repeat(3, minmax(160px, 1fr));
    gap: 42px;
    align-items: start;
    padding: 56px 0 32px;
}

.footer-brand-block {
    min-width: 0;
}

.footer-brand {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    max-width: 420px;
}

.footer-brand-badge {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
}

.footer-brand-copy {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-brand-name {
    font-size: 20px;
    font-weight: 800;
    line-height: 1.1;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.footer-brand-copy p {
    margin: 0;
    color: rgba(255,255,255,0.88);
    line-height: 1.75;
    font-size: 16px;
}

.footer-content-v2 .footer-column {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.footer-content-v2 .footer-column h4 {
    margin: 0 0 6px;
    color: #083235;
    font-size: 15px;
    font-weight: 800;
}

.footer-content-v2 .footer-column a,
.footer-content-v2 .footer-column span {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-size: 16px;
    line-height: 1.6;
}

.footer-content-v2 .footer-column a:hover {
    color: #ffffff;
}

.footer-bottom.footer-bottom-v2 {
    display: flex;
    justify-content: center;
    align-items: center;
    border-top: 1px solid rgba(255,255,255,0.18);
    padding: 24px 0 28px;
    text-align: center;
}

.footer-bottom.footer-bottom-v2 span {
    color: rgba(255,255,255,0.88);
    font-size: 15px;
}

@media (max-width: 980px) {
    .footer-content.footer-content-v2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px;
    }
}

@media (max-width: 640px) {
    .footer-content.footer-content-v2 {
        grid-template-columns: 1fr;
        padding: 42px 0 24px;
    }

    .footer-brand {
        max-width: none;
    }
}
