:root {
    --wine: #00aeaf;
    --wine-dark: #007f80;
    --rose: #f48f00;
    --gold: #f48f00;
    --cream: #faf9f5;
    --paper: #ffffff;
    --ink: #2b2623;
    --muted: #706a68;
    --line: #e9e6e0;
    --green: #198754;
    --red: #c73546;
    --blue: #2468bd;
    --shadow: 0 14px 36px rgba(45, 39, 35, .09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: #faf9f5;
    font: 16px/1.6 "Segoe UI", Roboto, Arial, sans-serif;
}
body, button, input, select, textarea { font-family: inherit; }
a { color: var(--wine); text-decoration: none; transition: color .2s ease, background .2s ease, transform .2s ease; }
a:hover { color: var(--rose); }
img { max-width: 100%; }
.container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.site-main { min-height: 64vh; }

.top-strip { background: #019d9e; color: #dcffff; font-size: 13px; }
.top-strip .container { display: flex; justify-content: space-between; gap: 18px; padding: 7px 0; }
.site-header { position: sticky; top: 0; z-index: 50; background: #00aeaf; border-bottom: 1px solid rgba(0,0,0,.08); box-shadow: 0 6px 22px rgba(0,84,85,.14); }
.header-row { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; color: white; font-weight: 850; font-size: 22px; letter-spacing: -.02em; }
.brand:hover { color: white; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; color: white; background: #f48f00; border-radius: 50%; font-size: 20px; box-shadow: 0 7px 16px rgba(82,47,0,.2); }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a { padding: 10px 12px; border-radius: 4px; color: white; font-weight: 750; font-size: 14px; }
.nav a:hover, .nav a.active { color: white; background: rgba(0,83,84,.24); }
.nav .nav-cta { color: white; background: #f48f00; }
.nav .nav-cta:hover { color: white; background: #ffa422; }
.menu-toggle { display: none; border: 1px solid rgba(255,255,255,.45); color: white; background: rgba(0,0,0,.08); border-radius: 4px; padding: 8px 11px; font-size: 20px; }

.hero { position: relative; min-height: 560px; display: grid; align-items: center; background: linear-gradient(90deg,rgba(0,38,39,.82),rgba(0,58,59,.48),rgba(0,0,0,.14)), url('../images/hero.jpg') center/cover; color: white; }
.hero-content { max-width: 740px; padding: 70px 0 88px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 13px; color: #ffd18f; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; font-size: 12px; }
.hero h1 { margin: 0; max-width: 700px; font: 800 clamp(39px,6vw,70px)/1.05 Georgia,serif; letter-spacing: -.035em; }
.hero p { max-width: 620px; margin: 20px 0 27px; font-size: 19px; color: #fff5f8; }
.search-bar { display: grid; grid-template-columns: 1.15fr 1fr 1fr auto; gap: 9px; padding: 22px; background: rgba(0,0,0,.58); border: 1px solid rgba(255,255,255,.16); border-radius: 4px; box-shadow: 0 20px 55px rgba(0,0,0,.25); }
.search-bar input, .search-bar select { min-width: 0; height: 48px; border: 1px solid #e9e6e0; border-radius: 2px; padding: 0 12px; color: var(--ink); background: white; outline: none; }

.section { padding: 70px 0; }
.section-white { background: white; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.section-head h2, .page-title h1 { margin: 0; color: #2b2623; font: 800 clamp(29px,4vw,42px)/1.15 "Segoe UI",Roboto,Arial,sans-serif; letter-spacing: -.025em; }
.section-head p, .page-title p { margin: 8px 0 0; color: var(--muted); }
.category-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 14px; }
.category-card { min-height: 145px; padding: 21px; border: 1px solid var(--line); border-radius: 3px; background: #fff; box-shadow: 0 6px 24px rgba(55,48,42,.045); transition: .2s ease; }
.category-card:hover { transform: translateY(-4px); border-color: #00aeaf; box-shadow: var(--shadow); }
.category-icon { display: block; margin-bottom: 13px; font-size: 31px; }
.category-card strong { display: block; color: #2b2623; }
.category-card small { color: var(--muted); }
.vendor-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; }
.vendor-card { overflow: hidden; border: 1px solid var(--line); border-radius: 3px; background: white; box-shadow: 0 9px 28px rgba(47,42,38,.07); }
.vendor-photo { position: relative; display: block; height: 230px; overflow: hidden; background: #eee; }
.vendor-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.vendor-card:hover .vendor-photo img { transform: scale(1.04); }
.ribbon { position: absolute; left: 13px; top: 13px; padding: 6px 10px; color: white; background: var(--rose); border-radius: 2px; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.vendor-card-body { padding: 18px; }
.vendor-card h3 { margin: 0 0 6px; font-size: 20px; }
.vendor-meta { color: var(--muted); font-size: 14px; }
.vendor-price { margin-top: 13px; padding-top: 13px; border-top: 1px solid var(--line); color: var(--wine); font-weight: 800; }
.empty { padding: 45px 25px; text-align: center; border: 1px dashed #d9c3cd; border-radius: 16px; color: var(--muted); background: #fff; }
.empty.wide { grid-column: 1/-1; }
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.step { padding: 28px; border-top: 3px solid var(--gold); background: white; border-radius: 3px; box-shadow: var(--shadow); }
.step span { color: var(--gold); font-size: 13px; font-weight: 900; letter-spacing: .1em; }
.step h3 { margin: 7px 0; }
.cta { padding: 42px; display: flex; align-items: center; justify-content: space-between; gap: 25px; color: white; border-radius: 4px; background: linear-gradient(115deg,#007f80,#00aeaf); box-shadow: var(--shadow); }
.cta h2 { margin: 0 0 8px; font: 700 32px Georgia,serif; }

.page-hero { padding: 58px 0; color: white; background: linear-gradient(90deg,rgba(0,74,75,.9),rgba(0,105,106,.72)),url('../images/page-header.jpg') center/cover; }
.page-hero h1 { margin: 0; font: 750 clamp(34px,5vw,51px) Georgia,serif; }
.page-hero p { margin: 10px 0 0; color: #ffeaf1; }
.content-grid { display: grid; grid-template-columns: 290px minmax(0,1fr); gap: 24px; align-items: start; }
.filter-card, .card { padding: 24px; border: 1px solid var(--line); border-radius: 3px; background: white; box-shadow: var(--shadow); }
.filter-card { position: sticky; top: 96px; }
.filter-card h3, .card h2, .card h3 { margin-top: 0; color: var(--wine-dark); }
.listing-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; }
.listing-top h2 { margin: 0; }
.vendor-grid.list { grid-template-columns: repeat(2,minmax(0,1fr)); }

.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 17px; }
.form-group { min-width: 0; }
.form-group.full { grid-column: 1/-1; }
label { display: block; margin-bottom: 6px; color: #55424d; font-weight: 750; font-size: 14px; }
.required { color: var(--red); }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=url], input[type=number], input[type=date], select, textarea {
    width: 100%; min-height: 46px; padding: 10px 12px; color: var(--ink); border: 1px solid #dedad4; border-radius: 3px; background: #fff; outline: none;
}
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--rose); box-shadow: 0 0 0 3px rgba(217,79,112,.12); }
.help { margin-top: 4px; color: var(--muted); font-size: 12px; }
.check-row, .radio-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; min-height: 46px; }
.check-row label, .radio-row label { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-weight: 500; }
.form-actions { grid-column: 1/-1; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 6px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 42px; padding: 9px 16px; border: 0; border-radius: 4px; background: #e9e6e0; color: #3e3935; font-weight: 800; cursor: pointer; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { color: white; background: var(--wine); }
.btn-primary:hover { color: white; background: var(--rose); }
.btn-gold { color: #2e1d11; background: #f3c76b; }
.btn-danger { color: white; background: var(--red); }
.btn-small { min-height: 34px; padding: 6px 10px; font-size: 13px; }
.btn-block { width: 100%; }
.search-bar .btn { height: 48px; padding-inline: 22px; }
.alert, .flash { padding: 13px 16px; margin: 15px auto; border-radius: 10px; border: 1px solid; }
.alert-error { color: #8c1d2b; background: #fff0f2; border-color: #f0b9c1; }
.alert-success, .flash-success { color: #11623f; background: #edfff6; border-color: #a9dfc6; }
.flash-error { color: #8c1d2b; background: #fff0f2; border-color: #f0b9c1; }
.flash-hide { opacity: 0; transition: opacity .4s; }
.auth-wrap { max-width: 780px; margin: 0 auto; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 22px; }
.auth-tabs a { padding: 12px; text-align: center; border: 1px solid var(--line); border-radius: 3px; font-weight: 800; }
.auth-tabs a.active { color: white; background: var(--wine); }

.dashboard { display: grid; grid-template-columns: 240px minmax(0,1fr); gap: 24px; align-items: start; }
.side-nav { position: sticky; top: 96px; overflow: hidden; border: 1px solid var(--line); border-radius: 3px; background: white; }
.side-user { padding: 20px; color: white; background: linear-gradient(145deg,#007f80,#00aeaf); }
.side-user strong { display: block; }
.side-nav a { display: block; padding: 12px 17px; border-bottom: 1px solid var(--line); font-weight: 700; }
.side-nav a.active { color: #007f80; background: #eefcfc; border-left: 4px solid var(--rose); }
.stats { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; margin-bottom: 20px; }
.stat { padding: 18px; border: 1px solid var(--line); border-radius: 3px; background: white; }
.stat strong { display: block; color: var(--wine); font-size: 27px; }
.stat span { color: var(--muted); font-size: 13px; }
.status { display: inline-flex; align-items: center; padding: 5px 9px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.status-active, .status-approved { color: #11623f; background: #e3f8ed; }
.status-pending { color: #865719; background: #fff2d6; }
.status-blocked, .status-rejected { color: #942b36; background: #ffe7ea; }
.status-new { color: #77510e; background: #fff0c9; }
.status-read { color: #22589b; background: #e6f0ff; }
.status-replied { color: #11623f; background: #e3f8ed; }
.status-closed { color: #625b60; background: #ece9eb; }
.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px 10px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: #65535e; background: #fcf8fa; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
td { font-size: 14px; }
.actions { display: flex; flex-wrap: wrap; gap: 6px; }
.admin-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.admin-tabs a { padding: 9px 13px; border-radius: 3px; background: white; border: 1px solid var(--line); font-weight: 800; font-size: 14px; }
.admin-tabs a.active { color: white; background: var(--wine); }
.drag-hint { color: var(--muted); font-size: 13px; }

.profile-cover { height: 360px; overflow: hidden; border-radius: 0 0 22px 22px; background: #eee; }
.profile-cover img { width: 100%; height: 100%; object-fit: cover; }
.profile-head { position: relative; display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-top: -72px; padding: 0 28px 24px; color: white; }
.profile-id { display: flex; align-items: end; gap: 18px; }
.profile-logo { width: 120px; height: 120px; border: 5px solid white; border-radius: 18px; object-fit: cover; background: white; }
.profile-head h1 { margin: 0 0 5px; text-shadow: 0 2px 13px rgba(0,0,0,.65); font: 750 36px Georgia,serif; }
.profile-head p { margin: 0; text-shadow: 0 2px 8px rgba(0,0,0,.8); }
.profile-grid { display: grid; grid-template-columns: minmax(0,1fr) 330px; gap: 24px; align-items: start; }
.detail-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.detail { padding: 13px; border-radius: 10px; background: #faf5f7; }
.detail small { display: block; color: var(--muted); }
.detail strong { word-break: break-word; }
.gallery-note { color: var(--muted); }

.site-footer { margin-top: 70px; color: #c9c5c2; background: #322e2c; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 45px; padding: 50px 0 35px; }
.site-footer h3 { color: white; }
.site-footer a { display: block; margin: 7px 0; color: #c9c5c2; }
.footer-bottom { padding: 18px 0; border-top: 1px solid rgba(255,255,255,.1); font-size: 13px; }

@media (max-width: 980px) {
    .category-grid { grid-template-columns: repeat(3,1fr); }
    .vendor-grid { grid-template-columns: repeat(2,1fr); }
    .content-grid, .dashboard, .profile-grid { grid-template-columns: 1fr; }
    .filter-card, .side-nav { position: static; }
    .stats { grid-template-columns: repeat(2,1fr); }
    .profile-head { color: var(--ink); align-items: flex-start; margin: 0; padding: 20px 0; }
    .profile-head h1, .profile-head p { text-shadow: none; }
}

@media (max-width: 760px) {
    .top-strip { display: none; }
    .site-header { position: relative; }
    .header-row { flex-wrap: wrap; min-height: 68px; }
    .menu-toggle { display: block; }
    .nav { display: none; width: 100%; flex-direction: column; align-items: stretch; padding-bottom: 13px; }
    .nav.is-open { display: flex; }
    .nav a { text-align: center; }
    .hero { min-height: 650px; }
    .hero-content { padding: 55px 0; }
    .search-bar { grid-template-columns: 1fr; }
    .search-bar input, .search-bar select { border-right: 0; border-bottom: 1px solid var(--line); }
    .category-grid { grid-template-columns: repeat(2,1fr); }
    .vendor-grid, .vendor-grid.list, .steps, .footer-grid { grid-template-columns: 1fr; }
    .section { padding: 48px 0; }
    .section-head, .cta, .listing-top { align-items: flex-start; flex-direction: column; }
    .form-grid { grid-template-columns: 1fr; }
    .form-group.full, .form-actions { grid-column: auto; }
    .profile-cover { height: 250px; }
    .profile-id { align-items: flex-start; }
    .profile-logo { width: 92px; height: 92px; }
    .detail-list { grid-template-columns: 1fr; }
}

@media (max-width: 440px) {
    .container { width: min(100% - 20px,1180px); }
    .brand { font-size: 18px; }
    .brand-mark { width: 37px; height: 37px; }
    .hero h1 { font-size: 39px; }
    .category-grid { grid-template-columns: 1fr; }
    .stats { grid-template-columns: 1fr; }
    .profile-head, .profile-id { display: block; }
    .profile-logo { margin-bottom: 12px; }
    .cta { padding: 28px 22px; }
}
