/* === Airbnb Design System (from AGENTS.md) === */

:root {
  --primary: #ff385c;
  --primary-active: #e00b41;
  --primary-disabled: #ffd1da;
  --primary-error-text: #c13515;
  --primary-error-text-hover: #b32505;
  --luxe: #460479;
  --plus: #92174d;
  --ink: #222222;
  --body: #3f3f3f;
  --muted: #6a6a6a;
  --muted-soft: #929292;
  --hairline: #dddddd;
  --hairline-soft: #ebebeb;
  --border-strong: #c1c1c1;
  --canvas: #ffffff;
  --surface-soft: #f7f7f7;
  --surface-card: #ffffff;
  --surface-strong: #f2f2f2;
  --on-primary: #ffffff;
  --on-dark: #ffffff;
  --legal-link: #428bff;
  --star-rating: #222222;
  --scrim: rgba(0, 0, 0, 0.5);

  --shadow-card: rgba(0, 0, 0, 0.02) 0 0 0 1px,
                 rgba(0, 0, 0, 0.04) 0 2px 6px 0,
                 rgba(0, 0, 0, 0.1) 0 4px 8px 0;

  --radius-none: 0px;
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  --space-xxs: 2px;
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-base: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-xxl: 48px;
  --space-section: 64px;

  --font-sans: 'Airbnb Cereal VF', Circular, -apple-system, system-ui,
               Roboto, 'Helvetica Neue', sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--canvas);
  line-height: 1.5;
}

a {
  color: var(--ink);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
}

/* === Typography === */

.display-xl {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.43;
  letter-spacing: 0;
}

.display-lg {
  font-size: 22px;
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.44px;
}

.display-md {
  font-size: 21px;
  font-weight: 700;
  line-height: 1.43;
  letter-spacing: 0;
}

.display-sm {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.20;
  letter-spacing: -0.18px;
}

.title-md {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0;
}

.title-sm {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0;
}

.body-md {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0;
}

.body-sm {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.43;
  letter-spacing: 0;
}

.caption {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.29;
  letter-spacing: 0;
}

.caption-sm {
  font-size: 13px;
  font-weight: 400;
  line-height: 1.23;
  letter-spacing: 0;
}

.badge {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: 0;
}

.micro-label {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.33;
  letter-spacing: 0;
}

.button-md {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: 0;
}

.button-sm {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.29;
  letter-spacing: 0;
}

/* === Layout === */

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container-narrow {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section {
  padding: var(--space-section) 0;
}

/* === Top Navigation === */

.top-nav {
  background: var(--canvas);
  height: 80px;
  border-bottom: 1px solid var(--hairline);
  position: sticky;
  top: 0;
  z-index: 100;
}

.top-nav .container {
  display: flex;
  align-items: center;
  height: 100%;
  justify-content: space-between;
}

.top-nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.top-nav-logo img {
  height: 44px;
  width: auto;
  border-radius: var(--radius-sm);
}

.top-nav-logo span {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary);
}

.top-nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.top-nav-links a {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink);
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s;
}

.top-nav-links a:hover {
  text-decoration: none;
  border-bottom-color: var(--ink);
}

.top-nav-links a.active {
  border-bottom-color: var(--ink);
}

/* === Buttons === */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  background: var(--primary);
  color: var(--on-primary);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.25;
  border-radius: var(--radius-sm);
  padding: 14px 24px;
  height: 48px;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-primary:hover {
  background: var(--primary-active);
  text-decoration: none;
}

.btn-primary:disabled {
  background: var(--primary-disabled);
  cursor: not-allowed;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  background: var(--canvas);
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.25;
  border-radius: var(--radius-sm);
  padding: 13px 23px;
  height: 48px;
  border: 1px solid var(--ink);
  cursor: pointer;
  transition: background 0.15s;
}

.btn-secondary:hover {
  background: var(--surface-soft);
  text-decoration: none;
}

.btn-tertiary {
  background: transparent;
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  padding: 8px 0;
}

.btn-tertiary:hover {
  text-decoration: underline;
}

.btn-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: var(--on-primary);
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-full);
  padding: 10px 20px;
  border: none;
  cursor: pointer;
  transition: background 0.15s;
}

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

.btn-sm {
  padding: 8px 16px;
  height: 36px;
  font-size: 14px;
  min-width: 100px;
  box-sizing: border-box;
}

.filter-actions .btn-sm {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  min-width: 110px;
}

.btn-danger {
  background: var(--primary-error-text);
  color: var(--on-primary);
  border: none;
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
}

.btn-danger:hover {
  background: var(--primary-error-text-hover);
}

/* === Search / Filter Section === */

.filter-section {
  background: var(--canvas);
  padding: var(--space-lg) 0;
  border-bottom: 1px solid var(--hairline);
}

.filter-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-base);
  align-items: flex-end;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.filter-group label {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.33;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.filter-group select,
.filter-group input {
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.43;
  color: var(--ink);
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  height: 44px;
  min-width: 180px;
  outline: none;
  transition: border-color 0.15s;
}

.filter-group select:focus,
.filter-group input:focus {
  border-color: var(--ink);
  border-width: 2px;
  padding: 9px 11px;
}

.filter-price {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.filter-price input {
  min-width: 100px;
  width: 120px;
}

.filter-actions {
  display: flex;
  gap: var(--space-sm);
  align-items: flex-end;
  padding-bottom: 2px;
}

.deal-type-filter {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}

.deal-type-btn {
  padding: 8px 20px;
  border-radius: var(--radius-full);
  border: 1px solid var(--hairline);
  background: var(--canvas);
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
}

.deal-type-btn:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.deal-type-btn.active {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--canvas);
}

/* === Hero === */

.hero {
  position: relative;
  background-size: cover;
  background-position: center;
  padding: var(--space-xxl) 0;
  text-align: center;
  min-height: 420px;
  display: flex;
  align-items: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.hero h1 {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.43;
  margin-bottom: var(--space-lg);
  color: var(--canvas);
}

.hero-subtitle {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--space-xl);
}

/* === Category Grid === */

.category-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-base);
}

.category-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg);
  background: var(--surface-soft);
  border-radius: var(--radius-md);
  transition: box-shadow 0.2s;
  cursor: pointer;
}

.category-card:hover {
  box-shadow: var(--shadow-card);
  text-decoration: none;
}

.category-card-info h3 {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
}

.category-card-info span {
  font-size: 14px;
  color: var(--muted);
}

.category-card-icon {
  font-size: 32px;
  opacity: 0.6;
}

/* === Property Card === */

.lot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.lot-card {
  background: var(--canvas);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow 0.2s;
  border: 1px solid var(--hairline);
}

.lot-card:hover {
  box-shadow: var(--shadow-card);
}

.lot-card-photo {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--surface-strong);
}

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

.lot-card-photo .no-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--muted-soft);
  font-size: 14px;
}

.lot-card-badge {
  position: absolute;
  top: var(--space-sm);
  left: var(--space-sm);
  background: var(--canvas);
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-card);
}

.lot-card-deal {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  background: var(--primary);
  color: var(--on-primary);
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.lot-card-body {
  padding: var(--space-base);
}

.lot-card-region {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: var(--space-xs);
}

.lot-card-title {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: var(--space-xs);
}

.lot-card-meta {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: var(--space-sm);
}

.lot-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-sm);
  border-top: 1px solid var(--hairline-soft);
}

.lot-card-price {
  font-size: 16px;
  font-weight: 600;
}

.lot-card-discount {
  font-size: 12px;
  color: var(--primary);
  font-weight: 600;
}

.lot-card-original {
  font-size: 12px;
  color: var(--muted-soft);
  text-decoration: line-through;
}

.lot-card-phone {
  font-size: 12px;
  color: var(--muted);
}

/* === Lot Detail === */

.lot-detail {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--space-xxl);
  padding: var(--space-xl) 0;
}

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

.lot-breadcrumbs {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
  font-size: 14px;
  color: var(--muted);
  margin-bottom: var(--space-lg);
}

.lot-breadcrumbs a {
  color: var(--muted);
}

.lot-breadcrumbs a:hover {
  color: var(--ink);
}

.lot-breadcrumbs .sep {
  color: var(--hairline);
}

.lot-header h1 {
  font-size: 22px;
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.44px;
  margin-bottom: var(--space-sm);
}

.lot-header-meta {
  display: flex;
  gap: var(--space-lg);
  font-size: 14px;
  color: var(--muted);
  margin-bottom: var(--space-lg);
}

.lot-gallery {
  margin-bottom: var(--space-xl);
}

.lot-gallery-main {
  aspect-ratio: 16/9;
  background: var(--surface-strong);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: var(--space-sm);
}

.lot-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.lot-gallery-main .no-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--muted-soft);
  font-size: 16px;
}

.lot-gallery-thumbs {
  display: flex;
  gap: var(--space-sm);
  overflow-x: auto;
}

.lot-gallery-thumbs img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: var(--radius-xs);
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.15s;
}

.lot-gallery-thumbs img:hover,
.lot-gallery-thumbs img.active {
  opacity: 1;
}

.lot-description {
  margin-bottom: var(--space-xl);
}

.lot-description h2 {
  font-size: 21px;
  font-weight: 700;
  line-height: 1.43;
  margin-bottom: var(--space-base);
}

.lot-description p {
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--body);
  white-space: pre-wrap;
}

.lot-features {
  margin-bottom: var(--space-xl);
}

.lot-features h2 {
  font-size: 21px;
  font-weight: 700;
  line-height: 1.43;
  margin-bottom: var(--space-base);
}

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

.features-table tr {
  border-bottom: 1px solid var(--hairline-soft);
}

.features-table td {
  padding: var(--space-md) 0;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}

.features-table td:first-child {
  color: var(--muted);
  width: 200px;
}

/* === Price Schedule Sidebar === */

.lot-sidebar {
  position: sticky;
  top: 100px;
  align-self: start;
}

.lot-price-card {
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  box-shadow: var(--shadow-card);
  margin-bottom: var(--space-lg);
}

.lot-price-current {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.43;
  margin-bottom: var(--space-xs);
}

.lot-price-original {
  font-size: 14px;
  color: var(--muted-soft);
  text-decoration: line-through;
  margin-bottom: var(--space-xs);
}

.lot-price-discount {
  font-size: 14px;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: var(--space-base);
}

.lot-price-period {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: var(--space-base);
  line-height: 1.5;
}

.lot-price-card .btn-primary {
  width: 100%;
}

.lot-info-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  margin-bottom: var(--space-base);
}

.lot-info-item {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  line-height: 1.43;
}

.lot-info-label {
  color: var(--muted);
}

.lot-info-value {
  font-weight: 500;
  text-align: right;
}

.lot-deal-badge {
  display: inline-block;
  background: var(--surface-soft);
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-base);
}

/* Price Schedule */

.price-schedule {
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.price-schedule h3 {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: var(--space-base);
}

.schedule-list {
  max-height: 400px;
  overflow-y: auto;
}

.schedule-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm) 0;
  border-bottom: 1px solid var(--hairline-soft);
}

.schedule-item:last-child {
  border-bottom: none;
}

.schedule-item-date {
  font-size: 13px;
  color: var(--muted);
}

.schedule-item-price {
  font-size: 14px;
  font-weight: 500;
}

.schedule-item.active {
  color: var(--primary);
  font-weight: 600;
}

.schedule-item.passed {
  opacity: 0.5;
}

/* === Map === */

.lot-map {
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: var(--space-xl);
}

.lot-map iframe {
  width: 100%;
  height: 350px;
  border: none;
}

.lot-address {
  font-size: 14px;
  color: var(--muted);
  margin-top: var(--space-sm);
}

/* === Similar Lots === */

.similar-section {
  padding: var(--space-section) 0;
  border-top: 1px solid var(--hairline);
}

.similar-section h2 {
  font-size: 21px;
  font-weight: 700;
  line-height: 1.43;
  margin-bottom: var(--space-lg);
}

/* === Modal === */

.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--scrim);
  z-index: 200;
  align-items: center;
  justify-content: center;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: var(--canvas);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.modal-close {
  position: absolute;
  top: var(--space-base);
  right: var(--space-base);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  border: none;
  background: var(--surface-strong);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--ink);
  transition: background 0.15s;
}

.modal-close:hover {
  background: var(--hairline);
}

.modal h2 {
  font-size: 21px;
  font-weight: 700;
  line-height: 1.43;
  margin-bottom: var(--space-lg);
}

/* === Forms === */

.form-group {
  margin-bottom: var(--space-base);
}

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.33;
  color: var(--muted);
  margin-bottom: var(--space-xs);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group label .required {
  color: var(--primary);
}

.form-group input,
.form-group textarea,
.form-group select {
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink);
  background: var(--canvas);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  padding: 14px 12px;
  width: 100%;
  outline: none;
  transition: border-color 0.15s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--ink);
  border-width: 2px;
  padding: 13px 11px;
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

.form-error {
  color: var(--primary-error-text);
  font-size: 13px;
  margin-top: var(--space-xs);
}

.form-success {
  text-align: center;
  padding: var(--space-xl);
}

.form-success h3 {
  font-size: 21px;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.form-success p {
  color: var(--muted);
}

/* === Footer === */

.footer {
  background: var(--canvas);
  padding: var(--space-xxl) 80px;
  border-top: 1px solid var(--hairline);
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--space-lg);
}

.footer-col h4 {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.25;
  margin-bottom: var(--space-base);
}

.footer-col a {
  display: block;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.43;
  color: var(--ink);
  padding: 4px 0;
}

.footer-col a:hover {
  text-decoration: underline;
}

.footer-legal {
  max-width: 1280px;
  margin: var(--space-lg) auto 0;
  padding-top: var(--space-base);
  border-top: 1px solid var(--hairline-soft);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
}

.footer-legal-links {
  display: flex;
  gap: var(--space-lg);
}

.footer-legal-links a {
  color: var(--muted);
  font-size: 13px;
}

.footer-social {
  display: flex;
  gap: var(--space-base);
  margin-top: var(--space-sm);
}

.footer-social a {
  color: var(--muted);
  font-size: 14px;
}

/* === Pagination === */

.pagination {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-xl) 0;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 500;
  transition: all 0.15s;
}

.pagination a {
  border: 1px solid var(--hairline);
  color: var(--ink);
}

.pagination a:hover {
  border-color: var(--ink);
  text-decoration: none;
}

.pagination .active {
  background: var(--ink);
  color: var(--on-dark);
  border-color: var(--ink);
}

.pagination .ellipsis {
  border: none;
}

/* === Contacts Page === */

.contacts-page {
  padding: var(--space-section) 0;
}

.contacts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xxl);
}

.contacts-info h1 {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.43;
  margin-bottom: var(--space-lg);
}

.contacts-info p {
  font-size: 16px;
  color: var(--body);
  margin-bottom: var(--space-xl);
  line-height: 1.5;
}

.contacts-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-base);
}

.contact-item-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  background: var(--surface-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.contact-item-text h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}

.contact-item-text a {
  font-size: 16px;
  font-weight: 400;
  color: var(--ink);
}

.contact-item-text a:hover {
  color: var(--primary);
}

/* === Results Count === */

.results-count {
  font-size: 14px;
  color: var(--muted);
  margin-bottom: var(--space-lg);
}

/* === Empty State === */

.empty-state {
  text-align: center;
  padding: var(--space-xxl);
  color: var(--muted);
}

.empty-state h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

/* === Admin Styles === */

.admin-layout {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 240px;
  background: var(--ink);
  color: var(--on-dark);
  padding: var(--space-lg);
  flex-shrink: 0;
}

.admin-sidebar h2 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: var(--space-xl);
  color: var(--on-dark);
}

.admin-sidebar a {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  padding: var(--space-sm) 0;
  font-size: 14px;
  transition: color 0.15s;
}

.admin-sidebar a:hover {
  color: var(--on-dark);
  text-decoration: none;
}

.admin-sidebar a.active {
  color: var(--on-dark);
  font-weight: 600;
}

.admin-content {
  flex: 1;
  padding: var(--space-xl);
  background: var(--surface-soft);
  min-width: 0;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-xl);
}

.admin-header h1 {
  font-size: 24px;
  font-weight: 700;
}

.admin-card {
  background: var(--canvas);
  border-radius: var(--radius-sm);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.admin-stat {
  background: var(--canvas);
  border-radius: var(--radius-sm);
  padding: var(--space-lg);
  text-align: center;
}

.admin-stat-number {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: var(--space-xs);
}

.admin-stat-label {
  font-size: 14px;
  color: var(--muted);
}

/* Admin Table */

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

.admin-table th,
.admin-table td {
  text-align: left;
  padding: var(--space-md) var(--space-base);
  border-bottom: 1px solid var(--hairline-soft);
  font-size: 14px;
}

.admin-table th {
  font-weight: 600;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.admin-table td a {
  color: var(--ink);
}

.admin-table .actions {
  display: flex;
  gap: var(--space-sm);
}

.admin-table .actions form {
  display: inline;
}

.status-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
}

.status-active {
  background: #e8f5e9;
  color: #2e7d32;
}

.status-draft {
  background: var(--surface-soft);
  color: var(--muted);
}

.status-archived {
  background: #fbe9e7;
  color: #c62828;
}

/* Image upload */

.image-upload-area {
  border: 2px dashed var(--hairline);
  border-radius: var(--radius-sm);
  padding: var(--space-xl);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s;
}

.image-upload-area:hover {
  border-color: var(--primary);
}

.image-upload-area p {
  color: var(--muted);
  font-size: 14px;
}

.image-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-base);
  margin-top: var(--space-base);
}

.image-grid-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface-strong);
}

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

.image-grid-item .delete-btn {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 24px;
  height: 24px;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

/* Admin form */

.admin-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-base);
}

.admin-form-grid .full-width {
  grid-column: 1 / -1;
}

.admin-form-grid .form-group {
  margin-bottom: 0;
}

.features-form {
  margin-top: var(--space-lg);
  padding: var(--space-lg);
  background: var(--surface-soft);
  border-radius: var(--radius-sm);
}

.features-form h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: var(--space-base);
}

/* Login page */

.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: var(--surface-soft);
}

.login-form {
  background: var(--canvas);
  border-radius: var(--radius-md);
  padding: var(--space-xxl);
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow-card);
}

.login-form h1 {
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  margin-bottom: var(--space-xl);
}

.login-error {
  background: #fbe9e7;
  color: var(--primary-error-text);
  padding: var(--space-sm) var(--space-base);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-base);
  font-size: 14px;
  text-align: center;
}

/* === Responsive === */

@media (max-width: 1128px) {
  .lot-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .lot-detail {
    grid-template-columns: 1fr 320px;
  }
}

@media (max-width: 744px) {
  .lot-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .category-grid {
    grid-template-columns: 1fr;
  }
  .lot-detail {
    grid-template-columns: 1fr;
  }
  .lot-sidebar {
    position: static;
  }
  .contacts-grid {
    grid-template-columns: 1fr;
  }
  .footer {
    padding: var(--space-xl);
  }
  .footer-inner {
    grid-template-columns: 1fr;
  }
  .admin-form-grid {
    grid-template-columns: 1fr;
  }
  .admin-stats {
    grid-template-columns: 1fr;
  }
  .top-nav-links a {
    font-size: 14px;
  }
  .filter-grid {
    flex-direction: column;
  }
  .filter-group select,
  .filter-group input {
    min-width: 100%;
    width: 100%;
  }
  .filter-price {
    flex-direction: column;
  }
  .filter-price input {
    width: 100%;
  }
  .features-table td:first-child {
    width: auto;
  }
}

@media (max-width: 480px) {
  .lot-grid {
    grid-template-columns: 1fr;
  }
  .contact-item {
    flex-direction: column;
  }
  .image-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.admin-sidebar .admin-logo {
  display: block;
  width: 120px;
  height: auto;
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-base);
}

.contact-channel-link {
  color: var(--primary);
  font-weight: 500;
}

.contact-channel-link:hover {
  color: var(--primary-active);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.feature-card {
  background: var(--surface-soft);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  text-align: center;
}

.feature-card-icon {
  font-size: 36px;
  margin-bottom: var(--space-base);
}

.feature-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.feature-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.43;
}

.hero-cta {
  margin-top: var(--space-lg);
}

.lot-card-deadline {
  display: block;
  font-size: 12px;
  color: var(--primary);
  font-weight: 600;
  margin-top: var(--space-xs);
}

.lot-card-schedule {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.schedule-arrow {
  color: var(--primary);
  font-weight: bold;
}

.admin-form-group-inline {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.admin-form-group-inline input[type="checkbox"] {
  width: auto;
  height: auto;
}

.coords-inputs {
  display: flex;
  gap: var(--space-base);
}

.coords-inputs .form-group {
  flex: 1;
}
