/* =========================================================
   DMF Imóveis — Design Tokens & Base Styles
   ========================================================= */

:root {
  /* Palette */
  --ink: #2B2B2B;          /* graphite – primary text & elements */
  --ink-soft: #6B6B6B;     /* muted text */
  --ink-faint: #A8A8A8;    /* hints, dividers strong */
  --line: #E8E6E1;         /* hairlines */
  --line-soft: #F0EEE9;
  --bg: #FAFAF8;           /* off-white background */
  --surface: #FFFFFF;      /* cards */
  --surface-2: #F5F3EE;    /* alt surface */

  --accent: #8B7355;       /* champagne bronze */
  --accent-ink: #6F5C44;
  --accent-soft: #EFE9DE;

  --wa: #25D366;
  --wa-dark: #128C7E;

  /* Type */
  --font-serif: 'Playfair Display', 'Times New Roman', serif;
  --font-sans: 'Inter', 'Helvetica Neue', system-ui, sans-serif;

  /* Spacing scale */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10: 128px;

  /* Radii */
  --r-sm: 2px;
  --r-md: 4px;
  --r-lg: 8px;
  --r-pill: 999px;

  /* Layout */
  --container: 1280px;
  --container-narrow: 960px;
  --header-h: 76px;

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --t-fast: 150ms;
  --t-base: 240ms;
  --t-slow: 420ms;

  /* Shadow (very subtle) */
  --shadow-1: 0 1px 2px rgba(43, 43, 43, 0.04), 0 1px 3px rgba(43, 43, 43, 0.06);
  --shadow-2: 0 4px 16px rgba(43, 43, 43, 0.06), 0 1px 3px rgba(43, 43, 43, 0.04);
  --shadow-3: 0 16px 48px rgba(43, 43, 43, 0.08), 0 4px 12px rgba(43, 43, 43, 0.04);
}

/* =========================================================
   Reset
   ========================================================= */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }

/* =========================================================
   Type
   ========================================================= */

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(40px, 5vw, 64px); line-height: 1.05; }
h2 { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.15; }
h3 { font-size: clamp(20px, 2vw, 26px); line-height: 1.25; }
h4 { font-size: 18px; line-height: 1.3; }

p { margin: 0; text-wrap: pretty; }

.eyebrow {
  font-family: var(--font-sans);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-soft);
}

.lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink-soft);
}

/* =========================================================
   Layout primitives
   ========================================================= */

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--s-5);
}
.container-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 var(--s-5);
}

.section { padding: var(--s-9) 0; }
.section-sm { padding: var(--s-7) 0; }

.rule {
  height: 1px;
  background: var(--line);
  border: 0;
  margin: 0;
}

/* =========================================================
   Buttons
   ========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: 14px 24px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--r-sm);
  transition: all var(--t-base) var(--ease);
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--ink);
  color: var(--bg);
}
.btn-primary:hover { background: #000; }

.btn-accent {
  background: var(--accent);
  color: #fff;
}
.btn-accent:hover { background: var(--accent-ink); }

.btn-outline {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: var(--bg); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  padding: 10px 16px;
}
.btn-ghost:hover { color: var(--accent); }

.btn-wa {
  background: var(--wa);
  color: #fff;
  font-weight: 600;
}
.btn-wa:hover { background: var(--wa-dark); }

.btn-sm { padding: 10px 16px; font-size: 12px; }
.btn-lg { padding: 18px 32px; font-size: 15px; }

/* =========================================================
   Header
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 248, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
  height: var(--header-h);
  display: flex;
  align-items: center;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
}
.brand {
  display: flex;
  align-items: center;
  gap: var(--s-3);
}
.brand img { height: 44px; width: auto; }
.nav-main {
  display: flex;
  align-items: center;
  gap: var(--s-6);
}
.nav-main a {
  font-size: 14px;
  color: var(--ink);
  position: relative;
  padding: 6px 0;
  transition: color var(--t-fast) var(--ease);
}
.nav-main a::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: -2px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform var(--t-base) var(--ease);
}
.nav-main a:hover::after,
.nav-main a.active::after { transform: scaleX(1); }
.nav-main a.active { color: var(--accent); }

.nav-cta {
  display: flex;
  align-items: center;
  gap: var(--s-3);
}

.menu-toggle {
  display: none;
  padding: 8px;
}
.menu-toggle svg { width: 24px; height: 24px; stroke: var(--ink); }

@media (max-width: 960px) {
  .nav-main { display: none; }
  .menu-toggle { display: inline-flex; }
  .nav-cta .btn span.hide-md { display: none; }
}

.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: var(--bg);
  padding: var(--s-6);
  display: none;
  flex-direction: column;
  gap: var(--s-3);
  border-top: 1px solid var(--line);
  z-index: 49;
}
.mobile-nav a {
  font-size: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--font-serif);
}

/* =========================================================
   Footer
   ========================================================= */

.site-footer {
  background: var(--ink);
  color: #D8D6D2;
  padding: var(--s-8) 0 var(--s-5);
  margin-top: var(--s-8);
}
.site-footer h4 {
  color: #fff;
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: var(--s-4);
}
.site-footer a:hover { color: var(--accent); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--s-6);
  padding-bottom: var(--s-7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--s-2); font-size: 14px; }
.footer-grid img { filter: invert(1); height: 56px; margin-bottom: var(--s-3); }
.footer-bottom {
  padding-top: var(--s-5);
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: #888;
}
.socials { display: flex; gap: var(--s-3); }
.socials a {
  width: 36px; height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--r-pill);
  display: inline-flex; align-items: center; justify-content: center;
  transition: all var(--t-base) var(--ease);
}
.socials a:hover { border-color: var(--accent); color: var(--accent); }
.socials svg { width: 16px; height: 16px; }

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: var(--s-3); }
}

/* =========================================================
   Hero
   ========================================================= */

.hero {
  position: relative;
  min-height: calc(92vh - var(--header-h));
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: #1a1a1a;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.55) 100%);
  z-index: 2;
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  animation: heroIn 1.4s var(--ease);
}
@keyframes heroIn {
  from { transform: scale(1.04); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  padding-bottom: var(--s-8);
  padding-top: var(--s-9);
  color: #fff;
}
.hero-content .eyebrow { color: rgba(255,255,255,0.75); }
.hero-content h1 { color: #fff; max-width: 720px; margin-top: var(--s-3); }
.hero-content .lead { color: rgba(255,255,255,0.85); max-width: 540px; margin-top: var(--s-4); }

/* Quick search bar */
.search-bar {
  background: var(--surface);
  border-radius: var(--r-md);
  padding: var(--s-3);
  margin-top: var(--s-6);
  display: grid;
  grid-template-columns: repeat(4, 1fr) auto;
  gap: 1px;
  box-shadow: var(--shadow-3);
  max-width: 980px;
}
.search-bar .field {
  background: var(--surface);
  padding: var(--s-3) var(--s-4);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.search-bar .field label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-soft);
  font-weight: 500;
}
.search-bar .field select,
.search-bar .field input {
  border: 0;
  font-size: 14px;
  color: var(--ink);
  background: transparent;
  outline: none;
  padding: 2px 0;
  width: 100%;
}
.search-bar .btn-accent { border-radius: var(--r-sm); margin-left: var(--s-2); }

@media (max-width: 860px) {
  .search-bar { grid-template-columns: 1fr 1fr; }
  .search-bar .btn-accent { grid-column: 1 / -1; }
}

/* =========================================================
   Section header
   ========================================================= */

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: var(--s-6);
  gap: var(--s-5);
}
.section-head .title-block { max-width: 640px; }
.section-head .eyebrow { display: block; margin-bottom: var(--s-2); }
.section-head .lead { margin-top: var(--s-3); }

/* =========================================================
   Property cards
   ========================================================= */

.property-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
}
@media (max-width: 960px) {
  .property-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .property-grid { grid-template-columns: 1fr; }
}

.property-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: all var(--t-base) var(--ease);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  position: relative;
}
.property-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-3);
  border-color: var(--accent);
}
.property-card .ph {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--surface-2);
}
.property-card .ph img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow) var(--ease);
}
.property-card:hover .ph img { transform: scale(1.04); }
.property-card .badges {
  position: absolute;
  top: var(--s-3);
  left: var(--s-3);
  display: flex;
  gap: var(--s-2);
}
.badge {
  background: rgba(255,255,255,0.95);
  color: var(--ink);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: var(--r-sm);
}
.badge.accent { background: var(--accent); color: #fff; }
.badge.dark { background: var(--ink); color: #fff; }

.property-card .body {
  padding: var(--s-5);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  flex: 1;
}
.property-card .ref {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.property-card h3 {
  font-size: 19px;
  line-height: 1.3;
  margin: 0;
}
.property-card .loc {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-soft);
}
.property-card .price {
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--ink);
  font-weight: 500;
}
.property-card .price small {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--ink-soft);
  font-weight: 400;
  letter-spacing: 0.04em;
}
.property-card .feats {
  display: flex;
  gap: var(--s-4);
  padding-top: var(--s-3);
  border-top: 1px solid var(--line-soft);
  font-size: 12px;
  color: var(--ink-soft);
  flex-wrap: wrap;
}
.property-card .feats span { display: inline-flex; align-items: center; gap: 4px; }
.property-card .feats svg { width: 14px; height: 14px; opacity: 0.7; }

/* Card style: PRICE BADGE variant */
.property-card.style-pricebadge .ph::after {
  content: "";
}
.property-card.style-pricebadge .price-badge {
  position: absolute;
  bottom: var(--s-3);
  left: var(--s-3);
  background: var(--ink);
  color: #fff;
  padding: 8px 14px;
  font-family: var(--font-serif);
  font-size: 17px;
  border-radius: var(--r-sm);
  z-index: 2;
}
.property-card.style-pricebadge .body .price { display: none; }

/* Card style: OVERLAY variant */
.property-card.style-overlay { border: 0; background: var(--ink); color: #fff; }
.property-card.style-overlay .ph { aspect-ratio: 3 / 4; }
.property-card.style-overlay .ph::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.85) 100%);
}
.property-card.style-overlay .body {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  color: #fff;
  z-index: 2;
  background: transparent;
}
.property-card.style-overlay .ref { color: rgba(255,255,255,0.7); }
.property-card.style-overlay h3 { color: #fff; }
.property-card.style-overlay .loc { color: rgba(255,255,255,0.85); }
.property-card.style-overlay .price { color: #fff; }
.property-card.style-overlay .price small { color: rgba(255,255,255,0.7); }
.property-card.style-overlay .feats { color: rgba(255,255,255,0.8); border-color: rgba(255,255,255,0.18); }
.property-card.style-overlay .ph { aspect-ratio: 4 / 5; }

/* =========================================================
   Category cards
   ========================================================= */

.cat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
}
.cat-grid.cat-grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .cat-grid.cat-grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) { .cat-grid { grid-template-columns: 1fr; } }

.cat-card {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--r-md);
  cursor: pointer;
  background: var(--ink);
}
.cat-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform var(--t-slow) var(--ease);
  opacity: 0.85;
}
.cat-card:hover img { transform: scale(1.05); opacity: 1; }
.cat-card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 40%, rgba(0,0,0,0.7) 100%);
}
.cat-card .label {
  position: absolute;
  bottom: var(--s-5);
  left: var(--s-5);
  right: var(--s-5);
  z-index: 2;
  color: #fff;
}
.cat-card .label h3 { color: #fff; font-size: 28px; }
.cat-card .label .count { font-size: 13px; color: rgba(255,255,255,0.85); margin-top: 4px; }
.cat-card .label .arrow {
  position: absolute;
  right: 0; bottom: 8px;
  width: 36px; height: 36px;
  border-radius: var(--r-pill);
  background: rgba(255,255,255,0.18);
  display: inline-flex; align-items: center; justify-content: center;
  transition: all var(--t-base) var(--ease);
}
.cat-card:hover .label .arrow { background: var(--accent); }

/* =========================================================
   Pillars (Por que DMF)
   ========================================================= */

.pillars-section { background: var(--surface-2); }
.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-6);
}
@media (max-width: 900px) { .pillars { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .pillars { grid-template-columns: 1fr; } }
.pillar {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.pillar .icon {
  width: 44px; height: 44px;
  border: 1px solid var(--ink);
  border-radius: var(--r-pill);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: var(--s-3);
}
.pillar .icon svg { width: 20px; height: 20px; stroke: var(--ink); fill: none; stroke-width: 1.4; }
.pillar h4 { font-family: var(--font-serif); font-size: 20px; }
.pillar p { font-size: 14px; color: var(--ink-soft); line-height: 1.6; }

/* =========================================================
   Bairros (chips)
   ========================================================= */

.bairros {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 12px 22px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: var(--r-pill);
  font-size: 14px;
  color: var(--ink);
  transition: all var(--t-fast) var(--ease);
  cursor: pointer;
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip .count {
  font-size: 11px;
  color: var(--ink-faint);
  padding-left: 6px;
  border-left: 1px solid var(--line);
  margin-left: 6px;
}

/* =========================================================
   Final CTA
   ========================================================= */

.final-cta {
  background: var(--ink);
  color: #fff;
  padding: var(--s-9) 0;
  text-align: center;
}
.final-cta h2 { color: #fff; }
.final-cta .lead { color: rgba(255,255,255,0.8); max-width: 560px; margin: var(--s-4) auto 0; }
.final-cta .actions { display: inline-flex; gap: var(--s-3); margin-top: var(--s-6); flex-wrap: wrap; justify-content: center; }
.final-cta .btn-outline { border-color: rgba(255,255,255,0.4); color: #fff; }
.final-cta .btn-outline:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* =========================================================
   Listing page
   ========================================================= */

.listing-head {
  padding: var(--s-7) 0 var(--s-5);
  border-bottom: 1px solid var(--line);
}
.listing-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--s-4) 0;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-soft);
}
.listing-toolbar .sort {
  display: inline-flex; align-items: center; gap: var(--s-2);
}
.listing-toolbar select {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 8px 12px;
  border-radius: var(--r-sm);
  font-size: 13px;
}

.listing-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: var(--s-6);
  padding: var(--s-6) 0;
}
@media (max-width: 900px) {
  .listing-layout { grid-template-columns: 1fr; }
  .filters-sidebar { position: sticky; top: var(--header-h); background: var(--bg); z-index: 5; }
}

.filters-sidebar {
  border-right: 1px solid var(--line);
  padding-right: var(--s-5);
}
.filter-group {
  padding: var(--s-4) 0;
  border-bottom: 1px solid var(--line-soft);
}
.filter-group h4 {
  font-family: var(--font-sans);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: var(--s-3);
}
.filter-group label {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  font-size: 14px;
  color: var(--ink-soft);
  cursor: pointer;
  padding: 6px 0;
}
.filter-group label input { accent-color: var(--accent); }
.filter-group select,
.filter-group input[type="number"] {
  width: 100%;
  border: 1px solid var(--line);
  padding: 8px 12px;
  border-radius: var(--r-sm);
  font-size: 13px;
  background: var(--surface);
}
.filter-group .range-row { display: flex; gap: var(--s-2); }
.filter-group .pill-row { display: flex; gap: 6px; flex-wrap: wrap; }
.filter-group .pill {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  font-size: 12px;
  background: var(--surface);
  cursor: pointer;
  transition: all var(--t-fast) var(--ease);
}
.filter-group .pill.active {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: var(--s-2);
  padding: var(--s-6) 0;
}
.pagination button {
  width: 40px; height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-size: 13px;
  background: var(--surface);
  transition: all var(--t-fast) var(--ease);
}
.pagination button.active {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.pagination button:hover:not(.active):not(:disabled) { border-color: var(--accent); color: var(--accent); }
.pagination button:disabled { opacity: 0.3; cursor: not-allowed; }

/* =========================================================
   Forms
   ========================================================= */

.form-grid {
  display: grid;
  gap: var(--s-4);
}
.form-grid .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
@media (max-width: 600px) { .form-grid .row-2 { grid-template-columns: 1fr; } }
.field-block { display: flex; flex-direction: column; gap: 6px; }
.field-block label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
  font-weight: 500;
}
.field-block input,
.field-block textarea,
.field-block select {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 12px 14px;
  border-radius: var(--r-sm);
  font-size: 14px;
  transition: border-color var(--t-fast) var(--ease);
}
.field-block input:focus,
.field-block textarea:focus,
.field-block select:focus { border-color: var(--accent); outline: none; }
.field-block textarea { min-height: 120px; resize: vertical; }

/* =========================================================
   Floating WhatsApp
   ========================================================= */

.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: var(--wa);
  border-radius: var(--r-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
  z-index: 40;
  transition: transform var(--t-base) var(--ease);
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 28px; height: 28px; }

/* =========================================================
   Detail page — gallery
   ========================================================= */

.detail .gallery {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--s-2);
  margin-top: var(--s-4);
  border-radius: var(--r-md);
  overflow: hidden;
  height: 540px;
  max-height: 60vh;
}
.detail .gallery-main {
  position: relative;
  cursor: zoom-in;
  background: var(--ink);
  overflow: hidden;
}
.detail .gallery-main img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow) var(--ease);
}
.detail .gallery-main:hover img { transform: scale(1.02); }
.detail .gallery-count {
  position: absolute;
  bottom: var(--s-3);
  right: var(--s-3);
  background: rgba(0,0,0,0.7);
  color: #fff;
  padding: 8px 14px;
  border-radius: var(--r-sm);
  font-size: 12px;
  letter-spacing: 0.06em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  backdrop-filter: blur(4px);
}
.detail .gallery-side {
  display: grid;
  grid-template-rows: 1fr 1fr;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-2);
}
.detail .gallery-thumb {
  position: relative;
  cursor: pointer;
  overflow: hidden;
  background: var(--surface-2);
}
.detail .gallery-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow) var(--ease);
}
.detail .gallery-thumb:hover img { transform: scale(1.03); }
.detail .gallery-more {
  position: absolute; inset: 0;
  background: rgba(43,43,43,0.7);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  letter-spacing: 0.06em;
  backdrop-filter: blur(2px);
}
@media (max-width: 768px) {
  .detail .gallery { grid-template-columns: 1fr; height: 360px; }
  .detail .gallery-side { display: none; }
}

/* =========================================================
   Detail layout
   ========================================================= */

.detail-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--s-7);
  padding-top: var(--s-7);
  padding-bottom: var(--s-9);
  align-items: flex-start;
}
@media (max-width: 960px) {
  .detail-layout { grid-template-columns: 1fr; }
  .detail-aside { order: -1; }
}

.detail-head .ref-line {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  margin-bottom: var(--s-3);
}
.detail-head h1 {
  font-size: clamp(28px, 3.5vw, 44px);
  line-height: 1.12;
  margin-bottom: var(--s-3);
}
.detail-head .loc {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-soft);
  font-size: 15px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  margin-top: var(--s-6);
  overflow: hidden;
}
@media (max-width: 768px) { .features-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
.feature-cell {
  background: var(--surface);
  padding: var(--s-4);
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
}
.feature-cell .ic { color: var(--accent); margin-bottom: 4px; }
.feature-cell strong {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1;
}
.feature-cell .lbl {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 4px;
}

.detail-block {
  padding-top: var(--s-7);
  margin-top: var(--s-6);
  border-top: 1px solid var(--line);
}
.detail-block h2 { font-size: 26px; }

.char-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-3);
  margin-top: var(--s-5);
}
@media (max-width: 768px) { .char-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .char-grid { grid-template-columns: 1fr; } }
.char-item {
  display: flex; align-items: center;
  gap: var(--s-3);
  padding: 12px 0;
  font-size: 14px;
  color: var(--ink);
  border-bottom: 1px solid var(--line-soft);
}
.char-item svg { color: var(--accent); flex-shrink: 0; }

.map-wrap {
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--line);
  aspect-ratio: 16 / 9;
}
.map-wrap iframe { width: 100%; height: 100%; border: 0; }

/* CTA card sticky */
.detail-aside { position: sticky; top: calc(var(--header-h) + 24px); }
.cta-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--s-5);
}
.cta-card .cta-tag {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 500;
}
.cta-card .cta-price {
  font-family: var(--font-serif);
  font-size: 36px;
  line-height: 1.1;
  color: var(--ink);
  margin-top: 6px;
  font-weight: 500;
}
.cta-card .cta-price small {
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--ink-soft);
  font-weight: 400;
  letter-spacing: 0.04em;
}
.cta-card .cta-extras {
  margin-top: var(--s-4);
  padding-top: var(--s-4);
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
.cta-card .ext-row {
  display: flex; justify-content: space-between;
  font-size: 14px;
  color: var(--ink-soft);
}
.cta-card .ext-row strong { color: var(--ink); font-weight: 500; }
.cta-card .cta-divider {
  margin: var(--s-5) calc(-1 * var(--s-5));
  border-top: 1px solid var(--line);
}
.cta-card .cta-share {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-2);
}
.cta-card .share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  font-size: 12px;
  letter-spacing: 0.04em;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--ink);
  transition: all var(--t-fast) var(--ease);
  cursor: pointer;
  text-decoration: none;
}
.cta-card .share-btn:hover { border-color: var(--accent); color: var(--accent); }
.cta-card .consultant {
  margin-top: var(--s-5);
  padding-top: var(--s-4);
  border-top: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  gap: var(--s-3);
}
.cta-card .cphoto {
  width: 48px; height: 48px;
  border-radius: var(--r-pill);
  background: var(--accent-soft);
  color: var(--accent-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 18px;
}

/* Mobile sticky CTA */
.mobile-sticky-cta {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: var(--s-3) var(--s-4);
  display: none;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-3);
  z-index: 45;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.05);
}
@media (max-width: 960px) {
  .mobile-sticky-cta { display: flex; }
  .wa-float { bottom: 86px; }
  .detail-aside { position: static; }
}

/* =========================================================
   Lightbox
   ========================================================= */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0,0,0,0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s var(--ease);
}
.lightbox img {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
  box-shadow: 0 8px 60px rgba(0,0,0,0.5);
}
.lightbox .lb-close,
.lightbox .lb-prev,
.lightbox .lb-next {
  position: absolute;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  width: 48px; height: 48px;
  border-radius: var(--r-pill);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 24px;
  cursor: pointer;
  transition: background var(--t-fast) var(--ease);
}
.lightbox .lb-close { top: 24px; right: 24px; }
.lightbox .lb-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 24px; top: 50%; transform: translateY(-50%); }
.lightbox button:hover { background: rgba(255,255,255,0.18); }
.lightbox .lb-counter {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.08em;
  padding: 6px 14px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--r-pill);
}

/* =========================================================
   Page hero (Sobre, Servi\u00e7os, Blog, Contato)
   ========================================================= */

.page-hero {
  background: var(--surface-2);
  padding: var(--s-8) 0 var(--s-7);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 { margin-top: 12px; max-width: 720px; }

/* Numbers strip */
.numbers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
}
@media (max-width: 768px) { .numbers-grid { grid-template-columns: repeat(2, 1fr); } }
.number-cell {
  background: var(--bg);
  padding: var(--s-5) var(--s-4);
  text-align: center;
}
.number-cell strong {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(32px, 4vw, 48px);
  color: var(--accent);
  line-height: 1;
  font-weight: 500;
}
.number-cell span {
  display: block;
  margin-top: 12px;
  font-size: 13px;
  color: var(--ink-soft);
  letter-spacing: 0.04em;
}

/* Two-col image/text */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-7);
  align-items: center;
}
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }
.two-col-img img {
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
  border-radius: var(--r-md);
}

/* Three-col value cards */
.three-col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
}
@media (max-width: 768px) { .three-col { grid-template-columns: 1fr; } }
.value-card {
  background: var(--bg);
  padding: var(--s-6);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.value-card h3 { font-size: 22px; margin-bottom: var(--s-3); }
.value-card p { color: var(--ink-soft); line-height: 1.7; }

/* Team grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-5);
}
.team-grid.team-grid-2 {
  grid-template-columns: repeat(2, 1fr);
  max-width: 760px;
}
@media (max-width: 900px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .team-grid, .team-grid.team-grid-2 { grid-template-columns: 1fr; } }
.team-card {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}
.team-photo {
  width: 100%;
  aspect-ratio: 1/1;
  background: var(--accent-soft);
  color: var(--accent-ink);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 56px;
  font-weight: 500;
  margin-bottom: var(--s-3);
}
.team-card strong { font-family: var(--font-serif); font-size: 20px; font-weight: 500; line-height: 1.2; }
.team-card p { color: var(--ink-soft); font-size: 14px; line-height: 1.6; margin-top: 4px; }

/* =========================================================
   Services
   ========================================================= */

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-2);
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
@media (max-width: 768px) { .services-grid { grid-template-columns: 1fr; } }
.service-card {
  background: var(--surface);
  padding: var(--s-6);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  transition: background var(--t-base) var(--ease);
}
.service-card:hover { background: var(--surface-2); }
.service-num {
  font-family: var(--font-serif);
  font-size: 14px;
  color: var(--accent);
  letter-spacing: 0.1em;
}
.service-card h3 { font-size: 26px; }
.service-card p { color: var(--ink-soft); line-height: 1.7; flex: 1; }
.service-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 500;
  padding-top: var(--s-3);
  border-top: 1px solid var(--line);
  margin-top: var(--s-3);
  transition: color var(--t-fast) var(--ease);
}
.service-cta:hover { color: var(--accent); }

.process-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--s-5);
  counter-reset: step;
}
@media (max-width: 960px) { .process-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .process-grid { grid-template-columns: 1fr; } }
.process-step h4 { font-family: var(--font-serif); font-size: 20px; }
.process-step p { color: var(--ink-soft); font-size: 14px; line-height: 1.6; margin-top: 8px; }
.process-step .step-num {
  display: block;
  font-family: var(--font-serif);
  font-size: 36px;
  color: var(--accent);
  margin-bottom: var(--s-3);
  line-height: 1;
}

/* =========================================================
   Blog
   ========================================================= */

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-6);
}
@media (max-width: 900px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .blog-grid { grid-template-columns: 1fr; } }
.post-card {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform var(--t-base) var(--ease);
}
.post-card:hover { transform: translateY(-3px); }
.post-cover {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: var(--r-md);
  background: var(--surface-2);
  margin-bottom: var(--s-4);
}
.post-cover img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow) var(--ease);
}
.post-card:hover .post-cover img { transform: scale(1.04); }
.post-body h3 {
  font-size: 22px;
  margin-top: 8px;
  line-height: 1.3;
}
.post-body p { color: var(--ink-soft); font-size: 14px; line-height: 1.65; margin-top: 8px; }
.post-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  margin-top: var(--s-3);
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.post-cover-large {
  width: 100%;
  max-width: 1200px;
  margin: 24px auto 48px;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-radius: var(--r-md);
}
.post-cover-large img { width: 100%; height: 100%; object-fit: cover; }
.post-body-text {
  font-size: 17px;
  line-height: 1.8;
  color: var(--ink);
}
.post-body-text p { margin-bottom: var(--s-4); color: var(--ink-soft); }
.post-body-text h3 {
  font-family: var(--font-serif);
  font-size: 26px;
  margin-top: var(--s-7);
  margin-bottom: var(--s-3);
  color: var(--ink);
}

/* =========================================================
   Contato
   ========================================================= */

.contato-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--s-7);
  align-items: flex-start;
}
@media (max-width: 900px) { .contato-layout { grid-template-columns: 1fr; } }
.contato-info {
  background: var(--surface-2);
  padding: var(--s-6);
  border-radius: var(--r-md);
}
.contato-info h3 { margin-bottom: var(--s-4); font-size: 22px; }
.info-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--s-3); }
.info-list li { display: flex; gap: var(--s-3); align-items: flex-start; font-size: 14px; line-height: 1.6; }
.info-list li svg { color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.info-list small { display: block; color: var(--ink-soft); font-size: 12px; margin-top: 2px; }

.err {
  color: #B23A3A;
  font-size: 12px;
  margin-top: 2px;
}
.form-success {
  background: #EEF7EE;
  border: 1px solid #C7E1C7;
  color: #2A6B2A;
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-sm);
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* =========================================================
   ADMIN
   ========================================================= */

.admin-app {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
  background: #F4F2ED;
}
@media (max-width: 900px) { .admin-app { grid-template-columns: 1fr; } }

.admin-sidebar {
  background: var(--ink);
  color: #D8D6D2;
  padding: var(--s-5);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
@media (max-width: 900px) { .admin-sidebar { position: relative; height: auto; } }
.admin-brand {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding-bottom: var(--s-5);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.admin-brand img { height: 36px; filter: invert(1); }
.admin-brand-tag {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(139, 115, 85, 0.16);
  padding: 4px 8px;
  border-radius: var(--r-sm);
}
.admin-nav {
  margin-top: var(--s-5);
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}
.admin-nav a {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: 10px 12px;
  border-radius: var(--r-sm);
  font-size: 14px;
  color: rgba(255,255,255,0.7);
  transition: all var(--t-fast) var(--ease);
}
.admin-nav a:hover { background: rgba(255,255,255,0.06); color: #fff; }
.admin-nav a.active { background: var(--accent); color: #fff; }
.admin-nav a.active svg { stroke: #fff; }
.admin-nav svg { stroke: currentColor; }

.admin-sidebar-foot {
  padding-top: var(--s-4);
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.admin-side-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  border-radius: var(--r-sm);
  text-align: left;
  cursor: pointer;
  background: none;
  border: 0;
  font-family: inherit;
}
.admin-side-link:hover { color: #fff; background: rgba(255,255,255,0.06); }

.admin-main { padding: var(--s-7); max-width: 100%; overflow-x: auto; }
@media (max-width: 600px) { .admin-main { padding: var(--s-4); } }

.admin-page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--s-4);
  margin-bottom: var(--s-6);
  flex-wrap: wrap;
}
.admin-page-head h1 { font-size: 32px; margin-top: 8px; }

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-4);
}
@media (max-width: 900px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .stats-grid { grid-template-columns: 1fr; } }
.stat-card {
  background: var(--surface);
  padding: var(--s-5);
  border-radius: var(--r-md);
  border: 1px solid var(--line);
}
.stat-label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.stat-card strong {
  display: block;
  font-family: var(--font-serif);
  font-size: 40px;
  line-height: 1;
  font-weight: 500;
  margin-top: var(--s-3);
}
.stat-trend {
  display: block;
  margin-top: var(--s-3);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.04em;
}

.admin-section {
  margin-top: var(--s-7);
  background: var(--surface);
  padding: var(--s-5);
  border-radius: var(--r-md);
  border: 1px solid var(--line);
}
.admin-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--s-4);
  padding-bottom: var(--s-3);
  border-bottom: 1px solid var(--line);
}
.admin-section-head h2 { font-size: 20px; }

/* Admin table */
.admin-table { overflow-x: auto; }
.admin-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.admin-table th {
  text-align: left;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  font-weight: 500;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.admin-table td {
  padding: 14px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: middle;
}
.admin-table tr:hover td { background: var(--surface-2); }
.admin-table .thumb {
  width: 60px;
  height: 44px;
  border-radius: var(--r-sm);
  object-fit: cover;
}
.admin-table code {
  font-family: ui-monospace, monospace;
  font-size: 12px;
  color: var(--ink-soft);
  background: var(--surface-2);
  padding: 2px 6px;
  border-radius: 3px;
}

.status-pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
}
.status-disponivel { background: #E5F1E5; color: #1E5C1E; }
.status-reservado { background: #FCF0DC; color: #875600; }
.status-vendido { background: #ECECEC; color: #555; }
.status-alugado { background: #ECECEC; color: #555; }

.row-action {
  width: 32px; height: 32px;
  border-radius: var(--r-sm);
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  color: var(--ink-soft);
  transition: all var(--t-fast) var(--ease);
}
.row-action:hover { border-color: var(--accent); color: var(--accent); }
.row-action.danger:hover { border-color: #B23A3A; color: #B23A3A; }

/* Admin filters bar */
.admin-filters {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--s-3);
  margin-bottom: var(--s-5);
}
@media (max-width: 768px) { .admin-filters { grid-template-columns: 1fr 1fr; } }
.admin-filters select {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 12px 14px;
  border-radius: var(--r-sm);
  font-size: 14px;
}
.search-input {
  position: relative;
}
.search-input input {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 12px 14px 12px 40px;
  border-radius: var(--r-sm);
  font-size: 14px;
}
.search-input svg {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-soft);
}

/* Shortcuts */
.shortcuts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-3);
}
@media (max-width: 768px) { .shortcuts-grid { grid-template-columns: repeat(2, 1fr); } }
.shortcut {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  background: var(--surface-2);
  border: 1px solid var(--line);
  padding: var(--s-4);
  border-radius: var(--r-sm);
  font-size: 14px;
  color: var(--ink);
  transition: all var(--t-fast) var(--ease);
}
.shortcut:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.shortcut svg { color: var(--accent); }

/* Admin login */
.admin-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #F4F2ED;
  padding: var(--s-5);
}
.admin-login-card {
  background: var(--surface);
  padding: var(--s-7);
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-2);
}

/* Admin form */
.form-tabs {
  display: flex;
  gap: 2px;
  border-bottom: 1px solid var(--line);
  margin-bottom: var(--s-5);
  overflow-x: auto;
}
.form-tab {
  padding: 14px 20px;
  font-size: 14px;
  color: var(--ink-soft);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: all var(--t-fast) var(--ease);
  cursor: pointer;
  background: none;
  border-top: 0; border-left: 0; border-right: 0;
}
.form-tab:hover { color: var(--ink); }
.form-tab.active { color: var(--ink); border-bottom-color: var(--accent); font-weight: 500; }

.admin-form { display: flex; flex-direction: column; gap: var(--s-5); }
.form-section {
  background: var(--surface);
  padding: var(--s-5);
  border-radius: var(--r-md);
  border: 1px solid var(--line);
}
.form-section h3 {
  font-family: var(--font-sans);
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: var(--s-4);
  padding-bottom: var(--s-3);
  border-bottom: 1px solid var(--line);
}
.form-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-4);
}
.form-row.form-row-6 { grid-template-columns: repeat(6, 1fr); }
@media (max-width: 768px) {
  .form-row, .form-row.form-row-6 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .form-row, .form-row.form-row-6 { grid-template-columns: 1fr; }
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-2);
}
@media (max-width: 768px) { .checkbox-grid { grid-template-columns: repeat(2, 1fr); } }
.check-card {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-size: 13px;
  cursor: pointer;
  transition: all var(--t-fast) var(--ease);
  background: var(--bg);
}
.check-card:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-ink);
}

/* Upload */
.upload-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: var(--s-7) var(--s-5);
  border: 2px dashed var(--line);
  border-radius: var(--r-md);
  background: var(--bg);
  cursor: pointer;
  transition: all var(--t-fast) var(--ease);
  text-align: center;
}
.upload-zone:hover { border-color: var(--accent); background: var(--accent-soft); }
.upload-zone svg { color: var(--accent); width: 32px; height: 32px; }
.upload-zone strong { color: var(--ink); font-size: 15px; }

.photos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-3);
  margin-top: var(--s-4);
}
@media (max-width: 768px) { .photos-grid { grid-template-columns: repeat(2, 1fr); } }
.photo-tile {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--surface-2);
  cursor: grab;
  border: 2px solid transparent;
}
.photo-tile.is-cover { border-color: var(--accent); }
.photo-tile img { width: 100%; height: 100%; object-fit: cover; }
.photo-tile .cover-tag {
  position: absolute;
  top: 8px; left: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 2px;
}
.photo-tile .photo-tools {
  position: absolute;
  bottom: 8px; right: 8px;
  display: flex;
  gap: 4px;
  opacity: 0;
  transition: opacity var(--t-fast) var(--ease);
}
.photo-tile:hover .photo-tools { opacity: 1; }
.photo-tile .photo-tools button {
  width: 30px; height: 30px;
  border-radius: var(--r-sm);
  background: rgba(0,0,0,0.7);
  color: #fff;
  border: 0;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.photo-tile .photo-tools button:hover { background: var(--accent); }

/* =========================================================
   Utility
   ========================================================= */

.text-center { text-align: center; }
.text-soft { color: var(--ink-soft); }
.muted { color: var(--ink-faint); }
.fade-in { animation: fadeIn 0.5s var(--ease) both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
