:root {
  color-scheme: light;
  --ink: #101820;
  --muted: #5f6b7a;
  --line: #e2e8f0;
  --paper: #f6f8fb;
  --white: #ffffff;
  --green: #0f5bcb;
  --green-2: #2c7be5;
  --gold: #c58b2b;
  --blue: #0f5bcb;
  --danger: #9a463a;
  --shadow: 0 18px 50px rgba(16, 24, 32, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
}

.side-menu {
  position: fixed;
  left: 18px;
  top: 118px;
  z-index: 18;
  display: grid;
  gap: 8px;
  width: 78px;
}

.side-menu a,
.side-menu button {
  display: grid;
  place-items: center;
  width: 78px;
  min-height: 58px;
  border: 1px solid rgba(16, 24, 32, 0.1);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  padding: 6px 4px;
  cursor: pointer;
  text-align: center;
  box-shadow: 0 10px 24px rgba(16, 24, 32, 0.08);
}

.side-menu strong {
  font-size: 1.42rem;
  line-height: 1;
}

.side-menu span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.25;
}

.side-menu a:hover,
.side-menu button:hover {
  border-color: rgba(15, 91, 203, 0.4);
  background: #eef5ff;
}

img {
  display: block;
  max-width: 100%;
  -webkit-user-drag: none;
  user-select: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(16, 24, 32, 0.08);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(18px);
}

.account-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 170px;
  justify-content: flex-end;
}

.account-actions > a:first-child {
  color: #34423e;
  font-weight: 800;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 190px;
}

.brand img {
  width: 46px;
  height: 46px;
  border-radius: 4px;
  object-fit: contain;
  background: #fff;
  padding: 3px;
}

.brand span {
  display: grid;
  line-height: 1.05;
}

.brand small {
  color: var(--muted);
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  color: #253140;
  font-size: 0.95rem;
  font-weight: 800;
}

.whatsapp,
.actions a,
.actions button,
.search-panel button,
.uploader button {
  border: 0;
  border-radius: 6px;
  background: var(--green);
  color: #fff;
  padding: 12px 16px;
  cursor: pointer;
  font-weight: 700;
}

.hero {
  position: relative;
  min-height: 610px;
  display: grid;
  place-items: center;
  padding: 96px clamp(18px, 5vw, 72px) 76px;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(9, 18, 28, 0.58), rgba(9, 18, 28, 0.48)),
    linear-gradient(90deg, rgba(9, 18, 28, 0.18), rgba(9, 18, 28, 0.08));
}

.hero-content {
  width: min(980px, 100%);
  color: #fff;
  text-align: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 900px;
  margin-inline: auto;
  margin-bottom: 18px;
  font-size: clamp(2.6rem, 6vw, 4.7rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.hero-content > p:not(.eyebrow) {
  max-width: 650px;
  margin-inline: auto;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.12rem;
  line-height: 1.55;
}

.hero-action-groups {
  display: grid;
  gap: 10px;
  width: min(980px, 100%);
  margin: 18px auto 0;
}

.action-group {
  display: grid;
  grid-template-columns: 130px repeat(3, 1fr);
  gap: 8px;
  align-items: stretch;
  padding: 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  box-shadow: 0 12px 34px rgba(16, 24, 32, 0.16);
}

.action-group.secondary {
  grid-template-columns: 170px repeat(4, 1fr);
}

.action-group span {
  display: grid;
  place-items: center;
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-weight: 900;
}

.action-group button {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font-weight: 900;
}

.action-group button:hover {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.search-modes {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  margin: 18px auto 0;
  padding: 4px;
  border-radius: 4px 4px 0 0;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 12px 34px rgba(16, 24, 32, 0.16);
}

.search-modes button {
  min-height: 40px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  padding: 8px 15px;
  font-weight: 900;
}

.search-modes button.active {
  background: var(--green);
  color: #fff;
}

.search-panel {
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr auto;
  gap: 12px;
  width: min(1080px, 100%);
  margin-top: 30px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.portal-search {
  grid-template-columns: minmax(0, 1fr) auto;
  margin-inline: auto;
  border: 0;
  border-radius: 4px;
  padding: 12px;
  width: min(760px, 100%);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.location-field {
  text-align: left;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--white);
  color: var(--ink);
  padding: 10px 12px;
}

.trust-strip,
.landing-actions,
.map-first,
.section-head,
.inventory-layout,
.feature-detail,
.closed-strip,
.map-section,
.region-directory,
.region-grid,
.model-grid,
.publisher,
footer {
  width: min(1180px, calc(100% - 36px));
  margin-inline: auto;
}

.landing-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  transform: translateY(-28px);
}

.landing-actions a {
  display: grid;
  gap: 10px;
  min-height: 150px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  box-shadow: var(--shadow);
}

.landing-actions strong {
  font-size: 1.35rem;
}

.landing-actions span {
  color: var(--muted);
  line-height: 1.55;
}

.map-first {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
}

.map-first h2 {
  margin-bottom: 8px;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.map-first p {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.6;
}

.map-first a {
  flex: 0 0 auto;
  border-radius: 4px;
  background: var(--green);
  color: #fff;
  padding: 13px 18px;
  font-weight: 900;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  transform: translateY(-28px);
  background: var(--line);
  box-shadow: var(--shadow);
}

.trust-strip article {
  min-height: 118px;
  padding: 24px;
  background: #fff;
}

.trust-strip strong,
.trust-strip span {
  display: block;
}

.trust-strip span {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.5;
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  align-items: end;
  padding: 40px 0 20px;
}

.section-head h2,
.feature-detail h2,
.publisher h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.section-head > p {
  max-width: 500px;
  color: var(--muted);
  line-height: 1.6;
}

.section-head.compact {
  width: 100%;
  padding-top: 0;
}

.inventory-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  align-items: start;
}

.filters {
  position: sticky;
  top: 92px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.filters h3 {
  margin-bottom: 12px;
}

.chip {
  display: block;
  width: 100%;
  min-height: 42px;
  margin-bottom: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  text-align: left;
  padding: 8px 12px;
  cursor: pointer;
}

.chip.active {
  border-color: var(--green);
  background: #e6eee9;
  font-weight: 800;
}

.filters hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 14px 0;
}

.note {
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

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

.results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.results-bar span {
  color: var(--muted);
  font-size: 0.92rem;
}

.card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.card-image {
  display: block;
  position: relative;
  aspect-ratio: 4 / 3;
  background: #dce3df;
  color: inherit;
  text-decoration: none;
}

.card-image::after,
.detail-gallery::after,
.preview::after {
  content: "Bertoni & Moya";
  position: absolute;
  right: 10px;
  bottom: 10px;
  z-index: 2;
  border-radius: 4px;
  background: rgba(16, 24, 32, 0.58);
  color: rgba(255, 255, 255, 0.92);
  padding: 5px 8px;
  font-size: 0.74rem;
  font-weight: 900;
  pointer-events: none;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  padding: 6px 10px;
  font-size: 0.76rem;
  font-weight: 900;
}

.badge.closed {
  background: var(--danger);
}

.premium-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  border-radius: 999px;
  background: var(--gold);
  color: #fff;
  padding: 6px 10px;
  font-size: 0.76rem;
  font-weight: 900;
}

.region-tag {
  position: absolute;
  right: 12px;
  bottom: 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  padding: 6px 10px;
  font-size: 0.76rem;
  font-weight: 900;
}

.card-body {
  padding: 18px;
}

.card-body h3 {
  margin-bottom: 9px;
  font-size: 1.18rem;
}

.card-body p {
  color: var(--muted);
  line-height: 1.45;
}

.price {
  display: block;
  margin-bottom: 12px;
  color: var(--green);
  font-size: 1.35rem;
  font-weight: 900;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.facts span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 9px;
  color: #42504c;
  font-size: 0.82rem;
  font-weight: 700;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.card-actions a,
.card-actions button {
  flex: 1 1 96px;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-weight: 800;
}

.card-actions a:first-child {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.card-actions .favorite-action.active {
  border-color: rgba(197, 139, 43, 0.55);
  background: #fff7e8;
  color: #7a4f09;
}

.empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 28px;
  border: 1px dashed #b8c3bd;
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
}

.map-section {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 34px;
  align-items: center;
  padding: 90px 0 30px;
}

.map-copy h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.02;
}

.map-copy p {
  color: var(--muted);
  line-height: 1.65;
}

.zone-list {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.zone-list button {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 14px;
  text-align: left;
}

.zone-list span,
.zone-list small {
  color: var(--muted);
  line-height: 1.45;
}

.zone-list strong {
  font-size: 1.05rem;
}

.south-map {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(47, 97, 115, 0.18), transparent 35%),
    linear-gradient(180deg, #edf4ef, #dbe8e4);
  box-shadow: var(--shadow);
}

.map-preview {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
  background:
    linear-gradient(90deg, transparent 0 23%, rgba(255,255,255,.7) 23.3% 23.8%, transparent 24% 48%, rgba(255,255,255,.7) 48.3% 48.8%, transparent 49% 74%, rgba(255,255,255,.7) 74.3% 74.8%, transparent 75%),
    linear-gradient(0deg, transparent 0 21%, rgba(255,255,255,.7) 21.3% 21.8%, transparent 22% 46%, rgba(255,255,255,.7) 46.3% 46.8%, transparent 47% 72%, rgba(255,255,255,.7) 72.3% 72.8%, transparent 73%),
    radial-gradient(circle at 72% 62%, rgba(15, 91, 203, 0.18), transparent 24%),
    radial-gradient(circle at 32% 38%, rgba(53, 135, 86, 0.18), transparent 28%),
    #dfe8e4;
  box-shadow: var(--shadow);
}

.map-preview::before,
.map-preview::after {
  content: "";
  position: absolute;
  inset: 18% -10% auto -10%;
  height: 14px;
  background: rgba(255, 255, 255, 0.68);
  transform: rotate(-22deg);
}

.map-preview::after {
  inset: auto -12% 24% -12%;
  transform: rotate(16deg);
}

.map-toolbar {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 28px rgba(16, 24, 32, 0.08);
}

.map-toolbar span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.map-preview > button {
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: 2;
  transform: translate(-50%, -50%);
  border: 0;
  border-radius: 4px;
  background: var(--green);
  color: #fff;
  cursor: pointer;
  padding: 8px 10px;
  box-shadow: 0 10px 24px rgba(15, 91, 203, 0.32);
  font-size: 0.82rem;
  font-weight: 900;
}

.map-card {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 3;
  display: grid;
  gap: 4px;
  width: min(260px, calc(100% - 36px));
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 18px 38px rgba(16, 24, 32, 0.14);
}

.map-card span {
  width: fit-content;
  border-radius: 999px;
  background: #fff4dd;
  color: #8a5a11;
  padding: 4px 8px;
  font-size: 0.72rem;
  font-weight: 900;
}

.map-card small {
  color: var(--muted);
}

.south-map::before {
  content: "";
  position: absolute;
  inset: 8% 34% 8% 38%;
  border-radius: 44% 58% 48% 55%;
  background: linear-gradient(180deg, #8ba79b, #365f53);
  transform: rotate(10deg);
}

.maule-map::before {
  inset: 12% 18% 12% 18%;
  border-radius: 44% 38% 52% 46%;
  background:
    linear-gradient(90deg, rgba(47, 97, 115, 0.25), transparent 46%),
    linear-gradient(180deg, #8ba79b, #365f53);
  transform: rotate(-8deg);
}

.south-map::after {
  content: "Maule";
  position: absolute;
  left: 24px;
  bottom: 22px;
  color: rgba(23, 33, 31, 0.42);
  font-size: clamp(2.8rem, 8vw, 6rem);
  font-weight: 900;
  line-height: 0.9;
}

.south-map span {
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: 2;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 999px;
  background: #fff;
  color: var(--green);
  padding: 8px 11px;
  box-shadow: 0 10px 28px rgba(23, 33, 31, 0.16);
  font-size: 0.84rem;
  font-weight: 900;
  white-space: nowrap;
}

.region-directory {
  padding: 80px 0 20px;
}

.region-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.region-grid article {
  display: grid;
  gap: 10px;
  min-height: 220px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.region-grid strong {
  font-size: 1.18rem;
}

.region-grid span {
  color: var(--green);
  font-weight: 800;
  line-height: 1.4;
}

.region-grid p {
  color: var(--muted);
  line-height: 1.55;
}

.region-grid button {
  align-self: end;
  min-height: 40px;
  border: 1px solid var(--green);
  border-radius: 6px;
  background: #fff;
  color: var(--green);
  cursor: pointer;
  font-weight: 900;
}

.feature-detail {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 34px;
  align-items: center;
  padding: 90px 0 30px;
}

.detail-gallery {
  position: relative;
  display: grid;
  grid-template-columns: 1.5fr 0.8fr;
  gap: 10px;
}

.detail-gallery img {
  width: 100%;
  height: 100%;
  min-height: 180px;
  border-radius: 8px;
  object-fit: cover;
}

.detail-gallery > img {
  min-height: 520px;
}

.detail-gallery > div {
  display: grid;
  gap: 10px;
}

.map-thumb {
  min-height: 180px;
  display: grid;
  align-content: end;
  gap: 6px;
  border-radius: 8px;
  padding: 18px;
  background:
    radial-gradient(circle at 35% 42%, rgba(185, 138, 75, 0.78) 0 5px, transparent 6px),
    linear-gradient(90deg, transparent 48%, rgba(255, 255, 255, 0.5) 49%, rgba(255, 255, 255, 0.5) 51%, transparent 52%),
    linear-gradient(0deg, transparent 48%, rgba(255, 255, 255, 0.5) 49%, rgba(255, 255, 255, 0.5) 51%, transparent 52%),
    linear-gradient(135deg, #d9e6df, #9fb7ad);
  color: var(--ink);
}

.map-thumb span {
  width: fit-content;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  padding: 5px 9px;
  font-size: 0.75rem;
  font-weight: 900;
}

.map-thumb strong,
.map-thumb small {
  display: block;
}

.map-thumb small {
  color: #42504c;
  line-height: 1.35;
}

.detail-copy p {
  color: var(--muted);
  line-height: 1.65;
}

.property-sheet {
  margin: 22px 0;
}

.property-sheet h3 {
  margin-bottom: 12px;
  font-size: 1.05rem;
}

.property-sheet > p {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

.sheet-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.sheet-grid div {
  min-height: 72px;
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.sheet-grid small {
  color: #94a3b8;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.sheet-grid .private-field {
  border-color: rgba(197, 139, 43, 0.42);
  background: #fffaf0;
}

.visibility-controls {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  padding: 12px;
}

.visibility-controls summary {
  cursor: pointer;
  font-weight: 900;
}

.visibility-controls > div {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.visibility-controls label {
  grid-template-columns: minmax(0, 1fr) 120px;
  align-items: center;
  gap: 8px;
}

.visibility-controls p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.pending-field {
  color: #94a3b8;
  font-weight: 800;
}

dl {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 24px 0;
}

dl div {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

dt {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

dd {
  margin: 5px 0 0;
  font-weight: 900;
}

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.actions button {
  background: var(--blue);
}

.closed-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.closed-strip .card .card-body {
  padding: 14px;
}

.closed-strip .card-body p,
.closed-strip .card-actions {
  display: none;
}

.model-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding-bottom: 40px;
}

.model-grid article {
  min-height: 180px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.model-grid strong,
.model-grid span {
  display: block;
}

.model-grid strong {
  margin-bottom: 12px;
}

.model-grid span {
  color: var(--muted);
  line-height: 1.55;
}

.lead-forms {
  width: min(1180px, calc(100% - 36px));
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 20px auto 48px;
}

.service-form {
  display: grid;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(16, 24, 32, 0.08);
}

.service-form h2 {
  margin-bottom: 0;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.05;
}

.service-form p {
  color: var(--muted);
  line-height: 1.55;
}

.service-form button {
  min-height: 44px;
  border: 0;
  border-radius: 4px;
  background: var(--green);
  color: #fff;
  cursor: pointer;
  font-weight: 900;
}

.service-form .secondary-action {
  border: 1px solid rgba(15, 91, 203, 0.25);
  background: #eef5ff;
  color: var(--blue);
}

.broker-form {
  border-color: rgba(197, 139, 43, 0.42);
  background: linear-gradient(180deg, #fff, #fffaf0);
}

.publisher {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 36px;
  padding: 96px 0;
  align-items: start;
}

.publisher-copy p,
.publisher-copy li {
  color: var(--muted);
  line-height: 1.65;
}

.publisher-copy ul {
  padding-left: 20px;
}

.publisher-locked {
  min-height: 260px;
  align-content: center;
  padding: 28px;
  border: 1px solid rgba(15, 91, 203, 0.18);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(16, 24, 32, 0.08);
}

.publisher-locked a {
  justify-self: start;
  min-height: 44px;
  display: inline-grid;
  place-items: center;
  margin-top: 10px;
  padding: 0 18px;
  border-radius: 4px;
  background: var(--green);
  color: #fff;
  font-weight: 900;
}

.hidden {
  display: none !important;
}

.upload-note {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid rgba(15, 91, 203, 0.2);
  border-radius: 4px;
  background: #eef5ff;
}

.upload-note span {
  color: var(--muted);
  line-height: 1.55;
}

.uploader {
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.checks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

.checks legend {
  padding: 0 6px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.checks label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 700;
}

.checks input {
  width: 18px;
  min-height: 18px;
}

.preview {
  position: relative;
  min-height: 118px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  align-items: center;
  border: 1px dashed #b8c3bd;
  border-radius: 8px;
  padding: 10px;
  color: var(--muted);
}

.upload-security-note {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.4;
}

.preview img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 6px;
  object-fit: cover;
}

.policy-section {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 28px;
  align-items: start;
  margin: 52px 0 34px;
  padding: 32px;
  border: 1px solid rgba(15, 91, 203, 0.15);
  border-radius: 8px;
  background: #f8fbff;
}

.policy-section h2 {
  margin: 0 0 12px;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
}

.policy-section p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.68;
}

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

.policy-grid article {
  min-height: 118px;
  display: grid;
  align-content: start;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 16px;
}

.policy-grid strong {
  color: var(--ink);
}

.policy-grid span {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px 0 44px;
  border-top: 1px solid var(--line);
}

footer div {
  display: grid;
  gap: 4px;
}

footer span,
footer a {
  color: var(--muted);
}

.version-tag {
  color: #94a3b8;
  font-size: 0.78rem;
}

.seo-tags {
  color: #64748b;
  font-size: 0.78rem;
  line-height: 1.45;
}

.security-notice {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 80;
  transform: translate(-50%, 120%);
  max-width: min(520px, calc(100% - 32px));
  border: 1px solid rgba(15, 91, 203, 0.22);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  padding: 12px 14px;
  box-shadow: 0 16px 42px rgba(16, 24, 32, 0.18);
  opacity: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
  font-size: 0.92rem;
  pointer-events: none;
}

.security-notice.show {
  transform: translate(-50%, 0);
  opacity: 1;
}

.account-panel {
  padding: 84px 0 96px;
}

.account-panel.top-access {
  padding: 22px 0 18px;
  background: #eef5ff;
  border-bottom: 1px solid rgba(15, 91, 203, 0.12);
}

.account-panel.top-access .section-head {
  margin-bottom: 12px;
}

.account-panel.top-access .master-box {
  padding: 18px;
}

.account-layout {
  width: min(1180px, calc(100% - 36px));
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 18px;
  margin: 0 auto 22px;
}

.account-layout.login-only {
  max-width: 840px;
  grid-template-columns: minmax(280px, 0.95fr);
}

.master-box {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 24px;
  border: 1px solid rgba(15, 91, 203, 0.18);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(16, 24, 32, 0.08);
}

.welcome-links {
  display: grid;
  gap: 12px;
}

.welcome-links a {
  display: grid;
  gap: 7px;
  min-height: 124px;
  align-content: center;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(16, 24, 32, 0.08);
}

.welcome-links strong {
  color: var(--ink);
  font-size: 1.18rem;
}

.welcome-links span {
  color: var(--muted);
  line-height: 1.45;
}

.master-box p {
  color: var(--muted);
  line-height: 1.55;
}

.login-form {
  display: grid;
  gap: 12px;
}

.login-form button,
.logout-button {
  min-height: 42px;
  border: 0;
  border-radius: 4px;
  background: var(--green);
  color: #fff;
  cursor: pointer;
  font-weight: 900;
}

.logout-button {
  background: #253140;
}

.session-card {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid rgba(15, 91, 203, 0.18);
  border-radius: 6px;
  background: #eef5ff;
}

.session-card span,
.session-card small {
  color: var(--muted);
}

.master-users {
  display: grid;
  gap: 10px;
}

.master-users article,
.approval-item {
  display: grid;
  gap: 5px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.master-users span,
.approval-item span,
.approval-item small {
  color: var(--muted);
}

.checkline {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--muted);
  line-height: 1.45;
}

.checkline input {
  width: 18px;
  min-height: 18px;
  margin-top: 2px;
}

.approval-board {
  width: min(1180px, calc(100% - 36px));
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 0 auto;
}

.approval-column {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

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

.board-head h3 {
  margin: 0;
  font-size: 1rem;
}

.board-head span {
  min-width: 34px;
  min-height: 30px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #eef5ff;
  color: var(--green);
  font-weight: 900;
}

.approval-list {
  display: grid;
  gap: 10px;
}

.approval-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.approval-actions button {
  flex: 1;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  font-weight: 800;
}

.approval-actions button:first-child {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.approval-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.empty-mini {
  margin: 0;
  padding: 12px;
  border: 1px dashed #cbd5e1;
  border-radius: 6px;
  color: var(--muted);
}

@media (max-width: 900px) {
  .side-menu {
    position: sticky;
    top: 0;
    left: auto;
    z-index: 25;
    width: 100%;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border-bottom: 1px solid var(--line);
    background: #fff;
  }

  .side-menu a,
  .side-menu button {
    width: 100%;
    min-height: 54px;
    border-width: 0 1px 0 0;
    border-radius: 0;
    box-shadow: none;
    padding: 8px;
    text-align: center;
  }

  .side-menu strong {
    font-size: 1.18rem;
  }

  .side-menu span {
    font-size: 0.66rem;
  }

  .topbar {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .account-actions {
    min-width: auto;
  }

  nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero {
    min-height: 760px;
    padding-top: 120px;
  }

  .search-panel,
  .portal-search,
  .trust-strip,
  .landing-actions,
  .action-group,
  .action-group.secondary,
  .inventory-layout,
  .feature-detail,
  .map-section,
  .region-grid,
  .model-grid,
  .lead-forms,
  .publisher,
  .policy-section {
    grid-template-columns: 1fr;
  }

  .action-group span {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding-bottom: 8px;
  }

  .map-first {
    align-items: flex-start;
    flex-direction: column;
  }

  .filters {
    position: static;
  }

  .property-grid,
  .closed-strip {
    grid-template-columns: 1fr;
  }

  .account-layout,
  .approval-board {
    grid-template-columns: 1fr;
  }

  .results-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .section-head {
    display: block;
  }

  .detail-gallery {
    grid-template-columns: 1fr;
  }

  .detail-gallery > img {
    min-height: 330px;
  }

  .form-row,
  .checks,
  .sheet-grid,
  .visibility-controls > div,
  .visibility-controls label,
  dl {
    grid-template-columns: 1fr;
  }

  .south-map {
    min-height: 430px;
  }

  .preview {
    grid-template-columns: repeat(2, 1fr);
  }

  .policy-section {
    padding: 22px;
  }

  .policy-grid {
    grid-template-columns: 1fr;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
