/* ==========================================================================
   rnk44 design system
   1. Tokens  2. Base  3. Layout  4. Components  5. Pages  6. Utilities
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  color-scheme: light;
  --brand: #0e6b4a;
  --brand-dark: #0a5239;
  --brand-soft: #e6f4ee;
  --brand-2: #14a373;
  --accent: #f59e0b;

  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-2: #f1f3f9;
  --text: #0f172a;
  --text-soft: #475569;
  --muted: #64748b;
  --border: #e5e7ef;

  --ok: #16a34a;   --ok-bg: #dcfce7;   --ok-text: #166534;
  --warn: #d97706; --warn-bg: #fef3c7; --warn-text: #92400e;
  --bad: #dc2626;  --bad-bg: #fee2e2;  --bad-text: #991b1b;
  --info: #2563eb; --info-bg: #dbeafe; --info-text: #1e40af;

  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgb(15 23 42 / .06);
  --shadow: 0 4px 16px rgb(15 23 42 / .08);
  --shadow-lg: 0 18px 40px rgb(15 23 42 / .14);
  --ring: 0 0 0 3px rgb(14 107 74 / .25);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* 2. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font: 16px/1.6 var(--font); color: var(--text); background: var(--bg);
  display: flex; flex-direction: column; min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
#browser-warning { display: none; padding: 1rem; background: #fff3cd; color: #4a3200; font: 16px/1.5 Arial, sans-serif; text-align: center; }
main { flex: 1; }
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .6rem; letter-spacing: -.015em; }
h1 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-top: .5rem; }
h2 { font-size: 1.4rem; margin-top: 2.2rem; }
h3 { font-size: 1.1rem; margin-top: 1.4rem; }
h4 { font-size: 1rem; margin-top: 0; }
p { margin: 0 0 .8rem; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 6px; }
::-moz-selection { background: var(--brand); color: #fff; }
::selection { background: var(--brand); color: #fff; }

/* 3. Layout ---------------------------------------------------------------- */
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 1.25rem; }
main.container { padding-top: 1.25rem; padding-bottom: 3.5rem; }

.layout-side { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 1.75rem; align-items: start; }
.layout-side.wide-left { grid-template-columns: minmax(0, 1fr) 360px; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1.25rem; align-items: start; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 1.4rem; }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .85rem; }
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }

@media (max-width: 900px) {
  .layout-side, .layout-side.wide-left { grid-template-columns: 1fr; }
  .sticky { position: static !important; }
}

/* Header / nav */
.nav { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 1.5rem; max-width: none; padding: 0 2rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.3rem; color: var(--text); letter-spacing: -.02em; }
.brand:hover { text-decoration: none; }
.brand-logo { color: var(--brand); display: grid; place-items: center; }
.brand-logo img { width: 38px; height: 38px; }
.brand { flex-shrink: 0; }
.brand-text small { white-space: nowrap; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text b { font-size: 1.45rem; font-weight: 800; letter-spacing: -.02em; }
.brand-text small { font-size: .68rem; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-top: .15rem; }
.nav-menu { display: flex; align-items: center; flex: 1; justify-content: space-between; gap: 1rem; min-width: 0; }
.nav-links { display: flex; align-items: center; gap: clamp(1rem, 1.8vw, 2rem); margin: 0 auto; }
.nav-links > a {
  position: relative; color: var(--text); padding: .5rem 0; font-weight: 500; font-size: .92rem; white-space: nowrap;
}
.nav-links > a:hover { color: var(--brand); text-decoration: none; }
.nav-links > a.active { color: var(--brand); }
.nav-links > a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -.4rem; height: 2px; border-radius: 2px; background: var(--brand); }
.nav-actions { display: flex; align-items: center; gap: 1rem; }
.nav-actions form.inline button.link { font-size: .9rem; color: var(--text-soft); padding: .3rem .2rem; }
.nav-actions form.inline button.link:hover { color: var(--brand); }
.icon-btn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--text); }
.icon-btn:hover { background: var(--brand-soft); color: var(--brand); text-decoration: none; }
.icon-btn svg { width: 22px; height: 22px; }
.nav-publish-actions { display: flex; align-items: center; gap: .75rem; }
.message-icon { position: relative; flex-shrink: 0; }
.message-icon.active { color: var(--brand); background: var(--brand-soft); }
.message-badge { position: absolute; top: 0; right: 0; }
.notification-bell { position: relative; }
.notification-badge { position: absolute; top: 0; right: 0; }
.notification-badge[hidden] { display: none; }
.notification-list { margin-top: 1rem; }
.notification-item { border-bottom: 1px solid var(--border); }
.notification-item.unread { background: var(--brand-soft); }
.notification-open { display: flex; width: 100%; gap: .5rem; justify-content: space-between; align-items: center; padding: 1rem; border: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; }
.notification-open small { white-space: nowrap; }
.card-rating { margin: .35rem 0; font-size: .85rem; }
.card-rating .stars { color: #f59e0b; }
.friendly-error { min-height: 100vh; display: grid; place-items: center; padding: 1.5rem; background: var(--bg); }
.friendly-error-card { width: min(100%, 560px); padding: 2.5rem 1.5rem; text-align: center; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow-sm); }
.friendly-error-icon { display: inline-grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; color: var(--brand); background: var(--brand-soft); }
.friendly-error-icon svg { width: 36px; height: 36px; }
.friendly-error-card h1 { margin: 1.2rem 0 .7rem; font-size: clamp(1.5rem, 5vw, 2rem); }
.friendly-error-card p { margin: 0 auto 1.5rem; max-width: 430px; line-height: 1.6; color: var(--text-soft); }
.friendly-error-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; }
.nav-login { display: inline-flex; align-items: center; gap: .5rem; color: var(--text); font-weight: 500; font-size: .92rem; padding: .5rem .85rem; border-radius: 99px; white-space: nowrap; }
.nav-login:hover { background: var(--brand-soft); color: var(--brand); text-decoration: none; }
.nav-login svg { width: 20px; height: 20px; color: var(--brand); }
.btn-pill { border-radius: 99px; padding: .65rem 1.4rem; white-space: nowrap; }
.nav .badge { vertical-align: middle; }
.nav-toggle { display: none; background: none; border: 1px solid var(--border); border-radius: 10px; width: 42px; height: 42px; cursor: pointer; color: var(--text); font-size: 1.2rem; }
.drawer-head, .nav-backdrop, .icon-label { display: none; }

@media (min-width: 1201px) {
  .nav-inner { display: grid; grid-template-columns: minmax(max-content, 1fr) minmax(0, auto) minmax(max-content, 1fr); -moz-column-gap: clamp(2.5rem, 3.5vw, 4rem); column-gap: clamp(2.5rem, 3.5vw, 4rem); padding-top: .6rem; padding-bottom: .6rem; }
  .nav-menu { display: contents; }
  .nav-links { justify-content: center; flex-wrap: wrap; gap: .75rem clamp(1.5rem, 2vw, 2.25rem); }
  .nav-actions { justify-self: end; flex-wrap: wrap; justify-content: flex-end; }
}
@media (max-width: 1100px) {
  .nav-links { gap: 1.2rem; }
  .brand-text small { display: none; }
}
@media (max-width: 1200px) {
  .nav-toggle { display: grid; place-items: center; }
  .nav-menu {
    display: flex; position: fixed; top: 0; bottom: 0; left: 0; width: min(330px, 86vw); z-index: 70;
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0; overflow: hidden;
    background: #fff; padding: 0; box-shadow: 0 0 40px rgba(8, 24, 18, .25); border-radius: 0 22px 22px 0;
    transform: translateX(-105%); visibility: hidden; transition: transform .3s cubic-bezier(.3, .8, .3, 1), visibility .3s;
  }
  .nav-menu.open { transform: none; visibility: visible; }
  .nav-backdrop { display: block; position: fixed; inset: 0; background: rgba(8, 24, 18, .5); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); z-index: 45; opacity: 0; pointer-events: none; transition: opacity .3s; }
  .nav-backdrop.show { opacity: 1; pointer-events: auto; }

  .drawer-head { display: flex; flex-shrink: 0; align-items: center; gap: .6rem; padding: 1.1rem 1.1rem 1rem 1.25rem; background: linear-gradient(135deg, var(--brand-soft), #fff); border-bottom: 1px solid var(--border); }
  .drawer-head .brand-logo img { width: 34px; height: 34px; }
  .drawer-head .brand-text { flex: 1; }
  .drawer-head .brand-text b { font-size: 1.25rem; }
  .drawer-head .brand-text small { display: block; text-transform: uppercase; letter-spacing: .08em; font-size: .62rem; }
  .nav-close { display: grid; place-items: center; width: 38px; height: 38px; background: #fff; border: 1px solid var(--border); border-radius: 50%; font-size: 1.4rem; line-height: 1; cursor: pointer; color: var(--text-soft); }
  .nav-close:hover { color: var(--brand); border-color: var(--brand); }

  .nav-links { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; flex-direction: column; align-items: stretch; gap: .2rem; margin: 0; padding: 1rem .85rem; }
  .nav-links > a {
    display: flex; align-items: center; justify-content: space-between; padding: .8rem .9rem; border-radius: 12px;
    font-size: .98rem; font-weight: 500; border: 0;
  }
  .nav-links > a::before { content: none; }
  .nav-links > a::after {
    content: ""; position: static; width: 7px; height: 7px; background: none; height: 7px; border-right: 2px solid var(--muted); border-top: 2px solid var(--muted);
    transform: rotate(45deg); opacity: .6; border-radius: 0; margin-right: .2rem;
  }
  .nav-links > a:hover { background: var(--brand-soft); color: var(--brand); }
  .nav-links > a.active { background: var(--brand-soft); color: var(--brand); font-weight: 700; box-shadow: inset 3px 0 0 var(--brand); }
  .nav-links > a.active::after { content: ""; position: static; width: 7px; height: 7px; background: none; border-radius: 0; border-color: var(--brand); opacity: 1; }

  .nav-actions {
    display: grid; flex-shrink: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; gap: .6rem; padding: 1rem 1.25rem max(1.5rem, env(safe-area-inset-bottom));
    border-top: 1px solid var(--border); background: var(--bg, #f6f8f7);
  }
  .nav-actions .icon-btn { width: auto; height: auto; border-radius: 12px; justify-content: start; grid-auto-flow: column; gap: .6rem; padding: .7rem .9rem; background: #fff; border: 1px solid var(--border); font-weight: 500; font-size: .92rem; }
  .nav-actions .icon-btn svg { width: 20px; height: 20px; color: var(--brand); }
  .nav-actions > :not(.icon-btn) { grid-column: 1 / -1; }
  .nav-publish-actions .message-icon { width: 44px; height: 44px; border: 1px solid var(--border); background: #fff; border-radius: 12px; }
  .nav-publish-actions .message-icon.active { background: var(--brand-soft); }
  .nav-publish-actions .btn { flex: 1; }
  .icon-label { display: inline; }
  .nav-actions .nav-login { padding: .7rem .9rem; border-radius: 12px; background: #fff; border: 1px solid var(--border); }
  .nav-actions .btn-pill { text-align: center; justify-content: center; border-radius: 12px; padding: .8rem 1rem; }
  .nav-actions form.inline { display: block; }
  .nav-actions form.inline button.link { width: 100%; text-align: center; padding: .6rem; color: var(--danger, #b42318); font-weight: 600; }
  .brand-text small { display: block; }
}
@media (max-width: 1200px) and (max-height: 400px) {
  .drawer-head { padding-top: .5rem; padding-bottom: .5rem; }
  .nav-actions { gap: .25rem; padding: .5rem 1rem max(.5rem, env(safe-area-inset-bottom)); }
  .nav-actions .icon-btn, .nav-actions .nav-login, .nav-actions .btn-pill, .nav-actions form.inline button.link { padding: .35rem .6rem; }
}

/* Footer */
.footer { background: #0b2b20; border-top: 0; margin-top: 2rem; padding: 2.5rem 0 1.5rem; color: #a9c4b8; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
.footer h4 { color: #fff; margin-bottom: .6rem; }
.footer a { display: block; color: #a9c4b8; padding: .12rem 0; }
.footer a:hover { color: #fff; }
.footer .brand { color: #fff; margin-bottom: .6rem; }
.footer .brand-logo { width: 38px; height: 38px; border-radius: 9px; background: #fff; }
.footer .brand-logo img { width: 32px; height: 32px; }
.footer .footer-socials { display: flex; gap: .5rem; margin-top: .9rem; }
.footer .footer-socials a {
  display: grid; place-items: center; width: 30px; height: 30px; padding: 0;
  border-radius: 50%; background: #176f5d; color: #fff;
}
.footer .footer-socials a:hover { background: #22836e; color: #fff; }
.footer .footer-socials svg { display: block; width: 16px; height: 16px; }
.footer-bottom { border-top: 1px solid rgb(255 255 255 / .12); margin-top: 1.75rem; padding-top: 1rem; font-size: .85rem; }
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr; } }

/* 4. Components ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  background: var(--brand); color: #fff; border: 1px solid var(--brand);
  padding: .6rem 1.15rem; border-radius: 10px; font: inherit; font-weight: 600; font-size: .95rem;
  cursor: pointer; text-align: center; transition: transform .12s, box-shadow .12s, background .12s;
}
.btn:hover { background: var(--brand-dark); border-color: var(--brand-dark); text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow); color: #fff; }
.btn:active { transform: none; }
.btn-sm { padding: .32rem .75rem; font-size: .85rem; border-radius: 8px; }
.btn-block { display: flex; width: 100%; }
.btn-outline { background: transparent; color: var(--brand); }
.btn-outline:hover { background: var(--brand-soft); color: var(--brand-dark); box-shadow: none; }
.btn-danger { background: transparent; color: var(--bad); border-color: var(--bad); border-color: color-mix(in srgb, var(--bad) 55%, transparent); }
.btn-danger:hover { background: var(--bad-bg); color: var(--bad-text); border-color: var(--bad); box-shadow: none; }
button.link { background: none; border: 0; color: var(--muted); cursor: pointer; font: inherit; padding: .45rem .75rem; border-radius: 8px; }
button.link:hover { color: var(--bad); background: var(--surface-2); }
.inline, .inline-form { display: inline-flex; gap: .4rem; align-items: center; margin: 0; flex-wrap: wrap; }
.inline-form input { width: 12rem; padding: .3rem .6rem; font-size: .85rem; }
.inline-form select { width: auto; padding: .3rem .5rem; font-size: .85rem; }

.badge { background: var(--bad); color: #fff; border-radius: 99px; padding: 0 .45rem; font-size: .72rem; font-weight: 700; line-height: 1.5; display: inline-block; }

.alert { display: flex; gap: .6rem; padding: .8rem 1rem; border-radius: var(--radius-sm); margin: 0 0 1rem; border: 1px solid; font-size: .95rem; animation: slide-in .25s ease; }
.alert-success { background: var(--ok-bg); border-color: var(--ok); border-color: color-mix(in srgb, var(--ok) 40%, transparent); color: var(--ok-text); }
.alert-error   { background: var(--bad-bg); border-color: var(--bad); border-color: color-mix(in srgb, var(--bad) 40%, transparent); color: var(--bad-text); }
.alert-info    { background: var(--info-bg); border-color: var(--info); border-color: color-mix(in srgb, var(--info) 40%, transparent); color: var(--info-text); }
.alert.hide { opacity: 0; transform: translateY(-6px); transition: .3s; }
@keyframes slide-in { from { opacity: 0; transform: translateY(-6px); } }

.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.15rem 1.35rem; margin: .85rem 0; box-shadow: var(--shadow-sm); }
.panel > :first-child { margin-top: 0; }
.panel > :last-child { margin-bottom: 0; }

.pill { display: inline-block; background: var(--surface-2); color: var(--text-soft); border-radius: 99px; padding: .12rem .7rem; font-size: .78rem; font-weight: 600; text-transform: capitalize; }
.pill.ok { background: var(--ok-bg); color: var(--ok-text); }
.pill.warn { background: var(--warn-bg); color: var(--warn-text); }
.pill.bad { background: var(--bad-bg); color: var(--bad-text); }
.pill.info { background: var(--info-bg); color: var(--info-text); }

.chips { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.chips a, .chips span {
  background: var(--surface); color: var(--text-soft); border: 1px solid var(--border);
  border-radius: 99px; padding: .22rem .85rem; font-size: .88rem; display: inline-flex; align-items: center; gap: .3rem;
}
.chips a:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.chips a.active { background: var(--brand); color: #fff; border-color: var(--brand); }

.tag { position: absolute; top: .7rem; left: .7rem; background: var(--accent); color: #1f2937; font-size: .72rem; font-weight: 800; padding: .15rem .6rem; border-radius: 99px; letter-spacing: .02em; box-shadow: var(--shadow); }

/* Forms */
.form { display: flex; flex-direction: column; gap: .85rem; }
.form label { display: flex; flex-direction: column; gap: .3rem; font-size: .88rem; font-weight: 600; color: var(--text-soft); }
.form label[data-reset-token-label][hidden] { display: none; }
.form h3 { margin-bottom: 0; padding-bottom: .4rem; border-bottom: 1px solid var(--border); }
input, select, textarea {
  font: inherit; font-size: .95rem; color: var(--text); width: 100%;
  padding: .6rem .8rem; border: 1px solid var(--border); border-radius: 10px; background: var(--surface);
  transition: border-color .12s, box-shadow .12s;
}
input::-moz-placeholder, textarea::-moz-placeholder { color: var(--muted); opacity: .8; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .8; }
input:hover, select:hover, textarea:hover { border-color: var(--brand); border-color: color-mix(in srgb, var(--brand) 40%, var(--border)); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: var(--ring); }
input[type=checkbox], input[type=radio] { width: 1.05rem; height: 1.05rem; accent-color: var(--brand); padding: 0; }
input[type=file] { padding: .5rem; background: var(--surface-2); border-style: dashed; cursor: pointer; }
textarea { resize: vertical; min-height: 5rem; }
label.check { flex-direction: row !important; align-items: center; font-weight: 400 !important; gap: .55rem; color: var(--text) !important; cursor: pointer; }
.testimonial-consent input { flex: none; }
.testimonial-rating { border: 0; padding: 0; margin: 0; min-width: 0; }
.testimonial-rating legend { font-size: .88rem; font-weight: 600; color: var(--text-soft); }
.testimonial-stars { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: .15rem; }
.testimonial-stars input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.form .testimonial-stars label { display: block; color: #b7c1bc; cursor: pointer; font-size: 2rem; line-height: 1.3; }
.testimonial-stars input:checked ~ label { color: #f5a500; }
.testimonial-stars:hover label { color: #b7c1bc; }
.testimonial-stars label:hover, .testimonial-stars label:hover ~ label { color: #f5a500; }
.testimonial-stars input:focus + label { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 3px; }
@supports selector(:focus-visible) {
  .testimonial-stars input:focus:not(:focus-visible) + label { outline: none; }
}
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .4rem .75rem; }
.error { color: var(--bad); font-size: .8rem; font-weight: 500; }
details { border: 1px solid var(--border); border-radius: 10px; padding: .55rem .8rem; background: var(--surface); }
details[open] { padding-bottom: .8rem; }
summary { cursor: pointer; font-weight: 600; font-size: .9rem; color: var(--text-soft); }
details > .check { margin-top: .35rem; }

.seg { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.seg label { border: 1.5px solid var(--border); border-radius: 12px; padding: .7rem .85rem; flex-direction: row !important; align-items: center; gap: .55rem; cursor: pointer; font-weight: 600; transition: .12s; background: var(--surface); }
.seg label:hover { border-color: var(--brand); }
.seg label:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }
.filters-inline { display: flex; gap: .5rem; margin: 1rem 0; max-width: 680px; align-items: center; }

/* Admin dashboard */
.admin-dashboard { max-width: 1400px; margin: 0 auto; }
.admin-dashboard-hero { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 1.5rem; overflow: hidden; min-height: 200px; padding: clamp(1.5rem, 3.5vw, 2.6rem); border-radius: 22px; background: linear-gradient(120deg, #0b4938 0%, #0e6b4a 70%, #16845d 100%); color: #fff; box-shadow: 0 14px 32px rgb(14 107 74 / .16); }
.admin-dashboard-hero::after { content: ""; position: absolute; right: -80px; bottom: -180px; width: 340px; height: 340px; border: 1px solid rgb(255 255 255 / .15); border-radius: 50%; box-shadow: 0 0 0 45px rgb(255 255 255 / .04), 0 0 0 90px rgb(255 255 255 / .035); pointer-events: none; }
.admin-dashboard-hero > div { position: relative; z-index: 1; }
.admin-dashboard-eyebrow { display: inline-flex; align-items: center; gap: .5rem; color: #c4f1dc; font-size: .75rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.admin-dashboard-eyebrow span { width: 7px; height: 7px; border-radius: 50%; background: #9de8bf; }
.admin-dashboard-hero h1 { margin: .55rem 0 .55rem; font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.04em; }
.admin-dashboard-hero p { max-width: 590px; margin: 0; color: #e0f3e9; }
.admin-dashboard-hero-mark { flex: 0 0 84px; display: grid; place-items: center; width: 84px; height: 84px; border: 1px solid rgb(255 255 255 / .2); border-radius: 22px; background: rgb(255 255 255 / .12); color: #d7f6e5; }
.admin-dashboard-hero-mark svg { width: 48px; height: 48px; }
.admin-dashboard-section { margin-top: 2.5rem; }
.admin-dashboard-section-heading { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin-bottom: 1rem; }
.admin-dashboard-section-heading h2 { margin: .2rem 0 0; font-size: 1.35rem; letter-spacing: -.025em; }
.admin-dashboard-section-heading p { margin: 0; color: var(--muted); font-size: .84rem; }
.admin-dashboard-kicker { color: var(--brand); font-size: .72rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.admin-dashboard-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; }
.admin-dashboard-stat { position: relative; display: flex; flex-direction: column; justify-content: space-between; min-height: 118px; overflow: hidden; padding: 1.1rem 1.2rem; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-sm); }
.admin-dashboard-stat > span:first-child { position: relative; z-index: 1; color: var(--text-soft); font-size: .82rem; font-weight: 650; }
.admin-dashboard-stat strong { position: relative; z-index: 1; margin-top: .65rem; font-size: 2rem; line-height: 1; letter-spacing: -.04em; }
.admin-dashboard-stat-accent { position: absolute; right: -10px; bottom: -18px; width: 70px; height: 70px; border-radius: 50%; background: #edf7f1; }
.admin-dashboard-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 1rem; }
.admin-dashboard-group { min-width: 0; padding: 1.25rem; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-sm); }
.admin-dashboard-group-heading { display: flex; align-items: flex-start; gap: .8rem; min-height: 84px; padding-bottom: 1rem; }
.admin-dashboard-group-heading h3 { margin: .1rem 0 .3rem; font-size: 1rem; }
.admin-dashboard-group-heading p { margin: 0; color: var(--muted); font-size: .78rem; line-height: 1.45; }
.admin-dashboard-group-icon { flex: 0 0 42px; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); }
.admin-dashboard-group-icon svg { width: 22px; height: 22px; }
.admin-dashboard-links { border-top: 1px solid var(--border); }
.admin-dashboard-link { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .8rem .1rem; color: var(--text); border-bottom: 1px solid var(--border); }
.admin-dashboard-link:last-child { padding-bottom: .15rem; border-bottom: 0; }
.admin-dashboard-link:hover { color: var(--brand); text-decoration: none; }
.admin-dashboard-link strong, .admin-dashboard-link small { display: block; }
.admin-dashboard-link strong { font-size: .88rem; font-weight: 700; }
.admin-dashboard-link small { margin-top: .12rem; color: var(--muted); font-size: .75rem; line-height: 1.4; }
.admin-dashboard-arrow { flex: 0 0 30px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #f3f7f5; color: var(--brand); transition: transform .15s, background .15s; }
.admin-dashboard-link:hover .admin-dashboard-arrow { transform: translateX(3px); background: var(--brand-soft); }
.admin-dashboard-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-sm); }
.admin-dashboard .admin-dashboard-table { display: table; min-width: 620px; border: 0; border-radius: 0; box-shadow: none; white-space: normal; }
.admin-dashboard-table th { background: #f8faf9; }
.admin-dashboard-table td { overflow-wrap: anywhere; }
.admin-dashboard-action { display: inline-block; padding: .25rem .55rem; border-radius: 6px; background: #eef6f1; color: #285d46; font-size: .78rem; font-weight: 650; }
.admin-dashboard-empty { padding: 2.5rem 1.5rem; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); color: var(--text-soft); text-align: center; }
@media (max-width: 900px) {
  .admin-dashboard-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .admin-dashboard-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .admin-dashboard-hero { min-height: 0; border-radius: 18px; }
  .admin-dashboard-hero-mark { display: none; }
  .admin-dashboard-section { margin-top: 2rem; }
  .admin-dashboard-section-heading { align-items: flex-start; flex-direction: column; gap: .35rem; }
  .admin-dashboard-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
  .admin-dashboard-stat { min-height: 105px; padding: .9rem; }
  .admin-dashboard-groups { grid-template-columns: 1fr; }
  .admin-dashboard-group-heading { min-height: 0; }
}

/* User administration */
.admin-users { max-width: 1400px; margin: 0 auto; }
.admin-users-header { padding: .6rem 0 1.3rem; }
.admin-users-back { display: inline-block; margin-bottom: .85rem; font-size: .88rem; font-weight: 650; }
.admin-users-header h1 { margin: 0 0 .4rem; font-size: clamp(2rem, 3vw, 2.7rem); letter-spacing: -.03em; }
.admin-users-header p, .admin-users-list-heading p { margin: 0; color: var(--text-soft); }
.admin-users-filters { display: grid; grid-template-columns: minmax(0, 1fr) minmax(160px, 250px) auto auto; align-items: end; gap: .8rem; padding: 1.2rem; background: #fff; border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-sm); }
.admin-users-filters label, .admin-user-controls label { display: grid; gap: .35rem; min-width: 0; color: var(--text-soft); font-size: .82rem; font-weight: 650; }
.admin-users-filters .btn { min-height: 44px; }
.admin-users-list-heading { margin: 1.8rem 0 .9rem; }
.admin-users-list-heading h2 { margin: 0 0 .2rem; font-size: 1.25rem; }
.admin-users-list-heading p { font-size: .88rem; }
.admin-users-list { display: grid; gap: .75rem; }
.admin-user-card { display: grid; grid-template-columns: minmax(260px, 1fr) minmax(430px, 1fr); align-items: center; gap: 1.5rem; padding: 1.1rem 1.25rem; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-sm); }
.admin-user-identity { display: flex; align-items: center; gap: .85rem; min-width: 0; }
.admin-user-person { min-width: 0; flex: 1; }
.admin-user-person h3 { margin: 0 0 .15rem; font-size: 1rem; overflow-wrap: anywhere; }
.admin-user-person p { margin: 0; color: var(--text-soft); font-size: .9rem; overflow-wrap: anywhere; }
.admin-user-person small { color: var(--muted); }
.admin-user-identity .pill { flex-shrink: 0; }
.admin-user-controls { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; align-items: end; gap: .7rem; }
.admin-user-controls .btn { min-height: 41px; }
.admin-users-empty { padding: 2.5rem 1.5rem; text-align: center; border: 1px solid var(--border); border-radius: 14px; background: #fff; color: var(--text-soft); }
@media (max-width: 1050px) {
  .admin-user-card { grid-template-columns: 1fr; gap: 1rem; }
}
@media (max-width: 600px) {
  .admin-users-filters { grid-template-columns: 1fr 1fr; }
  .admin-users-filters label:first-child { grid-column: 1 / -1; }
  .admin-user-card { padding: 1rem; }
  .admin-user-identity { flex-wrap: wrap; }
  .admin-user-identity .pill { margin-left: auto; }
  .admin-user-controls { grid-template-columns: 1fr 1fr; }
  .admin-user-controls .btn { grid-column: 1 / -1; }
}
@media (max-width: 360px) {
  .admin-users-filters, .admin-user-controls { grid-template-columns: 1fr; }
  .admin-user-controls .btn { grid-column: auto; }
}

/* Tables */
.table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); font-size: .93rem; }
.table th, .table td { padding: .8rem 1rem; text-align: left; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: var(--brand-soft); background: color-mix(in srgb, var(--brand-soft) 45%, transparent); }
.table th { background: var(--surface-2); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.actions { display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; }
td.actions { display: table-cell; }
td.actions > * { margin: .15rem .2rem .15rem 0; }
@media (max-width: 800px) { .table { display: block; overflow-x: auto; white-space: nowrap; } }

/* Property card */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; color: inherit; display: flex; flex-direction: column; transition: transform .18s, box-shadow .18s, border-color .18s; box-shadow: var(--shadow-sm); }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; text-decoration: none; }
.card-img-wrap { overflow: hidden; position: relative; }
.card-img { aspect-ratio: 4 / 3; background: var(--surface-2) center / cover no-repeat; transition: transform .4s; }
.card:hover .card-img { transform: scale(1.05); }
.card-body { padding: 1rem 1.1rem 1.15rem; }
.card-body h3 { margin: .15rem 0 .25rem; font-size: 1.02rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-body p { margin: .1rem 0; font-size: .9rem; }
.price { font-weight: 800; font-size: 1.25rem; letter-spacing: -.02em; }
.price small { font-weight: 500; color: var(--muted); font-size: .8rem; margin-left: .15rem; }
.price.big { font-size: 2rem; }
.meta { font-size: .88rem; color: var(--text-soft); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; margin: 1.25rem 0 1.75rem; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem 1.2rem; color: inherit; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); position: relative; overflow: hidden; transition: .15s; }
.stat::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: linear-gradient(var(--brand), var(--brand-2)); }
a.stat:hover { transform: translateY(-2px); box-shadow: var(--shadow); text-decoration: none; }
.stat b { font-size: 2rem; line-height: 1.1; letter-spacing: -.03em; }
.stat span { color: var(--muted); font-size: .84rem; font-weight: 500; }

/* Lists / chat / pager */
.list { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.list-item { display: flex; justify-content: space-between; gap: 1rem; padding: .95rem 1.2rem; border-bottom: 1px solid var(--border); color: inherit; }
.list-item:last-child { border-bottom: 0; }
.list-item:hover { background: var(--surface-2); text-decoration: none; }
.list-item p { margin: .1rem 0 0; }
.chat { display: flex; flex-direction: column; gap: .55rem; margin: 1rem 0; padding: 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); max-height: 55vh; overflow-y: auto; }
.bubble { background: var(--surface-2); padding: .6rem .95rem; border-radius: 16px 16px 16px 4px; max-width: 78%; align-self: flex-start; }
.bubble.mine { background: var(--brand); color: #fff; align-self: flex-end; border-radius: 16px 16px 4px 16px; }
.bubble small { display: block; opacity: .7; margin-top: .2rem; font-size: .72rem; }
.pager { display: flex; gap: .4rem; margin: 1.75rem 0; flex-wrap: wrap; justify-content: center; }
.pager a { min-width: 2.4rem; text-align: center; padding: .4rem .7rem; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text); font-weight: 600; }
.pager a:hover { border-color: var(--brand); text-decoration: none; }
.pager a.active { background: var(--brand); color: #fff; border-color: var(--brand); }

/* 5. Pages ----------------------------------------------------------------- */
/* Home page (full-bleed sections) */
.home-hero {
  position: relative; color: var(--text); isolation: isolate;
  background-color: #dcebe4;
  background-image: linear-gradient(90deg, rgb(255 255 255 / .94) 0%, rgb(255 255 255 / .75) 38%, rgb(255 255 255 / 0) 70%),
                    var(--hero-img, url('/assets/images/hero.jpg')), url('/assets/images/hero.svg');
  background-size: cover; background-position: center right;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(5.5rem, 9vw, 7rem);
}
.hero-eyebrow { display: inline-flex; gap: .6rem; background: rgb(255 255 255 / .85); border: 1px solid var(--border); padding: .25rem .8rem; border-radius: 99px; font-size: .75rem; color: var(--text-soft); margin-bottom: 1.2rem; }
.home-hero h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); line-height: 1.08; letter-spacing: -.035em; color: var(--brand); max-width: 11em; margin: 0 0 1rem; }
.home-hero p.lead { max-width: 30rem; color: var(--text-soft); font-size: 1.05rem; margin: 0; }
.search-bar {
  position: absolute; left: 50%; bottom: 0; transform: translate(-50%, 50%); width: min(1180px, calc(100% - 2.5rem));
  display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: .25rem; align-items: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: .6rem; box-shadow: var(--shadow-lg);
}
.search-field { display: flex; gap: .75rem; align-items: center; padding: .35rem 1rem; border-right: 1px solid var(--border); min-width: 0; }
.search-field:last-of-type { border-right: 0; }
.search-field svg { flex: none; width: 22px; height: 22px; color: var(--brand); }
.search-field label { display: block; font-size: .8rem; font-weight: 700; color: var(--text); }
.search-field input, .search-field select { border: 0; background: transparent; padding: 0; font-size: .85rem; color: var(--muted); width: 100%; box-shadow: none; }
.search-field input:focus, .search-field select:focus { box-shadow: none; outline: none; color: var(--text); }
.search-bar .btn { padding: .85rem 2.4rem; border-radius: 12px; }
.home-body { padding-top: 5rem; }
.home-section { padding: 2.25rem 0; }
.home-section h2 { margin: 0; font-size: 1.5rem; letter-spacing: -.02em; }
.home-section .sub { margin: .2rem 0 1.3rem; color: var(--muted); font-size: .9rem; }
.view-all { font-weight: 600; font-size: .9rem; white-space: nowrap; }

.icon-bubble { width: 46px; height: 46px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex: none; }
.icon-bubble svg { width: 22px; height: 22px; }
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; padding: 1.5rem 0 .5rem; }
.trust h3 { margin: .7rem 0 .2rem; font-size: 1rem; }
.trust p { margin: 0; color: var(--muted); font-size: .88rem; }

.cats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.cat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; color: var(--text); transition: transform .18s, box-shadow .18s; }
.cat:hover { transform: translateY(-3px); box-shadow: var(--shadow); text-decoration: none; }
.cat-img { height: 120px; background-size: cover; background-position: center; display: grid; place-items: center; color: #fff; }
.cat-img svg { width: 54px; height: 54px; opacity: .92; filter: drop-shadow(0 2px 6px rgb(0 0 0 / .25)); }
.cat-body { display: flex; align-items: center; gap: .65rem; padding: .8rem .9rem; }
.cat-body .icon-bubble { width: 32px; height: 32px; border-radius: 8px; }
.cat-body .icon-bubble svg { width: 17px; height: 17px; }
.cat-body b { display: block; font-size: .92rem; }
.cat-body small { color: var(--muted); font-size: .75rem; }
.cat-body .arrow { margin-left: auto; color: var(--brand); }

.card .tag-rent { background: var(--brand); color: #fff; }
.card .tag-star { left: auto; right: .7rem; }

.owner-cta { display: grid; grid-template-columns: 1fr 1.15fr 1fr; background: var(--brand-soft); background: color-mix(in srgb, var(--brand-soft) 70%, var(--surface)); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; }
.owner-art { min-height: 240px; background-size: cover; background-position: center; display: grid; place-items: center; color: #fff; }
.owner-art svg { width: 96px; height: 96px; opacity: .9; }
.owner-main { padding: 2rem 2rem; align-self: center; }
.owner-main .eyebrow { color: var(--brand); font-weight: 700; font-size: .9rem; }
.owner-main h2 { margin: .2rem 0 .6rem; font-size: 1.7rem; }
.owner-main p { color: var(--text-soft); margin: 0 0 1.2rem; font-size: .92rem; }
.owner-points { padding: 1.5rem; display: grid; gap: 1.1rem; align-content: center; border-left: 1px solid var(--border); }
.owner-points div { display: flex; gap: .9rem; align-items: center; }
.owner-points b { display: block; font-size: .92rem; }
.owner-points small { color: var(--muted); }

.why { display: grid; grid-template-columns: 1.25fr 1fr; gap: 1.5rem; align-items: center; }
.why-items { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.why-items b { display: block; margin: .6rem 0 .2rem; font-size: .92rem; }
.why-items p { margin: 0; color: var(--muted); font-size: .8rem; }
.why-art { min-height: 200px; border-radius: 18px; display: grid; place-items: center; background-size: cover; background-position: center; color: #fff; text-align: center; padding: 1rem; }
.why-art span { font-family: "Brush Script MT", "Segoe Script", cursive; font-size: 2rem; line-height: 1.1; text-shadow: 0 2px 12px rgb(0 0 0 / .3); }

.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.review { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem 1.2rem; box-shadow: var(--shadow-sm); }
.review p { margin: 0 0 1rem; font-size: .9rem; color: var(--text-soft); }
.review footer { display: flex; align-items: center; gap: .75rem; }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; font-weight: 700; flex: none; }
.review small { color: var(--muted); display: block; font-size: .75rem; }
.review .stars { margin-left: auto; color: #f5a524; letter-spacing: 1px; }

@media (max-width: 1000px) {
  .home-hero { padding-bottom: 1.5rem; }
  .search-bar { position: relative; left: auto; bottom: auto; transform: none; margin: 1.75rem auto 0; grid-template-columns: 1fr 1fr; }
  .search-field { border-right: 0; }
  .search-bar .btn { grid-column: 1 / -1; }
  .home-body { padding-top: 1rem; }
  .trust, .why-items { grid-template-columns: repeat(2, 1fr); }
  .cats { grid-template-columns: repeat(3, 1fr); }
  .owner-cta, .why, .reviews { grid-template-columns: 1fr; }
  .owner-points { border-left: 0; border-top: 1px solid var(--border); }
}
@media (max-width: 600px) {
  .search-bar { grid-template-columns: 1fr; }
  .cats { grid-template-columns: repeat(2, 1fr); }
  .home-hero { background-image: linear-gradient(180deg, rgb(255 255 255 / .92), rgb(255 255 255 / .5)), var(--hero-img, url('/assets/images/hero.jpg')), url('/assets/images/hero.svg'); }
}
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.home-section .grid { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .home-section .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .home-section .grid { grid-template-columns: 1fr; } }
.cat-body .arrow svg { width: 18px; height: 18px; }
.owner-main .btn { white-space: nowrap; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.section-head h2 { margin-top: 0; }
.cols .panel h3 { margin-top: 0; font-size: 1.2rem; }
.cols .panel { padding: 1.6rem; }

/* Filters sidebar */
.filters { position: sticky; top: 84px; }
.layout-side.browse { grid-template-columns: 260px minmax(0, 1fr); width: min(1500px, calc(100vw - 4rem)); margin-left: 50%; transform: translateX(-50%); gap: 1.5rem; }
.browse .grid-4 { gap: 1rem; }
.browse-title { width: min(1500px, calc(100vw - 4rem)); margin-left: 50%; transform: translateX(-50%); }
@media (max-width: 900px) { .browse-title { width: auto; margin-left: 0; transform: none; } }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) { .layout-side.browse { grid-template-columns: 1fr; width: auto; margin-left: 0; transform: none; } }
@media (max-width: 600px) { .grid-4 { grid-template-columns: 1fr; } }

.pw { position: relative; display: block; }
.pw input { width: 100%; padding-right: 2.8rem; }
.pw-toggle { position: absolute; right: .4rem; top: 50%; transform: translateY(-50%); background: none; border: 0; padding: .35rem; cursor: pointer; color: var(--muted); display: grid; place-items: center; }
.pw-toggle:hover { color: var(--brand); }
.pw-toggle svg { width: 20px; height: 20px; }
@media (max-width: 900px) { .filters { position: static; } }

/* Property detail */
.gallery-main { aspect-ratio: 16 / 9; background: var(--surface-2) center / cover no-repeat; border-radius: var(--radius); box-shadow: var(--shadow); }
.gallery-thumbs { display: flex; gap: .55rem; margin-top: .6rem; overflow-x: auto; padding-bottom: .3rem; }
.gallery-thumbs button { border: 2px solid transparent; padding: 0; background: none; border-radius: 10px; cursor: pointer; flex: 0 0 auto; overflow: hidden; opacity: .75; transition: .12s; }
.gallery-thumbs button:hover, .gallery-thumbs button.active { opacity: 1; border-color: var(--brand); }
.gallery-thumbs img { height: 74px; width: 110px; -o-object-fit: cover; object-fit: cover; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: .5rem .75rem; list-style: none; padding: 0; margin: 0; }
.facts li { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: .55rem .85rem; font-size: .92rem; }
.sticky { position: sticky; top: 84px; }
.sticky .form { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border); }

/* Auth + errors */
.auth-box { max-width: 480px; margin: 2rem auto; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 2rem; box-shadow: var(--shadow-lg); }
.auth-box h1 { margin-top: 0; text-align: center; }
.auth-box > p { text-align: center; margin-top: 1.25rem; }
.session-warning { position: sticky; top: .5rem; z-index: 20; margin: .75rem auto; padding: 1rem; max-width: 720px; background: #fff7df; color: #493500; border: 1px solid #dfb94b; border-radius: 12px; box-shadow: var(--shadow-sm); }
.session-warning[hidden], .session-warning [hidden] { display: none; }
.session-warning p { margin: 0 0 .6rem; }
.viewing-reason { max-width: 24rem; margin-top: .5rem; white-space: normal; overflow-wrap: anywhere; }
.viewing-decline { margin: .25rem 0; min-width: 12rem; white-space: normal; }
.viewing-decline summary { cursor: pointer; }
.viewing-decline .form { margin-top: .6rem; }
.verification-code { padding: 0; margin: 0; border: 0; min-width: 0; }
.verification-code legend { margin-bottom: .5rem; font-size: .88rem; font-weight: 600; color: var(--text-soft); }
.verification-code-digits { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .55rem; }
.verification-code-digits input { min-width: 0; height: 3.5rem; padding: .4rem; text-align: center; font-size: 1.35rem; font-weight: 700; }
@media (max-width: 400px) {
  .verification-code-digits { gap: .3rem; }
  .verification-code-digits input { height: 3rem; padding: .2rem; }
}
.center-box { text-align: center; padding: 5rem 1rem; }
.center-box h1 { font-size: 6rem; margin: 0; background: linear-gradient(135deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Image manager */
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1rem; }
.thumb { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: .55rem; display: flex; flex-direction: column; gap: .45rem; position: relative; box-shadow: var(--shadow-sm); }
.thumb img { width: 100%; height: 125px; -o-object-fit: cover; object-fit: cover; border-radius: 9px; }
.thumb .tag { top: 1rem; left: 1rem; }
.revision-changed, .table tbody tr.revision-changed:hover { background: #fff5d6; }
.table tr.revision-changed th { background: #ffecb3; }
.revision-marker { display: inline-block; border-radius: 99px; padding: .15rem .55rem; background: #7a4c00; color: #fff; font-size: .72rem; font-weight: 700; text-transform: none; letter-spacing: normal; }
.revision-added { background: #17653b; }
.revision-removed { background: #a12929; }
.revision-photo-changed { border: 2px solid #a36500; }

/* 6. Utilities ------------------------------------------------------------- */
.muted { color: var(--muted); }
.center { text-align: center; display: block; }
small { font-size: .82rem; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
@media print { .nav, .footer, .btn { display: none !important; } body { background: #fff; } }

.page-narrow { max-width: 720px; }

/* Avatars */
.user-avatar { display: inline-grid; place-items: center; flex: none; overflow: hidden; border-radius: 50%; color: #fff; font-weight: 700; line-height: 1; }
.user-avatar img { width: 100%; height: 100%; -o-object-fit: cover; object-fit: cover; }
.user-avatar-sm { width: 28px; height: 28px; font-size: .7rem; }
.user-avatar-lg { width: 88px; height: 88px; font-size: 1.8rem; }
.avatar-edit { display: flex; align-items: center; gap: 1.1rem; margin: .4rem 0 1rem; }
.avatar-edit .check { display: flex; align-items: center; gap: .4rem; margin-top: .4rem; font-size: .88rem; }
.avatar-edit .check input { width: auto; }

/* Profile page */
.user-avatar-xl { width: 132px; height: 132px; font-size: 2.8rem; border: 4px solid #fff; box-shadow: 0 2px 12px rgba(0,0,0,.15); }
.profile-head { display: grid; grid-template-columns: auto 1fr minmax(240px, 320px); gap: 1.8rem; align-items: center; margin-bottom: 1rem; }
.profile-photo { position: relative; }
.photo-btn { position: absolute; right: 2px; bottom: 6px; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: #16a34a; color: #fff; border: 3px solid #fff; cursor: pointer; }
.photo-btn svg { width: 18px; height: 18px; }
.profile-id h1 { margin: 0 0 .5rem; display: flex; align-items: center; gap: .5rem; }
.verified { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #16a34a; color: #fff; font-size: .75rem; }
.profile-id ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.profile-id li { display: flex; align-items: center; gap: .6rem; }
.profile-id li svg { width: 18px; height: 18px; flex: none; }
.profile-side { display: grid; gap: .8rem; padding-left: 1.8rem; border-left: 1px solid #e5e7eb; }
.verified-box { display: flex; gap: .8rem; align-items: center; padding: .9rem 1rem; border-radius: 12px; background: #dcfce7; }
.verified-box.unverified { background: #fef3c7; }
.verified-box small { display: block; color: #4b5563; }
.verified-box .shield { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: #16a34a; color: #fff; }
.verified-box.unverified .shield { background: #d97706; }
.profile-stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 1rem; padding: .6rem 0; }
.profile-stats .pstat { display: flex; border: 0; box-shadow: none; background: none; border-radius: 0; align-items: center; justify-content: center; gap: .8rem; padding: .7rem; border-right: 1px solid #e5e7eb; }
.profile-stats .pstat:last-child { border-right: 0; }
.stat-ico { color: #16a34a; } .stat-ico svg { width: 30px; height: 30px; }
.profile-stats strong { display: block; font-size: 1.5rem; line-height: 1.1; }
.profile-stats small { color: #6b7280; }
.profile-tabs { padding: 0; overflow: hidden; }
.tab-bar { display: flex; border-bottom: 1px solid #e5e7eb; overflow-x: auto; }
.tab-bar button { flex: 1; display: flex; align-items: center; justify-content: center; gap: .5rem; padding: 1rem; background: none; border: 0; border-bottom: 3px solid transparent; font: inherit; font-weight: 600; color: #374151; cursor: pointer; white-space: nowrap; }
.tab-bar button svg { width: 20px; height: 20px; }
.tab-bar button.active { color: #16a34a; border-bottom-color: #16a34a; }
.tab-pane { padding: 1.4rem; }
.pane-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1.2rem; }
.pane-head h2 { margin: 0 0 .2rem; }
.pane-head p { margin: 0; }
.tab-pane .check { display: flex; align-items: center; gap: .4rem; font-size: .9rem; }
.tab-pane .check input { width: auto; }
.mini-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.1rem; margin-bottom: 1rem; }
.mini-card { border: 1px solid #e5e7eb; border-radius: 12px; overflow: hidden; background: #fff; }
.mini-img { height: 150px; background-size: cover; background-position: center; padding: .6rem; }
.mini-body { padding: .8rem; }
.mini-body h3 { margin: 0 0 .3rem; font-size: 1rem; }
.mini-body .price { font-weight: 700; color: #16a34a; font-size: 1.15rem; }
.mini-body .price small { color: #6b7280; font-weight: 500; }
.mini-actions { display: flex; gap: .5rem; margin-top: .6rem; }
.empty { padding: 2rem; text-align: center; color: #6b7280; background: #f9fafb; border-radius: 12px; }
@media (max-width: 900px) {
  .profile-head { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .profile-id h1, .profile-id li { justify-content: center; }
  .profile-side { padding: 1rem 0 0; border-left: 0; border-top: 1px solid #e5e7eb; width: 100%; }
  .profile-stats { grid-template-columns: repeat(2, 1fr); }
  .pane-head { flex-direction: column; }
}

/* Non-home pages: use the full page width */
body:not(.home-page):not(.detail-page) main.container,
body:not(.home-page):not(.detail-page) .footer > .container { max-width: none; padding-left: 2rem; padding-right: 2rem; }
body:not(.home-page):not(.detail-page) .grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
body:not(.home-page):not(.detail-page) .page-narrow { max-width: 960px; }
body:not(.home-page):not(.detail-page) .filters-inline { max-width: none; }
body:not(.home-page):not(.detail-page) .layout-side.browse,
body:not(.home-page):not(.detail-page) .browse-title { width: auto; margin-left: 0; transform: none; }
@media (max-width: 600px) {
  body:not(.home-page):not(.detail-page) main.container,
  body:not(.home-page):not(.detail-page) .footer > .container { padding-left: 1rem; padding-right: 1rem; }
}
.page-narrow .lead { color: var(--text-soft); font-size: 1.1rem; }

/* About */
.about-page { max-width: 1280px; margin: 0 auto; color: #173b34; }
.about-hero { position: relative; display: flex; align-items: center; min-height: 390px; overflow: hidden; border-radius: 20px; background: #eaf3ed; }
.about-hero-image { position: absolute; inset: 0; background: linear-gradient(90deg, #edf5ef 0%, rgb(237 245 239 / .98) 33%, rgb(237 245 239 / .55) 54%, transparent 76%), url('/assets/images/listing-1.jpg') center 53% / cover; }
.about-hero-content { position: relative; z-index: 1; width: min(57%, 610px); padding: clamp(2rem, 5vw, 4.5rem); }
.about-eyebrow { margin: 0 0 .7rem; color: var(--brand); font-size: .85rem; font-weight: 750; letter-spacing: .04em; }
.about-hero h1 { margin: 0 0 1rem; color: #112a25; font-size: clamp(2.4rem, 4.5vw, 4rem); line-height: 1.08; letter-spacing: -.04em; }
.about-hero-content > p:not(.about-eyebrow) { max-width: 30rem; margin-bottom: 1.5rem; color: #344f48; font-size: 1.05rem; }
.about-sections { display: grid; gap: 2rem; padding: 3rem 0; }
.about-section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(2rem, 5vw, 5rem); }
.about-image { width: 100%; height: 300px; -o-object-fit: cover; object-fit: cover; border-radius: 16px; }
.about-copy { max-width: 540px; }
.about-copy h2, .about-how h2 { margin: 0 0 .9rem; color: #112a25; font-size: clamp(1.7rem, 2.7vw, 2.3rem); letter-spacing: -.03em; }
.about-copy > p:not(.about-eyebrow), .about-how-heading > p:not(.about-eyebrow) { color: #52665f; line-height: 1.7; }
.about-checks { display: grid; gap: .65rem; margin: 1.2rem 0 0; padding: 0; list-style: none; }
.about-checks li { display: flex; align-items: flex-start; gap: .7rem; }
.about-checks li::before { content: '✓'; flex: 0 0 1.35rem; display: grid; place-items: center; width: 1.35rem; height: 1.35rem; margin-top: .13rem; border-radius: 50%; background: var(--brand); color: #fff; font-size: .75rem; font-weight: 700; }
.about-text-link { display: inline-block; margin-top: .6rem; font-weight: 700; }
.about-how { padding: clamp(1.75rem, 4vw, 3.5rem); border-radius: 20px; background: #eaf3ed; }
.about-how-heading { max-width: 640px; }
.about-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1.8rem; }
.about-steps > div { padding: 1.4rem; border: 1px solid #d5e7db; border-radius: 14px; background: #fff; }
.about-step-number { color: var(--brand); font-size: .85rem; font-weight: 800; }
.about-steps h3 { margin: .55rem 0; color: #173b34; }
.about-steps p { margin: 0; color: #52665f; font-size: .94rem; }
.about-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
@media (max-width: 700px) {
  .about-hero { min-height: 0; align-items: flex-end; padding-top: 190px; }
  .about-hero-image { background: linear-gradient(0deg, #edf5ef 0%, #edf5ef 46%, rgb(237 245 239 / .1) 75%), url('/assets/images/listing-1.jpg') center top / cover; }
  .about-hero-content { width: 100%; padding: 1.5rem; }
  .about-hero h1 { font-size: clamp(2.2rem, 9vw, 3rem); }
  .about-sections { gap: 2.5rem; padding: 2rem 0; }
  .about-section { grid-template-columns: 1fr; gap: 1.25rem; }
  .about-section-vision .about-image { order: -1; }
  .about-image { height: 230px; }
  .about-steps { grid-template-columns: 1fr; }
}

/* Contact */
.contact-page { max-width: 1280px; margin: 0 auto; color: #173b34; }
.contact-hero { min-height: 340px; }
.contact-hero-image { background: linear-gradient(90deg, #edf5ef 0%, rgb(237 245 239 / .98) 33%, rgb(237 245 239 / .55) 54%, transparent 76%), url('/assets/images/listing-3.jpg') center 53% / cover; }
.contact-grid { display: grid; grid-template-columns: minmax(270px, .8fr) minmax(0, 1.4fr); gap: 1.25rem; margin-top: 1.5rem; }
.contact-card { min-width: 0; padding: clamp(1.5rem, 3vw, 2.5rem); border: 1px solid #e1ebe4; border-radius: 16px; background: #fff; box-shadow: var(--shadow-sm); }
.contact-card h2, .contact-help h2 { margin: 0 0 .7rem; color: #112a25; font-size: clamp(1.4rem, 2vw, 1.8rem); }
.contact-card > p:not(.about-eyebrow) { color: #52665f; }
.contact-details-list { display: grid; gap: 1.4rem; margin-top: 1.8rem; }
.contact-detail { display: flex; align-items: flex-start; gap: .9rem; min-width: 0; }
.contact-icon { display: grid; flex: 0 0 44px; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--brand); color: #fff; }
.contact-icon svg { width: 21px; height: 21px; }
.contact-detail strong { display: block; color: #173b34; }
.contact-detail a, .contact-detail p { display: block; margin: 0; color: #52665f; overflow-wrap: anywhere; }
.contact-detail a:hover { color: var(--brand); }
.contact-socials { margin-top: 2rem; padding-top: 1.3rem; border-top: 1px solid #e1ebe4; }
.contact-socials h3 { margin: 0 0 .8rem; }
.contact-socials nav { display: flex; flex-wrap: wrap; gap: .5rem; }
.contact-socials a { padding: .35rem .7rem; border-radius: 99px; background: var(--brand-soft); font-size: .85rem; font-weight: 600; }
.contact-form { margin-top: 1.5rem; }
.contact-form[hidden] { display: none; }
.contact-form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; }
.contact-form textarea { min-height: 150px; }
.contact-fallback { margin: 1.1rem 0 0; font-size: .9rem; overflow-wrap: anywhere; }
.contact-help { display: flex; align-items: center; gap: 1.25rem; margin-top: 1.5rem; padding: 1.5rem 2rem; border-radius: 16px; background: #eaf3ed; }
.contact-help > div { flex: 1; }
.contact-help h2 { margin: 0 0 .3rem; font-size: 1.15rem; }
.contact-help p { margin: 0; color: #52665f; }
.contact-help .btn { flex-shrink: 0; }
@media (max-width: 700px) {
  .contact-hero-image { background: linear-gradient(0deg, #edf5ef 0%, #edf5ef 46%, rgb(237 245 239 / .1) 75%), url('/assets/images/listing-3.jpg') center top / cover; }
  .contact-grid, .contact-form-row { grid-template-columns: 1fr; }
  .contact-help { align-items: flex-start; flex-wrap: wrap; padding: 1.5rem; }
  .contact-help > div { flex: 1 1 200px; }
}

/* Homepage reference layout */
.home-page { background: #fff; color: #123b36; }
.home-page .home-hero {
  min-height: 446px;
  padding: 40px 0 142px;
  color: #123b36;
  background-color: #e8eee8;
  background-image: linear-gradient(90deg, rgb(255 255 255 / .96) 0%, rgb(255 255 255 / .88) 31%, rgb(255 255 255 / .18) 58%, rgb(255 255 255 / 0) 78%),
                    var(--hero-img, url('/assets/images/hero.jpg'));
  background-size: cover;
  background-position: center 54%;
}
.home-page .home-hero > .container { max-width: 1408px; }
.home-page .hero-eyebrow { margin-bottom: 1rem; padding: .3rem .8rem; font-size: .76rem; background: rgb(255 255 255 / .8); }
.home-page .home-hero h1 { max-width: 10em; margin: 0 0 .85rem; color: #123b36; font-size: clamp(2.35rem, 3.2vw, 3.1rem); line-height: 1.08; letter-spacing: -.035em; }
.home-page .home-hero p.lead { max-width: 31rem; color: #405b58; font-size: .94rem; line-height: 1.55; }
.home-page .search-bar {
  left: max(2.6rem, calc((100% - 1408px) / 2 + 1.6rem));
  bottom: 42px;
  transform: none;
  width: min(1068px, calc(100% - 4rem));
  grid-template-columns: 1.15fr 1.15fr 1.15fr auto;
  gap: 0;
  padding: .65rem;
  border-color: #edf2ef;
  border-radius: 14px;
  box-shadow: 0 8px 26px rgb(15 45 39 / .15);
}
.home-page .search-field { min-height: 52px; gap: .7rem; padding: .3rem 1rem; }
.home-page .search-field label { font-size: .76rem; }
.home-page .search-field input, .home-page .search-field select { font-size: .75rem; }
.home-page .search-field svg { width: 20px; height: 20px; fill: var(--brand); stroke-width: 1.8; }
.home-page .search-bar .btn { min-width: 174px; padding: .82rem 1.8rem; border-radius: 11px; font-size: .85rem; }

.home-page .home-body { max-width: 1408px; padding-top: 0; padding-bottom: 1rem; }
.home-page .home-section { padding: 1.55rem 0 1.05rem; }
.home-page .home-section h2 { color: #123b36; font-size: 1.36rem; }
.home-page .home-section .sub { margin: .25rem 0 1.15rem; color: #728783; font-size: .78rem; }
.home-page .view-all { color: #087c58; font-size: .75rem; }
.home-page .trust { gap: 1.8rem; padding: 2rem 0 .8rem; }
.home-page .icon-bubble { width: 56px; height: 56px; background: #e4f4ed; color: #08734f; }
.home-page .icon-bubble svg { width: 24px; height: 24px; }
.home-page .trust h3 { margin: .65rem 0 .25rem; font-size: .92rem; color: #193d39; }
.home-page .trust p { color: #718480; font-size: .76rem; line-height: 1.55; }

.home-page .cats { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.15rem; }
.home-page .cat { border-color: #edf2ef; border-radius: 12px; box-shadow: 0 3px 12px rgb(18 59 54 / .055); }
.home-page .cat-img { height: 145px; background-size: cover; background-position: center; }
.home-page .cat-body { gap: .55rem; padding: .65rem .75rem; }
.home-page .cat-icon { display: grid; place-items: center; color: #164b40; }
.home-page .cat-icon svg { width: 18px; height: 18px; }
.home-page .cat-body b { color: #193d39; font-size: .82rem; }
.home-page .cat-body small { color: #849590; font-size: .68rem; white-space: nowrap; }
.home-page .cat-body .arrow { display: grid; place-items: center; }
.home-page .cat-body .arrow svg { width: 16px; height: 16px; }

.home-page .home-section .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.15rem; }
.home-page .home-card { border-color: #edf2ef; border-radius: 12px; box-shadow: 0 3px 12px rgb(18 59 54 / .06); }
.home-page .home-card .card-img { aspect-ratio: 1.9; }
.home-page .home-card .tag-rent { top: .7rem; left: .7rem; padding: .18rem .65rem; font-size: .67rem; }
.home-page .home-card .tag-star { display: none; }
.home-page .card-favorite { position: absolute; top: .65rem; right: .65rem; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; color: #14483e; background: #fff; font-size: 1.25rem; line-height: 1; box-shadow: 0 2px 8px rgb(0 0 0 / .14); }
.home-page .home-card .card-body { padding: .8rem .9rem .9rem; }
.home-page .home-card .card-body h3 { margin: 0 0 .25rem; color: #193d39; font-size: .86rem; }
.home-page .home-card .card-body p { font-size: .7rem; }
.home-page .home-card .card-body .muted { color: #758781; }
.home-page .home-card .price { margin-top: .32rem; color: #102f2c; font-size: .91rem; }
.home-page .home-card .price small { color: #516864; font-size: .72rem; }
.home-page .home-card .meta { color: #73847f; white-space: nowrap; font-size: .66rem; }

.home-page .owner-cta { min-height: 230px; grid-template-columns: 1.05fr 1.4fr 1.05fr; border: 0; border-radius: 12px; background: #f0f8f5; }
.home-page .owner-art { min-height: 230px; background-position: center; }
.home-page .owner-art svg { display: none; }
.home-page .owner-main { padding: 1.5rem 1.8rem; }
.home-page .owner-main .eyebrow { font-size: .78rem; }
.home-page .owner-main h2 { margin: .25rem 0 .5rem; font-size: 1.42rem; }
.home-page .owner-main p { margin-bottom: .95rem; color: #4d6661; font-size: .78rem; }
.home-page .owner-main .btn { padding: .68rem 1rem; font-size: .76rem; }
.home-page .owner-points { gap: .75rem; padding: 1.1rem 1.5rem; border-color: #e1eee8; }
.home-page .owner-points .icon-bubble { width: 42px; height: 42px; }
.home-page .owner-points .icon-bubble svg { width: 20px; height: 20px; }
.home-page .owner-points div { gap: .75rem; }
.home-page .owner-points b { color: #193d39; font-size: .76rem; }
.home-page .owner-points small { color: #748780; font-size: .68rem; line-height: 1.45; }

.home-page .why { grid-template-columns: 1.35fr 1fr; gap: 1.4rem; }
.home-page .why-items { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .9rem; }
.home-page .why-items .icon-bubble { width: 42px; height: 42px; }
.home-page .why-items .icon-bubble svg { width: 19px; height: 19px; }
.home-page .why-items b { color: #193d39; font-size: .75rem; }
.home-page .why-items p { color: #748780; font-size: .67rem; line-height: 1.45; }
.home-page .why-art { min-height: 220px; border-radius: 0; background-position: center; }
.home-page .why-art span { color: #087c58; font-size: 1.9rem; text-shadow: none; transform: rotate(-7deg); }
.home-page .reviews { gap: 1.15rem; }
.home-page .review { padding: .95rem 1.05rem; border-color: #edf2ef; border-radius: 12px; box-shadow: 0 3px 12px rgb(18 59 54 / .055); }
.home-page .review p { margin-bottom: .85rem; color: #4d625e; font-size: .74rem; line-height: 1.5; }
.home-page .review footer { gap: .6rem; }
.home-page .review .testimonial-avatar { width: 38px; height: 38px; font-size: .9rem; }
.home-page .review .avatar { width: 38px; height: 38px; background-position: center; background-size: cover; }
.home-page .review .avatar-1 { background-image: url('/assets/images/review-1.jpg'); }
.home-page .review .avatar-2 { background-image: url('/assets/images/review-2.jpg'); }
.home-page .review .avatar-3 { background-image: url('/assets/images/review-3.jpg'); }
.home-page .review footer b { color: #24413d; font-size: .73rem; }
.home-page .review small { color: #80908b; font-size: .63rem; }
.home-page .review .stars { color: #f5a500; font-size: .8rem; }

.home-page .footer-home { margin-top: .6rem; padding: 1.5rem 0 1.2rem; background: linear-gradient(110deg, #073d36, #092d28); }
.home-page .footer-home-inner { max-width: 1408px; display: grid; grid-template-columns: 1fr 2fr 1fr; align-items: center; gap: .8rem 1.5rem; }
.home-page .footer-home .brand { color: #fff; }
.home-page .footer-home-brand {
  display: inline-flex; width: -moz-max-content; width: max-content; max-width: 100%;
  justify-self: start; justify-content: flex-start; align-items: center; gap: .65rem;
}
.home-page .footer-home-brand .brand-logo { flex: 0 0 auto; }
.home-page .footer-home-brand .brand-text { flex: 0 0 auto; text-align: left; }
.home-page .footer-home .brand-logo { width: 36px; height: 36px; }
.home-page .footer-home .brand-logo img { width: 30px; height: 30px; }
.home-page .footer-home .brand-text b { font-size: 1.1rem; }
.home-page .footer-home .brand-text small { color: #b6d0c8; font-size: .72rem; }
.home-page .footer-home-links { display: flex; justify-content: center; gap: 1.15rem; }
.home-page .footer-home-links a { color: #e0eee9; font-size: .8rem; white-space: nowrap; }
.home-page .footer-socials { display: flex; justify-content: flex-end; gap: .5rem; margin-top: 0; }
.home-page .footer-socials a { width: 30px; height: 30px; background: #176f5d; color: #fff; }
.home-page .footer-socials a:hover { background: #22836e; color: #fff; }
.home-page .footer-socials svg { width: 16px; height: 16px; }
.home-page .footer-home .footer-bottom { grid-column: 1 / -1; margin: 0; padding: .75rem 0 0; border-color: rgb(255 255 255 / .12); color: #b6d0c8; text-align: center; font-size: .72rem; }

@media (max-width: 1000px) {
  .home-page .home-hero { min-height: 0; padding: 2.5rem 0 1.5rem; }
  .home-page .search-bar { position: relative; left: auto; bottom: auto; transform: none; margin: 1.6rem auto 0; width: calc(100% - 2.5rem); grid-template-columns: 1fr 1fr; }
  .home-page .search-bar .btn { grid-column: 1 / -1; }
  .home-page .home-body { padding-top: .5rem; }
  .home-page .cats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .home-page .home-section .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-page .owner-cta, .home-page .why { grid-template-columns: 1fr 1fr; }
  .home-page .owner-points { grid-column: 1 / -1; border-top: 1px solid #e1eee8; border-left: 0; }
  .home-page .reviews { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .home-page .home-hero { background-image: linear-gradient(90deg, rgb(255 255 255 / .93), rgb(255 255 255 / .68)), var(--hero-img, url('/assets/images/hero.jpg')); }
  .home-page .home-hero h1 { font-size: 2.35rem; }
  .home-page .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
  .home-page .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-page .why-items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-page .why, .home-page .owner-cta { grid-template-columns: 1fr; }
  .home-page .owner-art { min-height: 190px; }
  .home-page .reviews { grid-template-columns: 1fr; }
  .home-page .footer-home-inner { grid-template-columns: 1fr auto; }
  .home-page .footer-home-links { grid-column: 1 / -1; flex-wrap: wrap; }
}
@media (max-width: 500px) {
  .home-page .search-bar { grid-template-columns: 1fr; }
  .home-page .search-bar .btn { grid-column: auto; }
  .home-page .home-section .grid { grid-template-columns: 1fr; }
  .home-page .footer-socials { grid-column: 1 / -1; justify-content: flex-start; }
}
@media (min-width: 701px) and (max-width: 1000px) {
  .home-page .search-field label, .home-page .search-field input, .home-page .search-field select,
  .home-page .home-section .sub, .home-page .view-all, .home-page .trust p,
  .home-page .cat-body b, .home-page .home-card .card-body h3, .home-page .home-card .card-body p,
  .home-page .owner-main .eyebrow, .home-page .owner-main p, .home-page .owner-main .btn,
  .home-page .owner-points b, .home-page .why-items b, .home-page .why-items p,
  .home-page .review p, .home-page .review footer b, .home-page .footer-home-links a { font-size: .875rem; }
  .home-page .cat-body small, .home-page .home-card .price small, .home-page .home-card .meta,
  .home-page .owner-points small, .home-page .review small { font-size: .8125rem; }
  .home-page .why-items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-page .footer-home-inner { grid-template-columns: 1fr auto; }
  .home-page .footer-home-links { grid-column: 1 / -1; justify-content: flex-start; flex-wrap: wrap; }
}
.site-images { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.2rem; margin-top: 1rem; }
.site-image img { width: 100%; height: 190px; -o-object-fit: cover; object-fit: cover; border-radius: 10px; }

/* Listing details (mockup layout) */
.detail-page main.container { max-width: 1240px; }
.pd-back { display: inline-flex; align-items: center; gap: .4rem; margin-bottom: .9rem; padding: .4rem .9rem; border: 1px solid var(--border); border-radius: 10px; background: #fff; color: inherit; font-size: .88rem; font-weight: 600; }
.pd-back:hover { text-decoration: none; border-color: var(--brand); color: var(--brand); }
.pd-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(330px, 1fr); gap: 1.6rem; align-items: start; }
.pd-main > * + * { margin-top: 1.4rem; }
.pd-side { display: grid; gap: 1.1rem; position: sticky; top: 84px; }
.pd-card { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 1.1rem 1.2rem; box-shadow: var(--shadow-sm); }
.pd-card h2, .pd-block h2 { display: flex; align-items: center; gap: .5rem; margin: 0 0 .8rem; font-size: 1.15rem; }
.pd-h-ico { width: 24px; height: 24px; color: #16a34a; background: #dcfce7; border-radius: 50%; padding: 4px; }
.gallery-stage { position: relative; }
.detail-page .gallery-main { aspect-ratio: 16 / 10; border-radius: 16px; }
.pd-tag { position: absolute; left: 14px; top: 14px; display: inline-flex; align-items: center; gap: .4rem; background: #16a34a; color: #fff; padding: .35rem .8rem; border-radius: 99px; font-weight: 700; font-size: .85rem; }
.pd-tag svg { width: 16px; height: 16px; }
.gallery-count { position: absolute; right: 14px; top: 14px; background: rgb(15 23 42 / .75); color: #fff; padding: .3rem .7rem; border-radius: 99px; font-size: .82rem; }
.gallery-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; box-shadow: 0 2px 8px rgb(0 0 0 / .25); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.gallery-arrow.prev { left: 12px; } .gallery-arrow.next { right: 12px; }
.detail-page .gallery-thumbs img { width: 118px; height: 78px; }
.detail-page .gallery-thumbs button.active { border-color: #16a34a; }
.pd-hl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); }
.pd-hl-grid > div { display: grid; justify-items: center; gap: .15rem; padding: .4rem .6rem; text-align: center; border-right: 1px solid var(--border); }
.pd-hl-grid > div:last-child { border-right: 0; }
.pd-hl-grid svg { width: 28px; height: 28px; color: #16a34a; }
.pd-hl-grid small { color: var(--muted); }
.pd-block h2 { font-size: 1.2rem; }
.pd-block p { line-height: 1.65; margin: 0; }
.pd-tab-nav { display: flex; gap: .25rem; border-bottom: 1px solid var(--border); }
.pd-tab-nav a { padding: .8rem 1rem; color: var(--text-soft); font-weight: 600; border-bottom: 3px solid transparent; }
.pd-tab-nav a:hover, .pd-tab-nav a[aria-selected="true"] { color: var(--brand); border-bottom-color: var(--brand); text-decoration: none; }
.pd-tab-nav a:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.pd-tab-content { padding-top: 1.1rem; }
.pd-tab-content[hidden] { display: none; }
.pd-tab-content .form { margin-top: 1rem; }
.pd-facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: .7rem; }
.pd-facts li { display: grid; grid-template-columns: auto 1fr; -moz-column-gap: .7rem; column-gap: .7rem; align-items: center; padding: .7rem .9rem; border: 1px solid var(--border); border-radius: 12px; background: #fff; }
.pd-facts svg { grid-row: span 2; width: 24px; height: 24px; color: #16a34a; }
.pd-facts span { color: var(--muted); font-size: .8rem; }
.pd-amenities { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: .7rem; }
.pd-amenities > div { display: grid; justify-items: center; gap: .4rem; padding: .9rem .5rem; background: #ecf9ef; border-radius: 12px; text-align: center; font-size: .88rem; font-weight: 500; }
.pd-amenities svg { width: 26px; height: 26px; color: #16a34a; }
.pd-rating { margin-left: .4rem; color: #d97706; font-size: 1rem; } .pd-rating small { color: var(--muted); }
.pd-review { display: flex; gap: .8rem; padding: .8rem 0; border-bottom: 1px solid var(--border); }
.pd-review p { margin: .2rem 0 0; } .pd-review .stars { color: #f59e0b; }
.pd-title-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.pd-title-row h1 { margin: 0; font-size: 1.9rem; line-height: 1.2; }
.pd-fav { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border); background: #fff; box-shadow: var(--shadow-sm); font-size: 1.3rem; cursor: pointer; color: #374151; }
.pd-fav.on { color: #e11d48; }
.pd-address { display: flex; align-items: center; gap: .4rem; margin: 0; color: var(--muted); }
.pd-address svg, .pd-chips svg { width: 18px; height: 18px; flex: none; }
.pd-price { font-size: 2rem; font-weight: 800; color: #16a34a; } .pd-price small { font-size: 1.05rem; font-weight: 600; }
.pd-chips { display: flex; flex-wrap: wrap; gap: .6rem 1.1rem; font-size: .92rem; }
.pd-chips span { display: inline-flex; align-items: center; gap: .35rem; } .pd-chips .star { color: #f59e0b; }
.pd-contact { display: grid; gap: .8rem; }
.pd-owner { display: flex; align-items: center; gap: .8rem; }
.pd-owner > div { flex: 1; } .pd-owner small { display: block; color: var(--muted); }
.pd-owner .btn svg, .pd-contact .btn svg { width: 18px; height: 18px; margin-right: .4rem; vertical-align: -4px; }
.user-avatar-md { width: 52px; height: 52px; font-size: 1.1rem; }
.pd-big { padding-block: .85rem; font-size: 1rem; }
.pd-contact .form { margin: 0; padding-top: 1rem; border-top: 1px solid var(--border); }
.pd-map { width: 100%; height: 210px; border: 0; border-radius: 12px; background: #e8efe9; }
.pd-map-fallback { display: grid; place-content: center; justify-items: center; gap: .4rem; color: #16a34a; font-weight: 600; }
.pd-map-fallback svg { width: 44px; height: 44px; }
.pd-map-link { display: block; margin-top: .7rem; padding: .6rem; text-align: center; border: 1px solid var(--border); border-radius: 10px; color: inherit; font-weight: 600; }
.pd-map-link:hover { text-decoration: none; border-color: #16a34a; color: #16a34a; }
.pd-trust { display: flex; gap: 1rem; align-items: center; padding: 1.3rem; border-radius: 16px; background: linear-gradient(135deg, #e3f6e8, #f3fbf5); }
.pd-trust p { margin: .2rem 0 0; color: #4b5563; font-size: .9rem; }
.pd-trust-ico { flex: none; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: #16a34a; color: #fff; }
.pd-trust-ico svg { width: 28px; height: 28px; }
.pd-similar { margin-top: 2.2rem; }
.pd-sim-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 1rem; }
.pd-sim-head h2 { margin: 0; }
.detail-page .pd-similar .grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
@media (max-width: 960px) { .pd-layout { grid-template-columns: 1fr; } .pd-side { position: static; } .pd-title-row h1 { font-size: 1.5rem; } }
/* Browse page (mockup layout) */
.bp-hero { position: relative; border-radius: 16px; overflow: hidden; padding: 2.4rem 2.2rem 2rem; margin-bottom: 1.4rem; background: linear-gradient(90deg, rgb(255 255 255 / .96) 0%, rgb(255 255 255 / .8) 40%, rgb(255 255 255 / .1) 75%), var(--bp-img) center / cover no-repeat, #dcebe4; }
.bp-hero h1 { margin: 0 0 .6rem; font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 800; letter-spacing: -.03em; }
.bp-hero p { margin: 0; font-size: 1.15rem; line-height: 1.45; max-width: 460px; }
.bp-line { display: block; width: 46px; height: 3px; background: #16a34a; margin-top: .8rem; border-radius: 2px; }
.bp-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 1.4rem; align-items: start; }
.bp-filters { padding: 1.1rem 1.2rem; position: sticky; top: 84px; }
.bp-group { margin-bottom: 1.1rem; }
.bp-group h3 { display: flex; align-items: center; gap: .5rem; margin: 0 0 .5rem; font-size: .98rem; }
.bp-group h3 svg { width: 20px; height: 20px; color: #16a34a; } .bp-group h3 b { color: #16a34a; font-size: 1.2rem; }
.bp-check { display: flex; align-items: center; gap: .55rem; padding: .18rem 0; font-size: .92rem; cursor: pointer; }
.bp-check input { width: 17px; height: 17px; margin: 0; accent-color: #16a34a; flex: none; }
.bp-group select { width: 100%; }
.bp-price-label { font-weight: 600; font-size: .9rem; margin-bottom: .6rem; }
.bp-range { position: relative; height: 22px; --a: 0%; --b: 100%; }
.bp-range::before { content: ""; position: absolute; left: 0; right: 0; top: 9px; height: 4px; border-radius: 2px; background: linear-gradient(90deg, #d1d5db var(--a), #16a34a var(--a), #16a34a var(--b), #d1d5db var(--b)); }
.bp-range input { position: absolute; inset: 0; width: 100%; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; -moz-appearance: none; appearance: none; accent-color: #16a34a; padding: 0; border: 0; }
.bp-range input::-webkit-slider-thumb { pointer-events: auto; -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; background: #16a34a; border: 2px solid #fff; box-shadow: 0 1px 4px rgb(0 0 0 / .3); cursor: pointer; }
.bp-range input::-moz-range-thumb { pointer-events: auto; width: 16px; height: 16px; border-radius: 50%; background: #16a34a; border: 2px solid #fff; cursor: pointer; }
.bp-range input::-webkit-slider-runnable-track { background: transparent; }
.bp-range input::-moz-range-track { background: transparent; }
.bp-apply { background: #16a34a; }
.bp-reset { display: block; text-align: center; margin-top: .7rem; color: #374151; font-size: .9rem; }
.bp-search { display: flex; align-items: center; gap: .6rem; padding: .35rem .4rem .35rem 1rem; background: #fff; border: 1px solid var(--border); border-radius: 12px; }
.bp-search svg { width: 20px; height: 20px; color: #6b7280; flex: none; }
.bp-search input { flex: 1; border: 0; outline: 0; box-shadow: none; background: none; padding: .6rem 0; }
.bp-search .btn { background: #16a34a; }
.bp-bar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin: 1rem 0; }
.bp-chips { display: flex; gap: .5rem; flex-wrap: wrap; }
.bp-chips a { padding: .4rem .95rem; border: 1px solid var(--border); border-radius: 99px; background: #fff; color: #1f2937; font-size: .88rem; font-weight: 500; }
.bp-chips a:hover { text-decoration: none; border-color: #16a34a; }
.bp-chips a.active { background: #16a34a; border-color: #16a34a; color: #fff; }
.bp-sort { display: flex; align-items: center; gap: .5rem; font-size: .88rem; white-space: nowrap; }
.bp-sort select { width: auto; padding: .4rem .7rem; }
.bp-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .9rem; }
@media (max-width: 1400px) { .bp-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.bp-card { border-radius: 14px; }
.bp-card .card-img { aspect-ratio: 16 / 11; }
.bp-card .tag-rent { background: #16a34a; color: #fff; }
.bp-card .card-favorite { position: absolute; right: 10px; top: 10px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: #fff; font-size: 1.1rem; box-shadow: 0 1px 4px rgb(0 0 0 / .2); }
.bp-card h3 { margin: 0 0 .2rem; font-size: 1.02rem; }
.bp-addr { display: flex; align-items: center; gap: .3rem; margin: 0 0 .35rem; color: var(--muted); font-size: .82rem; }
.bp-addr svg { width: 14px; height: 14px; flex: none; }
.bp-card .price { color: #16a34a; font-weight: 800; font-size: 1.3rem; } .bp-card .price small { font-size: .85rem; color: #374151; font-weight: 600; margin-left: .2rem; }
.bp-meta { display: flex; gap: 1.4rem; margin: .5rem 0 .7rem; font-size: .9rem; }
.bp-meta span { display: inline-flex; align-items: center; gap: .35rem; } .bp-meta svg { width: 18px; height: 18px; }
.bp-view { display: block; text-align: center; padding: .55rem; border: 1.5px solid #16a34a; border-radius: 10px; color: #16a34a; font-weight: 600; font-size: .9rem; }
.bp-card:hover .bp-view { background: #16a34a; color: #fff; }
.bp-foot { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 1.4rem; }
.bp-pager { display: flex; gap: .45rem; }
.bp-pager a { min-width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 10px; background: #fff; color: #1f2937; font-weight: 600; }
.bp-pager a:hover { text-decoration: none; border-color: #16a34a; }
.bp-pager a.active { background: #16a34a; border-color: #16a34a; color: #fff; }
@media (max-width: 1100px) { .bp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) { .bp-layout { grid-template-columns: 1fr; } .bp-filters { position: static; } }
@media (max-width: 720px) { .bp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .bp-grid { grid-template-columns: 1fr; } .bp-hero { padding: 1.6rem 1.2rem; } }
.filter-admin { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.2rem; margin-top: 1rem; align-items: start; }
.fa-item { display: flex; justify-content: space-between; align-items: center; gap: .6rem; padding: .5rem 0; border-top: 1px solid var(--border); }
.fa-edit { display: flex; align-items: center; gap: .5rem; flex: 1; }
.fa-edit input { flex: 1; min-width: 0; }
.fa-edit input[type=number] { max-width: 90px; flex: none; }
.card .card-favorite.on { color: #e11d48; }
.card:not(.home-card):not(.bp-card) .card-favorite { position: absolute; top: .65rem; right: .65rem; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: #fff; font-size: 1.2rem; line-height: 1; box-shadow: 0 1px 4px rgb(0 0 0 / .2); }
.pd-actions { display: flex; gap: .5rem; flex-shrink: 0; }
.pd-actions form { margin: 0; }
a.pd-fav, .pd-share { display: inline-grid; place-items: center; text-decoration: none; padding: 0; line-height: 1; }
.pd-share svg { width: 19px; height: 19px; }
.pd-fav:hover { border-color: #e11d48; }
.pd-share:hover { border-color: var(--primary, #14483e); }
.pd-share.copied { color: #16a34a; border-color: #16a34a; }
.gallery-stage .pd-actions { position: absolute; right: 14px; top: 14px; z-index: 3; }
.gallery-stage .pd-fav { width: 40px; height: 40px; }
.gallery-stage .gallery-count { top: auto; bottom: 14px; }
span.pd-fav { cursor: not-allowed; opacity: .85; }
.pd-fav { display: inline-grid; place-items: center; padding: 0; line-height: 1; }
.pd-fav svg { width: 20px; height: 20px; display: block; }
.pd-fav svg { pointer-events: none; }
