:root {
  --bg: #f5f1ea;
  --surface: #ffffff;
  --surface-soft: #f3ede5;
  --line: #e5ddd2;
  --text: #161616;
  --muted: #6d685f;
  --accent: #ff7f34;
  --shadow: 0 20px 48px rgba(37, 31, 24, 0.08);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 16px;
  --font-display: Georgia, "Times New Roman", serif;
  --font-body: "Avenir Next", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #faf7f2 0%, #f4eee6 100%);
  color: var(--text);
  font-family: var(--font-body);
}

body.drawer-open {
  overflow: hidden;
}

a {
  color: inherit;
}

.listings-shell,
.detail-shell {
  width: min(1080px, calc(100vw - 28px));
  margin: 0 auto;
  padding: 24px 0 56px;
}

.listings-header,
.detail-header,
.results-toolbar,
.listing-row-card,
.drawer-header,
.drawer-footer,
.group-header,
.detail-hero {
  display: flex;
  gap: 16px;
}

.listings-header,
.detail-header,
.results-toolbar,
.drawer-header,
.drawer-footer,
.group-header,
.sidebar-header {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-badge {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: var(--accent);
  color: white;
  display: grid;
  place-items: center;
  font-weight: 700;
}

.brand-text {
  color: var(--accent);
  font-size: 1.58rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: lowercase;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-link {
  color: var(--muted);
  text-decoration: none;
}

.primary-button,
.secondary-button,
.icon-button,
.segment-button,
.chip-button,
.link-button {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 999px;
  min-height: 46px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font: inherit;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.primary-button {
  background: var(--accent);
  color: white;
  box-shadow: 0 14px 28px rgba(255, 127, 52, 0.24);
}

.secondary-button,
.segment-button,
.chip-button,
.icon-button {
  background: var(--surface);
  color: var(--text);
  border-color: var(--line);
}

.link-button,
.text-button {
  min-height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

.text-button {
  color: var(--accent);
  font-size: 0.95rem;
  font-family: var(--font-body);
  margin-right: 8px;
}

.icon-button {
  width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 0;
  border-radius: 12px;
  background: var(--surface-soft);
  display: grid;
  place-items: center;
  font-size: 24px;
  line-height: 1;
}

.primary-button:hover,
.secondary-button:hover,
.segment-button:hover,
.chip-button:hover,
.icon-button:hover {
  transform: translateY(-1px);
}

.listings-layout {
  display: grid;
  gap: 32px;
  margin-top: 24px;
  align-items: start;
}

/* Desktop Sidebar Grid */
@media (min-width: 1024px) {
  .listings-layout {
    grid-template-columns: 320px 1fr;
    width: 100%;
  }
}

.results-container {
  display: grid;
  gap: 24px;
  min-width: 0;
}

.filter-sidebar {
  display: none;
  /* Hidden on mobile by default */
  position: sticky;
  top: 24px;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  flex-direction: column;
  gap: 16px;
  /* Slightly tighter gap */
}

@media (min-width: 1024px) {
  .filter-sidebar {
    display: flex;
  }
}

.sidebar-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 24px;
  /* More centered, subtle shadow for modular cards */
  box-shadow: 0 4px 20px rgba(37, 31, 24, 0.04);
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.sidebar-header h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  /* Removed bold for a cleaner look */
}

/* Results toolbar removed in structural redesign */

.sidebar-card .field span {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 12px;
  display: block;
}

/* sortFilter specific overrides removed for consistency */

@media (max-width: 1023px) {
  .results-toolbar {
    margin: 0;
    border-radius: var(--radius-md);
    background: transparent;
    border: 0;
    padding: 0;
    backdrop-filter: none;
  }

  .controls-head {
    display: none;
    /* Count and Sort handled by bottom bar */
  }

  .active-filter-ribbon {
    padding: 0 4px 12px;
  }
}



.segmented-control,
.chip-list,
.active-filter-ribbon,
.detail-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.segment-button.is-active,
.chip-button.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.field {
  display: block;
}

.field span,
.group-header label {
  display: block;
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.compact-field {
  min-width: 220px;
}

input,
select,
button {
  font: inherit;
}

input[type="text"],
select,
input[type="range"] {
  width: 100%;
}

input[type="text"],
select {
  min-height: 52px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
}

input[type="range"] {
  accent-color: var(--accent);
}

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

.field-budget {
  grid-column: 1 / -1;
}

/* Custom Multiselect */
.filter-group-stack {
  display: grid;
  gap: 24px;
}

.filter-section {
  display: grid;
  gap: 10px;
}

.section-label {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.custom-multiselect {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  overflow: hidden;
  transition: border-color 200ms ease;
}

.multiselect-search {
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}

.search-input {
  border: 0 !important;
  background: transparent !important;
  min-height: 32px !important;
  padding: 4px 0 !important;
  font-size: 0.95rem !important;
  box-shadow: none !important;
}

.full-select {
  width: 100%;
  min-height: 48px;
  padding: 0 40px 0 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2216%22%20height%3D%2216%22%20viewBox%3D%220%200%2024%2024%22%20fill%3D%22none%22%20stroke%3D%22%236d685f%22%20stroke-width%3D%222%22%20stroke-linecap%3D%22round%22%20stroke-linejoin%3D%22round%22%3E%3Cpolyline%20points%3D%226%209%2012%2015%2018%209%22%3E%3C%2Fpolyline%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  transition: border-color 180ms ease, box-shadow 180ms ease;
  cursor: pointer;
}

.full-select:hover {
  border-color: var(--accent);
}

.full-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 127, 52, 0.1);
}

.multiselect-options {
  max-height: 200px;
  overflow-y: auto;
  padding: 4px 0;
}

.multiselect-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  padding: 8px;
  gap: 4px;
}

.multiselect-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 0.92rem;
  user-select: none;
  transition: background 150ms ease;
  border-radius: 8px;
  margin: 0 4px;
}

.multiselect-option:hover {
  background: var(--surface-soft);
}

.multiselect-option.is-selected {
  background: rgba(255, 127, 52, 0.08);
  color: var(--accent);
}

.multiselect-option input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--accent);
}

/* Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
  width: 6px;
}

.custom-scrollbar::-webkit-scrollbar-track {
  background: transparent;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 10px;
}

.active-filter-ribbon {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 0 8px;
  scrollbar-width: none;
}

.active-filter-ribbon::-webkit-scrollbar {
  display: none;
}


.pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--text);
  border: 1px solid var(--line);
  font-size: 0.9rem;
}

.subdued-pill {
  color: var(--muted);
}

.results-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.listing-row-card {
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  padding: 0;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 4px 12px rgba(22, 22, 22, 0.04);
  transition: transform 200ms ease, box-shadow 200ms ease;
  border-radius: var(--radius-lg);
}

.listing-row-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(22, 22, 22, 0.08);
}

.listing-row-media {
  width: 100%;
  background: linear-gradient(135deg, #f6efe6, #eee4d8);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: stretch;
  justify-content: center;
  aspect-ratio: 16 / 11;
}

.listing-row-media-stage {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.listing-row-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  transition: opacity 220ms ease;
}

.listing-row-media-dots {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: flex;
  justify-content: center;
  gap: 6px;
}

.listing-row-media-dots span {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(22, 22, 22, 0.22);
  transition: transform 180ms ease, background 180ms ease;
  cursor: pointer;
}

.listing-row-media-dots span:hover {
  background: rgba(22, 22, 22, 0.4);
  transform: scale(1.2);
}

.listing-row-media-dots span.is-active {
  background: var(--accent);
  transform: scale(1.3);
}

.is-placeholder {
  object-fit: cover;
  object-position: center center;
}

/* Removed "Preview unavailable" text in favor of placeholder image */

.listing-row-content {
  flex: 1;
  padding: 18px;
  display: grid;
  gap: 14px;
}

.listing-row-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: end;
}

.listing-row-copy {
  min-width: 0;
}

.listing-row-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.3rem;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.listing-row-locality,
.listing-row-support,
.listing-row-desktop-hint,
.listing-row-price-note,
.meta-value-muted {
  color: var(--muted);
}

.listing-row-locality,
.listing-row-support,
.listing-row-desktop-hint {
  margin: 6px 0 0;
  line-height: 1.45;
}

.listing-row-locality {
  font-size: 0.98rem;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.listing-row-support {
  font-size: 0.96rem;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.listing-row-desktop-hint {
  display: none;
  font-size: 0.92rem;
}

.listing-row-price {
  display: block;
  font-size: 1.18rem;
  font-weight: 700;
  text-align: left;
}

.listing-row-price-block {
  min-width: 0;
}

.listing-row-price-note {
  font-size: 0.88rem;
}

.listing-row-footer {
  display: flex;
  justify-content: flex-start;
  gap: 12px;
  align-items: center;
  margin-top: 2px;
}

.listing-row-footer .primary-button {
  width: 100%;
}

.contact-reveal {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-reveal a {
  color: var(--text);
}

.filter-drawer {
  position: fixed;
  inset: 0;
  z-index: 1000;
  /* Way above the bottom bar's 100 */
}

.filter-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(27, 24, 20, 0.28);
}

.filter-drawer-panel,
.sort-drawer-panel {
  position: absolute;
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: transform 300ms cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
  height: 100%;
}

.filter-drawer-panel {
  top: 0;
  right: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  border-radius: 0;
}

@media (min-width: 641px) {
  .filter-drawer-panel {
    width: 400px;
    height: 100vh;
  }
}

.drawer-body {
  overflow: auto;
  padding-right: 4px;
}

.filter-group {
  margin-top: 24px;
}

.empty-state {
  min-height: 260px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
}

.detail-layout {
  display: grid;
  gap: 32px;
  margin-top: 32px;
}

.detail-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
}

.detail-copy h1 {
  margin: 8px 0;
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1.1;
}

.detail-copy p {
  margin: 4px 0;
  font-size: 1.1rem;
}

.detail-price {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}

.detail-note {
  color: var(--muted);
}

.detail-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.detail-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.detail-meta-card {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 24px;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 4px 12px rgba(22, 22, 22, 0.04);
}

.meta-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  font-weight: 600;
}

.detail-meta-card strong {
  font-size: 1.25rem;
  color: var(--text);
}

.detail-section {
  display: grid;
  gap: 16px;
}

.detail-section h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.8rem;
}

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

.gallery-card {
  background: var(--surface-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.gallery-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}

.gallery-card:hover .gallery-image {
  transform: scale(1.05);
}

.detail-section-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  align-items: start;
}

.detail-list {
  display: grid;
  gap: 16px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.detail-contact {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 32px;
  border-radius: var(--radius-xl);
  display: grid;
  gap: 20px;
  box-shadow: var(--shadow);
}

.contact-reveal {
  display: grid;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px dotted var(--line);
}

.contact-reveal span {
  display: block;
}

.contact-reveal a {
  font-weight: 700;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Mobile Action Bar */
.mobile-action-bar {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  align-items: center;
  background: var(--text);
  color: white;
  padding: 6px;
  border-radius: 100px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.3);
  min-width: 250px;
  border: 4px solid rgba(255, 255, 255, 0.08);
}

.drawer-open .mobile-action-bar {
  display: none !important;
}

@media (min-width: 1024px) {
  .mobile-action-bar {
    display: none !important;
  }
}

.action-button {
  background: transparent;
  border: 0;
  color: white;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  flex: 1;
  justify-content: center;
  border-radius: 100px;
  transition: background 200ms ease;
}

.action-button:active {
  background: rgba(255, 255, 255, 0.1);
}

.action-divider {
  width: 1px;
  height: 24px;
  background: rgba(255, 255, 255, 0.15);
}

.filter-count-badge {
  background: var(--accent);
  color: white;
  font-size: 0.68rem;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  line-height: 1;
}

/* Sort Drawer Panel */
.sort-drawer-panel {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  border-radius: 28px 28px 0 0;
  padding: 24px 24px 40px;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.1);
}

.sort-options {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.sort-option-btn {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  text-align: left;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 180ms ease;
  color: var(--text);
}

.sort-option-btn.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  box-shadow: 0 8px 20px rgba(255, 127, 52, 0.25);
}


.detail-contact {
  display: grid;
  gap: 12px;
}

.hidden {
  display: none !important;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible {
  outline: 2px solid #8a7c67;
  outline-offset: 3px;
}

@media (max-width: 900px) {

  .listing-row-card,
  .detail-hero,
  .detail-section-grid,
  .results-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .controls-head {
    align-items: stretch;
  }

  .listing-row-media {
    width: 100%;
    aspect-ratio: 16 / 11;
  }

  .detail-meta-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {

  .listings-shell,
  .detail-shell {
    width: min(calc(100vw - 20px), 100%);
    padding-top: 16px;
  }

  .listings-header,
  .detail-header,
  .listing-row-top,
  .listing-row-footer,
  .drawer-header,
  .drawer-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .listings-layout,
  .detail-layout {
    margin-top: 0;
  }

  .header-actions {
    justify-content: space-between;
  }

  .controls-actions {
    flex-direction: column;
    align-items: stretch;
  }

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

  .listing-row-price-block {
    min-width: 0;
  }

  .listing-row-price,
  .listing-row-price-note {
    text-align: left;
  }

  .compact-field {
    min-width: 0;
  }

  .listings-header,
  .detail-header,
  .results-toolbar,
  .quick-purpose,
  .detail-hero,
  .detail-section,
  .gallery-card,
  .filter-drawer-panel {
    padding: 18px;
  }
}

@media (min-width: 721px) {
  .listing-row-card {
    grid-template-columns: minmax(280px, 320px) minmax(0, 1fr);
    height: 300px;
  }

  .listing-row-media {
    height: 100%;
    aspect-ratio: auto;
  }

  .listing-row-content {
    padding: 24px;
    height: 100%;
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 12px;
  }

  .listing-row-top {
    align-items: flex-start;
  }

  .listing-row-footer {
    justify-content: flex-end;
  }

  .listing-row-title {
    font-size: 1.48rem;
  }

  .listing-row-price {
    text-align: right;
    font-size: 1.32rem;
  }

  .listing-row-price-note {
    display: block;
    text-align: right;
  }

  .listing-row-desktop-hint {
    display: block;
  }

  .listing-row-footer .primary-button {
    width: auto;
    min-width: 150px;
  }
}

/* Sticky Action Bar */
.sticky-action-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.08);
  z-index: 100;
  display: flex;
  justify-content: center;
}

.sticky-bar-content {
  width: min(1080px, 100%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.sticky-price-info {
  display: flex;
  flex-direction: column;
}

.sticky-price {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}

.sticky-label {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 4px;
}

#stickyBarAction {
  display: flex;
  align-items: center;
}

.revealed-contact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: right;
  font-size: 0.95rem;
}

.revealed-contact strong {
  color: var(--text);
}

.revealed-contact a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

/* Compensate for sticky bar */
.detail-shell {
  padding-bottom: 120px;
}

@media (max-width: 640px) {
  .sticky-price {
    font-size: 1.2rem;
  }

  .revealed-contact {
    font-size: 0.85rem;
  }
}

/* SEO and Footer Styles */
.main-footer {
  padding: 60px 0;
  margin-top: 80px;
  border-top: 1px solid var(--line);
  color: var(--text);
}

.footer-container {
  width: min(1080px, calc(100vw - 28px));
  margin: 0 auto;
}

.footer-brand .brand-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  display: block;
  margin-bottom: 8px;
}

.footer-brand p {
  color: var(--muted);
  margin-bottom: 24px;
}

.footer-links {
  display: flex;
  gap: 24px;
  margin-bottom: 32px;
}

.footer-links a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.footer-links a:hover {
  opacity: 1;
}

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 640px) {
  .main-footer {
    padding: 40px 0;
    margin-top: 40px;
  }

  .footer-links {
    flex-direction: column;
    gap: 12px;
  }
}