:root {
  color-scheme: light;
  --bg: #f1ece3;
  --bg-alt: #faf6ef;
  --surface: rgba(255, 252, 247, 0.86);
  --surface-strong: #fffdfa;
  --line: rgba(28, 45, 56, 0.14);
  --text: #1c2d38;
  --muted: #697985;
  --accent: #8c5a36;
  --accent-strong: #5f3a22;
  --highlight: #2f6d62;
  --danger: #9f4034;
  --text-rgb: 28, 45, 56;
  --accent-rgb: 140, 90, 54;
  --accent-strong-rgb: 95, 58, 34;
  --highlight-rgb: 47, 109, 98;
  --shadow: 0 24px 60px rgba(var(--text-rgb), 0.12);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(var(--highlight-rgb), 0.16), transparent 24%),
    linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%);
  font-family: 'Manrope', 'Droid Arabic Naskh', sans-serif;
  position: relative;
}

body[dir='rtl'] {
  font-family: 'Droid Arabic Naskh', 'Manrope', sans-serif;
}

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

h2,
h3,
label span,
th,
.topbar__nav a,
.topbar__language,
.footer__meta span,
.button,
.detail-list li strong,
.property-card__location,
.property-card__price strong,
.property-card__price small,
.property-card__stats dt,
.eyebrow,
.section-title-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

img,
video {
  max-width: 100%;
  display: block;
}

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

.page-bg {
  position: fixed;
  inset: auto;
  z-index: -1;
  border-radius: 999px;
  filter: blur(24px);
  opacity: 0.5;
}

.page-bg--one {
  width: 420px;
  height: 420px;
  background: rgba(var(--highlight-rgb), 0.16);
  top: -120px;
  inset-inline-end: -120px;
}

.page-bg--two {
  width: 320px;
  height: 320px;
  background: rgba(var(--accent-rgb), 0.18);
  bottom: 8%;
  inset-inline-start: -100px;
}

.page-shell {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding-bottom: 4rem;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(16px);
  background: rgba(250, 246, 239, 0.8);
  border-bottom: 1px solid rgba(var(--text-rgb), 0.08);
}

.topbar__inner,
.footer__inner {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.topbar__inner {
  min-height: 86px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
}

.brand__mark {
  width: 48px;
  height: 48px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.brand__text {
  display: flex;
  flex-direction: column;
}

.brand__text strong {
  font-size: 1rem;
}

.brand__text small,
.footer__inner p,
.section__copy,
.detail-note,
.property-card__location,
.empty-state,
.table-wrap small {
  color: var(--muted);
}

.topbar__nav {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.topbar__nav a,
.topbar__language {
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
  font-weight: 600;
}

.topbar__nav a.is-active,
.topbar__language,
.topbar__nav a:hover {
  background: rgba(var(--highlight-rgb), 0.12);
  color: var(--accent-strong);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button--primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff;
  box-shadow: 0 16px 32px rgba(var(--accent-strong-rgb), 0.24);
}

.button--ghost {
  background: rgba(255, 255, 255, 0.64);
  color: var(--text);
  border-color: var(--line);
}

.button--danger {
  background: var(--danger);
  color: #fff;
}

.button--small {
  padding: 0.55rem 0.9rem;
  font-size: 0.92rem;
}

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: currentColor;
  flex: 0 0 auto;
}

.icon svg {
  width: 1em;
  height: 1em;
}

.icon--nav {
  font-size: 1rem;
}

.icon--button,
.icon--inline {
  font-size: 0.98rem;
}

.icon--section {
  font-size: 1.1rem;
  color: var(--accent-strong);
}

.icon--accent {
  color: var(--accent-strong);
}

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

.icon--stat {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 16px;
  font-size: 1.15rem;
  color: var(--accent-strong);
  background: rgba(var(--highlight-rgb), 0.12);
}

.hero,
.section,
.card {
  animation: rise-in 500ms ease both;
}

.hero {
  padding: 3rem 0 2rem;
}

.card,
.flash-banner {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.hero-map {
  display: grid;
  grid-template-columns: 0.95fr 1.35fr;
  gap: 1rem;
  padding: 1rem;
  border-radius: 36px;
  overflow: hidden;
}

.hero-map__copy,
.hero-map__visual {
  display: grid;
  gap: 1rem;
}

.hero-map__copy {
  align-content: start;
  padding: clamp(1.2rem, 2vw, 2rem);
}

.hero-map__copy h1,
.section__heading h1,
.section__heading h2,
.detail-hero h1,
.state-card h1,
.auth-card h1 {
  font-family: 'Droid Arabic Naskh', 'Manrope', sans-serif;
  letter-spacing: -0.03em;
  margin: 0;
}

.hero-map__copy h1 {
  font-size: clamp(2.2rem, 6vw, 3.8rem);
  line-height: 1.2;
  max-width: 10ch;
}

.hero-map__copy p,
.section__copy,
.detail-hero__location,
.prose-block p,
.auth-card p {
  font-size: 1.02rem;
  line-height: 1.8;
}

.hero-map__visual {
  position: relative;
}

.hero-map__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.hero-map__stat {
  padding: 1rem;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(var(--text-rgb), 0.08);
}

.hero-map__stat strong {
  display: block;
  font-size: 1.65rem;
}

.hero-map__stat span,
.hero-map__caption,
.hero-map__floating-card span {
  color: var(--muted);
}

.hero-map__caption {
  margin: 0;
}

.hero-map__floating-card {
  position: absolute;
  inset-block-end: 1rem;
  inset-inline-start: 1rem;
  z-index: 400;
  max-width: min(320px, calc(100% - 2rem));
  padding: 1rem 1.1rem;
  border-radius: 22px;
  background: rgba(255, 252, 247, 0.92);
  box-shadow: 0 18px 34px rgba(var(--text-rgb), 0.18);
  display: grid;
  gap: 0.35rem;
}

.hero-map__floating-card strong {
  font-size: 1.05rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--highlight);
}

.hero__actions,
.header-actions,
.form-actions,
.table-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.section {
  padding: 1rem 0 0;
}

.section--top-gap {
  padding-top: 2rem;
}

.section__heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.section__heading--tight {
  margin-bottom: 1rem;
}

.text-link {
  color: var(--accent-strong);
  font-weight: 700;
}

.form-help {
  margin: 0;
  color: var(--muted);
}

.detail-contact {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  width: fit-content;
  padding: 0.65rem 0.9rem;
  border-radius: 999px;
  background: rgba(var(--highlight-rgb), 0.1);
  color: var(--accent-strong);
  font-weight: 700;
}

.detail-contact span[dir='ltr'] {
  color: var(--text);
}

.card-subtle {
  padding: 1rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(var(--text-rgb), 0.08);
}

.property-grid,
.stats-grid,
.media-grid {
  display: grid;
  gap: 1rem;
}

.property-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.property-filters__field {
  display: grid;
  gap: 0.45rem;
}

.property-filters__actions {
  display: flex;
  align-items: end;
}

.services-page,
.services-hero,
.services-hero__body,
.services-grid,
.service-card,
.services-cta {
  display: grid;
  gap: 1rem;
}

.services-hero {
  padding: 1.2rem;
}

.services-hero__heading {
  margin-bottom: 0;
}

.services-hero__body {
  grid-template-columns: 0.8fr 1.2fr;
  align-items: start;
}

.services-hero__lead {
  align-content: start;
}

.services-hero__lead h2,
.services-cta h2,
.service-card h3 {
  margin: 0;
}

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

.service-card {
  padding: 1.15rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(var(--text-rgb), 0.08);
}

.service-card p,
.services-hero__lead p,
.services-cta p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.services-cta {
  grid-template-columns: 1fr auto;
  align-items: center;
}

.property-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.property-card,
.detail-layout,
.detail-hero,
.property-showcase,
.form-grid,
.feature-row {
  display: grid;
  gap: 1rem;
}

.property-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: var(--shadow);
}

.property-card__media {
  height: 240px;
  background: linear-gradient(135deg, rgba(var(--highlight-rgb), 0.14), rgba(var(--accent-rgb), 0.18));
}

.property-card__media img,
.media-card img,
.media-select-card img,
.media-card video,
.media-select-card video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.property-card__placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--accent-strong);
}

.property-card__body {
  padding: 1.2rem;
}

.property-card__badges,
.detail-list ul,
.feature-rows {
  display: grid;
  gap: 0.75rem;
}

.property-card__badges {
  grid-template-columns: repeat(2, max-content);
}

.property-card__badges span,
.flash-banner,
.stat-card span,
.detail-hero__spec span {
  font-size: 0.88rem;
  font-weight: 700;
}

.property-card__badges span,
.flash-banner {
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  background: rgba(var(--highlight-rgb), 0.1);
  color: var(--accent-strong);
}

.property-card__price,
.detail-hero__price {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  margin: 1rem 0;
}

.property-card__price strong,
.detail-hero__price strong,
.stat-card strong {
  font-size: 1.5rem;
}

.property-card__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0;
}

.property-card__stats div,
.detail-hero__spec,
.stat-card {
  background: rgba(255, 255, 255, 0.6);
  border-radius: 18px;
  padding: 0.85rem;
}

.section-title-with-icon {
  margin: 0;
}

.property-card__stats dt {
  color: var(--muted);
  font-size: 0.85rem;
}

.property-card__stats dd {
  margin: 0.3rem 0 0;
  font-weight: 800;
}

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

.property-showcase {
  grid-template-columns: 1.7fr 0.9fr;
  align-items: start;
}

.property-showcase__gallery,
.property-showcase__overview {
  display: grid;
  gap: 1rem;
}

.property-showcase__gallery {
  padding: 1rem;
}

.property-slider,
.property-slider__viewport {
  position: relative;
}

.property-showcase__primary-media,
.property-showcase__thumb,
.property-showcase__empty {
  margin: 0;
  overflow: hidden;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.7);
}

.property-showcase__primary-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.property-showcase__thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.9rem;
}

.property-showcase__thumb {
  border: 2px solid transparent;
  transition: border-color 160ms ease, transform 160ms ease;
}

.property-showcase__thumb.is-active {
  border-color: rgba(var(--highlight-rgb), 0.52);
}

.property-showcase__thumb:hover {
  transform: translateY(-2px);
}

.property-showcase__thumb img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.media-zoom-button {
  width: 100%;
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.media-zoom-button img {
  width: 100%;
}

.property-slider__nav,
.property-slider__counter {
  position: absolute;
  z-index: 2;
}

.property-slider__nav {
  inset-block-start: 50%;
  transform: translateY(-50%);
  width: 54px;
  height: 54px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 252, 247, 0.9);
  box-shadow: 0 12px 26px rgba(var(--text-rgb), 0.18);
  color: var(--accent-strong);
  font-size: 2.2rem;
  cursor: pointer;
}

.property-slider__nav--prev {
  inset-inline-start: 1rem;
}

.property-slider__nav--next {
  inset-inline-end: 1rem;
}

.property-slider__counter {
  inset-inline-end: 1rem;
  inset-block-end: 1rem;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  background: rgba(var(--text-rgb), 0.74);
  color: #fff;
  font-weight: 700;
}

.property-showcase__empty {
  min-height: 360px;
  display: grid;
  place-items: center;
  color: var(--muted);
  font-weight: 700;
}

.property-showcase__overview {
  align-content: start;
}

.property-showcase__overview h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.1;
}

.detail-layout {
  grid-template-columns: 1.5fr 0.9fr;
  align-items: start;
}

.detail-layout__main,
.detail-layout__sidebar,
.stack-form,
.property-form,
.form-section,
.existing-media,
.auth-card,
.state-card {
  display: grid;
  gap: 1rem;
}

.card,
.auth-card,
.state-card {
  border-radius: var(--radius-lg);
  padding: 1.4rem;
}

.detail-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.detail-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}

.detail-list li:last-child {
  border-bottom: 0;
}

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

.media-grid--gallery {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.map-section {
  padding: 1rem;
}

.map-picker-card {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.48);
  border: 1px solid rgba(var(--text-rgb), 0.08);
}

.leaflet-map {
  width: 100%;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(var(--text-rgb), 0.1);
}

.leaflet-map--large {
  min-height: 520px;
}

.leaflet-map--hero {
  min-height: 620px;
}

.leaflet-map--detail {
  min-height: 320px;
}

.leaflet-map--picker {
  min-height: 420px;
}

.map-picker-status {
  margin: 0;
  color: var(--muted);
}

.map-picker-status strong {
  color: var(--text);
}

.upload-queues {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.upload-queue {
  display: grid;
  gap: 0.85rem;
}

.upload-queue h3 {
  margin: 0;
}

.upload-queue__list {
  display: grid;
  gap: 0.75rem;
}

.upload-queue__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(var(--text-rgb), 0.08);
}

.upload-queue__meta {
  display: grid;
  gap: 0.2rem;
}

.upload-queue__meta span,
.empty-state--tight {
  color: var(--muted);
  font-size: 0.92rem;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: 2rem;
  background: rgba(11, 23, 34, 0.88);
  backdrop-filter: blur(10px);
}

.lightbox[hidden] {
  display: none;
}

.lightbox__figure {
  margin: 0;
  display: grid;
  gap: 1rem;
  justify-items: center;
}

.lightbox__image {
  max-width: min(92vw, 1280px);
  max-height: 78vh;
  border-radius: 24px;
  object-fit: contain;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.lightbox__caption {
  color: rgba(255, 255, 255, 0.82);
  text-align: center;
}

.lightbox__close,
.lightbox__nav {
  border: 0;
  color: #fff;
  cursor: pointer;
}

.lightbox__close {
  position: absolute;
  inset-block-start: 1.25rem;
  inset-inline-end: 1.25rem;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 2rem;
  background: rgba(255, 255, 255, 0.14);
}

.lightbox__nav {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  font-size: 2.6rem;
  background: rgba(255, 255, 255, 0.12);
}

body.has-lightbox-open {
  overflow: hidden;
}

.map-popup {
  display: grid;
  gap: 0.45rem;
  min-width: 160px;
}

.map-popup strong {
  font-size: 1rem;
}

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

.map-popup__image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 12px;
}

.map-popup__link {
  color: var(--accent-strong);
  font-weight: 700;
}

.media-grid--compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.media-card,
.media-select-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid var(--line);
}

.media-card img,
.media-card video,
.media-select-card img,
.media-select-card video {
  aspect-ratio: 4 / 3;
}

.media-select-card {
  padding: 0.75rem;
}

.media-select-card input {
  margin-bottom: 0.75rem;
}

.narrow-state {
  display: flex;
  justify-content: center;
}

.auth-card,
.state-card {
  width: min(560px, 100%);
}

.stack-form label,
.form-grid label,
.feature-row input,
.form-grid textarea,
.form-grid select {
  display: grid;
  gap: 0.5rem;
}

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

.form-grid--wide {
  grid-template-columns: 1fr;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(var(--text-rgb), 0.14);
  background: rgba(255, 255, 255, 0.75);
  border-radius: 16px;
  padding: 0.85rem 1rem;
  color: var(--text);
}

textarea {
  resize: vertical;
}

.checkbox-row {
  grid-template-columns: auto 1fr;
  align-items: center;
}

.checkbox-row input {
  width: auto;
}

.feature-row {
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  align-items: end;
}

.delete-form {
  margin-top: 1rem;
}

.stats-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.table-card,
.table-wrap {
  overflow-x: auto;
}

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

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

.flash-banner,
.error-banner {
  width: min(1180px, calc(100% - 2rem));
  margin: 1rem auto 0;
  border-radius: 20px;
}

.error-banner {
  background: rgba(165, 61, 47, 0.12);
  border: 1px solid rgba(165, 61, 47, 0.2);
  color: #7d271d;
  padding: 1rem 1.2rem;
}

.footer {
  padding: 0 0 2rem;
}

.footer__inner {
  padding: 1.2rem 1.4rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.65);
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.footer__icon-wrap {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: rgba(var(--highlight-rgb), 0.1);
}

.footer__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  color: var(--muted);
}

.footer__contact {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  background: rgba(var(--highlight-rgb), 0.1);
  color: var(--accent-strong);
  font-weight: 700;
}

.footer__contact span[dir='ltr'] {
  color: var(--text);
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 960px) {
  .hero,
  .hero-map,
  .detail-hero,
  .property-showcase,
  .detail-layout,
  .property-grid,
  .stats-grid,
  .media-grid--compact {
    grid-template-columns: 1fr;
  }

  .property-grid,
  .media-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .services-hero__body,
  .services-cta,
  .services-grid {
    grid-template-columns: 1fr;
  }

  .property-filters {
    grid-template-columns: 1fr;
  }

  .upload-queues {
    grid-template-columns: 1fr;
  }

  .hero-map__stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .topbar__inner,
  .section__heading,
  .footer__inner,
  .feature-row,
  .form-grid,
  .topbar__nav {
    grid-template-columns: 1fr;
  }

  .topbar__inner,
  .section__heading,
  .footer__inner {
    display: grid;
  }

  .topbar__nav {
    display: flex;
  }
}

@media (max-width: 640px) {
  .page-shell,
  .topbar__inner,
  .footer__inner,
  .flash-banner,
  .error-banner {
    width: min(100% - 1rem, 1180px);
  }

  .property-grid,
  .media-grid,
  .property-card__stats,
  .hero-map__stats,
  .detail-hero__summary,
  .stats-grid,
  .feature-row,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .upload-queue__item,
  .lightbox {
    grid-template-columns: 1fr;
  }

  .upload-queue__item {
    align-items: start;
  }

  .lightbox {
    padding: 1rem;
  }

  .property-slider__nav {
    width: 46px;
    height: 46px;
    font-size: 1.9rem;
  }

  .lightbox__nav {
    width: 52px;
    height: 52px;
    justify-self: center;
  }

  .hero-map {
    padding: 0.75rem;
  }

  .leaflet-map--large {
    min-height: 380px;
  }

  .leaflet-map--hero {
    min-height: 420px;
  }
}