:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --surface-2: #eef1f5;
  --text: #142033;
  --muted: #687386;
  --line: #d7dde6;
  --primary: #062f5f;
  --primary-strong: #03264d;
  --accent: #ff7900;
  --danger: #b42318;
  --warning: #b7791f;
  --success: #157347;
  --shadow: 0 18px 45px rgba(6, 47, 95, 0.14);
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

:root.dark {
  --bg: #0b1220;
  --surface: #111c2d;
  --surface-2: #17243a;
  --text: #f4f7fb;
  --muted: #a9b4c5;
  --line: #263753;
  --primary: #ff8a1f;
  --primary-strong: #ff7900;
  --accent: #6da7ff;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
input, select, textarea, button {
  font: inherit;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.nav-shell {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
}

.brand img {
  width: 136px;
  height: 54px;
  object-fit: contain;
  object-position: left center;
}

.brand-with-logo {
  min-width: 136px;
}

.admin-brand img {
  width: 176px;
  height: 74px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-weight: 900;
}

.main-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-weight: 650;
}

.main-nav a {
  position: relative;
  transition: color .18s ease;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  transform: scaleX(0);
  transform-origin: center;
  background: var(--accent);
  transition: transform .18s ease;
}

.main-nav a:hover {
  color: var(--primary);
}

.main-nav a:hover::after {
  transform: scaleX(1);
}

.icon-btn {
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  display: inline-grid;
  place-items: center;
  cursor: pointer;
}

.menu-toggle { display: none; margin-left: auto; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 750;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(6, 47, 95, 0.16);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover { background: var(--primary-strong); }

.btn-ghost {
  border-color: var(--line);
  background: var(--surface);
  color: var(--text);
}

.btn-whatsapp {
  background: #1fa855;
  color: #fff;
}

.hero {
  padding: 48px 0 34px;
  background:
    linear-gradient(120deg, color-mix(in srgb, var(--primary) 12%, transparent), transparent 42%),
    radial-gradient(circle at 85% 15%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 34%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
  gap: 28px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

h1, h2, h3, h4 {
  margin: 0 0 12px;
  line-height: 1.12;
}

h1 { font-size: clamp(2.15rem, 4.35vw, 4.15rem); max-width: 820px; }
h2 { font-size: clamp(1.55rem, 3vw, 2.45rem); }
h3 { font-size: 1.12rem; }

.hero-copy p,
.page-hero p {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.03rem;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.scroll-cue {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 22px;
  color: var(--primary);
  font-weight: 800;
}

.scroll-cue i {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  animation: cue-bounce 1.6s infinite;
}

@keyframes cue-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

.hero-visual {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  transition: transform .22s ease, box-shadow .22s ease;
}

.hero-visual:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 55px rgba(6, 47, 95, 0.18);
}

.hero-visual img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.hero-stat {
  position: absolute;
  left: 18px;
  bottom: 18px;
  display: grid;
  gap: 2px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 92%, transparent);
}

.hero-stat strong {
  color: var(--primary);
}

.search-panel,
.form-card,
.contact-card,
.detail-panel,
.admin-card,
.review-card,
.listing-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.search-panel {
  grid-column: 1 / -1;
  padding: 18px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 650;
}

input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 13px;
  background: var(--surface);
  color: var(--text);
}

textarea { resize: vertical; }

.section {
  padding: 48px 0;
  scroll-margin-top: 92px;
}

.section-lift {
  position: relative;
}

.section-lift::before {
  content: "";
  display: block;
  width: min(1180px, calc(100% - 32px));
  height: 1px;
  margin: -12px auto 34px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--primary) 32%, transparent), transparent);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin-bottom: 24px;
}

.section-heading a {
  color: var(--primary);
  font-weight: 800;
}

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

.listing-card {
  overflow: hidden;
  box-shadow: none;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.listing-card:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--accent) 50%, var(--line));
  box-shadow: 0 18px 36px rgba(6, 47, 95, 0.14);
}

.listing-card:hover .listing-media img {
  transform: scale(1.04);
}

.listing-media {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--surface-2);
  overflow: hidden;
}

.listing-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .25s ease;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 850;
  color: #fff;
}

.listing-media .badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 2;
}

.listing-hover-info {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  padding: 18px;
  color: #fff;
  background:
    linear-gradient(180deg, rgba(6, 22, 43, 0.04), rgba(6, 22, 43, 0.88)),
    linear-gradient(45deg, rgba(255, 121, 0, 0.12), transparent 52%);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .22s ease, transform .22s ease;
}

.listing-card:hover .listing-hover-info,
.listing-card:focus-within .listing-hover-info {
  opacity: 1;
  transform: translateY(0);
}

.hover-price {
  width: fit-content;
  max-width: 100%;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 900;
  font-size: 1.15rem;
}

.hover-meta {
  font-weight: 750;
  color: rgba(255,255,255,.92);
}

.hover-cta {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 850;
}

.badge-success { background: var(--success); }
.badge-danger { background: var(--danger); }
.badge-warning { background: var(--warning); }
.badge-muted { background: #6b7280; }

.listing-body {
  padding: 18px;
}

.listing-meta {
  display: flex;
  gap: 8px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 750;
}

.listing-body p {
  color: var(--muted);
  margin: 8px 0 16px;
}

.listing-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.listing-foot strong,
.price {
  color: var(--primary);
  font-size: 1.35rem;
}

.service-band {
  background: var(--surface-2);
}

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

.service-grid article {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  scroll-margin-top: 96px;
}

.service-grid article:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--accent) 48%, var(--line));
  box-shadow: 0 18px 36px rgba(6, 47, 95, 0.12);
}

.service-grid i {
  color: var(--accent);
  font-size: 2rem;
  margin-bottom: 18px;
}

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

.review-card {
  padding: 22px;
  box-shadow: none;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.review-card:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--accent) 42%, var(--line));
  box-shadow: 0 16px 32px rgba(6, 47, 95, 0.12);
}

.stars { color: var(--accent); }

.page-hero {
  padding: 66px 0;
  background: var(--surface-2);
}

.page-hero.compact h1 { font-size: clamp(2rem, 4vw, 3.4rem); }

.filter-bar {
  display: grid;
  grid-template-columns: 180px 180px 1fr auto;
  gap: 12px;
  margin-bottom: 24px;
}

.detail-hero {
  padding: 34px 0 46px;
  background:
    linear-gradient(120deg, color-mix(in srgb, var(--primary) 9%, transparent), transparent 44%),
    linear-gradient(180deg, var(--surface), var(--bg));
  border-bottom: 1px solid var(--line);
}

.detail-titlebar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 24px;
}

.detail-title-main {
  min-width: 0;
}

.detail-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
  color: var(--muted);
  font-weight: 800;
}

.detail-kicker span:not(.badge) {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.detail-kicker i {
  color: var(--accent);
}

.detail-titlebar h1 {
  max-width: 980px;
  margin-bottom: 10px;
  font-size: clamp(2rem, 4.2vw, 4.15rem);
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 420px);
  gap: 28px;
  align-items: start;
}

.gallery {
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 38px rgba(6, 47, 95, 0.09);
}

.gallery-main {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  background: var(--surface-2);
}

.thumb-row {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  margin-top: 10px;
}

.thumb-row img {
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
}

.thumb-row img:hover { border-color: var(--primary); }

.detail-panel {
  align-self: start;
  position: sticky;
  top: 96px;
  padding: 24px;
  display: grid;
  gap: 16px;
}

.panel-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: .86rem;
  font-weight: 850;
  text-transform: uppercase;
}

.location { color: var(--muted); }

.detail-panel .price {
  width: 100%;
  padding: 16px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 78%, #000));
  color: #fff;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1;
}

.detail-quick-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.detail-quick-specs span {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  font-weight: 800;
  color: var(--text);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.detail-quick-specs i {
  color: var(--accent);
}

.detail-quick-specs span:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 48%, var(--line));
  background: color-mix(in srgb, var(--accent) 8%, var(--surface-2));
}

.detail-agent-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border: 1px dashed color-mix(in srgb, var(--primary) 36%, var(--line));
  border-radius: 8px;
  color: var(--muted);
  background: color-mix(in srgb, var(--primary) 5%, transparent);
  font-size: .9rem;
}

.detail-agent-note i {
  color: var(--accent);
  margin-top: 3px;
}

.detail-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 34px;
}

.detail-content-unified {
  margin-top: -18px;
}

.detail-section-card {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 34px rgba(6, 47, 95, 0.08);
}

.detail-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.detail-section-title i {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
}

.detail-section-title h2 {
  margin: 0;
}

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

.spec-card {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  grid-template-areas:
    "icon label"
    "icon value";
  column-gap: 10px;
  align-items: center;
  min-height: 74px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: var(--surface);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.spec-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 48%, var(--line));
  box-shadow: 0 14px 26px rgba(6, 47, 95, 0.1);
}

.spec-card i {
  grid-area: icon;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
}

.spec-card em {
  grid-area: label;
  font-style: normal;
  font-size: .8rem;
  font-weight: 800;
  color: var(--muted);
}

.spec-card strong {
  grid-area: value;
  display: block;
  color: var(--text);
  overflow-wrap: anywhere;
}

.rich-text {
  color: var(--muted);
  white-space: normal;
  font-size: 1.02rem;
}

.content-page {
  max-width: 860px;
}

.contact-hero {
  padding: 48px 0;
  background:
    linear-gradient(120deg, color-mix(in srgb, var(--primary) 12%, transparent), transparent 48%),
    linear-gradient(180deg, var(--surface), var(--bg));
  border-bottom: 1px solid var(--line);
}

.contact-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(320px, 1.25fr);
  gap: 30px;
  align-items: center;
}

.contact-hero-copy p {
  max-width: 640px;
  color: var(--muted);
  font-size: 1.08rem;
}

.contact-hero-image {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(6, 47, 95, .13);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.contact-hero-image:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--accent) 42%, var(--line));
  box-shadow: 0 24px 54px rgba(6, 47, 95, .18);
}

.contact-hero-image img {
  width: 100%;
  min-height: 360px;
  object-fit: cover;
}

.contact-info-section {
  padding-bottom: 24px;
}

.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.contact-info-card {
  min-height: 150px;
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 28px rgba(6, 47, 95, .08);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}

.contact-info-card:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--accent) 48%, var(--line));
  background: color-mix(in srgb, var(--accent) 5%, var(--surface));
  box-shadow: 0 18px 38px rgba(6, 47, 95, .14);
}

.contact-info-card > i {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
  font-size: 1.2rem;
}

.contact-info-card span {
  color: var(--muted);
  font-weight: 850;
}

.contact-info-card strong {
  color: var(--text);
  overflow-wrap: anywhere;
}

.contact-form-section {
  padding-top: 24px;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 24px;
}

.form-card, .contact-card {
  padding: 24px;
}

.form-card {
  display: grid;
  gap: 14px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.form-card:hover,
.contact-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 38%, var(--line));
  box-shadow: 0 18px 38px rgba(6, 47, 95, .12);
}

.form-card label > i {
  color: var(--accent);
  margin-right: 6px;
}

.contact-card {
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.contact-card p {
  display: flex;
  gap: 10px;
  color: var(--muted);
}

.contact-card p i {
  color: var(--accent);
  margin-top: 4px;
}

.contact-card iframe {
  width: 100%;
  min-height: 320px;
  border: 0;
  border-radius: 8px;
  margin-top: 18px;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 28px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: var(--surface);
}

.site-footer {
  background: #06162b;
  color: #e6f4f1;
  padding-top: 42px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr 0.8fr;
  gap: 28px;
}

.site-footer p { color: #b8cac5; }

.social-row {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.social-row a {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 8px;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.social-row a:hover {
  transform: translateY(-3px);
  background: rgba(255, 121, 0, .16);
  border-color: rgba(255, 121, 0, .55);
}

.copyright {
  margin-top: 32px;
  padding: 16px;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,.12);
  color: #b8cac5;
}

.alert {
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface-2);
}

.alert-error { border-color: color-mix(in srgb, var(--danger) 55%, var(--line)); color: var(--danger); }
.alert-success { border-color: color-mix(in srgb, var(--success) 55%, var(--line)); color: var(--success); }

.admin-body {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  min-height: 100vh;
}

.admin-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 20px;
  background: #101b19;
  color: #e6f4f1;
}

.admin-brand { margin-bottom: 24px; }

.admin-sidebar nav {
  display: grid;
  gap: 8px;
}

.admin-sidebar nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 8px;
  color: #c8d8d4;
}

.admin-sidebar nav a:hover { background: rgba(255,255,255,.08); color: #fff; }

.admin-main {
  min-width: 0;
}

.admin-topbar {
  min-height: 72px;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.admin-menu-toggle { display: none; }

.admin-content {
  padding: 24px;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.admin-card {
  padding: 20px;
  box-shadow: none;
}

.admin-card span {
  color: var(--muted);
  font-weight: 750;
}

.admin-card strong {
  display: block;
  margin-top: 8px;
  font-size: 2rem;
}

.table-wrap {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 0.85rem;
}

.admin-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.admin-form {
  display: grid;
  gap: 18px;
  max-width: 980px;
}

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

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-box {
  width: min(420px, 100%);
}

@media (max-width: 920px) {
  .hero-grid,
  .detail-grid,
  .detail-content,
  .contact-hero-grid,
  .contact-grid,
  .footer-grid,
  .service-grid {
    grid-template-columns: 1fr;
  }

  .listing-grid,
  .review-grid,
  .contact-info-grid,
  .admin-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .hero-visual,
  .hero-visual img {
    min-height: 280px;
  }

  .admin-body {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: fixed;
    left: -285px;
    width: 270px;
    z-index: 40;
    transition: left .2s ease;
  }

  .admin-sidebar.open { left: 0; }
  .admin-menu-toggle { display: inline-grid; }

  .detail-panel {
    position: static;
  }

  .detail-titlebar {
    flex-direction: column;
  }
}

@media (max-width: 700px) {
  .nav-shell {
    flex-wrap: wrap;
  }

  .menu-toggle { display: inline-grid; }

  .main-nav {
    display: none;
    width: 100%;
    margin-left: 0;
    padding-bottom: 14px;
    flex-direction: column;
    align-items: stretch;
  }

  .main-nav.open { display: flex; }

  .theme-toggle { margin-left: 0; }

  .listing-grid,
  .review-grid,
  .contact-info-grid,
  .admin-grid,
  .filter-bar,
  .search-panel,
  .form-grid,
  .spec-grid,
  .detail-quick-specs {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 42px;
  }

  .section {
    padding: 38px 0;
  }

  .contact-hero {
    padding: 34px 0;
  }

  .contact-hero-image img {
    min-height: 240px;
  }

  .contact-info-card {
    min-height: 128px;
  }

  .detail-hero {
    padding: 24px 0 34px;
  }

  .detail-titlebar h1 {
    font-size: clamp(1.75rem, 9vw, 2.65rem);
  }

  .gallery {
    padding: 6px;
  }

  .thumb-row {
    grid-template-columns: repeat(3, 1fr);
  }

  .detail-section-card {
    padding: 18px;
  }

  .admin-topbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px;
  }

  .admin-content {
    padding: 16px;
  }
}
