/* ==========================================================
   PROBoat — stylesheet
   ========================================================== */
:root {
  --primary: #1f8aa6;
  --primary-600: #187590;
  --primary-700: #135f75;
  --primary-50: #eaf6f9;
  --primary-100: #d3edf3;
  --ink: #0f2533;
  --text: #2b3d4a;
  --muted: #6b7c88;
  --line: #e4eaee;
  --line-2: #eef2f5;
  --bg: #f6f8fa;
  --white: #fff;
  --gold: #c99a2e;
  --success: #15885a;
  --warning: #b7791f;
  --danger: #c0392b;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(15, 37, 51, .06);
  --shadow: 0 4px 18px rgba(15, 37, 51, .08);
  --shadow-lg: 0 18px 50px rgba(15, 37, 51, .14);
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--primary-600); text-decoration: none; }
a:hover { color: var(--primary-700); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(26px, 3.6vw, 40px); font-weight: 800; }
h2 { font-size: clamp(21px, 2.4vw, 28px); font-weight: 700; }
h3 { font-size: 17px; font-weight: 600; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.icon { flex-shrink: 0; vertical-align: middle; }
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 20px; }
.mobile-only { display: none; }
[hidden] { display: none !important; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: 8px;
  font: inherit; font-size: 14px; font-weight: 600; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer; transition: .15s ease;
  text-decoration: none; background: none; color: var(--text);
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 1px 2px rgba(31, 138, 166, .3); }
.btn-primary:hover { background: var(--primary-600); color: #fff; }
.btn-outline { border-color: var(--line); background: #fff; color: var(--text); }
.btn-outline:hover { border-color: #cbd6dd; background: var(--bg); color: var(--ink); }
.btn-ghost { color: var(--muted); }
.btn-ghost:hover { background: var(--line-2); color: var(--ink); }
.btn-danger { background: #fff; border-color: #f0c9c4; color: var(--danger); }
.btn-danger:hover { background: #fdf1ef; color: var(--danger); }
.btn-success { background: var(--success); color: #fff; }
.btn-success:hover { background: #107049; color: #fff; }
.btn-sm { height: 32px; padding: 0 11px; font-size: 13px; gap: 6px; }
.btn-lg { height: 48px; padding: 0 22px; font-size: 15px; }
.btn-block { width: 100%; }
.icon-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 8px; border: 0; background: none;
  color: var(--text); cursor: pointer; transition: .15s;
}
.icon-btn:hover { background: var(--line-2); color: var(--ink); }
.dot-count {
  position: absolute; top: 3px; right: 2px; min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 8px; background: var(--primary); color: #fff; font-size: 10px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}
.dot-count.static { position: static; margin-left: 2px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(180%) blur(8px); border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; height: var(--header-h); gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-size: 18px; letter-spacing: -.02em; margin-right: auto; }
.logo b { font-weight: 800; }
.logo span { font-weight: 500; }
.logo .icon { color: var(--primary); }
.logo:hover { color: var(--ink); }
.main-nav { display: flex; gap: 4px; position: absolute; left: 50%; transform: translateX(-50%); }
.main-nav a { padding: 8px 12px; border-radius: 8px; color: var(--text); font-weight: 500; font-size: 14.5px; }
.main-nav a:hover { color: var(--ink); background: var(--line-2); }
.main-nav a.active { color: var(--primary-600); }
.header-actions { display: flex; align-items: center; gap: 6px; }
.header-actions .btn-dashboard { margin-left: 6px; }
.menu-toggle { display: none; }
.search-panel { border-top: 1px solid var(--line); background: #fff; padding: 14px 0; box-shadow: var(--shadow); }
.search-panel-form { display: flex; align-items: center; gap: 10px; }
.search-panel-form > .icon { color: var(--muted); }
.search-panel-form input { flex: 1; border: 0; font: inherit; font-size: 17px; outline: none; padding: 8px 0; background: none; }
.search-panel-form select { width: auto; }

/* ---------- Alerts / badges ---------- */
.flash-wrap { padding-top: 16px; }
.alert { padding: 12px 16px; border-radius: var(--radius); margin-bottom: 12px; border: 1px solid; font-size: 14px; }
.alert-success { background: #ecf8f2; border-color: #bfe6d2; color: #0f6b46; }
.alert-error, .alert-danger { background: #fdf1ef; border-color: #f2cdc7; color: #9b2c20; }
.alert-info { background: var(--primary-50); border-color: var(--primary-100); color: var(--primary-700); }
.alert-warning { background: #fdf6e9; border-color: #f1ddb3; color: #8a5a12; }
.badge { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 11px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.badge-success { background: #e3f5ec; color: var(--success); }
.badge-warning { background: #fcf1dc; color: var(--warning); }
.badge-danger { background: #fbe6e3; color: var(--danger); }
.badge-muted { background: var(--line-2); color: var(--muted); }
.badge-primary { background: var(--primary-50); color: var(--primary-600); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(95, 200, 220, .35), transparent 60%),
    linear-gradient(160deg, #0b3a4f 0%, #0f5a72 45%, #1f8aa6 100%);
  padding: 72px 0 120px;
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 90px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 90' preserveAspectRatio='none'%3E%3Cpath fill='%23f6f8fa' d='M0 50c120 25 240 35 360 25s240-45 360-45 240 35 360 45 240-5 360-25v90H0z'/%3E%3C/svg%3E") bottom/100% 100% no-repeat;
}
.hero h1 { color: #fff; max-width: 720px; }
.hero p.lead { font-size: 18px; color: rgba(255, 255, 255, .82); max-width: 600px; margin-bottom: 28px; }
.hero-stats { display: flex; gap: 32px; margin-top: 28px; color: rgba(255, 255, 255, .8); font-size: 14px; }
.hero-stats b { display: block; color: #fff; font-size: 22px; font-weight: 700; }

.search-box { position: relative; z-index: 2; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); max-width: 980px; }
.search-tabs { display: flex; gap: 4px; padding: 10px 10px 0; border-bottom: 1px solid var(--line); }
.search-tabs button {
  display: inline-flex; align-items: center; gap: 7px; border: 0; background: none; font: inherit; font-weight: 600; font-size: 14px;
  color: var(--muted); padding: 10px 14px 12px; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.search-tabs button.active { color: var(--primary-600); border-bottom-color: var(--primary); }
.search-fields { display: grid; grid-template-columns: 1.4fr 1fr 1fr auto; gap: 10px; padding: 14px; align-items: end; color: var(--text); }
.search-fields label { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.section-tight { padding: 36px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.section-head h2 { margin: 0; }
.section-head p { margin: 4px 0 0; color: var(--muted); }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; white-space: nowrap; }
.bg-white { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.cat-tile {
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); font-weight: 600; font-size: 14px;
  transition: .15s;
}
.cat-tile .icon-wrap { width: 40px; height: 40px; border-radius: 10px; background: var(--primary-50); color: var(--primary); display: grid; place-items: center; }
.cat-tile small { display: block; color: var(--muted); font-weight: 500; font-size: 12.5px; }
.cat-tile:hover { border-color: var(--primary-100); box-shadow: var(--shadow); transform: translateY(-2px); color: var(--ink); }

.modules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.module {
  position: relative; padding: 26px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); overflow: hidden;
}
.module .icon-wrap { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--primary-50); color: var(--primary); margin-bottom: 14px; }
.module p { color: var(--muted); }

/* ---------- Cards ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 20px; }
.grid-3 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: .18s ease; display: flex; flex-direction: column; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card-media { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--line-2); overflow: hidden; }
.card-media.short { aspect-ratio: 16 / 9; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card-media img { transform: scale(1.04); }
.ph { width: 100%; height: 100%; display: grid; place-items: center; color: rgba(255, 255, 255, .85); background: linear-gradient(135deg, var(--ph1), var(--ph2)); }
.card-tags { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; }
.tag { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 9px; border-radius: 6px; background: rgba(255, 255, 255, .94); color: var(--ink); font-size: 12px; font-weight: 600; }
.tag-gold { background: var(--gold); color: #fff; }
.tag-dark { background: var(--ink); color: #fff; }
.img-count { position: absolute; bottom: 10px; left: 10px; display: inline-flex; gap: 4px; align-items: center; padding: 3px 8px; border-radius: 6px; background: rgba(15, 37, 51, .65); color: #fff; font-size: 12px; }
.fav-btn {
  position: absolute; top: 10px; right: 10px; z-index: 2; width: 36px; height: 36px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, .94); color: var(--ink); display: grid; place-items: center; cursor: pointer; transition: .15s;
}
.fav-btn:hover { transform: scale(1.08); }
.fav-btn.on { color: #e0435a; }
.fav-btn.on svg, .btn.on svg { fill: currentColor; }
.btn.on { color: #e0435a; }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.card-meta { font-size: 12.5px; color: var(--muted); font-weight: 500; margin-bottom: 4px; }
.card-title { font-size: 16px; margin: 0 0 8px; }
.card-title a { color: var(--ink); }
.card-title a:hover { color: var(--primary-600); }
.card-sub { margin: -4px 0 6px; font-size: 13px; color: var(--primary-600); font-weight: 600; }
.card-text { font-size: 13.5px; color: var(--muted); margin-bottom: 10px; }
.specs-inline { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--muted); }
.specs-inline li { display: inline-flex; align-items: center; gap: 5px; }
.card-foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line-2); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.price { font-weight: 700; color: var(--ink); font-size: 17px; }
.price small { font-weight: 500; color: var(--muted); font-size: 13px; }
.loc { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.article-card .card-body h3 { font-size: 17px; }

/* ---------- Listing page with filters ---------- */
.page-head { padding: 28px 0 8px; }
.page-head h1 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 4px; }
.breadcrumb { font-size: 13px; color: var(--muted); margin-bottom: 10px; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--primary-600); }
.layout-filters { display: grid; grid-template-columns: 280px 1fr; gap: 28px; padding: 16px 0 60px; align-items: start; }
.filters { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; position: sticky; top: calc(var(--header-h) + 16px); }
.filters h3 { display: flex; align-items: center; gap: 8px; font-size: 15px; margin-bottom: 14px; }
.filter-group { padding: 12px 0; border-top: 1px solid var(--line-2); }
.filter-group:first-of-type { border-top: 0; padding-top: 0; }
.filter-group > label, .filter-label { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink); margin-bottom: 7px; }
.range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--line-2); border-radius: 8px; padding: 3px; gap: 3px; }
.seg label { margin: 0; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; text-align: center; padding: 6px 4px; border-radius: 6px; font-size: 13px; font-weight: 500; cursor: pointer; color: var(--muted); }
.seg input:checked + span { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); font-weight: 600; }
.results-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.results-bar .count { color: var(--muted); font-size: 14px; }
.results-bar .count b { color: var(--ink); }
.results-bar select { width: auto; }
.filters-toggle { display: none; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 17px; border: 1px solid var(--line); background: #fff; color: var(--text); font-size: 13.5px; font-weight: 500; }
.chip:hover { border-color: var(--primary-100); color: var(--primary-600); }
.chip.active { background: var(--primary); border-color: var(--primary); color: #fff; }

.empty-state { text-align: center; padding: 60px 20px; color: var(--muted); background: #fff; border: 1px dashed var(--line); border-radius: var(--radius-lg); }
.empty-state .icon { color: var(--primary); margin-bottom: 10px; }
.empty-state h3, .empty-state h1 { color: var(--ink); }
.empty-page { padding: 60px 20px; }

.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--text); font-weight: 500; }
.pagination a.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.pagination span { border: 0; background: none; }

/* ---------- Detail page ---------- */
.detail { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; padding: 8px 0 60px; align-items: start; }
.gallery { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.gallery-main { position: relative; aspect-ratio: 16 / 10; background: #0f2533; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.gallery-main .ph { position: absolute; inset: 0; }
.gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .9); display: grid; place-items: center; cursor: pointer; color: var(--ink); }
.gallery-nav.prev { left: 12px; }
.gallery-nav.next { right: 12px; }
.gallery-thumbs { display: flex; gap: 8px; padding: 10px; overflow-x: auto; }
.gallery-thumbs button { flex: 0 0 92px; height: 66px; border-radius: 8px; overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; background: none; opacity: .7; }
.gallery-thumbs button.active { border-color: var(--primary); opacity: 1; }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; margin-top: 20px; }
.panel:first-child { margin-top: 0; }
.panel h2 { font-size: 19px; margin-bottom: 14px; }
.spec-table { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 28px; }
.spec-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line-2); font-size: 14px; }
.spec-row span { color: var(--muted); }
.spec-row b { color: var(--ink); font-weight: 600; text-align: right; }
.description { white-space: normal; }
.description p:last-child { margin-bottom: 0; }
.sidebar-sticky { position: sticky; top: calc(var(--header-h) + 16px); display: flex; flex-direction: column; gap: 16px; }
.price-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; }
.price-box .big-price { font-size: 30px; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.price-box .big-price small { font-size: 15px; color: var(--muted); font-weight: 500; }
.detail-title { margin: 6px 0 6px; font-size: clamp(22px, 2.6vw, 30px); }
.detail-sub { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.detail-sub span { display: inline-flex; align-items: center; gap: 5px; }
.owner { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); margin: 14px 0; }
.avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--primary-100); color: var(--primary-700); display: grid; place-items: center; font-weight: 700; font-size: 17px; flex-shrink: 0; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.owner b { color: var(--ink); display: block; }
.owner small { color: var(--muted); }
.stack { display: flex; flex-direction: column; gap: 10px; }
.key-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 20px; }
.fact { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.fact .icon { color: var(--primary); }
.fact small { display: block; color: var(--muted); font-size: 12px; margin-top: 6px; }
.fact b { color: var(--ink); font-size: 15px; }
.reveal-phone { font-variant-numeric: tabular-nums; }

/* ---------- Calendar ---------- */
.cal-wrap { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.cal-month h4 { text-align: center; font-size: 14px; margin-bottom: 8px; text-transform: capitalize; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }
.cal-grid .dow { font-size: 11px; color: var(--muted); text-align: center; font-weight: 600; padding: 4px 0; }
.cal-day {
  aspect-ratio: 1; display: grid; place-items: center; border-radius: 7px; font-size: 13px; font-weight: 500;
  background: #e8f6ef; color: #146c47; border: 0; font-family: inherit; padding: 0;
}
.cal-day.empty { background: none; }
.cal-day.past { background: none; color: #c3ccd2; }
.cal-day.blocked { background: #f1f3f5; color: #9aa6ae; text-decoration: line-through; }
.cal-day.booked { background: #fbe6e3; color: var(--danger); text-decoration: line-through; }
.cal-day.sel { background: var(--primary); color: #fff; }
.cal-day.in-range { background: var(--primary-100); color: var(--primary-700); }
.cal-day.today { box-shadow: inset 0 0 0 2px var(--primary); }
.cal-interactive .cal-day:not(.past):not(.empty) { cursor: pointer; }
.cal-interactive .cal-day:not(.past):not(.empty):hover { outline: 2px solid var(--primary); }
.cal-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12.5px; color: var(--muted); margin-top: 14px; }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cal-legend i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.booking-summary { background: var(--bg); border-radius: var(--radius); padding: 12px 14px; font-size: 14px; }
.booking-summary .row { display: flex; justify-content: space-between; padding: 3px 0; }
.booking-summary .total { font-weight: 700; color: var(--ink); border-top: 1px solid var(--line); margin-top: 6px; padding-top: 8px; }

/* ---------- Forms ---------- */
label { font-size: 13.5px; font-weight: 600; color: var(--ink); display: block; margin-bottom: 6px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=tel], input[type=url], input[type=search], input[type=date], select, textarea {
  width: 100%; height: 42px; padding: 0 12px; border: 1px solid #d6dfe5; border-radius: 8px; background: #fff;
  font: inherit; font-size: 14.5px; color: var(--ink); transition: border-color .15s, box-shadow .15s;
}
textarea { height: auto; min-height: 120px; padding: 10px 12px; resize: vertical; line-height: 1.5; }
select { appearance: none; padding-right: 34px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7c88' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(31, 138, 166, .15); }
.form-row { margin-bottom: 16px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 16px; }
.form-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 16px; }
.form-grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 16px; }
.span-2 { grid-column: span 2; }
.span-all { grid-column: 1 / -1; }
.help { font-size: 12.5px; color: var(--muted); margin-top: 5px; font-weight: 400; }
.field-error { font-size: 12.5px; color: var(--danger); margin-top: 5px; }
.check { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; cursor: pointer; font-size: 14px; color: var(--text); }
.check input { width: 17px; height: 17px; accent-color: var(--primary); margin: 0; }
.input-addon { position: relative; }
.input-addon span { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 13px; pointer-events: none; }
.input-addon input { padding-right: 48px; }
.form-section { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; margin-bottom: 18px; }
.form-section > h3 { display: flex; align-items: center; gap: 8px; font-size: 16px; margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--line-2); }
.form-section > h3 .icon { color: var(--primary); }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; align-items: center; flex-wrap: wrap; }
.type-picker { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.type-option input { position: absolute; opacity: 0; }
.type-option span {
  display: flex; flex-direction: column; gap: 6px; padding: 16px; border: 2px solid var(--line); border-radius: 12px; cursor: pointer; font-weight: 600; color: var(--ink); transition: .15s; height: 100%;
}
.type-option span small { font-weight: 400; color: var(--muted); font-size: 12.5px; }
.type-option span .icon { color: var(--primary); }
.type-option input:checked + span { border-color: var(--primary); background: var(--primary-50); }
.dropzone { border: 2px dashed #cbd6dd; border-radius: 12px; padding: 26px; text-align: center; color: var(--muted); cursor: pointer; transition: .15s; display: block; font-weight: 500; }
.dropzone:hover, .dropzone.drag { border-color: var(--primary); background: var(--primary-50); color: var(--primary-700); }
.dropzone input { display: none; }
.img-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin-top: 14px; }
.img-item { position: relative; aspect-ratio: 4/3; border-radius: 8px; overflow: hidden; background: var(--line-2); border: 1px solid var(--line); }
.img-item img { width: 100%; height: 100%; object-fit: cover; }
.img-item .img-actions { position: absolute; inset: auto 0 0 0; display: flex; justify-content: space-between; padding: 5px; background: linear-gradient(transparent, rgba(0, 0, 0, .55)); }
.img-item .img-actions button, .img-item .img-actions label { width: 26px; height: 26px; border-radius: 6px; border: 0; background: rgba(255, 255, 255, .92); display: grid; place-items: center; cursor: pointer; margin: 0; color: var(--ink); }
.img-item .cover-label { position: absolute; top: 6px; left: 6px; background: var(--primary); color: #fff; font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 5px; }
.img-item.removed { opacity: .35; }
.img-item:has(input[name=cover]:checked) { outline: 3px solid var(--gold); outline-offset: -3px; }
.img-item label:has(input:checked) { background: var(--gold); color: #fff; }
.img-item label:has(input[type=checkbox]:checked) { background: var(--danger); }

/* ---------- Auth ---------- */
.auth-wrap { min-height: calc(100vh - var(--header-h) - 200px); display: grid; place-items: center; padding: 50px 20px; }
.auth-card { width: 100%; max-width: 440px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow); }
.auth-card h1 { font-size: 26px; text-align: center; }
.auth-card .sub { text-align: center; color: var(--muted); margin-bottom: 24px; }
.auth-foot { text-align: center; margin-top: 18px; font-size: 14px; color: var(--muted); }

/* ---------- Dashboard ---------- */
.dash { display: grid; grid-template-columns: 250px 1fr; gap: 28px; padding: 28px 0 60px; align-items: start; }
.dash-nav { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 12px; position: sticky; top: calc(var(--header-h) + 16px); }
.dash-user { display: flex; align-items: center; gap: 10px; padding: 8px 8px 14px; border-bottom: 1px solid var(--line-2); margin-bottom: 8px; }
.dash-user b { display: block; color: var(--ink); font-size: 14px; line-height: 1.3; }
.dash-user small { color: var(--muted); font-size: 12px; }
.dash-nav a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; color: var(--text); font-weight: 500; font-size: 14px; }
.dash-nav a:hover { background: var(--line-2); color: var(--ink); }
.dash-nav a.active { background: var(--primary-50); color: var(--primary-700); }
.dash-nav a .badge { margin-left: auto; }
.dash-nav .sep { height: 1px; background: var(--line-2); margin: 8px 0; }
.dash-nav .nav-title { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; padding: 8px 10px 4px; }
.dash-main { min-width: 0; }
.dash-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.dash-head h1 { font-size: 26px; margin: 0; }
.dash-head p { margin: 2px 0 0; color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 16px 18px; }
.stat-top { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 13px; font-weight: 500; }
.stat-top .icon { color: var(--primary); }
.stat b { display: block; font-size: 26px; color: var(--ink); font-weight: 700; margin-top: 6px; }
.box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 20px; }
.box-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line-2); gap: 10px; flex-wrap: wrap; }
.box-head h2, .box-head h3 { font-size: 16px; margin: 0; }
.box-body { padding: 18px; }
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 600; padding: 10px 14px; background: #fafbfc; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tr:hover td { background: #fbfcfd; }
.table .actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.t-item { display: flex; align-items: center; gap: 12px; min-width: 240px; }
.t-thumb { width: 64px; height: 48px; border-radius: 6px; overflow: hidden; flex-shrink: 0; background: var(--line-2); }
.t-thumb img { width: 100%; height: 100%; object-fit: cover; }
.t-thumb .ph .icon { width: 22px; height: 22px; }
.t-item b { color: var(--ink); display: block; font-weight: 600; }
.t-item b a { color: inherit; }
.t-item small { color: var(--muted); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tabs a { padding: 10px 14px; color: var(--muted); font-weight: 600; font-size: 14px; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a.active { color: var(--primary-600); border-bottom-color: var(--primary); }
.tabs a .badge { margin-left: 4px; }
.msg { padding: 16px 18px; border-bottom: 1px solid var(--line-2); }
.msg:last-child { border-bottom: 0; }
.msg.unread { background: #f7fbfc; border-left: 3px solid var(--primary); }
.msg-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.msg-head b { color: var(--ink); }
.msg-meta { font-size: 13px; color: var(--muted); }
.msg-body { white-space: pre-line; margin: 8px 0 10px; }
.inline-form { display: inline; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.toolbar input, .toolbar select { width: auto; min-width: 160px; }

/* ---------- Article ---------- */
.article { max-width: 760px; margin: 0 auto; padding: 30px 0 60px; }
.article-cover { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16/8; margin: 20px 0 26px; }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.prose { font-size: 16.5px; line-height: 1.75; color: var(--text); }
.prose h2 { font-size: 23px; margin-top: 1.6em; }
.prose h3 { font-size: 19px; margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }

/* ---------- CTA / Footer ---------- */
.cta { background: linear-gradient(135deg, #0f5a72, #1f8aa6); border-radius: 20px; color: #fff; padding: 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta h2 { color: #fff; margin-bottom: 6px; }
.cta p { color: rgba(255, 255, 255, .82); margin: 0; }
.cta .btn-white { background: #fff; color: var(--primary-700); }
.cta .btn-white:hover { background: var(--primary-50); }
.site-footer { background: #0c2230; color: #a9b8c2; padding: 52px 0 0; margin-top: 40px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: #fff; font-size: 14px; margin-bottom: 14px; }
.site-footer a { color: #a9b8c2; display: block; padding: 3px 0; }
.site-footer a:hover { color: #fff; }
.site-footer .muted { color: #8399a7; max-width: 320px; margin-top: 12px; }
.logo-light, .logo-light:hover { color: #fff; }
.logo-light .icon { color: #5fc5dc; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 40px; padding: 18px 20px; font-size: 13px; }
.footer-bottom a { display: inline; }

/* iOS Safari face zoom automat pe campurile cu font sub 16px - pe ecrane tactile folosim 16px */
@media (pointer: coarse), (max-width: 820px) {
  input[type=text], input[type=email], input[type=password], input[type=number], input[type=tel],
  input[type=url], input[type=search], input[type=date], select, textarea {
    font-size: 16px;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .main-nav { position: static; transform: none; }
  .header-inner { gap: 12px; }
  .btn-dashboard span { display: none; }
}
@media (max-width: 960px) {
  .layout-filters, .detail, .dash { grid-template-columns: 1fr; }
  .filters { position: static; display: none; }
  .filters.open { display: block; }
  .filters-toggle { display: inline-flex; }
  .sidebar-sticky, .dash-nav { position: static; }
  .dash-nav { display: flex; flex-wrap: wrap; gap: 4px; }
  .dash-nav .dash-user, .dash-nav .sep, .dash-nav .nav-title { display: none; }
  .dash-nav a { padding: 7px 10px; font-size: 13px; }
  .modules { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .search-fields { grid-template-columns: 1fr 1fr; }
  .search-fields .btn { grid-column: 1 / -1; }
  .key-facts { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .menu-toggle { display: inline-flex; }
  .main-nav {
    display: none; position: absolute; top: var(--header-h); left: 0; right: 0; transform: none;
    flex-direction: column; background: #fff; border-bottom: 1px solid var(--line); padding: 10px 16px 16px; box-shadow: var(--shadow);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 11px 12px; }
  .mobile-only { display: block; }
  .mobile-actions { border-top: 1px solid var(--line-2); margin-top: 6px; padding-top: 6px; }
  .mobile-actions a { display: flex; align-items: center; gap: 8px; }
  .btn-add span, .btn-dashboard { display: none; }
  .btn-add { width: 38px; padding: 0; }
}
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .hero { padding: 44px 0 100px; }
  .hero-stats { gap: 20px; }
  .form-grid, .form-grid-3, .form-grid-4, .spec-table, .type-picker { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .search-fields { grid-template-columns: 1fr; }
  .search-tabs button { padding: 10px 8px 12px; font-size: 13px; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 40px 0; }
  .cta { padding: 28px; }
  .auth-card { padding: 24px; }
  .search-panel-form select { display: none; }
  .header-actions .icon-btn[aria-label="Favorite"] { display: none; }
}
