:root {
  --navy: #0c1d4d;
  --navy-2: #142963;
  --ink: #172033;
  --muted: #677083;
  --sand: #c9a66b;
  --cream: #f6f4ef;
  --white: #ffffff;
  --line: #e2e4e8;
  --success: #15825f;
  --whatsapp: #25d366;
  --shadow: 0 18px 50px rgba(22, 32, 54, 0.1);
  --radius: 18px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 82px; }
body {
  margin: 0; overflow-x: hidden;
  color: var(--ink);
  background: var(--cream);
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, select, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.container { width: min(calc(100% - 40px), 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; z-index: 1000; left: 16px; top: -70px; padding: 12px 18px;
  color: var(--white); background: var(--navy); border-radius: 0 0 10px 10px;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 0; }

.site-header {
  position: sticky; z-index: 30; top: 0; height: 78px; color: var(--white);
  background: linear-gradient(100deg, rgba(14, 33, 76, 0.99), rgba(12, 29, 77, 0.99) 58%, rgba(15, 38, 91, 0.99));
  border-bottom: 1px solid rgba(255, 255, 255, 0.11); backdrop-filter: blur(14px); isolation: isolate;
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: block; flex: 0 0 auto; }
.brand-image {
  display: block; width: 215px; height: auto; object-fit: contain;
}
.main-nav { display: flex; align-items: center; justify-content: center; gap: 30px; margin-left: auto; }
.main-nav a {
  position: relative; padding: 9px 0; color: rgba(255, 255, 255, 0.78);
  font-size: 14px; font-weight: 600; transition: color 0.2s ease;
}
.main-nav a::after {
  position: absolute; left: 0; right: 100%; bottom: 3px; height: 1px; content: "";
  background: var(--sand); transition: right 0.2s ease;
}
.main-nav a:hover, .main-nav a:focus-visible { color: var(--white); }
.main-nav a:hover::after, .main-nav a:focus-visible::after { right: 0; }
.header-contact {
  display: inline-flex; align-items: center; gap: 9px; min-height: 42px; padding: 0 17px;
  color: var(--navy); background: var(--white); border-radius: 999px;
  font-size: 13px; font-weight: 750; transition: transform 0.2s ease, background 0.2s ease;
}
.header-contact:hover, .header-contact:focus-visible { transform: translateY(-1px); background: #f2eadc; }
.whatsapp-icon {
  width: 19px; height: 19px; flex: 0 0 auto; fill: currentColor; stroke: none;
}
.header-contact .whatsapp-icon, .primary-contact .whatsapp-icon { color: var(--whatsapp); }

.hero {
  position: relative; overflow: visible; min-height: 350px; padding: 54px 0 0; color: var(--white);
  background: radial-gradient(circle at 83% 15%, rgba(201, 166, 107, 0.15), transparent 27%),
    linear-gradient(140deg, #0a1943 0%, var(--navy) 56%, #10275f 100%);
}
.hero-pattern-clip {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none;
}
.hero-pattern {
  position: absolute; right: -80px; top: -220px; width: 630px; height: 630px;
  border: 1px solid rgba(255, 255, 255, 0.06); border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(255, 255, 255, 0.018), 0 0 0 140px rgba(255, 255, 255, 0.012);
}
.hero-content { position: relative; z-index: 1; }
.hero-copy { max-width: 730px; }
.eyebrow {
  margin: 0 0 13px; color: var(--navy-2); font-size: 12px; font-weight: 800;
  letter-spacing: 0.16em; line-height: 1.4; text-transform: uppercase;
}
.eyebrow-light { color: #ddc69e; }
.location-pin {
  display: inline-flex; width: 17px; height: 17px; align-items: center; justify-content: center;
  margin-right: 4px; color: var(--sand); vertical-align: -3px;
}
.location-pin svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.hero h1 {
  max-width: 720px; margin: 0; font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 5.1vw, 68px); font-weight: 500; letter-spacing: -0.045em; line-height: 0.98;
}
.hero h1 em { color: #dec69c; font-weight: 400; }
.search-panel {
  position: relative; z-index: 4; display: grid; grid-template-columns: 220px 1fr;
  gap: 24px; align-items: end; margin-top: 38px; padding: 22px; color: var(--ink);
  background: var(--white); border: 1px solid rgba(12, 29, 77, 0.08);
  border-radius: var(--radius) var(--radius) 0 0; box-shadow: 0 -10px 40px rgba(4, 14, 43, 0.17);
}
.search-heading { display: flex; gap: 12px; align-items: center; min-height: 54px; }
.search-heading strong, .search-heading div > span { display: block; }
.search-heading strong { font-size: 15px; }
.search-heading div > span { margin-top: 4px; color: var(--muted); font-size: 12px; }
.search-icon {
  position: relative; display: block; width: 42px; height: 42px; flex: 0 0 auto;
  align-self: center; color: var(--navy); background: #f1ede5; border-radius: 12px; line-height: 0;
}
.search-icon svg {
  position: absolute; left: 50%; top: 50%; display: block; width: 20px; height: 20px;
  margin: 0; transform: translate(-50%, -50%);
}
.search-icon svg, .search-button svg {
  fill: none; stroke: currentColor; stroke-linecap: round; stroke-width: 1.8;
}
.search-fields {
  display: grid; grid-template-columns: 0.9fr 1fr 1fr 0.9fr auto; gap: 10px; align-items: end;
}
.search-field { min-width: 0; }
.search-field-label {
  display: block; margin: 0 0 7px 2px; color: #5e6677; font-size: 11px;
  font-weight: 750; letter-spacing: 0.035em; text-transform: uppercase;
}
.combobox { position: relative; }
.combobox-trigger {
  display: flex; width: 100%; height: 48px; align-items: center; justify-content: space-between;
  gap: 8px; padding: 0 11px 0 12px; overflow: hidden; color: #737b89;
  background: #faf9f6; border: 1px solid #dedfe3; border-radius: 10px; outline: none;
  font-size: 13px; text-align: left; cursor: pointer;
  transition: border 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.combobox.has-value .combobox-trigger { color: var(--ink); }
.combobox.is-open .combobox-trigger,
.combobox-trigger:focus-visible {
  border-color: var(--sand); box-shadow: 0 0 0 3px rgba(201, 166, 107, 0.18);
}
.combobox-value { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.combobox-trigger > svg {
  width: 17px; height: 17px; flex: 0 0 auto;
  fill: none; stroke: #747c89; stroke-linecap: round; stroke-linejoin: round;
  stroke-width: 1.8; pointer-events: none; transition: transform 0.2s ease;
}
.combobox.is-open .combobox-trigger > svg { transform: rotate(180deg); }
.combobox-menu {
  position: absolute; z-index: 80; left: 0; top: calc(100% + 7px); width: max(100%, 280px);
  padding: 8px; color: var(--ink); background: var(--white); border: 1px solid #dfe1e5;
  border-radius: 12px; box-shadow: 0 18px 45px rgba(7, 20, 52, 0.2);
}
.combobox-menu[hidden] { display: none; }
.search-field:nth-child(4) .combobox-menu { right: 0; left: auto; }
.combobox-search { position: relative; }
.combobox-search > svg {
  position: absolute; left: 11px; top: 50%; width: 17px; height: 17px;
  fill: none; stroke: #747c89; stroke-linecap: round; stroke-width: 1.8;
  pointer-events: none; transform: translateY(-50%);
}
.combobox-search-input {
  width: 100%; height: 42px; padding: 0 12px 0 36px; color: var(--ink);
  background: #faf9f6; border: 1px solid #dedfe3; border-radius: 9px; outline: none;
  font-size: 13px; appearance: none;
}
.combobox-search-input::placeholder { color: #7b8390; opacity: 1; }
.combobox-search-input:focus {
  border-color: var(--sand); box-shadow: 0 0 0 3px rgba(201, 166, 107, 0.16);
}
.combobox-options {
  display: grid; max-height: 240px; gap: 2px; margin-top: 7px; overflow-y: auto;
  overscroll-behavior: contain; scrollbar-width: thin;
}
.combobox-option {
  display: flex; width: 100%; min-height: 39px; align-items: center; justify-content: space-between;
  gap: 12px; padding: 7px 11px; color: #4f5868; background: transparent; border: 0;
  border-radius: 8px; font-size: 13px; text-align: left; cursor: pointer;
}
.combobox-option::after { content: "✓"; color: var(--navy); font-weight: 850; opacity: 0; }
.combobox-option[aria-selected="true"] { color: var(--navy); font-weight: 750; }
.combobox-option[aria-selected="true"]::after { opacity: 1; }
.combobox-option:hover,
.combobox-option:focus-visible,
.combobox-option.is-active { color: var(--navy); background: #f1ede5; outline: none; }
.combobox-empty { margin: 10px 7px 5px; color: var(--muted); font-size: 12px; }
.combobox-empty[hidden] { display: none; }
.combobox-backdrop { display: none; }
.combobox input[type="hidden"] { display: none; }
.combobox-search-input::-webkit-search-cancel-button { cursor: pointer; }
.combobox-search-input::-webkit-calendar-picker-indicator { display: none; }
.combobox-search-input::-webkit-contacts-auto-fill-button { display: none; }
.combobox-search-input::-webkit-credentials-auto-fill-button { display: none; }
.combobox-search-input::-ms-clear { display: none; }
.combobox-search-input::-ms-reveal { display: none; }
.combobox-search-input::-moz-focus-inner { border: 0; }
.combobox-search-input:-webkit-autofill {
  -webkit-box-shadow: 0 0 0 30px #faf9f6 inset !important;
}
.search-button {
  display: inline-flex; height: 48px; align-items: center; justify-content: center; gap: 8px;
  padding: 0 19px; color: var(--white); background: var(--navy); border: 0;
  border-radius: 10px; font-size: 13px; font-weight: 750; white-space: nowrap;
  cursor: pointer; transition: transform 0.2s ease, background 0.2s ease;
}
.search-button:hover, .search-button:focus-visible { transform: translateY(-1px); background: var(--navy-2); }
.properties-section { padding: 76px 0 94px; }
.section-heading h2, .local-service h2, .contact-section h2 {
  margin: 0; font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 4vw, 50px); font-weight: 500; letter-spacing: -0.035em; line-height: 1.05;
}
.properties-heading {
  display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 30px;
}
.results-message { margin: 12px 0 0; color: var(--muted); font-size: 15px; }
.clear-button {
  padding: 10px 0; color: var(--navy); background: none; border: 0;
  border-bottom: 1px solid var(--navy); font-size: 13px; font-weight: 750; cursor: pointer;
}
.related-notice {
  display: flex; gap: 13px; align-items: center; margin: 0 0 24px; padding: 16px 18px;
  color: #4b4232; background: #f3ead9; border: 1px solid #e3d4b9; border-radius: 13px;
}
.related-notice[hidden] { display: none; }
.notice-icon {
  display: grid; width: 30px; height: 30px; flex: 0 0 auto; place-items: center;
  color: var(--white); background: #8a6a36; border-radius: 50%; font-family: Georgia, serif; font-weight: 700;
}
.related-notice strong { display: block; font-size: 14px; }
.related-notice p { margin: 3px 0 0; color: #74664e; font-size: 13px; }
.property-group[hidden] { display: none; }
.property-group-heading {
  display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 22px;
}
.property-group-heading .eyebrow { margin-bottom: 8px; }
.property-group-heading h3 {
  margin: 0; color: var(--navy); font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 3vw, 36px); font-weight: 500; letter-spacing: -0.025em;
}
.property-group-heading > span { max-width: 300px; color: var(--muted); font-size: 13px; line-height: 1.5; text-align: right; }
.featured-properties {
  padding: 30px; background: linear-gradient(145deg, #efe8dc, #f6f2e9);
  border: 1px solid #e2d6c2; border-radius: 20px;
}
.featured-properties .property-card { border-color: rgba(150, 111, 51, 0.22); }
#featuredBlock:not([hidden]) + #allPropertiesBlock {
  margin-top: 58px; padding-top: 50px; border-top: 1px solid var(--line);
}
.property-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.property-card {
  overflow: hidden; background: var(--white); border: 1px solid rgba(12, 29, 77, 0.1);
  border-radius: 16px; box-shadow: 0 5px 18px rgba(24, 34, 56, 0.045);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.property-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.property-image-button {
  position: relative; display: block; width: 100%; height: 232px; padding: 0;
  overflow: hidden; background: #e9e6df; border: 0; cursor: pointer;
}
.property-image-button img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.property-card:hover .property-image-button img { transform: scale(1.035); }
.purpose-badge, .video-badge, .photo-count-badge {
  position: absolute; top: 14px; padding: 7px 10px; border-radius: 8px;
  font-size: 10px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
}
.purpose-badge { left: 14px; color: var(--navy); background: rgba(255, 255, 255, 0.94); }
.video-badge {
  right: 14px; display: inline-flex; align-items: center; gap: 5px;
  color: var(--white); background: rgba(7, 20, 52, 0.88); backdrop-filter: blur(7px);
}
.video-badge svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.photo-count-badge {
  left: 14px; top: auto; bottom: 14px; color: var(--white); background: rgba(7, 20, 52, 0.82);
  letter-spacing: 0.04em; backdrop-filter: blur(7px);
}
.property-body { padding: 19px 20px 20px; }
.property-location { display: flex; align-items: center; gap: 5px; color: #6d7584; font-size: 12px; font-weight: 600; }
.property-location svg { width: 14px; height: 14px; fill: none; stroke: var(--sand); stroke-width: 1.8; }
.property-body h3 {
  min-height: 50px; margin: 10px 0 13px; color: var(--ink);
  font-family: Georgia, "Times New Roman", serif; font-size: 21px; font-weight: 500;
  letter-spacing: -0.015em; line-height: 1.2;
}
.property-features {
  display: flex; min-height: 27px; align-items: center; flex-wrap: wrap; gap: 8px 13px; margin: 0; padding: 0;
  color: #5f6878; list-style: none;
}
.property-features li { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; white-space: nowrap; }
.property-features svg {
  width: 16px; height: 16px; fill: none; stroke: #6e7786;
  stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.5;
}
.property-footer {
  display: flex; align-items: end; justify-content: space-between; gap: 12px;
  margin-top: 17px; padding-top: 16px; border-top: 1px solid #ececef;
}
.property-footer > div span, .property-footer > div strong { display: block; }
.property-footer > div span {
  margin-bottom: 4px; color: #7a8290; font-size: 9px; font-weight: 750;
  letter-spacing: 0.08em; text-transform: uppercase;
}
.property-footer > div strong { color: var(--navy); font-size: 17px; }
.details-button {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 0; color: var(--navy);
  background: none; border: 0; font-size: 12px; font-weight: 750; cursor: pointer;
}
.details-button span { transition: transform 0.2s ease; }
.details-button:hover span { transform: translateX(3px); }

.local-service {
  padding: 94px 0; background: var(--white); border-top: 1px solid #eaebed; border-bottom: 1px solid #eaebed;
}
.service-layout { display: grid; grid-template-columns: 1fr 1.05fr; gap: 110px; align-items: center; }
.service-copy > p:not(.eyebrow) {
  max-width: 510px; margin: 22px 0; color: var(--muted); font-size: 16px; line-height: 1.75;
}
.text-link {
  display: inline-flex; align-items: center; gap: 12px; padding: 10px 0; color: var(--navy);
  border-bottom: 1px solid var(--sand); font-size: 14px; font-weight: 750;
}
.service-steps { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.service-steps li {
  display: grid; grid-template-columns: 46px 1fr; gap: 19px; padding: 22px 0; border-bottom: 1px solid var(--line);
}
.service-steps li > span { color: var(--sand); font-family: Georgia, serif; font-size: 16px; }
.service-steps strong { color: var(--navy); font-size: 17px; }
.service-steps p { margin: 5px 0 0; color: var(--muted); font-size: 14px; line-height: 1.55; }

.contact-section { padding: 66px 0; background: var(--cream); }
.contact-card {
  position: relative; display: flex; min-height: 270px; align-items: center;
  justify-content: space-between; gap: 50px; overflow: hidden; padding: 58px 64px;
  color: var(--white); background: radial-gradient(circle at 92% 15%, rgba(201, 166, 107, 0.23), transparent 30%), var(--navy);
  border-radius: 22px;
}
.contact-card::after {
  position: absolute; right: -95px; bottom: -245px; width: 440px; height: 440px;
  content: ""; border: 1px solid rgba(255, 255, 255, 0.07); border-radius: 50%;
  box-shadow: 0 0 0 55px rgba(255, 255, 255, 0.02);
}
.contact-card > * { position: relative; z-index: 1; }
.contact-card p:not(.eyebrow) { margin: 15px 0 0; color: rgba(255, 255, 255, 0.68); font-size: 15px; }
.contact-actions {
  display: flex; min-width: 260px; flex-direction: column; align-items: stretch;
  gap: 13px; text-align: center;
}
.primary-contact {
  display: flex; min-height: 53px; align-items: center; justify-content: center; gap: 14px;
  padding: 0 24px; color: var(--navy); background: var(--white); border-radius: 11px;
  font-size: 14px; font-weight: 800; transition: transform 0.2s ease, background 0.2s ease;
}
.primary-contact:hover, .primary-contact:focus-visible { transform: translateY(-2px); background: #f1e6d3; }

.site-footer { padding: 30px 0; color: rgba(255, 255, 255, 0.65); background: #071434; font-size: 11px; }
.footer-inner { display: grid; grid-template-columns: 1fr 1.25fr auto auto; gap: 26px; align-items: center; }
.footer-inner > div strong, .footer-inner > div span { display: block; }
.footer-inner > div strong { color: var(--white); font-size: 13px; letter-spacing: 0.04em; }
.footer-inner > div span { margin-top: 4px; color: #d2b981; font-size: 10px; letter-spacing: 0.08em; }
.footer-inner p { margin: 0; line-height: 1.55; }
.footer-instagram { color: rgba(255, 255, 255, 0.7); font-size: 11px; white-space: nowrap; }
.footer-instagram:hover, .footer-instagram:focus-visible { color: var(--white); text-decoration: underline; }

.floating-contact {
  position: fixed; z-index: 25; right: 22px; bottom: 22px; display: grid;
  width: 54px; height: 54px; place-items: center; color: var(--white); background: var(--whatsapp);
  border: 3px solid var(--white); border-radius: 50%; box-shadow: 0 8px 24px rgba(21, 88, 69, 0.28);
  transition: transform 0.2s ease;
}
.floating-contact:hover, .floating-contact:focus-visible { transform: translateY(-3px) scale(1.02); }
.floating-contact .whatsapp-icon { width: 25px; height: 25px; fill: currentColor; stroke: none; }

.property-dialog {
  width: min(1180px, calc(100% - 32px)); height: calc(100dvh - 32px); max-height: none;
  padding: 58px 0 0; overflow: auto; color: var(--ink); background: var(--white); border: 0;
  border-radius: 20px; box-shadow: 0 28px 100px rgba(4, 12, 35, 0.38); box-sizing: border-box;
}
.property-dialog::backdrop { background: rgba(4, 12, 35, 0.74); backdrop-filter: blur(4px); }
.dialog-close {
  position: fixed; z-index: 12; right: max(30px, calc((100vw - 1180px) / 2 + 15px)); top: 29px;
  display: grid; width: 38px; height: 38px; place-items: center; color: var(--navy); background: #f1efe9;
  border: 0; border-radius: 50%; font-size: 25px; line-height: 1; cursor: pointer;
}
#dialogContent { display: block; min-height: 100%; }
.dialog-media { position: relative; background: #ece9e2; border-top: 1px solid #e3dfd6; }
.dialog-media-toolbar {
  display: flex; min-height: 58px; align-items: center; justify-content: space-between; gap: 18px;
  padding: 9px 24px; color: var(--navy); background: var(--white); border-bottom: 1px solid #e3dfd6;
}
.dialog-media-label { font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.dialog-media-stage { position: relative; width: 100%; height: min(68dvh, 760px); min-height: 430px; }
.dialog-media-stage img, .dialog-media-stage video, .dialog-media-stage iframe {
  width: 100%; height: 100%; border: 0; object-fit: contain;
}
.dialog-media-stage video { display: block; background: #071434; object-fit: contain; }
.dialog-photo-button {
  display: block; width: 100%; height: 100%; padding: 0; overflow: hidden; background: #ece9e2;
  border: 0; cursor: zoom-in;
}
.enlarge-hint {
  position: absolute; right: 18px; bottom: 18px; padding: 8px 11px; color: var(--white);
  background: rgba(7, 20, 52, 0.78); border-radius: 8px; font-size: 10px; font-weight: 800;
  backdrop-filter: blur(8px); pointer-events: none;
}
.gallery-counter {
  position: absolute; z-index: 2; left: 18px; bottom: 18px; padding: 7px 10px; color: var(--white);
  background: rgba(7, 20, 52, 0.78); border-radius: 8px; font-size: 10px; font-weight: 800; backdrop-filter: blur(8px);
}
.gallery-arrow {
  position: absolute; z-index: 2; top: 50%; display: grid; width: 42px; height: 42px; place-items: center;
  padding: 0; color: var(--navy); background: rgba(255, 255, 255, 0.92); border: 0; border-radius: 50%;
  box-shadow: 0 4px 15px rgba(4, 12, 35, 0.2); font-family: Arial, sans-serif; font-size: 31px; line-height: 1;
  cursor: pointer; transform: translateY(-50%);
}
.gallery-arrow-prev { left: 14px; }
.gallery-arrow-next { right: 14px; }
.dialog-thumbnails {
  display: flex; gap: 9px; overflow-x: auto; padding: 12px 18px; background: var(--white);
  border-top: 1px solid #e3dfd6; scrollbar-width: thin;
}
.dialog-thumbnail {
  width: 78px; height: 62px; flex: 0 0 auto; overflow: hidden; padding: 0; background: #dedbd4;
  border: 2px solid transparent; border-radius: 8px; cursor: pointer; opacity: 0.66;
}
.dialog-thumbnail.is-active { border-color: var(--navy); opacity: 1; }
.dialog-thumbnail img { width: 100%; height: 100%; object-fit: contain; background: #ece9e2; }
.dialog-media[data-media-mode="video"] .dialog-thumbnails { display: none; }
.dialog-media-tabs {
  display: flex; gap: 5px; padding: 4px; background: #f1efe9; border-radius: 999px;
}
.dialog-media-tabs button {
  display: inline-flex; min-height: 34px; align-items: center; gap: 6px; padding: 0 13px;
  color: #697182; background: transparent; border: 0; border-radius: 999px;
  font-size: 11px; font-weight: 800; cursor: pointer;
}
.dialog-media-tabs button.is-active { color: var(--white); background: var(--navy); }
.dialog-media-tabs svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.external-video {
  display: flex; min-height: 500px; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; padding: 40px; color: var(--white); background: linear-gradient(145deg, #071434, #183875);
  text-align: center;
}
.external-video svg { width: 52px; height: 52px; fill: none; stroke: var(--sand); stroke-width: 1.5; }
.external-video strong { font-family: Georgia, "Times New Roman", serif; font-size: 24px; font-weight: 500; }
.external-video a { padding-bottom: 5px; border-bottom: 1px solid var(--sand); font-size: 13px; font-weight: 750; }
.dialog-body { max-width: 920px; margin: 0 auto; padding: 46px 44px 54px; }
.dialog-code {
  margin: 0 0 12px; color: #7a8190; font-size: 11px; font-weight: 750;
  letter-spacing: 0.07em; text-transform: uppercase;
}
.dialog-body h2 {
  margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 34px;
  font-weight: 500; letter-spacing: -0.03em; line-height: 1.08;
}
.dialog-price { display: block; margin-top: 16px; color: var(--navy); font-size: 22px; }
.dialog-summary { margin: 20px 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.dialog-features {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 27px; padding: 0; list-style: none;
}
.dialog-features li { display: flex; align-items: center; gap: 8px; color: #4e5869; font-size: 12px; }
.dialog-features li span { color: var(--success); font-weight: 800; }
.dialog-contact {
  display: flex; min-height: 50px; align-items: center; justify-content: center; gap: 12px;
  padding: 0 19px; color: var(--white); background: var(--navy); border-radius: 10px;
  font-size: 13px; font-weight: 800;
}
.dialog-contact .whatsapp-icon { width: 18px; height: 18px; }

.video-only-cover {
  display: flex; width: 100%; height: 100%; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; color: var(--white); background: linear-gradient(145deg, #071434, #183875);
}
.video-only-cover svg { width: 54px; height: 54px; fill: none; stroke: var(--sand); stroke-width: 1.4; }
.video-only-cover strong { font-family: Georgia, "Times New Roman", serif; font-size: 19px; font-weight: 500; }
.property-image-button > video { width: 100%; height: 100%; object-fit: cover; background: #071434; }

.image-viewer {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0;
  overflow: hidden; background: #050b1c; border: 0;
}
.image-viewer::backdrop { background: #050b1c; }
.image-viewer figure { display: grid; width: 100%; height: 100%; margin: 0; place-items: center; }
.image-viewer img { display: block; width: 100%; height: 100%; object-fit: contain; }
.image-viewer figcaption {
  position: fixed; left: 50%; bottom: 18px; z-index: 3; padding: 7px 11px; color: var(--white);
  background: rgba(7, 20, 52, 0.76); border-radius: 8px; font-size: 11px; font-weight: 750;
  transform: translateX(-50%);
}
.image-viewer-close, .image-viewer-arrow {
  position: fixed; z-index: 4; display: grid; place-items: center; padding: 0; color: var(--navy);
  background: rgba(255, 255, 255, 0.94); border: 0; border-radius: 50%; cursor: pointer;
}
.image-viewer-close { right: 18px; top: 18px; width: 42px; height: 42px; font-size: 27px; }
.image-viewer-arrow { top: 50%; width: 46px; height: 46px; font-size: 32px; transform: translateY(-50%); }
.image-viewer-prev { left: 18px; }
.image-viewer-next { right: 18px; }
.image-viewer:not(.has-multiple) .image-viewer-arrow { display: none; }

@media (max-width: 1050px) {
  .search-panel { grid-template-columns: 1fr; gap: 15px; }
  .search-heading { min-height: auto; }
  .property-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-layout { gap: 60px; }
}

@media (max-width: 850px) {
  .main-nav { display: none; }
  .hero { min-height: 430px; padding-top: 46px; }
  .search-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .search-button { grid-column: 1 / -1; }
  .service-layout { grid-template-columns: 1fr; gap: 52px; }
  .contact-card { padding: 50px 42px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-inner > p:last-child { grid-column: 1 / -1; }
}

@media (max-width: 650px) {
  .container { width: min(calc(100% - 28px), var(--container)); }
  html { scroll-padding-top: 70px; }
  .site-header { height: 70px; }
  .brand-image { width: 168px; height: auto; }
  .header-contact { width: 42px; min-height: 42px; justify-content: center; padding: 0; }
  .header-contact .js-contact-label { display: none; }
  .hero { min-height: 590px; padding: 38px 0 0; }
  .hero h1 { font-size: 43px; line-height: 1; }
  .hero-pattern { right: -410px; }
  .search-panel { margin-top: 30px; padding: 16px; border-radius: 15px 15px 0 0; }
  .search-fields { grid-template-columns: 1fr 1fr; gap: 9px; }
  .search-field-label { font-size: 9px; }
  .combobox-trigger { height: 46px; padding-left: 10px; font-size: 12px; }
  body.combobox-open { overflow: hidden; }
  .combobox-backdrop:not([hidden]) {
    position: fixed; z-index: 3; inset: 0; display: block; padding: 0;
    background: rgba(4, 12, 35, 0.62); border: 0; backdrop-filter: blur(2px);
  }
  .combobox-menu,
  .search-field:nth-child(4) .combobox-menu {
    position: fixed; z-index: 80; right: 14px; left: 14px; top: 50%; width: auto;
    max-height: min(74dvh, 540px); padding: 12px; border-radius: 16px;
    transform: translateY(-50%);
  }
  .combobox-search-input { height: 46px; font-size: 14px; }
  .combobox-options { max-height: calc(74dvh - 92px); }
  .combobox-option { min-height: 44px; font-size: 14px; }
  .search-button { height: 48px; }
  .properties-section { padding: 58px 0 70px; }
  .properties-heading { align-items: start; }
  .section-heading h2, .local-service h2, .contact-section h2 { font-size: 36px; }
  .property-grid { grid-template-columns: 1fr; }
  .property-group-heading { align-items: start; }
  .property-group-heading > span { display: none; }
  .featured-properties { padding: 18px; border-radius: 16px; }
  #featuredBlock:not([hidden]) + #allPropertiesBlock { margin-top: 42px; padding-top: 40px; }
  .property-image-button { height: 230px; }
  .property-body h3 { min-height: auto; }
  .local-service { padding: 70px 0; }
  .contact-section { padding: 18px 0; }
  .contact-card {
    min-height: 0; flex-direction: column; align-items: stretch; padding: 40px 28px; border-radius: 17px;
  }
  .contact-actions { min-width: 0; }
  .footer-inner { grid-template-columns: 1fr; gap: 15px; }
  .footer-inner > p:last-child { grid-column: auto; }
  .floating-contact { right: 14px; bottom: 14px; width: 50px; height: 50px; }
  .property-dialog { width: 100%; max-width: 100%; height: 100dvh; margin: 0; padding-top: 54px; border-radius: 0; }
  .dialog-close { position: absolute; right: 10px; top: 8px; }
  .dialog-media-toolbar { min-height: 54px; padding: 8px 14px; }
  .dialog-media-label { display: none; }
  .dialog-media-tabs { width: 100%; }
  .dialog-media-tabs button { flex: 1; justify-content: center; }
  .dialog-media-stage {
    width: 100%; height: auto; min-height: 0; max-height: 72dvh;
    aspect-ratio: var(--photo-ratio, 4 / 3);
  }
  .dialog-media-stage[data-photo-orientation="portrait"] { height: min(72dvh, 640px); aspect-ratio: auto; }
  .dialog-media[data-media-mode="video"] .dialog-media-stage {
    height: auto; min-height: 260px; max-height: 62dvh; aspect-ratio: 16 / 9;
  }
  .dialog-media-stage img, .dialog-media-stage video, .dialog-media-stage iframe, .external-video {
    width: 100%; height: 100%; min-height: 0;
  }
  .dialog-body { padding: 30px 24px 28px; }
  .dialog-body h2 { font-size: 29px; }
  .dialog-thumbnails { gap: 7px; padding: 10px 12px; }
  .dialog-thumbnail { width: 66px; height: 54px; }
  .gallery-counter { left: 10px; bottom: 10px; }
  .enlarge-hint { right: 10px; bottom: 10px; }
  .gallery-arrow { width: 36px; height: 36px; font-size: 27px; }
  .gallery-arrow-prev { left: 9px; }
  .gallery-arrow-next { right: 9px; }
  .image-viewer-close { right: 10px; top: 10px; }
  .image-viewer-arrow { width: 40px; height: 40px; }
  .image-viewer-prev { left: 8px; }
  .image-viewer-next { right: 8px; }
}

@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;
  }
}
