/* ==========================================================================
   PropertyForRent — shared stylesheet for index / listings / details
   ========================================================================== */

:root {
  --color-primary: #1a56b0;
  --color-primary-dark: #0f3d85;
  --color-primary-light: #eaf1fb;
  --color-accent: #ff8a3d;
  --color-text: #14213d;
  --color-text-light: #6b7280;
  --color-bg: #ffffff;
  --color-bg-alt: #f6f8fc;
  --color-border: #e6e9f0;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-sm: 0 2px 8px rgba(20, 33, 61, 0.06);
  --shadow-md: 0 8px 24px rgba(20, 33, 61, 0.1);
  --header-height: 72px;

  --grad-1: linear-gradient(135deg, #1a56b0, #3f8efc);
  --grad-2: linear-gradient(135deg, #0f3d85, #1a7fb0);
  --grad-3: linear-gradient(135deg, #2c3e70, #5b6fd1);
  --grad-4: linear-gradient(135deg, #145a4a, #2f9e7f);
  --grad-5: linear-gradient(135deg, #7a3b8c, #b565c9);
  --grad-6: linear-gradient(135deg, #b0521a, #e28a3d);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.5;
  overflow-x: hidden;
}

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

svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

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

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

button {
  font: inherit;
  cursor: pointer;
}

.icon,
.tile-icon-btn svg,
.meta-icon svg,
.card-location svg,
.tile-btn svg,
.social-icons svg,
.select-wrap svg,
.btn svg,
.mobile-nav-toggle svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 56px 0;
}

.section-heading {
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 8px;
}

.section-heading .accent {
  color: var(--color-primary);
}

.section-sub {
  text-align: center;
  color: var(--color-text-light);
  margin: 0 0 32px;
}

/* ------------------------------ Data error banner ------------------------------ */
.data-error-banner {
  background: #fff4e5;
  color: #8a4b00;
  border-bottom: 1px solid #f3d9ad;
  font-size: 14px;
  padding: 10px 24px;
  text-align: center;
}

.data-error-banner code {
  background: rgba(0, 0, 0, 0.06);
  padding: 1px 6px;
  border-radius: 4px;
}

/* ------------------------------ Header ------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
}

.site-header .container.header-inner {
  height: var(--header-height);
  display: flex;
  align-items: center;
  gap: 32px;
  position: relative;
}

.logo {
  font-size: 21px;
  font-weight: 800;
  color: var(--color-primary);
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-right: auto;
}

.main-nav a {
  font-weight: 500;
  font-size: 15px;
  color: var(--color-text);
  transition: color 0.15s;
}

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

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

.social-icons {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--color-primary);
}

.social-icons a {
  display: flex;
  color: inherit;
  opacity: 0.9;
}

.social-icons a:hover {
  opacity: 1;
}

.select-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.currency-select {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 8px 30px 8px 14px;
  font-size: 14px;
  font-weight: 500;
  background: var(--color-bg);
  color: var(--color-text);
  cursor: pointer;
}

.select-wrap .select-chevron {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-light);
  pointer-events: none;
}

.select-wrap .select-chevron svg {
  width: 14px;
  height: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 18px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.15s, background 0.15s;
  white-space: nowrap;
}

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

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

.btn-outline {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text);
}

.btn-outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn-block {
  width: 100%;
}

.mobile-nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  color: var(--color-text);
  padding: 8px;
  margin-left: auto;
}

.mobile-nav-toggle:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* ------------------------------ Mobile menu panel ------------------------------ */
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  border-top: 1px solid var(--color-border);
  background: var(--color-bg);
  padding: 12px 24px 20px;
}

.mobile-menu.is-open {
  display: flex;
}

.mobile-menu a {
  padding: 10px 4px;
  font-weight: 500;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
}

.mobile-menu a.is-active,
.mobile-menu a:hover {
  color: var(--color-primary);
}

.mobile-menu-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
}

.mobile-menu .social-icons {
  gap: 16px;
}

.mobile-menu .btn {
  margin-top: 4px;
}

/* ------------------------------ Hero ------------------------------ */
.hero {
  position: relative;
  background: linear-gradient(rgba(15, 23, 42, 0.42), rgba(15, 23, 42, 0.42)),
    url("../assets/hero-dubai-skyline.webp") center 35% / cover no-repeat;
  color: #fff;
  padding: 120px 0 100px;
  min-height: 620px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
}

.hero-title {
  text-align: center;
  font-size: 46px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 auto 30px;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.search-card {
  background: #ffffff;
  border-radius: 22px;
  box-shadow: 0 20px 48px -4px rgba(15, 23, 42, 0.16), 0 8px 18px -4px rgba(15, 23, 42, 0.08);
  padding: 22px 24px;
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  color: #0f172a;
  box-sizing: border-box;
}

.search-row {
  display: flex;
  gap: 12px;
  align-items: center;
  width: 100%;
}

.search-row+.search-row {
  margin-top: 14px;
}

.search-field {
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  height: 52px;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-field:focus-within {
  border-color: #0066ff;
  box-shadow: 0 0 0 3px rgba(0, 102, 255, 0.12);
}

.search-field-text {
  flex: 1 1 auto;
  padding: 0 16px;
  gap: 12px;
}

.search-field-text .search-icon {
  width: 20px;
  height: 20px;
  stroke: #0066ff;
  flex-shrink: 0;
}

.search-field-text input {
  border: none;
  background: transparent;
  outline: none;
  width: 100%;
  font-size: 15px;
  color: #0f172a;
  font-family: inherit;
}

.search-field-text input::placeholder {
  color: #94a3b8;
  font-size: 15px;
}

.search-field-select {
  padding: 0;
}

.search-field-select select {
  width: 100%;
  height: 100%;
  border: none;
  background: transparent;
  outline: none;
  font-size: 14.5px;
  font-weight: 500;
  color: #334155;
  padding: 0 34px 0 16px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  font-family: inherit;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%230066ff'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
}

.search-field-emirate {
  width: 150px;
  flex-shrink: 0;
}

.search-field-city {
  width: 130px;
  flex-shrink: 0;
}

.search-field-beds {
  width: 175px;
  flex-shrink: 0;
}

.search-field-price {
  width: 130px;
  flex-shrink: 0;
}

.toggle-group {
  display: flex;
  align-items: center;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #ffffff;
  height: 52px;
  padding: 4px;
  flex-shrink: 0;
  box-sizing: border-box;
}

.toggle-group button {
  border: none;
  background: transparent;
  color: #475569;
  font-size: 14px;
  font-weight: 500;
  padding: 0 18px;
  height: 100%;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.toggle-group button.is-active {
  background: #eaf2ff;
  color: #0066ff;
  font-weight: 600;
}

.btn-search-submit {
  flex: 1 1 auto;
  height: 52px;
  background: #0066ff;
  color: #ffffff;
  border: none;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 600;
  padding: 0 34px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 102, 255, 0.25);
  white-space: nowrap;
}

.btn-search-submit:hover {
  background: #0052cc;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 102, 255, 0.35);
}

.quick-picks {
  margin-top: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.quick-picks .label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #0066ff;
  font-size: 13.5px;
  font-weight: 700;
  margin-right: 4px;
}

.quick-picks .sparkle-icon {
  width: 16px;
  height: 16px;
  fill: #0066ff;
}

.quick-picks a {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 500;
  color: #334155;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.quick-picks a:hover {
  border-color: #0066ff;
  color: #0066ff;
  background: #f8fbff;
  transform: translateY(-1px);
}

@media (max-width: 900px) {
  .hero {
    padding: 48px 0 42px;
    min-height: 0;
  }

  .hero-title {
    font-size: 32px;
    margin-bottom: 22px;
  }

  .search-card {
    padding: 16px;
    border-radius: 18px;
  }

  .search-row {
    flex-wrap: wrap;
    gap: 10px;
  }

  .search-field-text {
    width: 100%;
    flex: 1 1 100%;
  }

  .search-field-emirate,
  .search-field-city,
  .search-field-beds,
  .search-field-price,
  .search-field-category {
    flex: 1 1 calc(50% - 5px);
    width: auto;
  }

  .toggle-group {
    width: 100%;
    justify-content: center;
  }

  .toggle-group button {
    flex: 1;
  }

  .btn-search-submit {
    width: 100%;
  }
}

@media (max-width: 520px) {
  .hero {
    padding: 38px 0 32px;
  }

  .hero-title {
    font-size: 25px;
    line-height: 1.25;
    margin-bottom: 18px;
  }

  .search-field-emirate,
  .search-field-city,
  .search-field-beds,
  .search-field-price,
  .search-field-category {
    flex: 1 1 100%;
    width: 100%;
  }

  .toggle-group button {
    padding: 0 10px;
    font-size: 13px;
  }

  .quick-picks {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding: 4px 16px 8px 16px;
    margin: 20px -16px 0 -16px;
    box-sizing: border-box;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .quick-picks::-webkit-scrollbar {
    display: none;
  }

  .quick-picks .label {
    flex-shrink: 0;
  }

  .quick-picks a {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 7px 14px;
    font-size: 12.5px;
  }
}

/* ------------------------------ Tabs (used for emirate/city filters) ------------------------------ */
.tab-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 28px;
}

.tab-pill {
  border: 1px solid #e2e8f0;
  background: #ffffff;
  border-radius: 8px;
  padding: 8px 18px;
  font-size: 13.5px;
  font-weight: 500;
  color: #334155;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tab-pill.is-active {
  background: #eaf2ff;
  border-color: transparent;
  color: #0066ff;
  font-weight: 600;
}

.tab-pill:hover:not(.is-active) {
  border-color: #0066ff;
  color: #0066ff;
  background: #f8fbff;
}

.tab-pill-more {
  color: #1e293b;
}

.tab-pill-more .tab-chevron {
  font-size: 16px;
  line-height: 1;
  color: #64748b;
}

/* ------------------------------ Featured Section & Carousel ------------------------------ */
.section-featured {
  padding: 56px 0;
  background: #ffffff;
}

.section-heading-center {
  text-align: center;
  margin-bottom: 20px;
}

.featured-heading {
  font-size: 38px;
  font-weight: 800;
  line-height: 1.25;
  color: #0b132a;
  margin: 0;
  letter-spacing: -0.02em;
}

.featured-heading .accent-blue {
  color: #0066ff;
}

.tab-row-center {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 0 auto 36px;
}

.carousel-wrap {
  position: relative;
}

.featured-carousel-wrap {
  position: relative;
}

.carousel-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-track>* {
  scroll-snap-align: start;
  flex: 0 0 300px;
}

#featured-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 10px 4px 24px 4px;
}

#featured-track::-webkit-scrollbar {
  display: none;
}

#featured-track .property-card {
  flex: 0 0 calc((100% - 48px) / 3);
  min-width: 320px;
  max-width: calc((100% - 48px) / 3);
  scroll-snap-align: start;
}

.featured-carousel-wrap .carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #eaf2ff;
  border: none;
  color: #0066ff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 4px 14px rgba(0, 102, 255, 0.12);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.featured-carousel-wrap .carousel-nav svg {
  width: 20px;
  height: 20px;
  stroke-width: 2.2;
}

.featured-carousel-wrap .carousel-nav:hover {
  background: #d4e6fe;
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 6px 18px rgba(0, 102, 255, 0.22);
}

.featured-carousel-wrap .carousel-prev {
  left: -22px;
}

.featured-carousel-wrap .carousel-next {
  right: -22px;
}

.carousel-nav {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  z-index: 2;
}

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

.carousel-prev {
  left: -19px;
}

.carousel-next {
  right: -19px;
}

/* ------------------------------ Property Card ------------------------------ */
.property-card {
  background: #ffffff;
  border: 1px solid #eef0f4;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  -webkit-tap-highlight-color: transparent;
}

.property-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px -4px rgba(15, 23, 42, 0.12);
}

.card-media {
  position: relative;
  height: 250px;
  overflow: hidden;
  background: #f1f5f9;
}

.card-image-track {
  display: flex;
  height: 100%;
  transition: transform 0.35s ease;
}

.card-image-track img {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
}

.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(4px);
  color: #0f172a;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border-radius: 999px;
  z-index: 2;
}

.card-fav-btn,
.tile-icon-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(4px);
  color: #0066ff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 2;
  cursor: pointer;
  transition: all 0.2s ease;
  touch-action: manipulation;
}

.card-fav-btn svg,
.tile-icon-btn svg {
  width: 20px;
  height: 20px;
  stroke: #0066ff;
  stroke-width: 1.8;
  fill: none;
  transition: transform 0.2s ease;
}

.card-fav-btn:hover,
.tile-icon-btn:hover {
  background: #ffffff;
  transform: scale(1.08);
}

.card-fav-btn.is-active svg,
.tile-icon-btn.is-active svg {
  fill: #0066ff;
}

.card-media .media-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(4px);
  color: #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  z-index: 2;
  cursor: pointer;
  transition: all 0.2s ease;
  touch-action: manipulation;
}

.card-media .media-nav svg {
  width: 15px;
  height: 15px;
  stroke-width: 2.2;
}

.card-media .media-nav:hover {
  background: #ffffff;
  color: #0066ff;
  transform: translateY(-50%) scale(1.1);
}

.card-media .media-prev {
  left: 12px;
}

.card-media .media-next {
  right: 12px;
}

.card-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  z-index: 2;
}

.card-dots .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  transition: all 0.25s ease;
}

.card-dots .dot.is-active {
  background: #0066ff;
  transform: scale(1.15);
}

.card-body {
  padding: 18px 20px 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card-title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.3;
}

.agency-badge {
  flex: 0 0 auto;
  background: #e31b23;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: -0.01em;
  border-radius: 4px;
  padding: 2px 7px;
  line-height: 1.2;
  display: inline-block;
  white-space: nowrap;
}

.card-price {
  color: #0066ff;
  font-weight: 800;
  font-size: 23px;
  line-height: 1.2;
  margin-top: 2px;
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.card-price .price-symbol {
  font-size: 22px;
  font-weight: 700;
}

.card-specs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  font-size: 13.5px;
  color: #475569;
  margin-top: 2px;
}

.card-specs .spec-type {
  color: #0066ff;
  font-weight: 600;
}

.card-specs .spec-divider {
  color: #cbd5e1;
  font-size: 12px;
}

.card-specs .spec-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.card-specs .spec-item svg {
  width: 15px;
  height: 15px;
  color: #64748b;
}

.card-tags-line {
  font-size: 12px;
  color: #64748b;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.card-location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #475569;
  margin-top: 4px;
}

.card-location .location-icon svg {
  width: 15px;
  height: 15px;
  stroke: #0066ff;
  flex-shrink: 0;
}

.card-location .location-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ------------------------------ Responsive Mobile UI/UX ------------------------------ */
@media (max-width: 1100px) {
  #featured-track .property-card {
    flex: 0 0 calc((100% - 20px) / 2);
    max-width: calc((100% - 20px) / 2);
    min-width: 290px;
  }

  .featured-carousel-wrap .carousel-prev {
    left: 2px;
  }

  .featured-carousel-wrap .carousel-next {
    right: 2px;
  }
}

@media (max-width: 768px) {
  body {
    overflow-x: hidden;
  }

  .section-featured {
    padding: 38px 0 44px;
  }

  .featured-heading {
    font-size: 26px;
    line-height: 1.25;
  }

  .section-heading-center {
    margin-bottom: 16px;
  }

  /* Horizontal swipeable chip bar on mobile */
  .tab-row-center {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 6px 16px 14px 16px;
    margin: 0 -16px 20px -16px;
    scroll-snap-type: x proximity;
  }

  .tab-row-center::-webkit-scrollbar {
    display: none;
  }

  .tab-pill {
    padding: 8px 18px;
    font-size: 13.5px;
    flex-shrink: 0;
    white-space: nowrap;
    scroll-snap-align: start;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  /* Full-bleed peek carousel on mobile */
  #featured-track {
    padding: 8px 16px 20px 16px;
    margin: 0 -16px;
    gap: 16px;
  }

  #featured-track .property-card {
    flex: 0 0 85%;
    max-width: 85%;
    min-width: 270px;
    scroll-snap-align: center;
    border-radius: 16px;
  }

  /* Hide external float buttons on mobile since native finger swipe is 100x better */
  .featured-carousel-wrap .carousel-nav {
    display: none;
  }

  .card-media {
    height: 200px;
  }

  .card-fav-btn,
  .tile-icon-btn {
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
  }

  .card-fav-btn svg,
  .tile-icon-btn svg {
    width: 17px;
    height: 17px;
  }

  .card-media .media-nav {
    width: 28px;
    height: 28px;
  }

  .card-media .media-prev {
    left: 8px;
  }

  .card-media .media-next {
    right: 8px;
  }

  .card-body {
    padding: 14px 15px 16px 15px;
    gap: 6px;
  }

  .card-title {
    font-size: 16px;
  }

  .card-price {
    font-size: 21px;
    margin-top: 1px;
  }

  .card-price .price-symbol {
    font-size: 20px;
  }

  .card-specs {
    font-size: 12.5px;
    gap: 6px;
  }

  .card-specs .spec-item svg {
    width: 14px;
    height: 14px;
  }

  .card-tags-line {
    font-size: 11.5px;
  }

  .card-location {
    font-size: 12px;
  }
}

@media (max-width: 380px) {
  #featured-track .property-card {
    flex: 0 0 88%;
    max-width: 88%;
    min-width: 250px;
  }

  .featured-heading {
    font-size: 23px;
  }

  .card-price {
    font-size: 19px;
  }
}

/* ------------------------------ Community Section & Card ------------------------------ */
.section-community {
  padding: 60px 0;
  background: #ffffff;
}

.community-carousel-wrap {
  position: relative;
  margin-top: 28px;
}

#community-track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 10px 4px 20px 4px;
  mask-image: linear-gradient(to right, black 86%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, black 86%, transparent 100%);
}

#community-track::-webkit-scrollbar {
  display: none;
}

.community-card {
  position: relative;
  flex: 0 0 225px;
  height: 295px;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  color: #fff;
  box-shadow: 0 6px 20px -2px rgba(15, 23, 42, 0.12);
  scroll-snap-align: start;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.community-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.community-overlay {
  position: relative;
  width: 100%;
  padding: 22px 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0) 100%);
  z-index: 2;
  box-sizing: border-box;
}

.community-overlay h3 {
  margin: 0 0 4px;
  font-size: 19px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.community-overlay p {
  margin: 0;
  font-size: 12.5px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.82);
}

.community-carousel-wrap .carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #eaf2ff;
  border: none;
  color: #0066ff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: 0 4px 14px rgba(0, 102, 255, 0.18);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.community-carousel-wrap .carousel-nav svg {
  width: 20px;
  height: 20px;
  stroke-width: 2.2;
}

.community-carousel-wrap .carousel-nav:hover {
  background: #d8e8fe;
  transform: translateY(-50%) scale(1.08);
  box-shadow: 0 6px 18px rgba(0, 102, 255, 0.25);
}

.community-carousel-wrap .carousel-prev {
  left: 12px;
}

.community-carousel-wrap .carousel-next {
  right: 20px;
}

@media (max-width: 768px) {
  .section-community {
    padding: 38px 0;
  }

  .community-carousel-wrap {
    margin-top: 18px;
  }

  #community-track {
    padding: 6px 16px 18px 16px;
    margin: 0 -16px;
    gap: 14px;
    mask-image: none;
    -webkit-mask-image: none;
    scroll-snap-type: x proximity;
  }

  .community-card {
    flex: 0 0 170px;
    height: 230px;
    border-radius: 18px;
  }

  .community-overlay {
    padding: 16px 14px;
  }

  .community-overlay h3 {
    font-size: 16px;
  }

  .community-overlay p {
    font-size: 11.5px;
  }

  .community-carousel-wrap .carousel-nav {
    display: none;
  }
}

@media (max-width: 380px) {
  .community-card {
    flex: 0 0 150px;
    height: 210px;
  }
}

/* ------------------------------ Popular Searches ------------------------------ */
.searches-tabs {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 24px;
}

.searches-tabs button {
  border: none;
  background: none;
  color: var(--color-text);
  font-size: 16px;
  font-weight: 600;
  padding: 4px 2px 10px;
  border-bottom: 2px solid var(--color-border);
  cursor: pointer;
}

.searches-tabs button.is-active {
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.searches-subtabs {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: fit-content;
  margin: 0 auto 40px;
  padding: 6px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg);
}

.searches-subtabs button {
  border: none;
  background: none;
  color: var(--color-text);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.searches-subtabs button.is-active {
  background: var(--color-primary-light);
  color: var(--color-primary);
}

.searches-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px 32px;
}

.searches-col h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-light);
  margin: 0 0 12px;
}

.searches-col a {
  display: block;
  font-size: 14px;
  color: var(--color-text);
  padding: 6px 0;
}

.searches-col a:hover {
  color: var(--color-primary);
}

/* ------------------------------ Footer ------------------------------ */
.site-footer {
  background: #ffffff;
  border-top: 1px solid #e5e9f0;
  border-radius: 28px 28px 0 0;
  box-shadow: 0 -4px 24px rgba(15, 23, 42, 0.03);
  padding: 56px 0 32px;
  margin-top: 48px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1fr 1.15fr 1fr;
  gap: 32px;
  align-items: start;
}

.footer-brand .footer-logo {
  font-size: 21px;
  font-weight: 800;
  color: #0066ff;
  letter-spacing: -0.02em;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 14px;
  line-height: 1.2;
}

.footer-social-icons {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.footer-social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0066ff;
  transition: transform 0.2s ease, opacity 0.2s ease;
  line-height: 1;
}

.footer-social-icons a:hover {
  transform: translateY(-2px);
  opacity: 0.8;
}

.footer-social-icons svg {
  width: 18px;
  height: 18px;
  stroke: #0066ff;
}

.footer-store-badges {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.store-badge {
  display: inline-block;
  line-height: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.store-badge:hover {
  transform: translateY(-2px);
  opacity: 0.92;
}

.store-badge svg {
  border-radius: 7px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.footer-col h4 {
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 16px;
  color: #0066ff;
  letter-spacing: -0.01em;
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: #334155;
  padding: 5px 0;
  text-decoration: none;
  font-weight: 400;
  transition: color 0.15s ease, transform 0.15s ease;
}

.footer-col a:hover {
  color: #0066ff;
  transform: translateX(2px);
}

.footer-bottom {
  margin-top: 50px;
  text-align: center;
  font-size: 13.5px;
  font-weight: 400;
  color: #475569;
  letter-spacing: -0.01em;
}

/* ------------------------------ Page header (listings / details) ------------------------------ */
.page-banner {
  background: var(--grad-3);
  color: #fff;
  padding: 40px 0;
}

.page-banner h1 {
  margin: 0 0 6px;
  font-size: 28px;
}

.breadcrumbs {
  font-size: 13px;
  opacity: 0.85;
  display: flex;
  gap: 6px;
}

/* ------------------------------ Listings page ------------------------------ */
.listings-search-wrap {
  padding-top: 28px;
}

.listings-search-card {
  max-width: none;
}

.search-field-category {
  width: 120px;
  flex-shrink: 0;
}

.listings-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 28px;
  align-items: start;
  padding-top: 24px;
  padding-bottom: 64px;
}

.property-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.property-list .property-card {
  flex-direction: row;
  align-items: flex-start;
}

.property-list .property-card:hover {
  transform: none;
  box-shadow: 0 14px 30px -6px rgba(15, 23, 42, 0.12);
}

.property-list .card-media {
  width: 320px;
  height: 230px;
  flex-shrink: 0;
}

.property-list .card-body {
  flex: 1;
  justify-content: flex-start;
  align-self: stretch;
  padding-top: 20px;
}

.card-contact-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #eaf2ff;
  color: #0066ff;
  border-radius: 10px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  transition: background 0.15s;
}

.contact-pill svg {
  width: 15px;
  height: 15px;
}

.contact-pill:hover {
  background: #dceaff;
}

.listings-promo {
  position: sticky;
  top: calc(var(--header-height) + 16px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 420px;
}

.listings-promo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.listings-promo-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0) 30%, rgba(15, 23, 42, 0.85) 100%);
  color: #fff;
}

.listings-promo-eyebrow {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}

.listings-promo-overlay h3 {
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.25;
}

.listings-promo-overlay p {
  margin: 0 0 16px;
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.5;
}

.listings-promo-overlay .btn-primary {
  align-self: flex-start;
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--color-text-light);
}

.empty-state h3 {
  color: var(--color-text);
  margin-bottom: 6px;
}

.load-more-wrap {
  text-align: center;
  margin-top: 32px;
}

/* ------------------------------ Details page ------------------------------ */
.details-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 32px;
  padding: 32px 0 64px;
  align-items: start;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 10px;
  height: 380px;
}

.gallery-main-photo,
.gallery-side-photo {
  position: relative;
  background-size: cover;
  background-position: center;
  background-color: var(--color-bg-alt);
  border-radius: var(--radius-md);
}

.gallery-side {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
}

.gallery-side-photo {
  flex: 1;
}

.badge-pill {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 600;
  backdrop-filter: blur(2px);
}

.badge-pill svg {
  width: 15px;
  height: 15px;
}

.badge-map {
  top: 12px;
  left: 12px;
  cursor: pointer;
}

.badge-count {
  bottom: 12px;
  right: 12px;
}

.gallery-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.gallery-thumbs button {
  flex: 1;
  height: 64px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  background-size: cover;
  background-position: center;
  background-color: var(--color-bg-alt);
  opacity: 0.7;
  transition: opacity 0.15s, border-color 0.15s;
}

.gallery-thumbs button:hover {
  opacity: 0.9;
}

.gallery-thumbs button.is-active {
  border-color: var(--color-primary);
  opacity: 1;
}

.details-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin: 24px 0 6px;
}

.details-title {
  font-size: 26px;
  margin: 0 0 6px;
}

.details-address {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--color-text-light);
}

.details-price {
  font-size: 24px;
  font-weight: 800;
  color: var(--color-primary);
  white-space: nowrap;
}

.fact-strip {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin: 20px 0;
}

.fact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text);
  font-weight: 600;
}

.fact-item svg {
  color: var(--color-primary);
}

.fact-item small {
  display: block;
  font-weight: 400;
  color: var(--color-text-light);
  font-size: 12px;
}

.details-section h2 {
  font-size: 18px;
  margin: 28px 0 12px;
}

.details-desc {
  color: var(--color-text);
  line-height: 1.7;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.card-tags .tag {
  background: var(--color-primary-light);
  color: var(--color-primary);
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 12.5px;
  font-weight: 600;
}

/* Additional details / regulatory two-column key-value grid */
.detail-grid,
.regulatory-rows {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-flow: column;
  grid-template-rows: repeat(4, auto);
  column-gap: 32px;
  row-gap: 16px;
}

.detail-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--color-border);
}

.detail-label {
  font-size: 12px;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.detail-value {
  font-weight: 700;
  color: var(--color-text);
}

/* Areas nearby */
.nearby-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 24px;
}

.nearby-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--color-text);
}

.nearby-item svg {
  color: var(--color-primary);
  flex-shrink: 0;
}

/* Amenities */
.amenities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.amenity-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 16px 10px;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text);
}

.amenity-tile svg {
  color: #1e9e5a;
  flex-shrink: 0;
}

/* Location */
.location-block {
  display: flex;
  gap: 20px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 16px;
}

.location-map {
  flex: 1;
  min-height: 220px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.location-map iframe {
  width: 100%;
  height: 100%;
  min-height: 220px;
  border: 0;
  display: block;
}

.location-info {
  flex: 0 0 240px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.location-address {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--color-text);
  line-height: 1.5;
}

.location-address svg {
  color: var(--color-primary);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Regulatory info */
.regulatory-card {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px 22px;
}

.regulatory-rows {
  flex: 1;
}

.regulatory-qr {
  flex: 0 0 auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 8px;
}

.regulatory-qr img {
  display: block;
  width: 120px;
  height: 120px;
}

.report-btn {
  margin-top: 14px;
}

.report-btn svg {
  width: 16px;
  height: 16px;
}

/* Building / community info cards */
.building-community-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 28px 0;
}

.info-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 18px;
}

.info-card-label {
  font-size: 12px;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 6px;
}

.info-card-title {
  font-size: 17px;
  margin: 0 0 10px;
}

.info-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text-light);
  font-size: 13.5px;
  margin-bottom: 6px;
}

.info-card-meta svg {
  color: var(--color-primary);
  flex-shrink: 0;
}

.info-card-photo {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-top: 10px;
}

/* Insights */
.insights-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.insight-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
}

.insight-icon {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.insight-icon svg {
  width: 18px;
  height: 18px;
}

.insight-positive .insight-icon {
  background: #e7f7ee;
  color: #1e9e5a;
}

.insight-negative .insight-icon {
  background: #fdeeea;
  color: #d1481f;
}

.insight-title {
  font-size: 14.5px;
  color: var(--color-text);
}

.insight-positive .insight-title strong {
  color: #1e9e5a;
}

.insight-negative .insight-title strong {
  color: #d1481f;
}

.insight-sub {
  font-size: 12.5px;
  color: var(--color-text-light);
  margin-top: 4px;
}

.agent-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px;
  position: sticky;
  top: calc(var(--header-height) + 16px);
}

.agent-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.agent-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--grad-1);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
}

.agent-name {
  font-weight: 700;
}

.agent-role {
  font-size: 13px;
  color: var(--color-text-light);
}

.agent-actions {
  display: grid;
  gap: 10px;
  margin-top: 6px;
}

.agent-actions .tile-btn {
  margin-top: 0;
}

.related-section {
  padding-top: 8px;
}

/* ------------------------------ Responsive ------------------------------ */
@media (max-width: 960px) {

  .details-layout,
  .listings-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .agent-card {
    position: static;
  }

  .listings-promo {
    position: relative;
    top: auto;
    min-height: 220px;
  }

  .site-footer {
    padding: 44px 0 28px;
    border-radius: 24px 24px 0 0;
  }

  .footer-top {
    grid-template-columns: repeat(3, 1fr);
    gap: 30px 20px;
  }

  .footer-brand {
    grid-column: 1 / -1;
    margin-bottom: 6px;
  }

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

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

  .building-community-grid,
  .insights-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {

  .main-nav,
  .header-actions {
    display: none;
  }

  .mobile-nav-toggle {
    display: flex;
  }
}

@media (max-width: 640px) {
  .site-footer {
    padding: 34px 0 24px;
    border-radius: 20px 20px 0 0;
  }

  .footer-top {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px 16px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-brand .footer-logo {
    font-size: 20px;
  }

  .footer-store-badges {
    gap: 8px;
  }

  .footer-bottom {
    margin-top: 28px;
    font-size: 12.5px;
  }

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

  .property-list .property-card {
    flex-direction: column;
  }

  .property-list .card-media {
    width: 100%;
    height: 220px;
  }

  .details-header {
    flex-direction: column;
  }

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

  .gallery-side {
    display: none;
  }

  .gallery-main-photo {
    height: 240px;
  }

  .gallery-thumbs button {
    height: 52px;
  }

  .detail-grid,
  .regulatory-rows {
    grid-auto-flow: row;
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

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

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

  .location-block {
    flex-direction: column;
  }

  .location-info {
    flex: 0 0 auto;
  }

  .regulatory-card {
    flex-direction: column;
  }

  .regulatory-qr {
    align-self: center;
  }

  .fact-strip {
    gap: 16px 22px;
    padding: 16px;
  }
}

.grad-1 {
  background-image: var(--grad-1);
}

.grad-2 {
  background-image: var(--grad-2);
}

.grad-3 {
  background-image: var(--grad-3);
}

.grad-4 {
  background-image: var(--grad-4);
}

.grad-5 {
  background-image: var(--grad-5);
}

.grad-6 {
  background-image: var(--grad-6);
}