:root {
  --ink: #111111;
  --muted: #6f675b;
  --soft: #fbf6ee;
  --paper: #ffffff;
  --gold: #b38b4d;
  --gold-dark: #736247;
  --gold-light: #eedabc;
  --footer: #332f29;
  --line: rgba(115, 98, 71, 0.18);
  --shadow: 0 20px 55px rgba(28, 24, 18, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Montserrat", Arial, sans-serif;
  line-height: 1.6;
}

body.map-modal-open {
  overflow: hidden;
}

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

button {
  font: inherit;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 14px;
  font-weight: 500;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  font-size: clamp(42px, 6vw, 78px);
}

h2 {
  font-size: clamp(34px, 4vw, 52px);
}

h3 {
  font-size: 24px;
}

.property-card__action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  border: 0;
  background: var(--gold);
  color: #ffffff;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
}

.property-card__actions {
  display: grid;
  gap: 10px;
  margin-top: auto;
}

.property-card__actions .property-card__action {
  margin-top: 0;
}

.property-card__action--booking {
  background: var(--gold);
}

.property-card__action--secondary {
  border: 1px solid var(--gold-dark);
  background: #ffffff;
  color: var(--gold-dark);
}

.property-card__action--secondary:hover {
  background: var(--gold-dark);
  color: #ffffff;
}

.property-card__action:hover {
  background: var(--gold-dark);
}

.properties-section {
  padding: 0;
  background: transparent;
}

.property-toolbar {
  position: relative;
  display: flex;
  justify-content: center;
  max-width: 1180px;
  min-height: 50px;
  margin: 0 auto 22px;
}

.property-controls {
  display: flex;
  gap: 0;
  width: fit-content;
  margin: 0;
  border: 1px solid var(--line);
  background: #ffffff;
}

.map-view-button {
  position: absolute;
  top: 0;
  right: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 150px;
  min-height: 50px;
  padding: 0 26px;
  border: 3px double var(--gold-dark);
  background: #ffffff;
  color: var(--gold-dark);
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.map-view-button img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(39%) sepia(18%) saturate(853%) hue-rotate(359deg) brightness(91%) contrast(88%);
  transition: filter 160ms ease;
}

.map-view-button:hover {
  background: var(--gold-dark);
  color: #ffffff;
}

.map-view-button:hover img {
  filter: brightness(0) invert(1);
}

.tab-button {
  min-width: 138px;
  padding: 14px 22px;
  border: 0;
  background: transparent;
  color: var(--gold-dark);
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.tab-button.is-active {
  background: var(--gold-dark);
  color: #ffffff;
}

.property-filters {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(150px, 0.8fr) minmax(170px, 1fr) auto auto;
  gap: 12px;
  align-items: end;
  max-width: 1180px;
  margin: 0 auto 22px;
  padding: 16px;
  border: 1px solid var(--line);
  background: #ffffff;
}

.property-filters label {
  display: grid;
  gap: 7px;
  color: var(--gold-dark);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.property-filters select {
  width: 100%;
  min-height: 42px;
  padding: 0 36px 0 12px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: #ffffff;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
}

.featured-toggle {
  min-height: 42px;
  display: flex !important;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  border: 1px solid var(--line);
  color: var(--ink);
  cursor: pointer;
  text-transform: none;
}

.featured-toggle input {
  width: 16px;
  height: 16px;
  accent-color: var(--gold);
}

.clear-filters {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--gold-dark);
  background: transparent;
  color: var(--gold-dark);
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.clear-filters:hover {
  background: var(--gold-dark);
  color: #ffffff;
}

.property-summary {
  max-width: 1180px;
  margin: 0 auto 18px;
  color: var(--muted);
  font-size: 14px;
}

.property-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  max-width: 1180px;
  min-height: 90px;
  margin: 0 auto 18px;
  padding: 20px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--muted);
  text-align: center;
}

.property-status[hidden] {
  display: none;
}

.property-status--error {
  border-color: #a34c3d;
  color: #7d2f24;
}

.property-status--warning {
  border-color: var(--gold);
  color: var(--gold-dark);
}

.property-status button {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-weight: 600;
}

.property-status__spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--line);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: property-spin 700ms linear infinite;
}

@keyframes property-spin {
  to { transform: rotate(360deg); }
}

.property-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  max-width: 1180px;
  margin: 0 auto;
}

.property-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.property-card__media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #e9dfd0;
  cursor: pointer;
  text-align: left;
}

.property-card__media:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: -3px;
}

.property-card__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 260ms ease;
}

.property-card:hover img {
  transform: scale(1.04);
}

.property-card__badge {
  padding: 8px 12px;
  background: rgba(51, 47, 41, 0.9);
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.property-card__badges {
  position: absolute;
  top: 16px;
  left: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.property-card__badge--featured {
  background: var(--gold);
}

.property-card__content {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 18px;
  padding: 24px;
}

.property-card__price {
  color: var(--gold);
  font-size: 18px;
  font-weight: 600;
}

.property-card__location {
  margin: -10px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.property-card__features,
.modal-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.property-card__features strong,
.modal-stats strong {
  display: block;
  color: var(--ink);
  font-size: 16px;
  font-weight: 500;
}

.property-card__action {
  width: 100%;
  margin-top: auto;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 42px 24px;
  border: 1px solid var(--line);
  background: #ffffff;
  text-align: center;
}

.empty-state h3 {
  margin-bottom: 8px;
}

.empty-state p {
  margin: 0;
  color: var(--muted);
}

.property-modal {
  width: min(1120px, calc(100vw - 32px));
  height: min(880px, calc(100vh - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 0;
  background: transparent;
}

.property-modal::backdrop {
  background: rgba(17, 17, 17, 0.72);
}

.modal-shell {
  position: relative;
  height: 100%;
  overflow: auto;
  background: #ffffff;
  border-radius: 6px;
}

.modal-close {
  position: sticky;
  z-index: 4;
  top: 16px;
  float: right;
  width: 44px;
  height: 44px;
  margin: 16px 16px -60px 0;
  border: 0;
  background: rgba(51, 47, 41, 0.92);
  color: #ffffff;
  cursor: pointer;
  font-size: 30px;
  line-height: 1;
}

.property-detail {
  padding: 28px;
}

.property-detail__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 308px;
  gap: 26px;
  align-items: start;
}

.property-detail__main {
  min-width: 0;
}

.property-detail__side {
  align-self: start;
}

.modal-gallery {
  position: relative;
  height: clamp(430px, 47vh, 510px);
  overflow: hidden;
  border-radius: 8px;
  background: #e9dfd0;
  touch-action: pan-y;
  user-select: none;
}

.modal-gallery__main {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.gallery-arrow {
  position: absolute;
  z-index: 2;
  top: 50%;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--footer);
  cursor: pointer;
  font-size: 26px;
  line-height: 1;
  transform: translateY(-50%);
}

.gallery-arrow--prev {
  left: 12px;
}

.gallery-arrow--next {
  right: 12px;
}

.gallery-counter {
  position: absolute;
  right: 14px;
  bottom: 12px;
  min-width: 48px;
  padding: 5px 9px;
  border-radius: 99px;
  background: rgba(51, 47, 41, 0.78);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  text-align: center;
}

.modal-content {
  padding: 28px 0;
}

.modal-content p {
  color: var(--muted);
}

.modal-main {
  width: 100%;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.detail-tag {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 4px 10px;
  border-radius: 99px;
  background: var(--soft);
  color: var(--gold-dark);
  font-size: 11px;
  font-weight: 600;
}

.detail-tag--strong {
  background: var(--gold);
  color: #ffffff;
}

.modal-meta {
  margin: 12px 0 24px;
  color: var(--gold-dark);
  font-size: 14px;
}

.modal-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0;
  border-top: 0;
}

.modal-stats span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  font-size: 13px;
}

.modal-stats strong {
  display: inline;
  font-size: 13px;
  font-weight: 600;
}

.modal-main h3 {
  margin: 28px 0 10px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 20px;
  font-weight: 400;
}

.property-description {
  overflow-wrap: anywhere;
}

.property-description p {
  margin: 0 0 12px;
}

.property-description ul,
.property-description ol {
  margin: 8px 0 16px;
  padding-left: 22px;
  color: var(--muted);
}

.property-description li + li {
  margin-top: 6px;
}

.property-description blockquote {
  margin: 12px 0;
  padding-left: 14px;
  border-left: 3px solid var(--gold);
  color: var(--muted);
}

.property-description code {
  padding: 1px 4px;
  border-radius: 3px;
  background: var(--soft);
  font-family: Consolas, monospace;
}

.property-description u {
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.property-description > :last-child {
  margin-bottom: 0;
}

.amenities {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 26px;
  padding: 0;
  margin: 12px 0 0;
  list-style: none;
}

.amenities li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
}

.amenities li::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 0;
  width: 8px;
  height: 8px;
  border: 1px solid var(--gold);
  border-radius: 50%;
}

.contact-panel {
  align-self: start;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(28, 24, 18, 0.1);
}

.contact-panel__label {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 12px;
}

.contact-panel .price {
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-family: "Playfair Display", Georgia, serif;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.1;
}

.contact-agent {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--ink);
  font-size: 13px;
}

.contact-agent__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--soft);
  color: var(--gold-dark);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}

.contact-agent strong,
.contact-agent span {
  display: block;
}

.contact-agent span.contact-agent__avatar {
  display: inline-flex;
}

.contact-agent span {
  color: var(--muted);
  font-size: 12px;
}

.contact-agent span.contact-agent__avatar {
  display: inline-flex;
  color: var(--gold-dark);
  font-size: 13px;
  line-height: 1;
}

.contact-panel a,
.contact-panel button {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 10px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
}

.contact-panel .contact-panel__booking {
  border-color: var(--gold);
  background: var(--gold);
  color: #ffffff;
}

.contact-panel__primary {
  border-color: var(--gold);
  background: var(--gold);
  color: #ffffff;
}

.contact-panel__secondary {
  background: #ffffff;
  color: var(--ink);
}

.contact-panel__note {
  margin: 18px -22px -22px;
  padding: 18px 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.copy-link-button {
  width: 100%;
  min-height: 42px;
  margin-top: 10px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  color: var(--gold-dark);
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
}

.copy-link-button:hover {
  background: #ffffff;
}

.detail-location {
  margin-top: 4px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(28, 24, 18, 0.08);
}

.detail-location__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 18px 20px;
}

.detail-location__header h3 {
  margin: 0 0 4px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 20px;
  font-weight: 400;
}

.detail-location__header p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.detail-location__header a {
  color: var(--gold-dark);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

.detail-map {
  width: 100%;
  height: 340px;
  background: #e9dfd0;
}

.map-modal {
  width: min(1120px, calc(100vw - 32px));
  height: min(780px, calc(100vh - 32px));
  max-height: calc(100vh - 32px);
  padding: 0;
  border: 0;
  background: transparent;
}

.map-modal::backdrop {
  background: rgba(17, 17, 17, 0.72);
}

.map-modal__shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  height: 100%;
  overflow: hidden;
  border-radius: 6px;
  background: #ffffff;
  overscroll-behavior: contain;
}

.map-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.map-modal__header p,
.map-modal__header h2,
.map-modal__header span {
  margin: 0;
}

.map-modal__header p {
  color: var(--gold-dark);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
}

.map-modal__header h2 {
  margin-top: 3px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 25px;
  font-weight: 400;
}

.map-modal__header span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.map-modal__close {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border: 0;
  background: var(--footer);
  color: #ffffff;
  cursor: pointer;
  font-size: 30px;
  line-height: 1;
}

.global-map {
  width: 100%;
  height: 100%;
  min-height: 420px;
  background: #e9dfd0;
  overscroll-behavior: contain;
}

.map-unavailable {
  display: grid;
  place-items: center;
  height: 100%;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.map-unavailable.is-error {
  color: #7d2f24;
}

.vora-map-marker {
  border: 0;
  background: transparent;
}

.vora-map-marker span {
  position: relative;
  display: block;
  width: 30px;
  height: 30px;
  border: 4px solid #ffffff;
  border-radius: 50% 50% 50% 0;
  background: var(--gold);
  box-shadow: 0 3px 10px rgba(28, 24, 18, 0.35);
  transform: rotate(-45deg);
}

.vora-map-marker span::after {
  content: "";
  position: absolute;
  top: 7px;
  left: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffffff;
}

.marker-cluster-small,
.marker-cluster-medium,
.marker-cluster-large {
  background: rgba(179, 139, 77, 0.28);
}

.marker-cluster-small div,
.marker-cluster-medium div,
.marker-cluster-large div {
  background: var(--gold);
  color: #ffffff;
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 600;
}

.map-property-popup {
  display: grid;
  gap: 7px;
  min-width: 190px;
  font-family: "Montserrat", Arial, sans-serif;
}

.map-property-popup strong {
  color: var(--ink);
  font-size: 13px;
}

.map-property-popup span {
  color: var(--gold-dark);
  font-size: 12px;
  font-weight: 600;
}

.map-property-popup button {
  min-height: 34px;
  border: 0;
  background: var(--gold-dark);
  color: #ffffff;
  cursor: pointer;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .property-detail__layout {
    grid-template-columns: 1fr;
  }

  .modal-gallery {
    height: clamp(320px, 55vw, 430px);
  }

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

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

  .contact-panel {
    order: 2;
  }
}

@media (max-width: 640px) {
  .property-grid {
    grid-template-columns: 1fr;
  }

  .property-detail {
    padding: 16px;
  }

  .modal-gallery {
    height: 270px;
    min-height: 270px;
  }

  .modal-stats,
  .amenities {
    display: grid;
    grid-template-columns: 1fr;
  }

  .property-toolbar {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: stretch;
    gap: 10px;
  }

  .property-controls {
    width: 100%;
  }

  .map-view-button {
    position: static;
    width: 100%;
  }

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

  .tab-button {
    flex: 1;
    min-width: 0;
  }

  .detail-map {
    height: 250px;
  }

  .map-modal__header h2 {
    font-size: 21px;
  }

  .global-map {
    min-height: 360px;
  }

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