/* ─── Variables ─────────────────────────────────────────────────────────────── */
:root {
  --navy: #0d1b2e;
  --navy-mid: #1a3252;
  --cream: #f7f4ef;
  --cream-dk: #ede8e0;
  --gold: #c9a84c;
  --gold-lt: #e8d08a;
  --white: #ffffff;
  --text: #1c1c2e;
  --muted: #6b6b82;
  --border: #e4dfd6;
  --r-sm: 5px;
  --r: 13px;
  --sh-sm: 0 2px 12px rgba(13, 27, 46, .07);
  --sh: 0 8px 36px rgba(13, 27, 46, .12);
  --t: .3s ease;
}

/* ─── Reset ─────────────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

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

/* ─── Header ────────────────────────────────────────────────────────────────── */
#site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--navy);
  border-bottom: 1px solid rgba(201, 168, 76, .2);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: .85rem;
  padding-bottom: .85rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex-shrink: 0;
}

.logo-mark {
  width: 34px;
  height: 34px;
  background: var(--gold);
  color: var(--navy);
  font-family: Georgia, 'Times New Roman', serif;
  font-weight: 700;
  font-size: .9rem;
  display: grid;
  place-items: center;
  border-radius: var(--r-sm);
  letter-spacing: .05em;
  flex-shrink: 0;
}

.logo-text {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.3rem;
  color: var(--white);
  font-weight: 400;
  letter-spacing: .02em;
}

.logo-text strong {
  font-weight: 700;
  color: var(--gold);
}


.header-right {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.btn-header-login {
  padding: .28rem .7rem;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: var(--r-sm);
  color: rgba(255, 255, 255, .8);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  transition: all var(--t);
}

.btn-header-login:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
}

.header-user {
  display: flex;
  align-items: center;
  gap: .4rem;
}

.header-user-info {
  display: flex;
  align-items: center;
  gap: .4rem;
}

@media (max-width: 639px) {
  .header-right {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: .25rem .5rem;
  }

  .lang-switcher {
    width: 100%;
    justify-content: flex-end;
  }

  .header-user {
    flex-direction: column;
    align-items: flex-end;
    gap: .15rem;
  }
}

.header-user-name {
  font-size: .78rem;
  font-weight: 500;
  color: rgba(255, 255, 255, .85);
  max-width: 110px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.btn-header-logout {
  padding: .26rem .6rem;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: var(--r-sm);
  color: rgba(255, 255, 255, .75);
  font-size: .66rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: all var(--t);
}

.btn-header-logout:hover {
  border-color: #e74c3c;
  color: #e74c3c;
}

.user-role-badge {
  display: inline-block;
  padding: .18rem .45rem;
  border-radius: var(--r-sm);
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.user-role-badge.dealer {
  background: var(--gold);
  color: var(--navy);
}

.user-role-badge.customer {
  background: rgba(49, 130, 206, .9);
  color: #fff;
}

.lang-switcher {
  display: flex;
  gap: .3rem;
}

.lang-btn {
  padding: .35rem .6rem;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: var(--r-sm);
  color: rgba(255, 255, 255, .75);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .1em;
  transition: all var(--t);
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.lang-btn:hover,
.lang-btn.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
}

/* ─── Hero ──────────────────────────────────────────────────────────────────── */
#hero {
  background:
    linear-gradient(to bottom, rgba(13, 27, 46, .75) 0%, rgba(13, 27, 46, .92) 100%),
    url('../uploads/fallback/hero.webp') center / cover no-repeat;
  padding: 4.5rem 1.25rem 5rem;
  text-align: center;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-tag {
  display: inline-block;
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(201, 168, 76, .4);
  padding: .32rem .9rem;
  border-radius: 999px;
  margin-bottom: 1.4rem;
}

#hero h1 {
  font-size: 2.4rem;
  font-weight: 300;
  color: var(--white);
  line-height: 1.18;
  margin-bottom: .8rem;
  letter-spacing: -.01em;
}

#hero p {
  font-size: .95rem;
  color: rgba(255, 255, 255, .7);
  font-weight: 300;
  max-width: 460px;
  margin: 0 auto;
}

/* ─── Filters ───────────────────────────────────────────────────────────────── */
#filters {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--sh-sm);
  position: sticky;
  top: var(--header-h, 0px);
  z-index: 150;
}

.filters-bar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .6rem 1.25rem;
  background: #f7f4ef;
  border: none;
  border-bottom: 1px solid var(--border);
  font-family: inherit;
  cursor: pointer;
}

.filters-bar-label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--navy);
}

.filters-bar-arrow {
  font-size: .55rem;
  color: var(--navy);
  transition: transform .3s ease;
}

#filters:not(.collapsed) .filters-bar-arrow {
  transform: rotate(180deg);
}

.filters-body {
  max-height: 900px;
  overflow: hidden;
  transition: max-height .35s cubic-bezier(.4, 0, .2, 1);
}

#filters.collapsed .filters-body {
  max-height: 0;
}

.filters-body-inner {
  padding: 1.5rem 0;
}

.filters-grid {
  display: flex;
  flex-direction: column;
  gap: .875rem;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: .32rem;
}

.filter-group label {
  font-size: .67rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.filter-group select,
.filter-group input[type="number"] {
  padding: .58rem .75rem;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--cream);
  color: var(--text);
  font-family: inherit;
  font-size: .875rem;
  outline: none;
  transition: border-color var(--t), background var(--t);
  -webkit-appearance: none;
  appearance: none;
}

.filter-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7' viewBox='0 0 11 7'%3E%3Cpath d='M1 1l4.5 4.5L10 1' stroke='%236b6b82' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .7rem center;
  padding-right: 2rem;
}

.filter-group select:focus,
.filter-group input:focus {
  border-color: var(--gold);
  background: var(--white);
}

.filter-group--full {
  flex: 0 0 100%;
}

.autocomplete-wrap {
  position: relative;
}

.filter-group input[type="text"] {
  padding: .58rem .75rem;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  font-size: .9rem;
  background: var(--white);
  width: 100%;
  transition: border-color var(--t);
}

.filter-group input[type="text"]:focus {
  border-color: var(--gold);
  outline: none;
}

.autocomplete-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  border: 1.5px solid var(--gold);
  border-top: none;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
  max-height: 13rem;
  overflow-y: auto;
  z-index: 300;
  list-style: none;
  box-shadow: var(--sh-sm);
}

.autocomplete-item {
  padding: .55rem 1rem;
  cursor: pointer;
  font-size: .88rem;
  color: var(--text);
}

.autocomplete-item:hover,
.autocomplete-item:focus {
  background: var(--cream);
  outline: none;
}

.range-row {
  display: flex;
  align-items: center;
  gap: .4rem;
}

.range-row input {
  flex: 1;
  min-width: 0;
}

.range-sep {
  color: var(--muted);
  font-size: .85rem;
  flex-shrink: 0;
}

.filter-actions {
  display: flex;
  gap: .6rem;
  align-items: flex-end;
  justify-content: center;
  grid-column: 1 / -1;
}

#btn-search {
  background: var(--navy);
  color: var(--white);
  padding: .68rem 1rem;
  border-radius: var(--r-sm);
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .04em;
  transition: background var(--t), transform .15s;
}

#btn-search:hover {
  background: var(--navy-mid);
  transform: translateY(-1px);
}

#btn-reset {
  padding: .68rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--muted);
  font-size: .875rem;
  font-weight: 500;
  transition: all var(--t);
  white-space: nowrap;
}

#btn-reset:hover {
  border-color: var(--navy);
  color: var(--navy);
}

/* ─── Listings ──────────────────────────────────────────────────────────────── */
#listings {
  padding: 0 0 4rem;
}

#property-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  min-height: 600px;
  padding-top: 1.25rem;
}

/* ─── Property Card ─────────────────────────────────────────────────────────── */
.property-card {
  background: #a5a5a58f;
  border-radius: var(--r);
  box-shadow: var(--sh-sm);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: fadeUp .45s ease both;
  transition: transform var(--t), box-shadow var(--t);
  cursor: pointer;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

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

.property-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh);
}

.card-image {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.card-hero {
  flex: 1;
  width: 100%;
  object-fit: cover;
  display: block;
  min-height: 0;
  transition: transform .6s ease;
}

.property-card:hover .card-hero {
  transform: scale(1.05);
}

/* ─── Thumbnail strip ────────────────────────────────────────────────────────── */
.card-thumb-strip {
  height: 52px;
  flex-shrink: 0;
  display: flex;
  align-items: stretch;
  background: rgba(13, 27, 46, .9);
  position: relative;
  overflow: hidden;
}

.card-strip-track {
  display: flex;
  flex-wrap: nowrap;
  flex: 1;
  height: 100%;
  transition: transform .3s ease;
  min-width: 0;
}

.card-thumb {
  min-width: 33.3334%;
  height: 100%;
  flex-shrink: 0;
  padding: 2px;
  border: none;
  background: transparent;
  cursor: pointer;
  overflow: hidden;
  position: relative;
}

.card-thumb img,
.card-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 2px;
  opacity: .6;
  transition: opacity .2s;
}

.card-thumb.active img,
.card-thumb.active video,
.card-thumb:hover img,
.card-thumb:hover video {
  opacity: 1;
}

.card-thumb:has(video)::before {
  content: '▶';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(13, 27, 46, .6);
  color: #fff;
  font-size: 1.2rem;
  z-index: 2;
  transition: background .2s;
}

.card-thumb:hover:has(video)::before {
  background: rgba(13, 27, 46, .8);
}

.card-thumb.active::after {
  content: '';
  position: absolute;
  inset: 2px;
  border: 1.5px solid var(--gold);
  border-radius: 2px;
  pointer-events: none;
  z-index: 3;
}

.card-strip-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(13, 27, 46, .75);
  color: #fff;
  font-size: .8rem;
  display: grid;
  place-items: center;
  border: none;
  cursor: pointer;
  transition: background var(--t);
}

.card-strip-btn:hover {
  background: rgba(13, 27, 46, 1);
}

.card-strip-prev {
  left: 2px;
}

.card-strip-next {
  right: 2px;
}

.img-slot-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: relative;
}

.img-slot-preview:has(video)::after {
  content: '▶';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(13, 27, 46, .6);
  color: #fff;
  font-size: 2rem;
  z-index: 2;
  transition: background .2s;
}

.img-slot:hover .img-slot-preview:has(video)::after {
  background: rgba(13, 27, 46, .8);
}

.video-play-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: rgba(13, 27, 46, .68);
  color: #fff;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: .15rem;
  pointer-events: none;
  z-index: 2;
  border: 2px solid rgba(255, 255, 255, .35);
  transition: background .2s;
}

.property-card:hover .video-play-badge,
.img-slot:hover .video-play-badge {
  background: rgba(13, 27, 46, .88);
}

.slide-media {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s ease;
}

.card-slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(13, 27, 46, .58);
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 5;
  transition: background var(--t), opacity var(--t);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
  border: none;
}

.card-slider-btn:hover {
  background: rgba(13, 27, 46, .88);
}

.card-slider-prev {
  left: .4rem;
}

.card-slider-next {
  right: .4rem;
}

.card-slider-dots {
  position: absolute;
  bottom: .45rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: .28rem;
  pointer-events: none;
  z-index: 4;
}

.card-slider-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .45);
  transition: background .2s;
  flex-shrink: 0;
}

.card-slider-dot.active {
  background: var(--gold);
}

.badge {
  position: absolute;
  top: .7rem;
  left: .7rem;
  padding: .22rem .6rem;
  border-radius: var(--r-sm);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, .2);
}

.badge.apartment {
  background: rgba(49, 130, 206, .88);
  color: #fff;
}

.badge.house {
  background: rgba(47, 153, 100, .88);
  color: #fff;
}

.badge.villa {
  background: rgba(201, 168, 76, 1);
  color: #0d1b2e;
}

.badge.land {
  background: rgba(100, 116, 139, .88);
  color: #fff;
}

.badge.commercial {
  background: rgba(220, 60, 60, .88);
  color: #fff;
}

.card-body {
  padding: 1rem 1.2rem 1.2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card-body h2 {
  font-weight: 200;
  font-size: larger;
  color: #240079f0;
}

.card-body h3 {
  font-size: larger;
  font-weight: 100;
  color: var(--navy);
  line-height: 1.35;
  margin-bottom: .25rem;
}

.location {
  font-size: .76rem;
  color: #000000cc;
  margin-bottom: .875rem;
}

.card-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .38rem;
  margin-top: auto;
  padding-top: .875rem;
  border-top: 1px solid var(--border);
  min-height: 2.8rem;
  min-width: 19rem;
  text-align: center;
}

.card-body .card-meta span {
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  min-height: 2.3rem;
  font-size: small;
  padding: .35rem .6rem;
  background: gray;
}

.card-body .card-meta span:empty {
  border-color: transparent;
  background: transparent;
}

#modal-chips.card-meta span {
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  min-height: 2.3rem;
  font-size: small;
  padding: .35rem .3rem;
  background: gray;
}

#modal-chips.card-meta span:empty {
  border-color: transparent;
  background: transparent;
}

.card-meta .price {
  background: var(--navy);
  color: #ffd561;
  border-color: var(--navy);
  font-weight: 600;
  font-size: .8rem;
  padding: .29rem;
  border-radius: 6.5px;
}

.listing-tag {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  padding: .35rem .6rem;
  border-radius: var(--r-sm);
  align-self: center;
  display: inline-block;
  min-width: 44px;
  min-height: 24px;
  text-align: center;
  line-height: 1;
}

.listing-tag.sale {
  color: #8fbfff;
  padding: .6rem .6rem !important;
}

.listing-tag.rent {
  color: #6eefa9;
  padding: .6rem .6rem !important;
}

.card-footer {
  display: flex;
  justify-content: flex-end;
  padding-top: .625rem;
}

.btn-contact {
  background: var(--gold);
  color: var(--navy);
  padding: .45rem 1rem;
  border-radius: var(--r-sm);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  transition: background var(--t), transform .15s;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-contact:hover {
  background: var(--gold-lt);
  transform: translateY(-1px);
}

.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 1rem;
  color: var(--muted);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.3rem;
  font-weight: 400;
}

/* ─── Pagination ────────────────────────────────────────────────────────────── */

#pagination {
  display: flex;
  justify-content: center;
  gap: .4rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.pag-btn {
  min-width: 2.4rem;
  height: 2.4rem;
  padding: 0 .7rem;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--white);
  color: var(--text);
  font-size: .875rem;
  font-weight: 500;
  font-family: inherit;
  display: grid;
  place-items: center;
  transition: all var(--t);
}

.pag-btn:hover {
  border-color: var(--gold);
  color: var(--navy);
}

.pag-btn.active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

/* ─── Sort toolbar ──────────────────────────────────────────────────────────── */
#results-bar {
  position: sticky;
  top: calc(var(--header-h, 0px) + var(--filter-h, 0px));
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 .5rem;
}

.results-bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .6rem 0;
}

#results-count {
  width: 100%;
  text-align: center;
  font-size: .71rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0;
  margin-top: 1px;
}

#sort-bar {
  display: flex;
  align-items: center;
  gap: .35rem;
  flex-wrap: wrap;
}

.sort-label {
  font-size: .67rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: .15rem;
}

.sort-btn {
  padding: .4rem .8rem;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  background: var(--white);
  color: var(--text);
  font-size: .75rem;
  font-weight: 500;
  font-family: inherit;
  transition: all var(--t);
  white-space: nowrap;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sort-btn:hover {
  border-color: var(--gold);
  color: var(--navy);
}

.sort-btn.active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--gold);
  font-weight: 600;
}

/* ─── Footer ────────────────────────────────────────────────────────────────── */
#site-footer {
  background: var(--navy);
  border-top: 1px solid rgba(201, 168, 76, .2);
  padding: 2rem 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .45rem;
  text-align: center;
}

.footer-logo {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.2rem;
  color: var(--white);
}

.footer-logo strong {
  color: var(--gold);
}

#site-footer p {
  font-size: .75rem;
  color: rgba(255, 255, 255, .75);
}

/* ─── Modal ─────────────────────────────────────────────────────────────────── */
#property-modal {
  position: fixed;
  inset: 0;
  z-index: 600;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 1rem;
  overflow-y: auto;
}

#property-modal[hidden] {
  display: none;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13, 27, 46, .82);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.modal-panel {
  position: relative;
  z-index: 1;
  background: var(--white);
  border-radius: var(--r);
  width: 100%;
  max-width: 860px;
  margin: auto;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(13, 27, 46, .4);
}

.modal-close-btn {
  position: absolute;
  top: .75rem;
  right: .75rem;
  z-index: 10;
  width: 2.2rem;
  height: 2.2rem;
  background: rgba(13, 27, 46, .72);
  color: var(--white);
  border-radius: 50%;
  font-size: .85rem;
  display: grid;
  place-items: center;
  transition: background var(--t);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

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

.modal-hero-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.modal-hero-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity .2s ease;
}

.modal-hero-wrap video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.modal-hero-wrap .badge {
  position: absolute;
  top: .75rem;
  left: .75rem;
}

/* ─── Modal gallery strip (mirrors card thumbnail strip) ───────────────────── */
.modal-gallery-strip {
  height: 7rem;
  background: rgb(50 50 50 / 20%);
  position: relative;
  overflow: hidden;
}

.modal-strip-track {
  height: 7rem;
  display: flex;
  align-items: stretch;
  background: rgb(195 195 195 / 50%);
  position: relative;
  padding: .5rem 0;
  flex-wrap: nowrap;
  gap: 0;
  transition: transform .3s ease-out;
}

.modal-thumb {
  min-width: 33.3334%;
  height: 100%;
  flex-shrink: 0;
  padding: 3px;
  border: none;
  background: transparent;
  cursor: pointer;
  overflow: hidden;
  position: relative;
}

.modal-thumb img,
.modal-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 3px;
  opacity: .6;
  transition: opacity .2s;
  border: .13rem solid beige;
}

.modal-thumb.active img,
.modal-thumb.active video,
.modal-thumb:hover img,
.modal-thumb:hover video {
  opacity: 1;
}

.modal-thumb:has(video)::before {
  content: '▶';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(13, 27, 46, .6);
  color: #fff;
  font-size: 1.4rem;
  z-index: 2;
  border-radius: 3px;
  transition: background .2s;
}

.modal-thumb:hover:has(video)::before {
  background: rgba(13, 27, 46, .8);
}

.modal-thumb.active::after {
  content: '';
  position: absolute;
  inset: 3px;
  border: 2px solid var(--gold);
  border-radius: 3px;
  pointer-events: none;
  z-index: 3;
}

.modal-thumb-pad {
  pointer-events: none;
  opacity: 0;
}

@media (max-width: 514px) {
  .modal-thumb {
    min-width: 50%;
  }
}

.modal-image-counter {
  position: absolute;
  bottom: .5rem;
  right: .5rem;
  background: rgba(13, 27, 46, .85);
  color: var(--gold);
  padding: .3rem .6rem;
  border-radius: 3px;
  font-size: .75rem;
  font-weight: 600;
  z-index: 10;
  pointer-events: none;
}

.modal-strip-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(13, 27, 46, .75);
  color: #fff;
  font-size: .75rem;
  display: grid;
  place-items: center;
  border: none;
  cursor: pointer;
  transition: background var(--t);
}

.modal-strip-btn:hover {
  background: rgba(13, 27, 46, 1);
}

.modal-strip-prev {
  left: 3px;
}

.modal-strip-next {
  right: 3px;
}

@media (min-width: 640px) {
  .modal-gallery-strip {
    padding: 0 2.5rem;
  }
}

@media (max-width: 639px) {
  .modal-strip-btn {
    display: none;
  }
}

.modal-body {
  padding: 1.25rem 1.5rem 1.75rem;
}

.modal-body h2 {
  font-size: 1.3rem;
  font-weight: lighter;
  color: var(--navy);
  line-height: 1.3;
  margin-bottom: .3rem;
}

.modal-body .location {
  margin-bottom: .875rem;
}

.modal-description {
  margin-top: 1rem;
  font-size: .85rem;
  line-height: 1.65;
  color: var(--muted);
  font-style: italic;
}

/* ─── Tablet 640px+ ─────────────────────────────────────────────────────────── */
@media (min-width: 640px) {
  #hero h1 {
    font-size: 3.1rem;
  }

  .filters-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: end;
    gap: .875rem 1.25rem;
  }

  .filter-group--full {
    grid-column: 1 / -1;
  }

  .filter-actions {
    grid-column: 1 / -1;
  }

  #property-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  #property-modal {
    padding: 1.5rem;
  }
}

/* ─── Auth Modal ────────────────────────────────────────────────────────────── */
#auth-modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

#auth-modal[hidden] {
  display: none;
}

.auth-panel {
  position: relative;
  z-index: 1;
  background: var(--white);
  border-radius: var(--r);
  width: 100%;
  max-width: 400px;
  box-shadow: 0 24px 80px rgba(13, 27, 46, .4);
  overflow: hidden;
}

.auth-header {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: 1.5rem 1.5rem .75rem;
  background: var(--navy);
}

.auth-heading {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--white);
}

.auth-heading strong {
  font-weight: 700;
  color: var(--gold);
}

.auth-tabs {
  display: flex;
  border-bottom: 1px solid var(--border);
}

.auth-tab {
  flex: 1;
  padding: .85rem .5rem;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all var(--t);
}

.auth-tab:hover {
  color: var(--navy);
}

.auth-tab.active {
  color: var(--navy);
  border-bottom-color: var(--gold);
}

.auth-pane {
  padding: 1.25rem 1.5rem 1.5rem;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: .3rem;
  margin-bottom: .75rem;
}

.auth-field label {
  font-size: .67rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.auth-field input {
  padding: .6rem .75rem;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--cream);
  color: var(--text);
  font-family: inherit;
  font-size: .875rem;
  outline: none;
  transition: border-color var(--t);
}

.auth-field input:focus {
  border-color: var(--gold);
  background: var(--white);
}

.btn-auth-submit {
  width: 100%;
  background: var(--navy);
  color: var(--white);
  padding: .72rem 1rem;
  border-radius: var(--r-sm);
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .04em;
  margin-top: .25rem;
  transition: background var(--t);
}

.btn-auth-submit:hover {
  background: var(--navy-mid);
}

.auth-msg {
  margin-top: .875rem;
  font-size: .875rem;
  font-weight: 500;
  color: #2f9964;
  text-align: center;
}

.auth-msg[hidden] {
  display: none;
}

.auth-msg.error {
  color: #c0392b;
}

/* ─── Auth: forgot password link + password strength bar ───────────────────── */
.auth-forgot-link {
  display: block;
  margin-top: .75rem;
  font-size: .78rem;
  color: var(--muted);
  text-align: center;
  transition: color var(--t);
  cursor: pointer;
}

.auth-forgot-link:hover {
  color: var(--gold);
}

.auth-forgot-desc {
  font-size: .83rem;
  color: var(--muted);
  margin-bottom: 1rem;
  line-height: 1.55;
}

.pw-strength {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-top: .3rem;
}

.pw-strength-bar {
  flex: 1;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.pw-strength-fill {
  height: 100%;
  width: 0;
  border-radius: 2px;
  transition: width .25s ease, background-color .25s ease;
}

.pw-strength-fill.weak {
  width: 33%;
  background: #e74c3c;
}

.pw-strength-fill.medium {
  width: 66%;
  background: #f39c12;
}

.pw-strength-fill.strong {
  width: 100%;
  background: #27ae60;
}

.pw-strength-label {
  font-size: .67rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  min-width: 3rem;
  text-align: right;
}

.pw-strength[data-level="weak"] .pw-strength-label {
  color: #e74c3c;
}

.pw-strength[data-level="medium"] .pw-strength-label {
  color: #f39c12;
}

.pw-strength[data-level="strong"] .pw-strength-label {
  color: #27ae60;
}

/* ─── Seller Contact Modal ──────────────────────────────────────────────────── */
#contact-modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

#contact-modal[hidden] {
  display: none;
}

.contact-panel {
  position: relative;
  z-index: 1;
  background: var(--white);
  border-radius: var(--r);
  width: 100%;
  max-width: 380px;
  box-shadow: 0 24px 80px rgba(13, 27, 46, .4);
  overflow: hidden;
}

.contact-header {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: 1.25rem 1.5rem .75rem;
  background: var(--navy);
}

.contact-body {
  padding: 1.25rem 1.5rem 1.5rem;
}

.contact-prop-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 1rem;
  padding-bottom: .75rem;
  border-bottom: 1px solid var(--border);
  line-height: 1.35;
}

.contact-details {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .45rem .75rem;
  align-items: baseline;
}

.contact-details dt {
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.contact-details dd {
  font-size: .875rem;
  color: var(--text);
  word-break: break-all;
}

.contact-details a {
  color: var(--gold);
  text-decoration: underline;
}

/* ─── Auth field select (dashboard form) ───────────────────────────────────── */
.auth-field select {
  padding: .6rem .75rem;
  padding-right: 2rem;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--cream);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7' viewBox='0 0 11 7'%3E%3Cpath d='M1 1l4.5 4.5L10 1' stroke='%236b6b82' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .7rem center;
  color: var(--text);
  font-family: inherit;
  font-size: .875rem;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color var(--t);
}

.auth-field select:focus {
  border-color: var(--gold);
  background-color: var(--white);
}

/* ─── Dashboard Modal ────────────────────────────────────────────────────────── */
#dashboard-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 1rem;
  overflow-y: auto;
}

#dashboard-modal[hidden] {
  display: none;
}

.dash-panel {
  position: relative;
  z-index: 1;
  background: var(--white);
  border-radius: var(--r);
  width: 100%;
  max-width: 720px;
  margin: auto;
  box-shadow: 0 24px 80px rgba(13, 27, 46, .4);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: 1.25rem 1.5rem;
  background: var(--navy);
  flex-wrap: wrap;
}

.dash-header-left {
  display: flex;
  align-items: center;
  gap: .6rem;
}

.dash-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--white);
}

.dash-header-right {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.btn-dash-new {
  background: var(--gold);
  color: var(--navy);
  padding: .36rem .85rem;
  border-radius: var(--r-sm);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  transition: background var(--t);
}

.btn-dash-new:hover {
  background: var(--gold-lt);
}

.btn-dash-logout {
  padding: .36rem .75rem;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: var(--r-sm);
  color: rgba(255, 255, 255, .65);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  transition: all var(--t);
}

.btn-dash-logout:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.dash-close-btn {
  width: 2.2rem;
  height: 2.2rem;
  background: rgba(255, 255, 255, .12);
  color: var(--white);
  border-radius: 50%;
  font-size: .85rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: background var(--t);
}

.dash-close-btn:hover {
  background: rgba(255, 255, 255, .25);
}

.dash-greeting {
  padding: .65rem 1.5rem;
  font-size: .8rem;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}

.dash-body {
  padding: 1.25rem 1.5rem 1.5rem;
  max-height: 68vh;
  overflow-y: auto;
}

.dash-prop-list {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.dash-row {
  display: flex;
  flex-direction: column;
  gap: .45rem;
  padding: .85rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--cream);
  transition: border-color var(--t);
}

.dash-row:hover {
  border-color: var(--gold);
}

.dash-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
}

.dash-row-top .badge {
  position: static;
  flex-shrink: 0;
}

.dash-row-title {
  margin: 0;
  font-size: .9rem;
  font-weight: 600;
  color: var(--navy);
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1.3;
}

.dash-row-price {
  margin: 0;
  font-size: .85rem;
  font-weight: 700;
  color: var(--gold);
}

.dash-row-meta {
  font-size: .75rem;
  color: var(--muted);
}

.dash-row-actions {
  display: flex;
  gap: .4rem;
  margin-top: .2rem;
}

.dash-row-actions>button {
  flex: 1;
}

.btn-dash-preview {
  padding: .28rem .65rem;
  background: var(--gold);
  color: var(--navy);
  border: none;
  border-radius: var(--r-sm);
  font-size: .75rem;
  font-weight: 700;
  cursor: pointer;
  transition: background var(--t);
}

.btn-dash-preview:hover {
  background: var(--gold-lt);
}

.btn-dash-edit {
  padding: .28rem .65rem;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--r-sm);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  transition: background var(--t);
}

.btn-dash-edit:hover {
  background: var(--navy-mid);
}

.btn-dash-delete {
  padding: .28rem .65rem;
  background: #c0392b;
  color: var(--white);
  border-radius: var(--r-sm);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  transition: background var(--t);
}

.btn-dash-delete:hover {
  background: #a93226;
}

.dash-empty {
  text-align: center;
  padding: 2.5rem 1rem;
  color: var(--muted);
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.15rem;
}

.prop-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: .75rem;
}

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

.prop-form-full textarea {
  width: 100%;
  resize: vertical;
  min-height: 80px;
  padding: .5rem .75rem;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-family: inherit;
  font-size: .85rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--t);
}

.prop-form-full textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.char-counter {
  display: block;
  text-align: right;
  font-size: .7rem;
  color: var(--muted);
  margin-top: .2rem;
}

.lang-tabs-wrap {
  grid-column: 1 / -1;
}

.lang-tabs {
  display: flex;
  border-bottom: 2px solid var(--border);
  margin-bottom: 1rem;
}

.lang-tab {
  padding: .45rem .9rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  color: var(--muted);
  transition: color var(--t), border-color var(--t);
}

.lang-tab:hover {
  color: var(--navy);
}

.lang-tab.active {
  color: var(--navy);
  border-bottom-color: var(--gold);
}

.lang-tab-panel .auth-field {
  margin-bottom: .75rem;
}

.lang-tab-panel textarea {
  width: 100%;
  resize: vertical;
  min-height: 80px;
  padding: .55rem .7rem;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-family: inherit;
  font-size: .85rem;
  transition: border-color var(--t);
}

.lang-tab-panel textarea:focus {
  outline: none;
  border-color: var(--gold);
}

.form-translate-row {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-top: .5rem;
}

.btn-translate {
  padding: .4rem 1.1rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  background: var(--gold);
  color: var(--navy);
  border: none;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: background var(--t), transform .15s;
}

.btn-translate:hover:not(:disabled) {
  background: var(--gold-lt);
  transform: translateY(-1px);
}

.btn-translate:disabled {
  opacity: .5;
  cursor: not-allowed;
  transform: none;
}

.translate-status {
  font-size: .8rem;
  color: var(--muted);
}

.prop-form-actions {
  display: flex;
  gap: .6rem;
  margin-top: 1rem;
}

.prop-form-actions .btn-auth-submit {
  flex: 1;
  margin-top: 0;
}

.btn-dash-cancel {
  padding: .72rem 1.25rem;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  color: var(--muted);
  font-size: .875rem;
  font-weight: 500;
  transition: all var(--t);
}

.btn-dash-cancel:hover {
  border-color: var(--navy);
  color: var(--navy);
}

/* ─── Image upload slots ────────────────────────────────────────────────────── */
.img-upload-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .5rem;
  margin-top: .3rem;
}

.img-slot {
  position: relative;
  aspect-ratio: 4 / 3;
  border: 2px dashed var(--border);
  border-radius: var(--r-sm);
  cursor: pointer;
  overflow: hidden;
  background: var(--cream);
  transition: border-color var(--t), background var(--t);
}

.img-slot:hover {
  border-color: var(--gold);
  background: var(--cream-dk);
}

.img-slot input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
  width: 100%;
  height: 100%;
}

.img-slot-preview {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .2rem;
  z-index: 1;
  pointer-events: none;
}

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

.img-slot-icon {
  font-size: 1.5rem;
  line-height: 1;
  color: var(--muted);
  opacity: .35;
}

.img-slot-label {
  font-size: .6rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  padding: 0 .4rem;
}

@keyframes uploadPulse {

  0%,
  100% {
    opacity: .55;
  }

  50% {
    opacity: .9;
  }
}

.img-slot.uploading {
  pointer-events: none;
  animation: uploadPulse .9s ease-in-out infinite;
}

.btn-img-clear {
  position: absolute;
  top: .3rem;
  right: .3rem;
  z-index: 10;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, .55);
  color: #fff;
  font-size: .85rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background var(--t);
}

.btn-img-clear:hover {
  background: #c0392b;
}

/* ─── Footer legal links ────────────────────────────────────────────────────── */
.footer-legal {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: rgba(255, 255, 255, .75);
  font-size: .72rem;
}

.footer-legal-link {
  background: none;
  border: none;
  color: rgba(255, 255, 255, .75);
  font-size: .75rem;
  cursor: pointer;
  padding: .35rem .5rem;
  transition: color var(--t);
  min-height: 24px;
  display: inline-block;
  line-height: 1.2;
}

.footer-legal-link:hover {
  color: var(--gold);
}

/* ─── Legal Modal ────────────────────────────────────────────────────────────── */
#legal-modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

#legal-modal[hidden] {
  display: none;
}

.legal-panel {
  position: relative;
  z-index: 1;
  background: var(--white);
  border-radius: var(--r);
  width: 100%;
  max-width: 640px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
}

.legal-heading {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.25rem;
  color: var(--navy);
  padding: 1.5rem 1.5rem .75rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.legal-body {
  overflow-y: auto;
  padding: 1.25rem 1.5rem 1.5rem;
  font-size: .9rem;
  line-height: 1.7;
  color: var(--text);
}

.legal-body h3 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1rem;
  color: var(--navy);
  margin: 1.2rem 0 .3rem;
}

.legal-body h3:first-child {
  margin-top: 0;
}

.legal-body p {
  margin: 0 0 .5rem;
}

.legal-body a {
  color: var(--gold);
}

/* ─── Back to top ────────────────────────────────────────────────────────────── */
#btn-back-top {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 250;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: none;
  background: var(--gold);
  color: var(--navy);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .25);
  transition: background var(--t), transform var(--t);
  display: flex;
  align-items: center;
  justify-content: center;
}

#btn-back-top:hover {
  background: var(--gold-lt);
  transform: translateY(-2px);
}

#btn-back-top[hidden] {
  display: none;
}

@media (min-width: 640px) {
  .img-upload-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 640px) {
  .prop-form-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ─── Desktop 1024px+ ───────────────────────────────────────────────────────── */
@media (min-width: 1024px) {
  #hero {
    padding: 6rem 1.25rem 7rem;
  }

  #hero h1 {
    font-size: 3.8rem;
  }

  #hero p {
    font-size: 1.05rem;
  }


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

  .filter-group--full {
    grid-column: 1 / -1;
  }

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

/* ─── Cookie Consent Banner ─────────────────────────────────────────────────── */
#consent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9000;
  background: var(--navy);
  color: var(--white);
  padding: .875rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  box-shadow: 0 -4px 24px rgba(13, 27, 46, .3);
}

#consent-banner[hidden] {
  display: none;
}

#consent-banner p {
  flex: 1;
  margin: 0;
  font-size: .8rem;
  line-height: 1.5;
  color: var(--cream);
}

.consent-actions {
  display: flex;
  gap: .5rem;
  flex-shrink: 0;
}

#consent-accept {
  background: var(--gold);
  color: var(--navy);
  border: none;
  padding: .45rem 1.1rem;
  border-radius: var(--r-sm);
  font-weight: 700;
  font-size: .8rem;
  cursor: pointer;
  transition: opacity var(--t);
}

#consent-accept:hover {
  opacity: .85;
}

#consent-decline {
  background: transparent;
  color: var(--gold-lt);
  border: 1.5px solid var(--gold-lt);
  padding: .45rem 1.1rem;
  border-radius: var(--r-sm);
  font-weight: 500;
  font-size: .8rem;
  cursor: pointer;
  transition: opacity var(--t);
}

#consent-decline:hover {
  opacity: .7;
}

.modal-hero-wrap {
  position: relative;
}

/* ─── Prop checkboxes (garage / balcony / security) ─────────────────────────── */
.prop-checkboxes {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem .75rem;
  padding: .4rem 0;
}

.prop-checkbox {
  display: flex;
  align-items: center;
  gap: .35rem;
  font-size: .8rem;
  color: var(--text);
  cursor: pointer;
}

.prop-checkbox input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: var(--gold);
  cursor: pointer;
  flex-shrink: 0;
}