:root {
  --navy-950: #071525;
  --navy-900: #0d2238;
  --navy-800: #17324d;
  --slate-500: #6f89a2;
  --slate-300: #a7bdd1;
  --gold: #d5aa64;
  --gold-strong: #bc8f47;
  --line: rgba(255, 255, 255, 0.18);
  --card: rgba(8, 21, 35, 0.82);
  --text: #eaf2fb;
  --shadow: 0 18px 40px rgba(6, 15, 25, 0.35);
}

body[data-theme="light"] {
  --line: rgba(15, 35, 56, 0.16);
  --card: rgba(255, 255, 255, 0.9);
  --text: #16273a;
  --shadow: 0 14px 30px rgba(15, 35, 56, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 14%, rgba(213, 170, 100, 0.2), transparent 30%),
    radial-gradient(circle at 88% 76%, rgba(111, 137, 162, 0.22), transparent 28%),
    linear-gradient(180deg, var(--navy-950) 0%, var(--navy-900) 45%, var(--navy-800) 100%);
  min-height: 100vh;
}

body[data-theme="light"] {
  background:
    radial-gradient(circle at 12% 14%, rgba(213, 170, 100, 0.2), transparent 30%),
    radial-gradient(circle at 88% 76%, rgba(111, 137, 162, 0.18), transparent 28%),
    linear-gradient(180deg, #eef4fb 0%, #e7eef7 48%, #edf3fb 100%);
}

.bg-orb {
  position: fixed;
  z-index: -1;
  border-radius: 999px;
  filter: blur(56px);
  opacity: 0.45;
}

.orb-a {
  width: 240px;
  height: 240px;
  background: rgba(213, 170, 100, 0.28);
  top: -70px;
  left: -70px;
}

.orb-b {
  width: 300px;
  height: 300px;
  background: rgba(111, 137, 162, 0.24);
  right: -90px;
  bottom: 8%;
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.topbar {
  color: var(--text);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(rgba(5, 13, 22, 0.82), rgba(5, 13, 22, 0.82)),
    url("https://images.unsplash.com/photo-1479839672679-a46483c0e7c8?auto=format&fit=crop&w=1600&q=80") center/cover;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.34);
}

.footerbar {
  margin-top: 36px;
  border-bottom: 0;
  border-top: 1px solid var(--line);
  box-shadow: 0 -10px 28px rgba(0, 0, 0, 0.24);
}

.footerbar-inner {
  padding: 18px 0;
}

.footerbar .brand {
  font-size: clamp(1.4rem, 3vw, 2.1rem);
}

.footerbar .tagline,
.footerbar .contact p {
  margin: 2px 0;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0 16px;
}

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

.brand {
  margin: 0;
  font-family: "DM Serif Display", serif;
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 0.95;
}

.brand span {
  color: #f0d8af;
}

.tagline,
.contact p {
  margin: 2px 0;
  color: rgba(234, 242, 251, 0.86);
}

.contact {
  text-align: right;
  font-weight: 700;
}

.theme-toggle {
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

body[data-theme="light"] .theme-toggle {
  border-color: rgba(15, 35, 56, 0.22);
  background: rgba(255, 255, 255, 0.8);
}

/* Keep the top navigation identical across themes */
body[data-theme="light"] .topbar {
  color: #eaf2fb;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(rgba(5, 13, 22, 0.82), rgba(5, 13, 22, 0.82)),
    url("https://images.unsplash.com/photo-1479839672679-a46483c0e7c8?auto=format&fit=crop&w=1600&q=80") center/cover;
}

body[data-theme="light"] .footerbar {
  border-bottom: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

body[data-theme="light"] .nav a {
  color: #eaf2fb;
}

body[data-theme="light"] .nav a:hover {
  background: rgba(255, 255, 255, 0.12);
}

body[data-theme="light"] .tagline,
body[data-theme="light"] .contact p {
  color: rgba(234, 242, 251, 0.86);
}

body[data-theme="light"] .brand span {
  color: #f0d8af;
}

body[data-theme="light"] .topbar .theme-toggle {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.1);
  color: #eaf2fb;
}

.nav {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding-bottom: 10px;
}

.nav a {
  color: var(--text);
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 8px 8px 0 0;
  font-weight: 700;
}

.nav a:hover {
  background: rgba(255, 255, 255, 0.12);
}

.hero {
  margin-top: 28px;
  display: block;
}

.featured-property {
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: var(--card);
  box-shadow: var(--shadow);
  position: relative;
  transform: translateY(12px);
  animation: rise 700ms ease forwards;
}

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

.featured-property img {
  width: 100%;
  height: clamp(280px, 45vw, 420px);
  object-fit: cover;
  display: block;
}

.featured-badge {
  position: absolute;
  z-index: 2;
  top: 14px;
  left: 14px;
  background: var(--gold);
  color: #13273d;
  padding: 7px 12px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 0.82rem;
}

.featured-overlay {
  position: absolute;
  inset: auto 0 0 0;
  background: linear-gradient(180deg, transparent 4%, rgba(7, 18, 31, 0.82) 45%, rgba(7, 18, 31, 0.94) 100%);
  color: var(--text);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-end;
  padding: 22px;
}

.featured-overlay h2 {
  margin: 0 0 8px;
  font-family: "DM Serif Display", serif;
  font-size: clamp(1.2rem, 2.4vw, 1.9rem);
}

.featured-overlay p {
  margin: 0;
  color: rgba(233, 243, 253, 0.84);
  max-width: 52ch;
}

.featured-price-wrap {
  text-align: right;
}

.price {
  font-size: clamp(1.25rem, 2.2vw, 2rem);
  font-weight: 900;
  color: #f0d8af;
}

.search-panel,
.owner-upload,
.login-card,
.cta {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04));
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

body[data-theme="light"] .search-panel,
body[data-theme="light"] .search-panel-below,
body[data-theme="light"] .owner-upload,
body[data-theme="light"] .login-card,
body[data-theme="light"] .cta,
body[data-theme="light"] .card,
body[data-theme="light"] .featured-property {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 250, 255, 0.95));
}

.search-panel {
  padding: 18px;
}

.search-block {
  margin-top: 22px;
}

.search-panel-below {
  max-width: 100%;
  padding: 20px;
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(12, 33, 54, 0.9), rgba(8, 23, 38, 0.9)),
    radial-gradient(circle at 90% -10%, rgba(213, 170, 100, 0.24), transparent 36%);
}

body[data-theme="light"] .search-panel-below {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 249, 255, 0.96)),
    radial-gradient(circle at 90% -10%, rgba(213, 170, 100, 0.2), transparent 38%);
}

.search-panel-below summary {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  cursor: pointer;
  font-family: "DM Serif Display", serif;
  font-size: 1.45rem;
  font-weight: 700;
}

.search-panel-below summary::-webkit-details-marker {
  display: none;
}

.search-panel-below summary::before {
  content: "";
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: radial-gradient(circle at 35% 35%, #f8e2be, #d5aa64 68%);
  box-shadow: 0 0 0 3px rgba(213, 170, 100, 0.16);
}

.search-panel-below summary::after {
  content: "▾";
  margin-left: auto;
  font-size: 0.95rem;
  color: #f0d8af;
  transition: transform 180ms ease;
}

.search-accordion:not([open]) summary {
  margin-bottom: 0;
}

.search-accordion:not([open]) summary::after {
  transform: rotate(-90deg);
}

.search-accordion[open] .search-form {
  margin-top: 8px;
}

.search-panel-below .search-form {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.search-panel-below .search-form label {
  padding: 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.search-panel-below .search-form label:nth-of-type(4) {
  grid-column: span 2;
}

.search-panel-below .search-form button {
  margin-top: 2px;
  min-height: 44px;
}

.search-panel-below .search-form button[type="submit"] {
  grid-column: 2;
}

.search-panel-below .search-form button[type="button"] {
  grid-column: 3;
}

.search-panel h3,
.section-head h3,
.cta h3,
.owner-upload h3,
.login-card h2 {
  margin: 0 0 12px;
  font-family: "DM Serif Display", serif;
  font-size: 1.8rem;
}

.search-form,
.owner-upload-form {
  display: grid;
  gap: 10px;
}

label {
  display: grid;
  gap: 6px;
  color: rgba(234, 242, 251, 0.92);
  font-weight: 700;
  font-size: 0.94rem;
}

body[data-theme="light"] label {
  color: rgba(21, 43, 67, 0.88);
}

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

input,
select,
textarea {
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  padding: 9px 10px;
  background: rgba(4, 12, 21, 0.6);
  color: var(--text);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

body[data-theme="light"] input,
body[data-theme="light"] select,
body[data-theme="light"] textarea {
  border: 1px solid rgba(18, 40, 64, 0.24);
  background: rgba(255, 255, 255, 0.95);
  color: #17324d;
}

body[data-theme="light"] input::placeholder {
  color: #6f89a2;
}

input::placeholder {
  color: #9ab0c4;
}

.btn {
  border: 0;
  border-radius: 10px;
  background: linear-gradient(180deg, var(--gold), var(--gold-strong));
  color: #13273d;
  padding: 10px 14px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 120ms ease, filter 120ms ease;
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.06);
}

.btn.secondary {
  background: linear-gradient(180deg, #7ea6cb, #5a83ac);
  color: #f1f7fd;
}

.btn.ghost {
  background: rgba(255, 255, 255, 0.16);
  color: var(--text);
}

body[data-theme="light"] .btn.ghost {
  background: rgba(18, 40, 64, 0.1);
}

.btn.small {
  padding: 8px 10px;
  font-size: 0.9rem;
}

.wa-float {
  --wa-green: #24c05a;
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 999;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 10px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  text-decoration: none;
  color: #f3fff7;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.32), transparent 56%),
    linear-gradient(160deg, #2cd06a 0%, #1eae4e 65%, #199945 100%);
  box-shadow:
    0 14px 28px rgba(18, 70, 35, 0.36),
    0 0 0 0 rgba(36, 192, 90, 0.35);
  transition: transform 200ms ease, box-shadow 200ms ease, filter 200ms ease;
  animation: wa-soft-float 2.8s ease-in-out infinite;
}

.wa-float::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 999px;
  border: 1px solid rgba(44, 208, 106, 0.35);
  animation: wa-pulse 2.2s ease-out infinite;
}

.wa-float:hover {
  transform: translateY(-2px) scale(1.02);
  filter: saturate(1.06);
  box-shadow:
    0 20px 34px rgba(15, 58, 30, 0.42),
    0 0 0 10px rgba(36, 192, 90, 0.16);
}

.wa-float:focus-visible {
  outline: 3px solid rgba(35, 169, 79, 0.42);
  outline-offset: 2px;
}

.wa-float__icon {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.24);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24);
}

.wa-float__icon svg {
  width: 20px;
  height: 20px;
  fill: #ffffff;
}

.wa-float__text {
  font-weight: 900;
  letter-spacing: 0.2px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.22);
}

body[data-theme="light"] .wa-float {
  border-color: rgba(19, 69, 37, 0.18);
  box-shadow:
    0 12px 26px rgba(23, 89, 45, 0.24),
    0 0 0 0 rgba(36, 192, 90, 0.22);
}

@keyframes wa-soft-float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-3px);
  }
}

@keyframes wa-pulse {
  0% {
    opacity: 0.85;
    transform: scale(1);
  }

  100% {
    opacity: 0;
    transform: scale(1.12);
  }
}

.listing-section {
  margin-top: 28px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.section-head p,
.owner-upload p,
.login-card p,
.cta p,
.small-note {
  color: rgba(233, 243, 253, 0.8);
}

body[data-theme="light"] .section-head p,
body[data-theme="light"] .owner-upload p,
body[data-theme="light"] .login-card p,
body[data-theme="light"] .cta p,
body[data-theme="light"] .small-note,
body[data-theme="light"] .meta,
body[data-theme="light"] .description {
  color: rgba(25, 46, 70, 0.8);
}

.cards {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.card {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--card);
  box-shadow: 0 12px 25px rgba(16, 34, 53, 0.18);
  opacity: 0;
  transform: translateY(12px);
  animation: card-in 420ms ease forwards;
}

@keyframes card-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.card-body {
  padding: 14px;
}

.pill {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 0.82rem;
  background: rgba(213, 170, 100, 0.2);
  color: #f0d8af;
  font-weight: 900;
  padding: 5px 9px;
  border-radius: 999px;
}

body[data-theme="light"] .pill {
  background: rgba(213, 170, 100, 0.18);
  color: #8c6932;
}

.card h4 {
  margin: 0;
  font-family: "DM Serif Display", serif;
  font-size: 1.34rem;
}

.meta,
.description {
  margin: 8px 0;
  color: rgba(233, 243, 253, 0.78);
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.card-footer .price {
  margin: 0;
  font-size: 1.3rem;
}

.empty {
  border: 1px dashed rgba(255, 255, 255, 0.38);
  border-radius: 12px;
  padding: 24px;
  background: rgba(8, 21, 35, 0.55);
  color: rgba(233, 243, 253, 0.8);
  font-weight: 700;
}

body[data-theme="light"] .empty {
  border-color: rgba(18, 40, 64, 0.22);
  background: rgba(255, 255, 255, 0.86);
  color: rgba(21, 43, 67, 0.8);
}

.owner-upload,
.login-card,
.cta {
  margin-top: 28px;
  padding: 20px;
  display: grid;
  gap: 14px;
}

.cta-head {
  max-width: 65ch;
}

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

.contact-form label {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 10px;
}

body[data-theme="light"] .contact-form label {
  background: rgba(15, 35, 56, 0.03);
  border-color: rgba(18, 40, 64, 0.12);
}

.contact-message,
.contact-actions,
#contact-message {
  grid-column: 1 / -1;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.owner-upload-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.owner-manage {
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04));
  box-shadow: var(--shadow);
  display: grid;
  gap: 14px;
}

body[data-theme="light"] .owner-manage {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 250, 255, 0.95));
}

.owner-list {
  display: grid;
  gap: 10px;
}

.owner-list-card {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  align-items: center;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  transition: background 160ms ease;
}

body[data-theme="light"] .owner-list-card {
  background: rgba(15, 35, 56, 0.03);
}

.owner-list-card:hover {
  background: rgba(255, 255, 255, 0.08);
}

body[data-theme="light"] .owner-list-card:hover {
  background: rgba(15, 35, 56, 0.06);
}

.owner-list-card__img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}

.owner-list-card__body {
  padding: 8px 12px;
  min-width: 0;
}

.owner-list-card__title {
  margin: 4px 0 2px;
  font-weight: 800;
  font-size: 0.96rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.owner-list-card__meta {
  margin: 0;
  font-size: 0.84rem;
  color: rgba(233, 243, 253, 0.72);
}

body[data-theme="light"] .owner-list-card__meta {
  color: rgba(21, 43, 67, 0.72);
}

.owner-list-card__price {
  margin: 4px 0 0;
  font-weight: 900;
  font-size: 1rem;
  color: #f0d8af;
}

body[data-theme="light"] .owner-list-card__price {
  color: #8c6932;
}

.owner-list-card__actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 10px 10px 0;
}

.dropzone {
  border: 2px dashed rgba(255, 255, 255, 0.35);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  padding: 16px;
  text-align: center;
  cursor: pointer;
}

body[data-theme="light"] .dropzone {
  border-color: rgba(18, 40, 64, 0.25);
  background: rgba(15, 35, 56, 0.04);
}

.dropzone p {
  margin: 0;
}

.dropzone-note {
  margin-top: 4px !important;
  font-size: 0.86rem;
}

.dropzone.is-dragover {
  border-color: #f0d8af;
  background: rgba(213, 170, 100, 0.16);
}

.dropzone:focus-visible {
  outline: 3px solid rgba(213, 170, 100, 0.35);
  outline-offset: 2px;
}

.drop-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 8px;
}

.drop-thumb-wrapper {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.32);
  cursor: grab;
  transition: opacity 0.18s, outline 0.12s;
  user-select: none;
}

body[data-theme="light"] .drop-thumb-wrapper {
  border-color: rgba(18, 40, 64, 0.22);
}

.drop-thumb-wrapper.is-dragging {
  opacity: 0.3;
}

.drop-thumb-wrapper.drag-over {
  outline: 2px solid var(--gold, #d4aa64);
  outline-offset: -2px;
}

.drop-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.drop-thumb-remove {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(8, 14, 22, 0.75);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.15s;
  z-index: 1;
}

.drop-thumb-remove:hover {
  background: #c0392b;
}

.drop-thumb-badge {
  position: absolute;
  bottom: 5px;
  left: 5px;
  background: var(--gold, #d4aa64);
  color: #0d1f30;
  font-size: 0.66rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  pointer-events: none;
  z-index: 1;
}

details {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(8, 21, 35, 0.45);
  padding: 10px;
}

summary {
  cursor: pointer;
  font-weight: 800;
}

pre {
  white-space: pre-wrap;
  margin: 10px 0 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.85rem;
  color: #dbe8f5;
}

.msg {
  min-height: 1.1rem;
  margin: 4px 0 0;
  font-weight: 700;
  color: #d4e3f2;
}

body[data-theme="light"] .msg {
  color: #1f3c5a;
}

.msg.ok {
  color: #95f7b7;
}

.msg.error {
  color: #ffafaf;
}

.login-main {
  min-height: calc(100vh - 240px);
  display: grid;
  place-items: center;
  padding: 30px 0;
}

.login-card {
  width: min(520px, 100%);
}

@media (max-width: 980px) {
  .featured-overlay {
    position: static;
    background: #0c2239;
    display: grid;
    gap: 10px;
  }

  .featured-price-wrap {
    text-align: left;
  }

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

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

  .search-panel-below .search-form label:nth-of-type(4) {
    grid-column: span 2;
  }

  .search-panel-below .search-form button[type="submit"],
  .search-panel-below .search-form button[type="button"] {
    grid-column: auto;
  }
}

@media (max-width: 660px) {
  .topbar-inner {
    display: grid;
    gap: 10px;
  }

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

  .contact {
    text-align: left;
  }

  .section-head {
    display: grid;
    gap: 6px;
  }

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

  .search-panel-below .search-form {
    grid-template-columns: 1fr;
  }

  .search-panel-below .search-form label:nth-of-type(4) {
    grid-column: auto;
  }

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

  .wa-float {
    right: 12px;
    bottom: 12px;
    padding: 9px 11px;
  }

  .wa-float__text {
    display: none;
  }
}

/* ─────────────────────────── Property Detail Page ────────────────────────── */

.detail-back {
  margin: 24px 0 0;
}

.prop-detail {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: 32px;
  margin-top: 20px;
}

/* ── Carousel ── */
.prop-carousel {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(8, 21, 35, 0.6);
  line-height: 0;
}

body[data-theme="light"] .prop-carousel {
  background: rgba(15, 35, 56, 0.08);
}

.prop-carousel__main {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.prop-carousel__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.46);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: background 0.15s;
}

.prop-carousel__nav:hover {
  background: rgba(0, 0, 0, 0.72);
}

.prop-carousel__nav--prev {
  left: 10px;
}

.prop-carousel__nav--next {
  right: 10px;
}

.prop-carousel__thumbs {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.prop-carousel__thumb {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 7px;
  cursor: pointer;
  border: 2px solid transparent;
  opacity: 0.55;
  flex-shrink: 0;
  transition: opacity 0.15s, border-color 0.15s;
}

.prop-carousel__thumb.is-active,
.prop-carousel__thumb:hover {
  opacity: 1;
  border-color: var(--gold);
}

/* ── Info panel ── */
.prop-detail__info {
  display: grid;
  gap: 16px;
  align-content: start;
}

.prop-detail__title {
  margin: 0;
  font-family: "DM Serif Display", serif;
  font-size: clamp(1.4rem, 2.8vw, 2.2rem);
  line-height: 1.15;
}

.prop-detail__price {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
  font-weight: 900;
  color: #f0d8af;
}

body[data-theme="light"] .prop-detail__price {
  color: #8c6932;
}

.prop-detail__specs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.prop-spec {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

body[data-theme="light"] .prop-spec {
  background: rgba(15, 35, 56, 0.04);
}

.prop-spec__label {
  font-size: 0.74rem;
  font-weight: 700;
  color: rgba(233, 243, 253, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

body[data-theme="light"] .prop-spec__label {
  color: rgba(21, 43, 67, 0.55);
}

.prop-spec__value {
  font-size: 0.96rem;
  font-weight: 800;
}

.prop-detail__desc {
  margin: 0;
  line-height: 1.7;
  color: rgba(233, 243, 253, 0.8);
}

body[data-theme="light"] .prop-detail__desc {
  color: rgba(21, 43, 67, 0.8);
}

.prop-detail__media {
  min-width: 0;
}

.prop-detail__wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  background: linear-gradient(160deg, #2cd06a 0%, #199945 100%);
  color: #fff;
  font-weight: 900;
  text-decoration: none;
  transition: filter 0.15s, transform 0.15s;
  align-self: start;
}

.prop-detail__wa:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}

/* ── Recommended section ── */
.recommended-section {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  margin-bottom: 40px;
}

/* ── Responsive ── */
@media (max-width: 980px) {
  .prop-detail {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 660px) {
  .prop-detail__specs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .prop-carousel__thumb {
    width: 64px;
    height: 48px;
  }
}
