:root {
  --brand: #a52632;
  --brand-dark: #851d27;
  --brand-soft: #fbf0f1;
  --whatsapp: #168b52;
  --ink: #27272a;
  --muted: #71717a;
  --subtle: #a1a1aa;
  --line: #e4e4e7;
  --line-strong: #d4d4d8;
  --surface: #ffffff;
  --canvas: #f7f7f8;
  --canvas-warm: #faf9f8;
  --warning: #9a6700;
  --radius: 6px;
  --header-height: 64px;
  --container: 1120px;
  --shadow-faint: 0 1px 2px rgba(39, 39, 42, 0.06);
  font-family: Tahoma, Arial, sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--canvas);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.7;
}

body[data-page="admin"] {
  background: #f5f5f6;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

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

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

svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

:focus-visible {
  outline: 3px solid rgba(165, 38, 50, 0.28);
  outline-offset: 2px;
}

.container {
  width: min(calc(100% - 32px), var(--container));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  inset-block-start: 8px;
  inset-inline-start: 16px;
  z-index: 100;
  padding: 8px 14px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.svg-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.site-header {
  position: relative;
  z-index: 20;
  height: var(--header-height);
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-faint);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 34px;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
}

.brand img {
  width: 168px;
  height: 46px;
}

.main-nav {
  align-self: stretch;
  display: flex;
  align-items: stretch;
  gap: 28px;
}

.main-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-width: 52px;
  color: #52525b;
  font-weight: 600;
}

.main-nav a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  inset-block-end: -1px;
  height: 2px;
  background: transparent;
}

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

.main-nav a.active::after {
  background: var(--brand);
}

.header-actions {
  margin-inline-start: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search,
.menu-button {
  min-height: 42px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease;
}

.header-search {
  min-width: 92px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
}

.header-search svg {
  width: 18px;
  height: 18px;
}

.header-search:hover,
.menu-button:hover {
  border-color: var(--brand);
  background: var(--brand-soft);
}

.menu-button {
  display: none;
  width: 44px;
  align-items: center;
  justify-content: center;
}

.mobile-nav {
  position: absolute;
  inset-inline: 0;
  inset-block-start: var(--header-height);
  padding-block: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 0;
  box-shadow: 0 8px 20px rgba(39, 39, 42, 0.1);
}

.mobile-nav a {
  display: block;
  min-height: 44px;
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
}

.mobile-nav a:last-child {
  border-bottom: 0;
}

.mobile-nav a.active {
  color: var(--brand);
  font-weight: 700;
}

.search-section {
  padding-block: 22px 16px;
  background: var(--surface);
}

.search-bar {
  display: flex;
  gap: 8px;
}

.search-input {
  min-width: 0;
  flex: 1;
  position: relative;
}

.search-input svg {
  position: absolute;
  inset-inline-start: 15px;
  inset-block-start: 50%;
  width: 20px;
  height: 20px;
  color: var(--muted);
  transform: translateY(-50%);
  pointer-events: none;
}

.search-input input,
.field input,
.field select,
.field textarea,
.sort-field select,
.language-select select,
.admin-toolbar input,
.admin-toolbar select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.search-input input {
  height: 50px;
  padding: 0 48px 0 15px;
  font-size: 15px;
}

.search-input input:focus,
.field input:focus,
.field select:focus,
.field textarea:focus,
.sort-field select:focus,
.admin-toolbar input:focus,
.admin-toolbar select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(165, 38, 50, 0.11);
}

.primary-button,
.secondary-button,
.whatsapp-button {
  min-height: 44px;
  border-radius: var(--radius);
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  font-weight: 700;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 100ms ease;
}

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

.primary-button:hover {
  background: var(--brand-dark);
}

.secondary-button {
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--ink);
}

.secondary-button:hover {
  border-color: var(--brand);
  color: var(--brand);
}

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

.whatsapp-button:hover {
  background: #0f7543;
}

.primary-button:active,
.secondary-button:active,
.whatsapp-button:active {
  transform: translateY(1px);
}

.search-submit {
  height: 50px;
  min-width: 96px;
}

.filter-toggle {
  display: none;
  min-height: 50px;
  padding: 0 12px;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  font-weight: 700;
}

.filter-toggle svg {
  width: 18px;
}

.mobile-filter-panel {
  padding-top: 12px;
}

.category-section {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.category-scroller {
  display: flex;
  align-items: center;
  gap: 2px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
}

.category-scroller::-webkit-scrollbar {
  display: none;
}

.category-link {
  position: relative;
  flex: 0 0 auto;
  min-height: 46px;
  padding: 0 11px;
  border: 0;
  background: transparent;
  color: #52525b;
  cursor: pointer;
  white-space: nowrap;
}

.category-link::after {
  content: "";
  position: absolute;
  inset-inline: 11px;
  inset-block-end: 0;
  height: 2px;
  background: transparent;
}

.category-link:hover,
.category-link.active {
  color: var(--brand);
}

.category-link.active {
  font-weight: 700;
}

.category-link.active::after {
  background: var(--brand);
}

.more-category {
  color: var(--brand);
  font-weight: 700;
}

.city-section {
  padding-block: 18px 20px;
  background: var(--canvas-warm);
  border-bottom: 1px solid var(--line);
}

.section-heading h2,
.results-toolbar h2,
.detail-section h2,
.booking-card h2 {
  margin: 0;
  font-size: 17px;
  line-height: 1.5;
}

.compact-heading {
  margin-bottom: 11px;
}

.city-links {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.city-links button {
  min-height: 58px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  text-align: start;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease;
}

.city-links button:hover,
.city-links button.active {
  border-color: var(--brand);
  background: var(--brand-soft);
}

.city-links strong,
.city-links span {
  display: block;
}

.city-links strong {
  font-size: 14px;
}

.city-links span {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.results-section {
  padding-block: 22px 32px;
}

.feed-layout {
  display: grid;
  grid-template-columns: 254px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.filter-card {
  position: sticky;
  inset-block-start: 16px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.filter-card-title,
.results-toolbar,
.section-title-row,
.property-title-row,
.table-footer,
.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.filter-card-title {
  margin-bottom: 14px;
}

.filter-card-title h2 {
  margin: 0;
  font-size: 16px;
}

.text-button {
  padding: 5px;
  border: 0;
  background: transparent;
  color: var(--brand);
  cursor: pointer;
}

.field {
  display: grid;
  gap: 6px;
  margin-bottom: 13px;
}

.field > span {
  color: #52525b;
  font-size: 12px;
  font-weight: 700;
}

.field input,
.field select {
  height: 44px;
  padding: 0 11px;
}

.field textarea {
  padding: 10px 11px;
  resize: vertical;
}

.two-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.apply-filters,
.full-button {
  width: 100%;
}

.results-column {
  min-width: 0;
}

.results-toolbar {
  min-height: 54px;
  padding: 0 2px 13px;
  align-items: flex-end;
}

.results-toolbar p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.sort-field {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.sort-field select {
  width: 154px;
  min-height: 38px;
  padding: 0 10px;
}

.listing-grid {
  display: grid;
  gap: 10px;
}

.listing-card {
  position: relative;
  display: flex;
  min-height: 180px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 160ms ease, background 160ms ease;
}

.listing-card:hover {
  border-color: #b9b9bf;
  background: #fefefe;
}

.listing-media {
  position: relative;
  flex: 0 0 228px;
  overflow: hidden;
  background: #ededee;
  border-inline-end: 1px solid var(--line);
}

.listing-media img {
  width: 100%;
  height: 100%;
  min-height: 178px;
  object-fit: cover;
  transition: transform 220ms ease;
}

.listing-card:hover .listing-media img {
  transform: scale(1.015);
}

.listing-badge {
  display: inline-flex;
  min-height: 24px;
  padding: 2px 8px;
  align-items: center;
  border-radius: 3px;
  background: var(--brand);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.listing-media .listing-badge {
  position: absolute;
  z-index: 2;
  inset-block-start: 10px;
  inset-inline-start: 10px;
}

.card-favorite {
  position: absolute;
  z-index: 3;
  inset-block-start: 10px;
  inset-inline-end: 10px;
  width: 38px;
  height: 38px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.93);
  color: #52525b;
  cursor: pointer;
  box-shadow: var(--shadow-faint);
}

.card-favorite:hover,
.card-favorite.saved {
  color: var(--brand);
}

.card-favorite.saved svg {
  fill: currentColor;
}

.listing-body {
  min-width: 0;
  flex: 1;
  padding: 12px 14px 10px;
}

.listing-title {
  margin: 0 0 4px;
  overflow: hidden;
  color: #252528;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.55;
  text-wrap: pretty;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.listing-price {
  margin-bottom: 5px;
  display: flex;
  align-items: baseline;
  gap: 5px;
  color: var(--brand);
}

.listing-price strong {
  font-size: 20px;
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
}

.listing-price span {
  font-size: 12px;
  font-weight: 700;
}

.listing-specs {
  margin: 0 0 6px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 15px;
  color: #52525b;
  list-style: none;
  font-size: 12px;
}

.listing-specs li {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.listing-specs svg {
  width: 17px;
  height: 17px;
  color: var(--muted);
}

.listing-excerpt {
  margin: 0 0 5px;
  overflow: hidden;
  color: #626269;
  font-size: 12px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.listing-location {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 11px;
}

.listing-location svg {
  width: 15px;
  height: 15px;
}

.listing-time {
  margin-inline-start: auto;
  color: var(--subtle);
}

.empty-state {
  padding: 46px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  text-align: center;
}

.empty-state > svg {
  width: 38px;
  height: 38px;
  color: var(--subtle);
}

.empty-state h3 {
  margin: 10px 0 2px;
}

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

.pagination {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 5px;
}

.pagination button {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--surface);
  cursor: pointer;
}

.pagination button:hover:not(:disabled),
.pagination button.active {
  border-color: var(--brand);
  color: var(--brand);
}

.pagination button.active {
  background: var(--brand);
  color: #fff;
}

.pagination button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.pagination button svg {
  width: 17px;
  height: 17px;
  vertical-align: middle;
}

.pagination span {
  width: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.projects-strip {
  padding-block: 24px;
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.eyebrow {
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
}

.strip-inner h2 {
  margin: 1px 0 0;
  font-size: 19px;
}

.site-footer {
  padding-block: 32px 0;
  background: #2f2f32;
  color: #e4e4e7;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 44px;
}

.footer-grid section {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
}

.footer-logo {
  width: 160px;
  padding: 5px;
  border-radius: 4px;
  background: #fff;
}

.footer-grid p {
  margin: 4px 0 0;
  color: #b6b6bd;
  font-size: 12px;
}

.footer-grid h2 {
  margin: 0 0 4px;
  color: #fff;
  font-size: 14px;
}

.footer-grid a {
  color: #d4d4d8;
  font-size: 12px;
}

.footer-grid a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-whatsapp {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-whatsapp svg {
  width: 17px;
}

.language-select select {
  margin-top: 7px;
  width: 130px;
  min-height: 38px;
  padding: 0 10px;
  border-color: #505056;
  background: #38383c;
  color: #fff;
}

.footer-bottom {
  margin-top: 28px;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid #48484c;
  color: #a9a9af;
  font-size: 11px;
}

.footer-bottom div {
  display: flex;
  gap: 18px;
}

.toast {
  position: fixed;
  z-index: 100;
  inset-inline-start: 50%;
  inset-block-end: 24px;
  min-width: 240px;
  max-width: min(420px, calc(100% - 32px));
  padding: 11px 16px;
  border-radius: var(--radius);
  background: #29292c;
  color: #fff;
  text-align: center;
  box-shadow: 0 10px 28px rgba(39, 39, 42, 0.2);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 10px);
  transition: opacity 180ms ease, transform 180ms ease;
}

[dir="rtl"] .toast {
  transform: translate(50%, 10px);
}

.toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

[dir="rtl"] .toast.visible {
  transform: translate(50%, 0);
}

/* Property details */

.property-page {
  padding-block: 0 36px;
}

.breadcrumb {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

.breadcrumb a:hover {
  color: var(--brand);
}

.breadcrumb svg {
  width: 14px;
  height: 14px;
}

.breadcrumb span {
  overflow: hidden;
  color: var(--ink);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.media-gallery {
  height: 480px;
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(210px, 1fr);
  gap: 8px;
  overflow: hidden;
  border-radius: var(--radius);
  background: #e7e7e9;
}

.gallery-main {
  position: relative;
  overflow: hidden;
}

.gallery-main > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.favorite-button {
  position: absolute;
  inset-block-start: 14px;
  inset-inline-end: 14px;
  width: 44px;
  height: 44px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  cursor: pointer;
}

.favorite-button.saved {
  color: var(--brand);
}

.favorite-button.saved svg {
  fill: currentColor;
}

.image-count {
  position: absolute;
  inset-inline-start: 14px;
  inset-block-end: 14px;
  min-height: 32px;
  padding: 4px 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 4px;
  background: rgba(32, 32, 35, 0.78);
  color: #fff;
  font-size: 11px;
}

.image-count svg {
  width: 16px;
  height: 16px;
}

.gallery-thumbs {
  display: grid;
  grid-template-rows: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.gallery-thumb,
.video-thumb {
  position: relative;
  min-width: 0;
  overflow: hidden;
  padding: 0;
  border: 2px solid transparent;
  background: #dedee0;
  cursor: pointer;
}

.gallery-thumb img,
.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumb.active {
  border-color: var(--brand);
}

.video-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(21, 21, 23, 0.48);
}

.video-thumb span {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.video-thumb svg {
  width: 30px;
  height: 30px;
}

.property-layout {
  margin-top: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 304px;
  gap: 18px;
  align-items: start;
}

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

.property-summary,
.detail-section,
.agent-card,
.booking-card {
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.property-summary,
.detail-section {
  margin-bottom: 12px;
}

.property-title-row {
  align-items: flex-start;
}

.property-title-row h1 {
  max-width: 700px;
  margin: 7px 0 3px;
  font-size: 21px;
  line-height: 1.55;
  text-wrap: pretty;
}

.property-location {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
}

.property-location svg {
  width: 16px;
}

.detail-price {
  flex: 0 0 auto;
  color: var(--brand);
  text-align: end;
  white-space: nowrap;
}

.detail-price strong,
.detail-price span {
  display: block;
}

.detail-price strong {
  font-size: 25px;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
}

.detail-price span {
  color: var(--muted);
  font-size: 11px;
}

.spec-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid var(--line);
}

.spec-grid > div {
  min-height: 74px;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: 28px 1fr;
  grid-template-rows: 1fr 1fr;
  align-items: center;
  border-inline-end: 1px solid var(--line);
}

.spec-grid > div:first-child {
  border-inline-end: 0;
}

.spec-grid svg {
  grid-row: 1 / 3;
  width: 21px;
  color: var(--muted);
}

.spec-grid strong {
  font-size: 13px;
}

.spec-grid span {
  color: var(--muted);
  font-size: 10px;
}

.detail-section > h2 {
  margin-bottom: 11px;
}

.detail-section > p {
  margin: 0;
  color: #52525b;
  font-size: 13px;
  line-height: 2;
}

.property-rows {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  border-bottom: 0;
}

.property-rows > div {
  min-height: 48px;
  padding: 8px 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.property-rows > div:nth-child(odd) {
  border-inline-end: 1px solid var(--line);
}

.property-rows dt {
  color: var(--muted);
  font-size: 12px;
}

.property-rows dd {
  margin: 0;
  font-weight: 700;
  text-align: end;
}

.section-title-row {
  margin-bottom: 11px;
}

.section-title-row a {
  color: var(--brand);
  font-size: 12px;
}

.map-section iframe {
  width: 100%;
  height: 310px;
  display: block;
  border: 1px solid var(--line);
}

.map-note {
  margin-top: 8px !important;
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--muted) !important;
  font-size: 11px !important;
  line-height: 1.5 !important;
}

.map-note svg {
  width: 15px;
}

.contact-panel {
  position: sticky;
  inset-block-start: 16px;
  display: grid;
  gap: 12px;
}

.agent-heading {
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.agent-avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 700;
}

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

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

.agent-card .full-button + .full-button {
  margin-top: 8px;
}

.booking-card h2 {
  margin-bottom: 2px;
}

.booking-card > p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 11px;
}

.form-error {
  min-height: 0;
  margin: 0 0 8px;
  color: #b42318;
  font-size: 11px;
}

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

.related-card {
  display: grid;
  grid-template-columns: 112px 1fr;
  min-height: 112px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 4px;
}

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

.related-card div {
  min-width: 0;
  padding: 9px;
}

.related-card h3 {
  margin: 0 0 4px;
  overflow: hidden;
  font-size: 12px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.related-card strong {
  color: var(--brand);
  font-size: 14px;
}

.related-card span {
  display: block;
  color: var(--muted);
  font-size: 10px;
}

.compact-footer {
  padding-top: 0;
}

.compact-footer .footer-bottom {
  margin-top: 0;
}

.tour-modal,
.admin-drawer {
  position: fixed;
  z-index: 80;
  inset: 0;
}

.tour-backdrop,
.drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(24, 24, 27, 0.72);
}

.tour-dialog {
  position: relative;
  width: min(860px, calc(100% - 32px));
  margin: min(8vh, 70px) auto 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: #111;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
}

.tour-header {
  min-height: 52px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface);
}

.tour-header h2 {
  margin: 0;
  font-size: 16px;
}

.tour-header button,
.drawer-header button {
  width: 40px;
  height: 40px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.tour-dialog video {
  width: 100%;
  max-height: calc(100vh - 170px);
  display: block;
  background: #111;
}

.mobile-contact-bar {
  display: none;
}

/* Admin */

.admin-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
}

.admin-sidebar {
  position: sticky;
  inset-block-start: 0;
  height: 100vh;
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-inline-end: 1px solid var(--line);
}

.admin-brand {
  padding: 2px 5px 15px;
  display: block;
  border-bottom: 1px solid var(--line);
}

.admin-brand img {
  width: 156px;
}

.admin-brand span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}

.admin-sidebar nav {
  margin-top: 14px;
  display: grid;
  gap: 4px;
}

.admin-sidebar nav a,
.back-to-site {
  min-height: 44px;
  padding: 0 11px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 4px;
  color: #52525b;
  font-weight: 600;
}

.admin-sidebar nav a:hover,
.admin-sidebar nav a.active {
  background: var(--brand-soft);
  color: var(--brand);
}

.admin-sidebar nav svg,
.back-to-site svg {
  width: 18px;
  height: 18px;
}

.admin-sidebar nav b {
  margin-inline-start: auto;
  min-width: 22px;
  height: 21px;
  display: grid;
  place-items: center;
  border-radius: 3px;
  background: #eeeeef;
  color: var(--muted);
  font-size: 10px;
}

.back-to-site {
  margin-top: auto;
  border-top: 1px solid var(--line);
  border-radius: 0;
  font-size: 12px;
}

.admin-workspace {
  min-width: 0;
}

.admin-header {
  height: 64px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.admin-header > div {
  margin-inline-start: auto;
  text-align: end;
}

.admin-header strong,
.admin-header span {
  display: block;
}

.admin-header strong {
  font-size: 12px;
}

.admin-header span {
  color: var(--muted);
  font-size: 10px;
}

.profile-button {
  width: 38px;
  height: 38px;
  border: 1px solid #e6c9cc;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 700;
}

.admin-menu {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
}

.admin-main {
  width: min(calc(100% - 40px), 1180px);
  margin-inline: auto;
  padding-block: 26px 60px;
}

.admin-section + .admin-section {
  margin-top: 42px;
}

.admin-page-title {
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.admin-page-title h1,
.admin-page-title h2 {
  margin: 0;
  font-size: 22px;
}

.admin-page-title p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.admin-page-title svg {
  width: 18px;
}

.admin-toolbar {
  margin-bottom: 10px;
  padding: 10px;
  display: flex;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.admin-search {
  position: relative;
  flex: 1;
}

.admin-search svg {
  position: absolute;
  inset-inline-start: 12px;
  inset-block-start: 50%;
  width: 18px;
  color: var(--muted);
  transform: translateY(-50%);
}

.admin-search input {
  padding: 0 40px 0 10px;
}

.admin-toolbar > label:not(.admin-search) {
  width: 180px;
}

.admin-toolbar select {
  padding: 0 10px;
}

.table-card {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
}

.admin-table th,
.admin-table td {
  height: 64px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  text-align: start;
}

.admin-table th {
  height: 42px;
  background: #fafafa;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.admin-property {
  width: 360px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-property img {
  width: 68px;
  height: 48px;
  flex: 0 0 auto;
  border-radius: 3px;
  object-fit: cover;
}

.admin-property strong,
.admin-property span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-property strong {
  max-width: 270px;
  font-size: 12px;
}

.admin-property span {
  color: var(--muted);
  font-size: 10px;
}

.status-badge {
  min-height: 24px;
  padding: 2px 8px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #b8dec9;
  border-radius: 3px;
  background: #effaf3;
  color: #166534;
  font-size: 10px;
  font-weight: 700;
}

.status-badge.draft {
  border-color: #ded6ba;
  background: #fffae8;
  color: var(--warning);
}

.status-badge.rented {
  border-color: #d8d8dc;
  background: #f4f4f5;
  color: #626269;
}

.row-actions {
  position: relative;
}

.row-actions > button {
  width: 38px;
  height: 38px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  cursor: pointer;
}

.row-actions-menu {
  position: absolute;
  z-index: 10;
  inset-inline-end: 0;
  inset-block-start: 42px;
  width: 134px;
  padding: 4px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  box-shadow: 0 8px 20px rgba(39, 39, 42, 0.12);
}

.row-actions-menu button {
  width: 100%;
  min-height: 38px;
  padding: 0 9px;
  border: 0;
  background: transparent;
  text-align: start;
  cursor: pointer;
}

.row-actions-menu button:hover {
  background: var(--canvas);
}

.row-actions-menu .delete {
  color: #b42318;
}

.table-footer {
  min-height: 52px;
  padding: 0 12px;
  color: var(--muted);
  font-size: 11px;
}

.table-footer button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.table-footer button:first-child {
  border-radius: 0 4px 4px 0;
}

.table-footer button:last-child {
  border-inline-start: 0;
  border-radius: 4px 0 0 4px;
}

.appointments-list {
  min-height: 112px;
}

.appointment-row {
  min-height: 64px;
  padding: 10px 14px;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 100px;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.appointment-row:last-child {
  border-bottom: 0;
}

.appointment-row strong,
.appointment-row span {
  display: block;
}

.appointment-row span {
  color: var(--muted);
  font-size: 11px;
}

.empty-admin {
  padding: 30px;
  color: var(--muted);
  text-align: center;
}

.drawer-panel {
  position: absolute;
  inset-block: 0;
  inset-inline-end: 0;
  width: min(560px, 100%);
  overflow-y: auto;
  padding: 20px;
  background: var(--surface);
  box-shadow: -12px 0 36px rgba(39, 39, 42, 0.16);
}

.drawer-header {
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  align-items: flex-start;
}

.drawer-header h2 {
  margin: 0;
  font-size: 19px;
}

.drawer-header p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.drawer-panel form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 12px;
}

.field-wide {
  grid-column: 1 / -1;
}

.drawer-actions {
  padding-top: 6px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

@media (max-width: 1023px) {
  .desktop-filters {
    display: none;
  }

  .feed-layout {
    display: block;
  }

  .filter-toggle {
    display: inline-flex;
  }

  .mobile-filter-panel .filter-card {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 12px;
  }

  .mobile-filter-panel .filter-card-title,
  .mobile-filter-panel .apply-filters {
    grid-column: 1 / -1;
  }

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

  .media-gallery {
    height: 390px;
  }

  .property-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
  }

  .admin-property {
    width: 280px;
  }
}

@media (max-width: 767px) {
  :root {
    --header-height: 56px;
  }

  body {
    font-size: 13px;
  }

  .container {
    width: min(calc(100% - 24px), var(--container));
  }

  .header-inner {
    gap: 8px;
  }

  .brand img {
    width: 142px;
    height: 42px;
  }

  .main-nav {
    display: none;
  }

  .menu-button {
    display: inline-flex;
  }

  .header-search {
    min-width: 44px;
    width: 44px;
    padding: 0;
  }

  .header-search span {
    display: none;
  }

  .search-section {
    padding-block: 12px 10px;
  }

  .search-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 82px;
  }

  .search-input input {
    height: 46px;
    padding-inline-start: 42px;
    font-size: 13px;
  }

  .search-submit {
    min-width: 0;
    height: 46px;
  }

  .filter-toggle {
    grid-column: 1 / -1;
    min-height: 44px;
  }

  .mobile-filter-panel .filter-card {
    display: block;
  }

  .category-link {
    min-height: 44px;
    padding-inline: 9px;
    font-size: 12px;
  }

  .city-section {
    padding-block: 13px 14px;
  }

  .compact-heading {
    margin-bottom: 8px;
  }

  .section-heading h2,
  .results-toolbar h2 {
    font-size: 15px;
  }

  .city-links {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .city-links button {
    min-height: 56px;
    padding: 7px 8px;
  }

  .city-links strong {
    font-size: 12px;
  }

  .city-links span {
    font-size: 9px;
  }

  .results-section {
    padding-block: 14px 24px;
  }

  .results-toolbar {
    min-height: 50px;
    padding-bottom: 9px;
  }

  .sort-field > span {
    display: none;
  }

  .sort-field select {
    width: 128px;
    min-height: 38px;
    font-size: 11px;
  }

  .listing-grid {
    gap: 9px;
  }

  .listing-card {
    display: block;
  }

  .listing-media {
    width: 100%;
    height: 188px;
    border-inline-end: 0;
    border-bottom: 1px solid var(--line);
  }

  .listing-media img {
    height: 188px;
    min-height: 0;
  }

  .listing-body {
    padding: 10px 12px 9px;
  }

  .listing-title {
    font-size: 14px;
  }

  .listing-price {
    margin-bottom: 4px;
  }

  .listing-price strong {
    font-size: 19px;
  }

  .listing-excerpt {
    -webkit-line-clamp: 2;
  }

  .pagination button {
    width: 38px;
    height: 40px;
  }

  .pagination button:nth-of-type(4),
  .pagination span {
    display: none;
  }

  .strip-inner h2 {
    font-size: 15px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 26px 20px;
  }

  .footer-grid section:first-child {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    padding-block: 14px;
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
  }

  /* property mobile */
  body[data-page="property"] {
    padding-bottom: 66px;
  }

  .breadcrumb {
    min-height: 42px;
  }

  .media-gallery {
    width: calc(100% + 24px);
    height: auto;
    margin-inline: -12px;
    display: block;
    border-radius: 0;
  }

  .gallery-main {
    height: 278px;
  }

  .gallery-thumbs {
    padding: 6px 12px;
    display: flex;
    gap: 6px;
    overflow-x: auto;
    background: var(--surface);
  }

  .gallery-thumb,
  .video-thumb {
    width: 88px;
    height: 64px;
    flex: 0 0 auto;
    border-radius: 3px;
  }

  .video-thumb span {
    font-size: 8px;
  }

  .video-thumb svg {
    width: 24px;
    height: 24px;
  }

  .property-layout {
    margin-top: 10px;
    display: block;
  }

  .property-summary,
  .detail-section,
  .agent-card,
  .booking-card {
    padding: 14px;
  }

  .property-title-row {
    display: block;
  }

  .property-title-row h1 {
    font-size: 17px;
  }

  .detail-price {
    margin-top: 10px;
    text-align: start;
  }

  .detail-price strong,
  .detail-price span {
    display: inline;
  }

  .detail-price strong {
    font-size: 22px;
  }

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

  .spec-grid > div {
    min-height: 68px;
    padding: 8px 5px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1px;
    text-align: center;
  }

  .spec-grid > div:first-child {
    border-inline-end: 0;
  }

  .spec-grid svg {
    width: 19px;
    height: 19px;
  }

  .spec-grid strong {
    font-size: 11px;
  }

  .spec-grid span {
    font-size: 9px;
  }

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

  .property-rows > div:nth-child(odd) {
    border-inline-end: 0;
  }

  .map-section iframe {
    height: 260px;
  }

  .contact-panel {
    position: static;
  }

  .agent-card {
    display: none;
  }

  .booking-card {
    margin-bottom: 12px;
  }

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

  .mobile-contact-bar {
    position: fixed;
    z-index: 40;
    inset-inline: 0;
    inset-block-end: 0;
    height: 62px;
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: 1fr 1fr 1.3fr;
    gap: 6px;
    background: var(--surface);
    border-top: 1px solid var(--line);
    box-shadow: 0 -3px 12px rgba(39, 39, 42, 0.08);
  }

  .mobile-contact-bar a {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 1px solid var(--line-strong);
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
  }

  .mobile-contact-bar svg {
    width: 18px;
  }

  .mobile-contact-bar .whatsapp {
    border-color: var(--whatsapp);
    color: var(--whatsapp);
  }

  .mobile-contact-bar .book {
    border-color: var(--brand);
    background: var(--brand);
    color: #fff;
  }

  .tour-dialog {
    width: calc(100% - 20px);
    margin-top: 12vh;
  }

  /* admin mobile */
  .admin-shell {
    display: block;
  }

  .admin-sidebar {
    position: fixed;
    z-index: 60;
    inset-block: 0;
    inset-inline-start: 0;
    width: min(270px, calc(100% - 48px));
    height: 100vh;
    transform: translateX(110%);
    transition: transform 180ms ease;
    box-shadow: -12px 0 35px rgba(39, 39, 42, 0.16);
  }

  .admin-sidebar.open {
    transform: translateX(0);
  }

  .admin-header {
    height: 56px;
    padding-inline: 12px;
  }

  .admin-menu {
    display: grid;
  }

  .admin-main {
    width: calc(100% - 24px);
    padding-block: 18px 40px;
  }

  .admin-page-title {
    align-items: flex-end;
  }

  .admin-page-title h1,
  .admin-page-title h2 {
    font-size: 19px;
  }

  .admin-page-title p {
    max-width: 220px;
  }

  .admin-page-title .primary-button {
    width: 48px;
    min-width: 48px;
    padding: 0;
  }

  .admin-page-title .primary-button:not(:focus) {
    font-size: 0;
  }

  .admin-page-title .primary-button svg {
    width: 20px;
    height: 20px;
  }

  .admin-toolbar {
    display: grid;
    grid-template-columns: 1fr 128px;
  }

  .admin-toolbar > label:not(.admin-search) {
    width: auto;
  }

  .admin-property {
    width: 250px;
  }

  .drawer-panel {
    padding: 16px 12px;
  }

  .drawer-panel form {
    display: block;
  }

  .appointment-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 420px) {
  .container {
    width: calc(100% - 20px);
  }

  .brand img {
    width: 132px;
  }

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

  .listing-media {
    height: 176px;
  }

  .listing-media img {
    height: 176px;
  }

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

  .footer-grid section:first-child {
    grid-column: auto;
  }

  .gallery-main {
    height: 250px;
  }

  .spec-grid {
    overflow-x: auto;
  }

  .spec-grid > div {
    min-width: 74px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Reference-density corrections from the 390px visual comparison. */
.listing-card { direction: ltr; }
.listing-body { direction: rtl; }
.card-favorite { inset-inline-end: auto; left: 10px; }

@media (max-width: 767px) {
  .search-bar { grid-template-columns: minmax(0, 1fr) 70px 44px; gap: 6px; }
  .filter-toggle { grid-column: auto; width: 44px; min-height: 44px; padding: 0; justify-content: center; }
  .filter-toggle span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  .city-section { padding-block: 8px; }
  .compact-heading { display: none; }
  .city-links { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
  .city-links button { min-width: 112px; min-height: 50px; flex: 0 0 auto; padding: 7px 8px; }
  .results-section { padding-block: 10px 24px; }
  .results-toolbar { min-height: 46px; padding-bottom: 7px; }
  .listing-card { min-height: 188px; display: grid; grid-template-columns: 142px minmax(0, 1fr); grid-template-areas: "media body"; }
  .listing-media { grid-area: media; width: auto; height: 100%; min-height: 188px; border-inline-end: 1px solid var(--line); border-bottom: 0; }
  .listing-media img { height: 100%; min-height: 0; }
  .listing-body { grid-area: body; padding: 9px 10px 8px; }
  .listing-title { font-size: 13px; line-height: 1.5; }
  .listing-price strong { font-size: 17px; }
  .listing-specs { gap: 4px 8px; font-size: 10px; }
  .listing-specs svg { width: 15px; height: 15px; }
  .listing-excerpt { font-size: 10px; -webkit-line-clamp: 2; }
  .listing-location { font-size: 9px; }
  .card-favorite { left: 8px; top: 8px; }
}

@media (max-width: 420px) {
  .city-links { display: flex; }
  .listing-media { height: 100%; min-height: 184px; }
  .listing-media img { height: 100%; }
}
@media (max-width: 767px) {
  .results-toolbar { display: none; }
}