:root {
  --green: #094136;
  --green-dark: #0c5547;
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-low: #f5f5f5;
  --surface-container: #e8e8e8;
  --text: #1a1a1a;
  --text-variant: #555555;
  --outline: #cccccc;
  --shadow-color: rgba(9, 65, 54, 0.08);
}

html.dark {
  --green: #094136;
  --green-dark: #0c5547;
  --bg: #1a1a1a;
  --surface: #242424;
  --surface-low: #2e2e2e;
  --surface-container: #383838;
  --text: #ffffff;
  --text-variant: #b0b0b0;
  --outline: #505050;
  --shadow-color: rgba(0, 0, 0, 0.4);
}

html {
  transition: color 0.35s ease;
  background-color: var(--bg);
}

html.dark body,
html.dark .navbar,
html.dark .footer,
html.dark .hero,
html.dark .property-card,
html.dark .filter-group,
html.dark .filters,
html.dark .results-main,
html.dark .auth-modal,
html.dark .publish-card,
html.dark .contacto-main,
html.dark .team-card,
html.dark .recruit-text,
html.dark .recruit-form,
html.dark .servicos-wrap,
html.dark .detail-side,
html.dark .admin-card,
html.dark .detail-grid {
  transition: background-color 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease, color 0.35s ease;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--outline);
  border-radius: 999px;
  color: var(--green);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.3s;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.theme-toggle:hover {
  background: var(--surface-low);
  border-color: var(--green);
  box-shadow: 0 2px 8px var(--shadow-color);
  transform: scale(1.05);
}

.theme-toggle:active {
  transform: scale(0.92);
}

.theme-icon-sun,
.theme-icon-moon {
  position: absolute;
  transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55), opacity 0.3s ease;
}

html:not(.dark) .theme-icon-sun {
  display: block;
  transform: rotate(0deg) scale(1);
  opacity: 1;
}

html:not(.dark) .theme-icon-moon {
  display: block;
  transform: rotate(90deg) scale(0);
  opacity: 0;
}

html.dark .theme-icon-sun {
  display: block;
  transform: rotate(-90deg) scale(0);
  opacity: 0;
}

html.dark .theme-icon-moon {
  display: block;
  transform: rotate(0deg) scale(1);
  opacity: 1;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

main {
  flex: 1 1 auto;
  display: block;
}

.material-symbols-outlined {
  font-family: "Material Symbols Outlined";
  font-weight: normal;
  font-style: normal;
  line-height: 1;
  vertical-align: middle;
}

:root {
  --scrollbar-bg: transparent;
  --scrollbar-thumb: rgba(9, 65, 54, 1);
  --scrollbar-thumb-hover: rgba(12, 85, 71, 1);
}

html {
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-bg);
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--scrollbar-bg);
  backdrop-filter: blur(6px);
}

::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
  backdrop-filter: blur(4px);
  transition: background 0.2s, background-clip 0.2s, border-color 0.2s;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-thumb-hover);
  background-clip: padding-box;
  border-color: rgba(255, 255, 255, 0.15);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: var(--surface);
  width: 100%;
}

.nav-divider {
  display: none;
  height: 0;
  margin: 0;
  padding: 0;
  border: none;
}

/* Mobile-first helpers */
html, body {
  width: 100%;
  overflow-x: hidden;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: "Inter", sans-serif;
  padding-top: 70px;
  background-color: var(--bg);
  color: var(--text);
}

body > main {
  flex: 1;
}

img, video, iframe {
  max-width: 100%;
  height: auto;
  display: block;
}

.container, .nav-inner, .featured-inner, .recruit-inner, .team-inner, .contacto-wrap, .contacto-map-wrap, .servicos-wrap, .results-wrap, .detail-wrap, .notfound-wrap, .footer-inner, .auth-modal, .contact-form-card, .recruit-form, .team-card, .property-card, .info-card, .filters, .cat-cta, .detail-side, .contacto-main, .contacto-info, .results-layout, .recruit-text, .recruit-form, .team-grid, .properties-grid, .results-main, .detail-main, .detail-grid {
  max-width: 100%;
  box-sizing: border-box;
}

/* Reset de larguras fixas que forçam desktop */
.featured-inner, .recruit-inner, .team-inner, .contacto-wrap, .contacto-map-wrap, .servicos-wrap, .results-wrap, .detail-wrap, .notfound-wrap, .footer-inner, .results-layout, .detail-grid {
  max-width: 100%;
}

@media (min-width: 768px) {
  .featured-inner, .recruit-inner, .team-inner, .contacto-wrap, .contacto-map-wrap, .servicos-wrap, .results-wrap, .detail-wrap, .notfound-wrap, .footer-inner {
    max-width: 1280px;
  }
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 16px;
  gap: 1rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo {
  height: 32px;
  width: auto;
  display: block;
}

.nav-brand:hover {
  opacity: 0.8;
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--outline);
  border-radius: 12px;
  cursor: pointer;
  flex-shrink: 0;
}

.nav-hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--green);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-links {
  display: none;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-variant);
  font-weight: 500;
  padding: 0.25rem 0;
  position: relative;
  transition: color 0.3s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--green);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--green);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a.active {
  color: var(--green);
  font-weight: 600;
}

.nav-links a.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.nav-contact {
  background: var(--green);
  color: #fff;
  padding: 0.6rem 1.4rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 6px rgba(9, 65, 54, 0.25);
}

.nav-contact:hover {
  background: var(--green-dark);
  box-shadow: 0 4px 10px rgba(9, 65, 54, 0.35);
}

.nav-contact.active {
  background: var(--green-dark);
  box-shadow: 0 4px 10px rgba(9, 65, 54, 0.35);
}

.nav-theme-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--outline);
  border-radius: 999px;
  color: var(--green);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.nav-theme-btn:hover {
  background: var(--surface-low);
  border-color: var(--green);
  box-shadow: 0 2px 6px rgba(9, 65, 54, 0.18);
}

.nav-theme-btn svg {
  width: 20px;
  height: 20px;
}

@media (min-width: 768px) {
  .nav-links { display: flex; }
  .nav-hamburger { display: none; }
}

@media (max-width: 767px) {
  .nav-inner {
    flex-wrap: wrap;
    gap: 0.5rem;
    position: relative;
  }

  .nav-hamburger {
    display: inline-flex;
    margin-left: auto;
    order: 3;
  }

  .nav-actions {
    order: 4;
    width: 100%;
    justify-content: flex-end;
    padding-top: 0.25rem;
    gap: 0.5rem;
  }

  /* Hide contact link on mobile - available in hamburger menu */
  .nav-contact { display: none; }

  /* Language button: clearly distinct with background and text label */
  .nav-lang {
    border: 2px solid var(--green);
    border-radius: 999px;
    background: var(--green);
    color: #fff;
    padding: 0 0.6rem;
    width: auto;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
  }
  .nav-lang svg { width: 16px; height: 16px; }
  .nav-lang::after { display: none; }
  .nav-lang-label { display: inline; }

  /* Account button: outlined style to contrast with language */
  .nav-user-btn {
    border: 2px solid var(--outline);
    background: var(--surface);
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    padding: 0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    border-top: none;
    z-index: 40;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--surface-container);
  }

  .nav-links a.active {
    border-bottom-color: var(--green);
  }

  .hero-content { padding: 0 16px; }
  .featured-inner { padding: 0 16px; }
  .recruit-inner { padding: 0 16px; }
  .team-inner { padding: 0 16px; }
  .contacto-wrap { padding: 2.5rem 16px; }
  .contacto-map-wrap { padding: 0 16px 3rem; }
  .servicos-wrap { padding: 2.5rem 16px; }
  .results-wrap { padding: 2.5rem 16px; }
  .detail-wrap { padding: 2.5rem 16px; }
  .notfound-wrap { padding: 4rem 16px; }
  .footer-inner { padding: 1rem 16px; }
  .lang-menu { right: 0; left: auto; }
}

@media (min-width: 768px) {
  .nav-inner { padding: 1rem 64px; }
  .nav-links { display: flex; }
}

.nav-account {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-user-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--outline);
  border-radius: 999px;
  color: var(--green);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.nav-user-btn:hover,
.nav-user-btn[aria-expanded="true"] {
  background: var(--surface-low);
  border-color: var(--green);
  box-shadow: 0 2px 6px rgba(9, 65, 54, 0.18);
}

.nav-user-btn svg {
  width: 22px;
  height: 22px;
}

.nav-user-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.nav-user-btn.is-logged {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.account-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 220px;
  background: var(--surface);
  border: 1px solid var(--surface-container);
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16);
  padding: 0.5rem;
  z-index: 60;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.18s, transform 0.18s;
}

.account-menu.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.account-menu-greeting {
  padding: 0.6rem 0.75rem 0.4rem;
  font-size: 0.8rem;
  color: var(--text-variant);
}

.account-menu-greeting strong {
  display: block;
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 600;
}

.account-menu button,
.account-menu a {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  border-radius: 10px;
  padding: 0.6rem 0.75rem;
  font: inherit;
  font-weight: 500;
  color: var(--text-variant);
  text-decoration: none;
  cursor: pointer;
  pointer-events: auto !important;
  position: relative;
  z-index: 1;
  transition: background 0.15s, color 0.15s;
}

.account-menu button:hover,
.account-menu a:hover {
  background: var(--surface-low);
  color: var(--green);
}

.account-menu .account-menu-sep {
  height: 1px;
  background: var(--surface-container);
  margin: 0.35rem 0;
}

.account-menu .account-danger:hover {
  color: #b3261e;
  background: #fbeceb;
}

/* Auth modal */
.auth-overlay {
  position: fixed;
  inset: 0;
  background: rgba(9, 20, 18, 0.55);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.auth-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.auth-modal {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  transform: translateY(12px) scale(0.98);
  transition: transform 0.2s;
}

.auth-overlay.open .auth-modal {
  transform: translateY(0) scale(1);
}

.auth-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.25rem 0.5rem;
}

.auth-head h2 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.2rem;
  color: var(--green);
}

.auth-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  border-radius: 10px;
  color: var(--text-variant);
  cursor: pointer;
  transition: background 0.15s;
}

.auth-close:hover {
  background: var(--surface-low);
}

.auth-tabs {
  display: flex;
  gap: 0.25rem;
  padding: 0.5rem 1.25rem 0;
}

.auth-tab {
  flex: 1;
  padding: 0.6rem;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  font: inherit;
  font-weight: 600;
  color: var(--text-variant);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}

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

.auth-body {
  padding: 1rem 1.25rem 1.4rem;
}

.auth-form {
  display: none;
  flex-direction: column;
  gap: 0.9rem;
}

.auth-form.active {
  display: flex;
}

.auth-form .field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.auth-form label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-variant);
}

.auth-form input {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--outline);
  border-radius: 10px;
  font: inherit;
  color: var(--text);
  background: var(--surface);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.auth-form input:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(9, 65, 54, 0.12);
}

.auth-form input.input-error {
  border-color: #b3261e;
}

.auth-submit {
  margin-top: 0.25rem;
  background: var(--green);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.75rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 6px rgba(9, 65, 54, 0.25);
}

.auth-submit:hover {
  background: var(--green-dark);
  box-shadow: 0 4px 10px rgba(9, 65, 54, 0.35);
}

.auth-switch {
  margin-top: 0.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-variant);
}

.auth-switch button {
  background: transparent;
  border: none;
  color: var(--green);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

.auth-error {
  display: none;
  background: #fbeceb;
  color: #b3261e;
  border: 1px solid #f3c6c2;
  border-radius: 10px;
  padding: 0.6rem 0.8rem;
  font-size: 0.85rem;
  margin-bottom: 0.2rem;
}

.auth-error.show {
  display: block;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-variant);
  font-size: 0.8rem;
  margin: 0.1rem 0 0.15rem;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--surface-container);
}

.auth-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: 999px;
  padding: 0.7rem;
  font: inherit;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s;
}

.auth-google:hover {
  background: var(--surface-low);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.auth-google svg {
  width: 18px;
  height: 18px;
}

/* Hero */
.hero {
  position: relative;
  height: 819px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--green);
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
}

.hero-content {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 1280px;
  padding: 0 16px;
  text-align: center;
}

.hero-content h1 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: clamp(2rem, 6vw, 3rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 3rem;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.hero-search {
  position: relative;
  max-width: 56rem;
  margin: 0 auto;
  background: var(--surface);
  border-radius: 2rem;
  box-shadow: 0 4px 20px rgba(9, 65, 54, 0.12);
  text-align: left;
}

.hero-tabs {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.5rem;
  background: var(--surface);
  border-radius: 2rem 2rem 0 0;
  box-shadow: 0 4px 20px rgba(9, 65, 54, 0.12);
}

.hero-tab {
  padding: 0.75rem 1.25rem;
  border: none;
  background: transparent;
  color: var(--text-variant);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border-radius: 2rem 2rem 0 0;
  transition: color 0.2s, background 0.2s;
}

.hero-tab:hover {
  color: var(--green);
}

.hero-tab.active {
  background: var(--surface);
  color: var(--green);
}

.hero-form {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.field {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.field label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-variant);
  margin-bottom: 0.5rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  box-sizing: border-box;
  min-height: 48px;
  border: 1px solid var(--outline);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  line-height: 1.2;
  font-family: inherit;
  color: var(--text);
  background: var(--surface);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23094136' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.field textarea {
  resize: vertical;
  min-height: 48px;
}

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible,
.contact-form input:focus-visible,
.contact-form textarea:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 2px;
  border-color: var(--green);
  box-shadow: 0 0 0 1px var(--green);
}

.field-btn {
  justify-content: flex-end;
}

.hero-search-btn {
  width: 100%;
  background: var(--green);
  color: #fff;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: background 0.2s;
}

.hero-search-btn:hover {
  background: var(--green-dark);
}

@media (min-width: 768px) {
  .hero-content { padding: 0 64px; }
  .hero-form {
    flex-direction: row;
    align-items: flex-end;
    padding: 2rem;
  }
  .hero-form-sell {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-end;
    padding: 2rem;
    gap: 1rem;
  }
  .hero-form-sell .field {
    min-width: calc(50% - 0.5rem);
  }
  .hero-form-sell .field-btn {
    width: 100%;
    margin-top: 0.5rem;
  }
  .field-btn { margin-top: 0; }
}

/* Featured */
.featured {
  padding: 6rem 0;
  background: var(--bg);
}

.featured-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}

.featured-inner h2 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 2rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 3rem;
}

.properties-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .featured-inner { padding: 0 64px; }
  .properties-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .properties-grid { grid-template-columns: repeat(3, 1fr); }
}

.property-card {
  background: var(--surface);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(9, 65, 54, 0.08);
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.3s, box-shadow 0.3s;
}

.property-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(9, 65, 54, 0.18);
}

.property-thumb {
  height: 256px;
  overflow: hidden;
  position: relative;
}

.property-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

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

.property-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(255, 255, 255, 0.9);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--green);
}

.property-info {
  padding: 1.5rem;
}

.property-price {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.property-location {
  color: var(--text-variant);
  margin-bottom: 1rem;
}

.property-divider {
  height: 1px;
  background: rgba(196, 199, 199, 0.3);
  margin-bottom: 1rem;
}

.property-specs {
  display: flex;
  gap: 1rem;
}

.property-spec {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  color: var(--text-variant);
}

.property-spec .material-symbols-outlined {
  font-size: 18px;
  color: var(--green);
}

/* Recruitment */
.recruit {
  padding: 6rem 0;
  background: var(--surface-low);
}

.recruit-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}

@media (min-width: 768px) {
  .recruit-inner { padding: 0 64px; }
}

@media (min-width: 1024px) {
  .recruit-inner {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.recruit-text h2 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.recruit-text > p {
  font-size: 1.125rem;
  color: var(--text-variant);
  margin-bottom: 1.5rem;
}

.recruit-text blockquote {
  border-left: 4px solid var(--green);
  padding: 0.5rem 0 0.5rem 1rem;
  font-style: italic;
  font-size: 1.125rem;
  color: var(--text);
  margin-bottom: 2rem;
}

.recruit-text h3 {
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--green);
  margin: 1.5rem 0 0.75rem;
}

.checks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: var(--text-variant);
}

.checks li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.checks .material-symbols-outlined {
  font-size: 18px;
  color: var(--green);
  flex-shrink: 0;
}

.recruit-contact {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(196, 199, 199, 0.3);
  font-size: 0.875rem;
}

.recruit-form {
  background: var(--surface);
  padding: 2rem;
  border-radius: 1rem;
  box-shadow: 0 4px 20px rgba(9, 65, 54, 0.08);
}

.recruit-form .field {
  margin-bottom: 1.5rem;
}

.recruit-submit {
  width: 100%;
  background: var(--green);
  color: #fff;
  border: none;
  padding: 0.75rem;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.recruit-submit:hover {
  background: var(--green-dark);
}

.form-success {
  background: var(--green);
  color: #fff;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  text-align: center;
  font-weight: 600;
}

@media (min-width: 768px) {
  .recruit-inner { padding: 0 64px; }
}

@media (min-width: 1024px) {
  .recruit-inner {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

/* Footer */
.footer {
  background: var(--surface-container);
  border-top: 1px solid var(--surface-low);
  flex-shrink: 0;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 16px 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
  text-align: center;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-logo {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--green);
  letter-spacing: 0.08em;
}

.footer-about {
  font-size: 0.8rem;
  color: var(--text-variant);
  line-height: 1.6;
  max-width: 360px;
  margin-top: 0.75rem;
}

.footer-social {
  display: flex;
  gap: 1.25rem;
  margin-top: 1rem;
}

.footer-social a {
  color: var(--text-variant);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.04);
  transition: background 0.2s, color 0.2s, transform 0.2s;
}

.footer-social a:hover {
  background: var(--green);
  color: #fff;
  transform: translateY(-2px);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 0.78rem;
  color: var(--text-variant);
  text-decoration: none;
  transition: color 0.2s, text-decoration 0.2s;
}

.footer-links a:hover {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-bottom {
  border-top: 1px solid var(--outline);
}

.footer-bottom-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem 16px;
  display: flex;
  justify-content: center;
}

.footer-copy {
  font-size: 0.7rem;
  color: var(--text-variant);
}

@media (min-width: 768px) {
  .footer-inner {
    padding: 1.5rem 64px;
  }
  .footer-bottom-inner {
    padding: 0.75rem 64px;
  }
}

/* Results page */
.results-wrap {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2.5rem 16px;
}

.results-head h1 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
}

.results-head p {
  color: var(--text-variant);
  margin-bottom: 2rem;
}

.results-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

.filters {
  background: var(--surface);
  border: 1px solid var(--surface-container);
  border-radius: 1rem;
  padding: 1.5rem;
}

.filters h2 {
  font-size: 1.1rem;
  color: var(--green);
  margin-bottom: 1rem;
}

.filter-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}

.filter-group label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-variant);
  margin-bottom: 0.4rem;
}

.filter-group select {
  border: 1px solid var(--outline);
  border-radius: 0.75rem;
  padding: 0.6rem 1rem;
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--surface);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23094136' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.filter-group select:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 2px;
}

.filter-group input[type="search"],
.filter-group input[type="text"] {
  border: 1px solid var(--outline);
  border-radius: 0.75rem;
  padding: 0.6rem 1rem;
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--surface);
  width: 100%;
  box-sizing: border-box;
}

.filter-group input:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 2px;
}

.filter-reset {
  width: 100%;
  margin-top: 0.5rem;
  background: var(--surface-low);
  color: var(--text);
  border: 1px solid var(--outline);
  padding: 0.6rem;
  border-radius: 999px;
}

/* Phone input with country code — custom dropdown */
.phone-input-wrap {
  display: flex;
  gap: 0;
  align-items: stretch;
  width: 100%;
  position: relative;
}

.phone-input-wrap .dropdown {
  position: relative;
  width: 110px;
  flex: 0 0 auto;
}

.phone-input-wrap .dropdown-toggle {
  width: 100%;
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem;
  border: 1px solid var(--outline);
  border-radius: 0.75rem 0 0 0.75rem;
  border-right: none;
  padding: 0.75rem 0.5rem 0.75rem 0.75rem;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.2;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.phone-input-wrap .dropdown-toggle:hover {
  border-color: var(--green);
}

.phone-input-wrap .dropdown-toggle:focus,
.phone-input-wrap .dropdown-toggle:focus-visible {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(9, 65, 54, 0.15);
  outline: none;
}

.phone-input-wrap .dropdown-toggle .dropdown-value {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.phone-input-wrap .dropdown-arrow {
  font-size: 18px;
  color: var(--green);
  transition: transform 0.25s;
  flex-shrink: 0;
}

.phone-input-wrap .dropdown.open .dropdown-arrow {
  transform: rotate(180deg);
}

.phone-input-wrap .dropdown-menu {
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 0;
  z-index: 30;
  list-style: none;
  margin: 0;
  padding: 0.4rem;
  background: var(--surface);
  border: 1px solid var(--surface-container);
  border-radius: 1rem;
  box-shadow: 0 12px 30px rgba(9, 65, 54, 0.18);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  max-height: 260px;
  overflow-y: auto;
  min-width: 160px;
}

.phone-input-wrap .dropdown.open .dropdown-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.phone-input-wrap .dropdown-menu li {
  padding: 0.65rem 0.9rem;
  border-radius: 0.7rem;
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--text);
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.phone-input-wrap .dropdown-menu li:hover,
.phone-input-wrap .dropdown-menu li.active-option {
  background: rgba(9, 65, 54, 0.08);
  color: var(--green);
}

.phone-input-wrap .dropdown-menu li.selected {
  background: var(--green);
  color: #fff;
  font-weight: 600;
}

.phone-input-wrap .dropdown-menu li.selected:hover {
  background: var(--green-dark);
  color: #fff;
}

.phone-input-wrap input,
.phone-input-wrap input[type="tel"] {
  flex: 1 1 auto;
  min-width: 0;
  border: 1px solid var(--outline);
  border-radius: 0 0.75rem 0.75rem 0;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.2;
  background: var(--surface);
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.phone-input-wrap input:hover,
.phone-input-wrap input[type="tel"]:hover {
  border-color: var(--green);
}

.phone-input-wrap input:focus-visible,
.phone-input-wrap input[type="tel"]:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(9, 65, 54, 0.15);
  outline: none;
}

.filter-reset:hover {
  background: var(--surface-container);
}

.results-toolbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.results-toolbar label {
  font-size: 0.85rem;
  color: var(--text-variant);
  white-space: nowrap;
}

.results-toolbar select {
  flex: 1;
  max-width: 280px;
  border: 1px solid var(--outline);
  border-radius: 0.75rem;
  padding: 0.6rem 1rem;
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--surface);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23094136' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

.results-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 3rem 0;
  color: var(--text-variant);
  font-weight: 600;
}

.results-loading[hidden] {
  display: none !important;
}

[hidden] {
  display: none !important;
}

.spinner {
  width: 28px;
  height: 28px;
  border: 3px solid var(--surface-container);
  border-top-color: var(--green);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.page-btn {
  min-width: 40px;
  height: 40px;
  padding: 0 0.75rem;
  border: 1px solid var(--outline);
  background: var(--surface);
  border-radius: 999px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.page-btn:hover:not(.disabled):not(.active) {
  border-color: var(--green);
  color: var(--green);
}

.page-btn.active {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}

.page-btn.disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

@media (min-width: 768px) {
  .results-wrap { padding: 2.5rem 64px; }
  .results-layout {
    grid-template-columns: 280px 1fr;
  }
}

/* 404 page */
.notfound-wrap {
  flex: 1 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 70vh;
  padding: 4rem 16px;
  text-align: center;
  margin: 0 auto;
}

.notfound-card {
  text-align: center;
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
}

.notfound-code {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: clamp(5rem, 18vw, 9rem);
  font-weight: 700;
  color: var(--green);
  line-height: 1;
  margin-bottom: 1rem;
}

.notfound-card h1 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.notfound-card p {
  color: var(--text-variant);
  margin-bottom: 2rem;
}

.notfound-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.notfound-btn {
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}

.notfound-btn.primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 2px 6px rgba(9, 65, 54, 0.25);
}

.notfound-btn.primary:hover {
  background: var(--green-dark);
}

.notfound-btn.secondary {
  background: var(--surface);
  color: var(--green);
  border: 2px solid var(--green);
}

.notfound-btn.secondary:hover {
  background: var(--green);
  color: #fff;
}

.gallery-thumbs {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.gallery-thumbs img {
  width: 110px;
  height: 80px;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s;
}

.gallery-thumbs img.active {
  border-color: var(--green);
}

/* Detail page */
.detail-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 2rem;
}

.detail-back {
  display: inline-block;
  color: var(--green);
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 1.5rem;
}

.detail-back:hover {
  text-decoration: underline;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

.detail-image {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 4rem;
}

.gallery-main {
  width: 100%;
  max-width: 720px;
  height: 320px;
  object-fit: cover;
  border-radius: 16px;
  margin-bottom: 1rem;
}

.gallery-thumbs {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.gallery-thumbs img {
  width: 100px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s;
}

.gallery-thumbs img.active {
  border-color: var(--green);
}

.detail-title {
  color: var(--green);
  font-size: 1.8rem;
  margin-bottom: 0.3rem;
}

.detail-main .modal-price {
  color: var(--green);
  font-weight: 700;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.modal-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
  color: var(--text-variant);
}

.modal-specs .property-spec .material-symbols-outlined {
  font-size: 18px;
  color: var(--green);
}

.detail-main .modal-desc {
  color: var(--text);
  margin-top: 2rem;
  margin-bottom: 2.5rem;
  line-height: 1.6;
  font-size: 1rem;
  max-width: 68ch;
}

.modal-features h4 {
  color: var(--green);
  margin-bottom: 0.6rem;
  font-size: 1.05rem;
}

.modal-features ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.4rem 1.5rem;
}

.modal-features li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--text);
  font-size: 0.95rem;
  max-width: 36ch;
}

.modal-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15rem;
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23094136' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
}

.detail-side {
  position: sticky;
  top: 110px;
  background: var(--surface-low);
  border: 1px solid var(--outline);
  border-radius: 16px;
  padding: 1.5rem;
}

.detail-side .interest-box {
  margin-bottom: 1.2rem;
}

.interest-box p {
  color: var(--green);
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.contact-form .field {
  display: flex;
  flex-direction: column;
}

.contact-form label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-variant);
  margin-bottom: 0.4rem;
}

.contact-form input,
.contact-form textarea {
  padding: 0.7rem 1rem;
  border: 1px solid var(--outline);
  border-radius: 0.75rem;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text);
  background: var(--surface);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-form textarea {
  resize: vertical;
  min-height: 90px;
}

.contact-form input:focus-visible,
.contact-form textarea:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 2px;
  border-color: var(--green);
  box-shadow: 0 0 0 1px var(--green);
}

.contact-form input.input-error,
.contact-form textarea.input-error,
.field textarea.input-error {
  border-color: #ba1a1a;
  box-shadow: 0 0 0 1px #ba1a1a;
}

.field-error {
  color: #ba1a1a;
  font-size: 0.8rem;
  margin-top: 0.3rem;
  min-height: 1rem;
}

.contact-submit {
  background: var(--green);
  color: #fff;
  border: none;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s;
}

.contact-submit:hover {
  background: var(--green-dark);
}

.call-btn {
  width: 100%;
  margin-top: 0.6rem;
  background: var(--surface);
  color: var(--green);
  border: 2px solid var(--green);
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.call-btn:hover {
  background: var(--green);
  color: #fff;
}

.detail-missing {
  color: var(--text);
  font-size: 1.1rem;
}

.detail-missing a {
  color: var(--green);
  font-weight: 600;
}

@media (max-width: 800px) {
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .detail-side {
    position: static;
    top: auto;
  }
}

.cat-cta {
  margin-top: 3rem;
  background: var(--surface-low);
  border: 1px solid var(--surface-container);
  border-radius: 1rem;
  padding: 2rem;
  max-width: 640px;
}

.cat-cta h3 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 0.75rem;
}

.cat-cta p {
  color: var(--text-variant);
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.cat-cta-btn {
  display: inline-block;
  background: var(--green);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}

.cat-cta-btn:hover {
  background: var(--green-dark);
}

.cat-cta-wide {
  margin-top: 0;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.cat-cta-wide .cat-form {
  margin: 0 auto;
  text-align: left;
}

.section-gap {
  margin-top: 3.5rem;
}

/* Custom dropdown */
.dropdown {
  position: relative;
  width: 100%;
}

.dropdown-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-height: 48px;
  box-sizing: border-box;
  border: 1.5px solid var(--green);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.2;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.dropdown-toggle .dropdown-value {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dropdown-arrow {
  font-size: 20px;
  color: var(--green);
  transition: transform 0.25s;
}

.dropdown.open .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-toggle:hover {
  border-color: var(--green);
}

.dropdown-toggle:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 2px;
  border-color: var(--green);
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 0;
  right: 0;
  z-index: 30;
  list-style: none;
  margin: 0;
  padding: 0.4rem;
  background: var(--surface);
  border: 1px solid var(--surface-container);
  border-radius: 1rem;
  box-shadow: 0 12px 30px rgba(9, 65, 54, 0.18);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  max-height: 260px;
  overflow-y: auto;
}

.dropdown.open .dropdown-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.dropdown-menu li {
  padding: 0.65rem 0.9rem;
  border-radius: 0.7rem;
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--text);
  transition: background 0.15s, color 0.15s;
}

.dropdown-menu li:hover,
.dropdown-menu li.active-option {
  background: rgba(9, 65, 54, 0.08);
  color: var(--green);
}

.dropdown-menu li.selected {
  background: var(--green);
  color: #fff;
  font-weight: 600;
}

.dropdown-menu li.selected:hover {
  background: var(--green-dark);
  color: #fff;
}

.dropdown-inline {
  width: 280px;
  max-width: 100%;
}

/* Contacto page */
.contacto-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 16px;
}

/* Contact form phone input — match site-wide field style */
.contact-form .phone-input-wrap {
  display: flex;
  gap: 0;
  width: 100%;
}

.contact-form .phone-input-wrap .dropdown {
  position: relative;
  width: 110px;
  flex: 0 0 auto;
}

.contact-form .phone-input-wrap .dropdown-toggle {
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem;
  border: 1px solid var(--outline);
  border-radius: 0.75rem 0 0 0.75rem;
  border-right: none;
  padding: 0.75rem 0.5rem 0.75rem 0.75rem;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.2;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.contact-form .phone-input-wrap .dropdown-toggle:hover {
  border-color: var(--green);
}

.contact-form .phone-input-wrap .dropdown-toggle:focus,
.contact-form .phone-input-wrap .dropdown-toggle:focus-visible {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(9, 65, 54, 0.15);
  outline: none;
}

.contact-form .phone-input-wrap input,
.contact-form .phone-input-wrap input[type="tel"] {
  flex: 1 1 auto;
  min-width: 0;
  border: 1px solid var(--outline);
  border-radius: 0 0.75rem 0.75rem 0;
  padding: 0.75rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  line-height: 1.2;
  background: var(--surface);
  color: var(--text);
  min-height: 48px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-form .phone-input-wrap input:hover,
.contact-form .phone-input-wrap input[type="tel"]:hover {
  border-color: var(--green);
}

.contact-form .phone-input-wrap input:focus-visible,
.contact-form .phone-input-wrap input[type="tel"]:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(9, 65, 54, 0.15);
  outline: none;
}

.contact-form .phone-input-wrap .dropdown-menu {
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 0;
  z-index: 30;
  list-style: none;
  margin: 0;
  padding: 0.4rem;
  background: var(--surface);
  border: 1px solid var(--surface-container);
  border-radius: 1rem;
  box-shadow: 0 12px 30px rgba(9, 65, 54, 0.18);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  max-height: 220px;
  overflow-y: auto;
  min-width: 160px;
}

.contact-form .phone-input-wrap .dropdown.open .dropdown-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.contact-form .phone-input-wrap .dropdown-menu li {
  padding: 0.65rem 0.9rem;
  border-radius: 0.7rem;
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--text);
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.contact-form .phone-input-wrap .dropdown-menu li:hover,
.contact-form .phone-input-wrap .dropdown-menu li.active-option {
  background: rgba(9, 65, 54, 0.08);
  color: var(--green);
}

.contact-form .phone-input-wrap .dropdown-menu li.selected {
  background: var(--green);
  color: #fff;
  font-weight: 600;
}

.contact-form .phone-input-wrap .dropdown-menu li.selected:hover {
  background: var(--green-dark);
  color: #fff;
}

.contacto-head {
  text-align: center;
  margin-bottom: 2.5rem;
}

.contacto-head h1 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: clamp(2rem, 5vw, 2.5rem);
  font-weight: 700;
  color: var(--green);
  margin-bottom: 0.5rem;
}

.contacto-head p {
  color: var(--text-variant);
}

.contacto-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

.contacto-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.info-card {
  display: flex;
  gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--surface-container);
  border-radius: 1rem;
  padding: 1.2rem 1.4rem;
  height: 100%;
}

.info-card .material-symbols-outlined {
  color: var(--green);
  font-size: 28px;
  flex-shrink: 0;
}

.info-card h3 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--green);
  margin-bottom: 0.25rem;
}

.info-card p {
  color: var(--text);
  font-size: 0.95rem;
}

.info-card a {
  color: var(--text);
  text-decoration: none;
}

.info-card a:hover {
  color: var(--green);
  text-decoration: underline;
}

.contacto-main {
  display: flex;
  flex-direction: column;
}

.contact-form-card {
  background: var(--surface);
  border: 1px solid var(--surface-container);
  border-radius: 1rem;
  padding: 1.8rem;
  box-shadow: 0 4px 20px rgba(9, 65, 54, 0.06);
}

.contacto-form-title {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 1.2rem;
}

.contacto-map-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px 3rem;
}

.contacto-map-title {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 1rem;
}

.contacto-map iframe {
  width: 100%;
  display: block;
  box-shadow: 0 4px 20px rgba(9, 65, 54, 0.08);
}

@media (min-width: 768px) {
  .contacto-wrap { padding: 2.5rem 64px; }
  .contacto-grid {
    grid-template-columns: 1fr 1fr;
  }
  .contacto-map-wrap { padding: 0 64px 3rem; }
}

@media (max-width: 520px) {
  .contacto-info { grid-template-columns: 1fr; }
}

/* Serviços page */
.servicos-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 16px;
}

.servicos-head {
  text-align: center;
  margin-bottom: 3rem;
}

.servicos-head h1 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: clamp(2rem, 5vw, 2.5rem);
  font-weight: 700;
  color: var(--green);
  margin-bottom: 0.5rem;
}

.servicos-head p {
  color: var(--text-variant);
}

.servicos-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.servico-card {
  background: var(--surface);
  border: 1px solid var(--surface-container);
  border-radius: 1rem;
  padding: 1.8rem;
  transition: transform 0.2s, box-shadow 0.2s;
}

.servico-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(9, 65, 54, 0.12);
}

.servico-card .material-symbols-outlined {
  color: var(--green);
  font-size: 36px;
  margin-bottom: 1rem;
}

.servico-card h3 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.servico-card p {
  color: var(--text-variant);
  font-size: 0.95rem;
  line-height: 1.6;
}

.servicos-cta {
  text-align: center;
  margin-top: 3rem;
  background: var(--surface-low);
  border: 1px solid var(--surface-container);
  border-radius: 1rem;
  padding: 2.5rem;
}

.servicos-cta h2 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.6rem;
  color: var(--green);
  margin-bottom: 0.5rem;
}

.servicos-cta p {
  color: var(--text-variant);
  margin-bottom: 1.5rem;
}

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

@media (min-width: 900px) {
  .servicos-wrap { padding: 2.5rem 64px; }
  .servicos-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Language selector */
.nav-lang {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--outline);
  border-radius: 999px;
  color: var(--green);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.nav-lang:hover,
.nav-lang[aria-expanded="true"] {
  background: var(--surface-low);
  border-color: var(--green);
  box-shadow: 0 2px 6px rgba(9, 65, 54, 0.18);
}

.nav-lang svg {
  width: 22px;
  height: 22px;
}

/* Hide language label on desktop - only show on mobile */
.nav-lang-label {
  display: none;
}

.lang-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  min-width: 140px;
  background: var(--surface);
  border: 1px solid var(--surface-container);
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16);
  padding: 0.5rem;
  z-index: 80;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 0.18s, transform 0.18s;
}

.lang-menu.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.lang-menu button {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  border-radius: 10px;
  padding: 0.6rem 0.75rem;
  font: inherit;
  font-weight: 500;
  color: var(--text-variant);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.lang-menu button:hover {
  background: var(--surface-low);
  color: var(--green);
}

.lang-menu button.active {
  background: var(--surface-low);
  color: var(--green);
  font-weight: 600;
}

/* Team Section */
.team-section {
  padding: 5rem 0;
  background: var(--bg);
}

.team-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
  text-align: center;
}

.team-inner h2 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 2rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.75rem;
}

.team-inner > p {
  color: var(--text-variant);
  margin-bottom: 3rem;
}

.team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .team-inner { padding: 0 64px; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
}

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

.team-card {
  background: var(--surface);
  border: 1px solid var(--surface-container);
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s, box-shadow 0.3s;
}

.team-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(9, 65, 54, 0.12);
}

.team-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--surface-low);
  border: 2px solid var(--surface-container);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--green);
}

.team-avatar .material-symbols-outlined {
  font-size: 48px;
  color: var(--green);
}

.team-card h3 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.team-role {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.team-card p {
  color: var(--text-variant);
  font-size: 0.9rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.team-phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: auto;
  align-self: center;
  color: var(--green);
  font-weight: 600;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--green);
  transition: background 0.2s, color 0.2s;
}

.team-phone:hover {
  background: var(--green);
  color: #fff;
}

.team-phone .material-symbols-outlined {
  font-size: 18px;
}

/* Favorite button on property cards */
.fav-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 5;
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--green);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(9, 65, 54, 0.18);
  transition: transform 0.15s, background 0.15s, color 0.15s;
}

body.logged-in .fav-btn {
  display: inline-flex;
}

.fav-btn:hover {
  transform: scale(1.08);
}

.fav-btn .fav-heart {
  width: 22px;
  height: 22px;
  transition: fill 0.15s, stroke 0.15s;
}

.fav-btn.active {
  background: var(--green);
  color: #fff;
}

.fav-btn.active .fav-heart {
  fill: #ff5a5f;
  stroke: #ff5a5f;
}

.detail-price-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.detail-price-row .modal-price {
  margin-bottom: 0;
}

.detail-price-row .fav-btn {
  position: static;
  width: 38px;
  height: 38px;
}

/* Account menu favorites section */
.account-menu-section-label {
  padding: 0.5rem 0.75rem 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-variant);
}

.account-fav-list {
  max-height: 220px;
  overflow-y: auto;
}

.account-fav {
  display: block;
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
  color: var(--text-variant);
  text-decoration: none;
  border-radius: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background 0.15s, color 0.15s;
}

.account-fav:hover {
  background: var(--surface-low);
  color: var(--green);
}

.account-fav-empty {
  padding: 0.4rem 0.75rem 0.6rem;
  font-size: 0.85rem;
  color: var(--text-variant);
}

/* Reviews carousel */
.reviews-section {
  padding: 5rem 0;
  background: var(--bg);
}

.reviews-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}

.reviews-inner h2 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 2rem;
  font-weight: 600;
  color: var(--text);
  text-align: center;
  margin-bottom: 0;
}

.reviews-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.reviews-nav-group {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

.reviews-carousel {
  position: relative;
}

.reviews-track {
  display: flex;
  gap: 1.5rem;
  overflow: hidden;
  flex: 1;
  scroll-behavior: smooth;
  padding: 0.25rem;
}

.review-card {
  flex: 0 0 auto;
  width: 85%;
  background: var(--surface);
  border: 1px solid var(--surface-container);
  border-radius: 1rem;
  padding: 1.6rem;
  box-shadow: 0 4px 20px rgba(9, 65, 54, 0.06);
}

.review-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.review-avatar {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
}

.review-name {
  font-weight: 600;
  color: var(--text);
}

.review-stars {
  display: flex;
  gap: 0.1rem;
  margin-top: 0.15rem;
}

.review-star {
  color: #d9d9d9;
  font-size: 1rem;
  line-height: 1;
}

.review-star.filled {
  color: #f5b301;
}

.review-text {
  color: var(--text-variant);
  font-size: 0.95rem;
  line-height: 1.6;
}

.reviews-nav {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--outline);
  background: var(--surface);
  color: var(--green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.reviews-nav:hover {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
  box-shadow: 0 2px 6px rgba(9, 65, 54, 0.25);
}

@media (min-width: 600px) {
  .review-card { width: calc((100% - 1.5rem) / 2); }
}

@media (min-width: 1024px) {
  .review-card { width: calc((100% - 3rem) / 3); }
}

/* FAQ accordion */
.faq-section {
  max-width: 820px;
  margin: 0 auto;
  padding: 1rem 16px 4rem;
}

.faq-title {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--green);
  text-align: center;
  margin-bottom: 2rem;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--surface-container);
  border-radius: 1rem;
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.faq-item.open {
  box-shadow: 0 6px 20px rgba(9, 65, 54, 0.1);
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.4rem;
  background: transparent;
  border: none;
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.faq-q .material-symbols-outlined {
  flex-shrink: 0;
  color: var(--green);
  transition: transform 0.25s;
}

.faq-item.open .faq-q .material-symbols-outlined {
  transform: rotate(180deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-a p {
  padding: 0 1.4rem 1.2rem;
  color: var(--text-variant);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* Profile page */
.perfil-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 16px 4rem;
  width: 100%;
}

.perfil-card,
.perfil-login {
  background: var(--surface);
  border: 1px solid var(--surface-container);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(9, 65, 54, 0.06);
}

.perfil-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 0.5rem;
}

.perfil-avatar {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.6rem;
  overflow: hidden;
}

.perfil-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.perfil-name {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--green);
}

.perfil-email {
  color: var(--text-variant);
  font-size: 0.95rem;
}

.perfil-subtitle {
  color: var(--text-variant);
  margin: 0.5rem 0 2rem;
}

.perfil-fav-title {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 1.25rem;
}

.perfil-fav-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.perfil-fav-empty {
  color: var(--text-variant);
  font-size: 0.95rem;
}

.perfil-login {
  text-align: center;
}

.perfil-login .perfil-name {
  margin-bottom: 0.5rem;
}

.perfil-login .notfound-btn {
  margin-top: 1.5rem;
}

@media (min-width: 768px) {
  .perfil-fav-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .perfil-fav-grid { grid-template-columns: repeat(3, 1fr); }
}

.perfil-wrap {
  padding-bottom: 40px;
}

.perfil-anuncios {
  margin-top: 2rem;
}

/* Force footer to bottom on profile page */
.perfil-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-bottom: 40px;
}

.perfil-card {
  flex: 1 0 auto;
}

.perfil-login {
  flex: 1 0 auto;
}

.perfil-wrap + .footer {
  margin-top: auto;
  flex-shrink: 0;
}

/* Policy modal */
.policy-overlay {
  position: fixed;
  inset: 0;
  background: rgba(9, 20, 18, 0.55);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.policy-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.policy-modal {
  width: 100%;
  max-width: 640px;
  max-height: 80vh;
  background: var(--surface);
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  transform: translateY(12px) scale(0.98);
  transition: transform 0.2s;
  display: flex;
  flex-direction: column;
}

.policy-overlay.open .policy-modal {
  transform: translateY(0) scale(1);
}

.policy-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.25rem 0.5rem;
}

.policy-head h2 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.2rem;
  color: var(--green);
}

.policy-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  border-radius: 10px;
  color: var(--text-variant);
  cursor: pointer;
  transition: background 0.15s;
  padding: 0;
}

.policy-close:hover {
  background: var(--surface-low);
}

.policy-close svg {
  display: block;
}

.policy-body {
  padding: 1rem 1.25rem 1.4rem;
  overflow-y: auto;
  color: var(--text);
  line-height: 1.6;
  font-size: 0.95rem;
}

.policy-body h3 {
  font-family: "Plus Jakarta Sans", sans-serif;
  color: var(--green);
  font-size: 1rem;
  margin-bottom: 0.5rem;
  margin-top: 1rem;
}

.policy-body p {
  margin-bottom: 0.75rem;
  color: var(--text-variant);
}

.policy-body a {
  color: var(--green);
  text-decoration: none;
  font-weight: 600;
}

.policy-body a:hover {
  text-decoration: underline;
}

.policy-body ul {
  padding-left: 1.2rem;
  margin-bottom: 0.75rem;
  color: var(--text-variant);
}

.policy-body ul li {
  margin-bottom: 0.25rem;
}

/* Admin / Publish anuncio page */
.publish-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 16px 4rem;
  display: flex;
  flex-direction: column;
  width: 100%;
  flex: 1;
}

.publish-card {
  background: var(--surface);
  border: 1px solid var(--surface-container);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 4px 20px rgba(9, 65, 54, 0.06);
}

.publish-head {
  margin-bottom: 2rem;
}

.publish-head h1 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: clamp(2rem, 5vw, 2.4rem);
  font-weight: 700;
  color: var(--green);
  margin-bottom: 0.5rem;
}

.publish-head p {
  color: var(--text-variant);
}

.publish-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.publish-form .field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.publish-form label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-variant);
}

.publish-form input,
.publish-form select,
.publish-form textarea {
  width: 100%;
  box-sizing: border-box;
  min-height: 48px;
  border: 1px solid var(--outline);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  line-height: 1.2;
  font-family: inherit;
  color: var(--text);
  background: var(--surface);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.publish-form textarea {
  resize: vertical;
  min-height: 96px;
}

.publish-form input:focus-visible,
.publish-form select:focus-visible,
.publish-form textarea:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 2px;
  border-color: var(--green);
  box-shadow: 0 0 0 1px var(--green);
}

.publish-form .field-error {
  color: #ba1a1a;
  font-size: 0.8rem;
  min-height: 1rem;
}

.publish-form .input-error {
  border-color: #ba1a1a !important;
  box-shadow: 0 0 0 1px #ba1a1a !important;
}

.publish-form .phone-input-wrap input,
.publish-form .phone-input-wrap input[type="tel"] {
  flex: 1 1 auto;
  min-width: 0;
  border-radius: 0 0.75rem 0.75rem 0;
  padding: 0.75rem 1rem;
  font-size: 1rem;
}

.publish-form .phone-input-wrap .dropdown {
  width: 110px;
  flex: 0 0 auto;
}

.publish-form .phone-input-wrap input:focus-visible,
.publish-form .phone-input-wrap .dropdown-toggle:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 2px;
  border-color: var(--green);
  box-shadow: 0 0 0 1px var(--green);
}

.publish-submit {
  align-self: center;
  background: var(--green);
  color: #fff;
  border: none;
  padding: 0.8rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 6px rgba(9, 65, 54, 0.25);
}

.publish-submit:hover {
  background: var(--green-dark);
  box-shadow: 0 4px 10px rgba(9, 65, 54, 0.35);
}

.publish-success {
  background: var(--green);
  color: #fff;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  text-align: center;
  font-weight: 600;
}

.publish-gallery-preview {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.publish-gallery-preview img {
  width: 96px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--surface-container);
}

.publish-gallery-preview {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
  position: relative;
}

.publish-gallery-item {
  position: relative;
  display: inline-flex;
}

.publish-gallery-item button {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  background: #b3261e;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.publish-media-hint {
  font-size: 0.85rem;
  color: var(--text-variant);
  margin-top: 0.4rem;
}

.publish-upload-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1rem;
}

.publish-upload-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.5rem 1rem;
  border: 2px dashed var(--outline);
  border-radius: 1rem;
  background: var(--surface-low);
  color: var(--text-variant);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
  text-align: center;
}

.publish-upload-card:hover {
  border-color: var(--green);
  background: rgba(9, 65, 54, 0.04);
  color: var(--green);
}

.publish-upload-card input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.publish-upload-card .material-symbols-outlined {
  font-size: 32px;
  color: inherit;
}

.publish-upload-card span:last-child {
  font-weight: 600;
  font-size: 0.95rem;
}

.remove-ad-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: #b3261e;
  color: #fff;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
}

.publish-media-hint {
  font-size: 0.85rem;
  color: var(--text-variant);
  margin-top: 0.4rem;
}

.nav-publish-btn {
  background: var(--green);
  color: #fff;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  box-shadow: 0 2px 6px rgba(9, 65, 54, 0.25);
}

.nav-publish-btn:hover {
  background: var(--green-dark);
  box-shadow: 0 4px 10px rgba(9, 65, 54, 0.35);
}

@media (min-width: 768px) {
  .publish-wrap { padding: 2.5rem 64px 4rem; }
}

/* Sell page */
.sell-page .section {
  padding: 3rem 16px;
}
.sell-page .section-inner {
  max-width: 900px;
  margin: 0 auto;
}
.sell-page .section h1 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 0.5rem;
}
.sell-page .section-lead {
  color: var(--text-muted);
  margin-bottom: 2rem;
}
.sell-page .sell-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.sell-page .section-alt {
  background: var(--surface-low);
}
.sell-page .section-alt h2 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 700;
  font-size: clamp(1.3rem, 2.5vw, 1.9rem);
  margin-bottom: 1.5rem;
}
.sell-page .support-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
.sell-page .support-item {
  background: var(--surface);
  border: 1px solid var(--outline);
  border-radius: 16px;
  padding: 1.25rem;
}
.sell-page .support-item .material-symbols-outlined {
  color: var(--green);
  font-size: 28px;
  margin-bottom: 0.5rem;
}
.sell-page .support-item h3 {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.sell-page .support-item p {
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}
.sell-page .hero-search-btn:hover {
  background: var(--green);
}
.sell-page .nav-user-btn:hover,
.sell-page .nav-user-btn[aria-expanded="true"] {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
}
.sell-page .nav-contact:hover {
  background: transparent;
  box-shadow: none;
}
.sell-page .dropdown-toggle:hover {
  border-color: var(--outline);
}
@media (min-width: 768px) {
  .sell-page .support-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ============================================
   RESPONSIVE DESIGN - 100% MOBILE
   ============================================ */

/* ── GLOBAL MOBILE RULES (max-width: 767px) ── */
@media (max-width: 767px) {
  body { padding-top: 64px; }

  /* ── NAVBAR ── */
  .nav-inner { padding: 0.75rem 16px; gap: 0.5rem; }
  .nav-brand { font-size: 1.1rem; }
  .nav-logo { height: 28px; }
  .nav-hamburger { display: inline-flex; margin-left: auto; order: 3; width: 40px; height: 40px; padding: 9px; }
  .nav-actions { order: 4; width: 100%; justify-content: flex-end; padding-top: 0.35rem; gap: 0.5rem; }
  .nav-theme-btn { width: 40px; height: 40px; }
  .nav-theme-btn svg { width: 20px; height: 20px; }

  /* Hamburger menu dropdown */
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg);
    padding: 0;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    border-top: none;
    z-index: 45;
    border-radius: 0 0 16px 16px;
    overflow: hidden;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0 20px;
    font-size: 1rem;
    font-weight: 500;
    border-bottom: 1px solid var(--surface-container);
    position: relative;
    transition: background 0.15s, color 0.15s;
  }
  .nav-links a:last-child { border-bottom: none; }
  .nav-links a::after { display: none; }
  .nav-links a:hover,
  .nav-links a.active { background: var(--surface-low); color: var(--green); border-bottom-color: var(--surface-container); }

  /* Language button: filled green with text label */
  .nav-lang {
    border: 2px solid var(--green);
    border-radius: 999px;
    background: var(--green);
    color: #fff;
    padding: 0 0.6rem;
    width: auto;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
  }
  .nav-lang svg { width: 16px; height: 16px; }
  .nav-lang::after { display: none; }
  .nav-lang-label { display: inline; }

  /* Account button: outlined to contrast */
  .nav-user-btn { border: 2px solid var(--outline); background: var(--surface); width: 40px; height: 40px; }

  /* Contact button on mobile */
  .nav-contact {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 0.7rem;
    height: 40px;
    font-size: 0.8rem;
    border-radius: 999px;
    line-height: 1;
    text-align: center;
  }

  /* Language menu */
  .lang-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 130px;
    border-radius: 14px;
    z-index: 80;
  }

  /* Account menu */
  .account-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 200px;
    border-radius: 14px;
    z-index: 60;
  }

  /* ── HERO ── */
  .hero { height: auto; min-height: 520px; padding-bottom: 2rem; }
  .hero-content { padding: 0 16px; }
  .hero-content h1 { font-size: clamp(1.5rem, 6vw, 2.2rem); margin-bottom: 1.5rem; }
  .hero-search { border-radius: 1.25rem; }
  .hero-tabs { border-radius: 1.25rem 1.25rem 0 0; padding: 0.3rem; gap: 0; }
  .hero-tab { flex: 1; padding: 0.6rem 0.5rem; font-size: 0.85rem; border-radius: 1rem; }
  .hero-form { padding: 1rem; gap: 0.8rem; flex-direction: column; }
  .hero-search-btn { min-height: 48px; font-size: 1rem; border-radius: 999px; }

  /* ── SECTIONS ── */
  .featured { padding: 3rem 0; }
  .featured-inner { padding: 0 16px; }
  .featured-inner h2 { font-size: 1.4rem; margin-bottom: 1.5rem; }

  .recruit { padding: 3rem 0; }
  .recruit-inner { padding: 0 16px; gap: 2rem; }
  .recruit-text h2 { font-size: 1.5rem; }
  .recruit-text blockquote { font-size: 1rem; }
  .recruit-form { padding: 1.2rem; border-radius: 1rem; }

  .team-section { padding: 3rem 0; }
  .team-inner { padding: 0 16px; }
  .team-card { padding: 1.5rem; }
  .team-avatar { width: 80px; height: 80px; }

  .reviews-section { padding: 3rem 0; }
  .reviews-inner { padding: 0 16px; }
  .reviews-header { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
  .review-card { padding: 1.2rem; min-width: 85%; }

  .faq-section { padding: 1rem 16px 3rem; }
  .faq-title { font-size: 1.5rem; margin-bottom: 1.5rem; }
  .faq-q { padding: 1rem 1.2rem; font-size: 0.95rem; }
  .faq-a p { padding: 0 1.2rem 1rem; font-size: 0.9rem; }

  /* ── PROPERTY CARDS ── */
  .properties-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .property-thumb { height: 220px; }
  .property-info { padding: 1rem; }
  .property-price { font-size: 1.25rem; }
  .property-location { font-size: 0.9rem; }
  .property-specs { flex-wrap: wrap; gap: 0.75rem; }

  /* ── RESULTS PAGE ── */
  .results-wrap { padding: 1.5rem 16px; }
  .results-layout { grid-template-columns: 1fr; gap: 1.5rem; }
  .results-head h1 { font-size: 1.5rem; }
  .filters { padding: 1.2rem; border-radius: 1rem; }
  .filter-group select,
  .filter-group input { font-size: 16px; min-height: 44px; }

  /* ── DETAIL PAGE ── */
  .detail-wrap { padding: 1.5rem 16px; }
  .detail-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .detail-side { position: static; top: auto; border-radius: 1rem; padding: 1.2rem; }
  .gallery-main { width: 100%; height: 240px; border-radius: 12px; margin-bottom: 0.75rem; }
  .gallery-thumbs { gap: 0.5rem; margin-bottom: 1.5rem; }
  .gallery-thumbs img { width: 72px; height: 54px; border-radius: 8px; }
  .detail-title { font-size: 1.3rem; margin-bottom: 0.2rem; }
  .detail-price-row { flex-wrap: wrap; gap: 0.5rem; }
  .detail-price-row .modal-price { font-size: 1.1rem; }
  .modal-features ul { grid-template-columns: 1fr; }
  .modal-features li { max-width: 100%; }

  /* ── CONTACT PAGE ── */
  .contacto-wrap { padding: 2rem 16px; }
  .contacto-head { margin-bottom: 1.5rem; }
  .contacto-head h1 { font-size: 1.5rem; }
  .contacto-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .contacto-info { grid-template-columns: 1fr; gap: 0.75rem; }
  .info-card { padding: 1rem; }
  .contact-form-card { padding: 1.2rem; border-radius: 1rem; }
  .contacto-map-wrap { padding: 0 16px 2rem; }
  .contacto-map iframe { height: 250px; border-radius: 12px; }

  /* ── SERVICES PAGE ── */
  .servicos-wrap { padding: 2rem 16px; }
  .servicos-head { margin-bottom: 2rem; }
  .servicos-head h1 { font-size: 1.5rem; }
  .servicos-grid { grid-template-columns: 1fr; gap: 1rem; }
  .servico-card { padding: 1.2rem; }
  .servicos-cta { padding: 1.5rem; border-radius: 1rem; }
  .servicos-cta h2 { font-size: 1.3rem; }

  /* ── SELL PAGE ── */
  .sell-page .section { padding: 2rem 16px; }
  .sell-page .support-grid { grid-template-columns: 1fr; gap: 1rem; }

  /* ── AUTH MODAL ── */
  .auth-overlay { padding: 0.5rem; align-items: flex-end; }
  .auth-modal { border-radius: 16px 16px 0 0; max-height: 90vh; overflow-y: auto; width: 100%; }
  .auth-head { padding: 0.9rem 1rem 0.3rem; }
  .auth-tabs { padding: 0.3rem 1rem 0; }
  .auth-body { padding: 0.7rem 1rem 1.5rem; }
  .auth-form { gap: 0.75rem; }
  .auth-form input { font-size: 16px; min-height: 48px; }
  .auth-submit { min-height: 48px; font-size: 1rem; }

  /* ── PROFILE PAGE ── */
  .perfil-wrap { padding: 1.5rem 16px 3rem; }
  .perfil-card,
  .perfil-login { padding: 1.2rem; border-radius: 1rem; }
  .perfil-header { gap: 1rem; }
  .perfil-avatar { width: 56px; height: 56px; font-size: 1.4rem; }
  .perfil-name { font-size: 1.3rem; }
  .perfil-fav-grid { grid-template-columns: 1fr; gap: 1.25rem; }

  /* ── PUBLISH PAGE ── */
  .publish-wrap { padding: 1.5rem 16px 3rem; }
  .publish-card { padding: 1.2rem; border-radius: 1rem; }
  .publish-head h1 { font-size: 1.5rem; }
  .publish-form input,
  .publish-form select,
  .publish-form textarea { font-size: 16px; min-height: 48px; }
  .publish-upload-grid { grid-template-columns: 1fr; }
  .publish-upload-card { padding: 1.2rem; min-height: 80px; }

  /* ── USERS PAGE ── */
  .users-wrap { padding: 1.5rem 16px 3rem; }
  .users-card { padding: 1.2rem; border-radius: 1rem; }
  .users-head h1 { font-size: 1.5rem; }
  .users-table { font-size: 0.85rem; }
  .users-table th,
  .users-table td { padding: 0.5rem 0.3rem; }
  .users-actions { flex-direction: column; }
  .users-actions input,
  .users-actions select { width: 100%; min-height: 44px; }
  .users-actions button { width: 100%; min-height: 44px; }

  /* ── 404 PAGE ── */
  .notfound-wrap { padding: 3rem 16px; min-height: 60vh; }
  .notfound-code { font-size: clamp(3rem, 15vw, 6rem); }
  .notfound-card h1 { font-size: 1.4rem; }
  .notfound-actions { flex-direction: column; width: 100%; }
  .notfound-btn { width: 100%; text-align: center; padding: 0.75rem 1.5rem; }

  /* ── FOOTER ── */
  .footer { margin-top: auto; }
  .footer-inner { padding: 1.5rem 16px 1rem; gap: 1rem; }
  .footer-logo { font-size: 1.2rem; }
  .footer-about { margin-top: 0.6rem; font-size: 0.78rem; }
  .footer-social { gap: 1rem; margin-top: 0.75rem; }
  .footer-social a { width: 40px; height: 40px; }
  .footer-links { gap: 1rem 1.25rem; }
  .footer-links a { font-size: 0.75rem; }
  .footer-bottom-inner { padding: 0.75rem 16px; }

  /* ── POLICY MODAL ── */
  .policy-overlay { padding: 0.5rem; align-items: flex-end; }
  .policy-modal { border-radius: 16px 16px 0 0; max-height: 85vh; width: 100%; }
  .policy-head { padding: 0.9rem 1rem 0.3rem; }
  .policy-body { padding: 0.7rem 1rem 1.2rem; }

  /* ── EDIT AD MODAL ── */
  .edit-ad-overlay { padding: 0.5rem; align-items: flex-end; }
  .edit-ad-modal { border-radius: 16px 16px 0 0; max-height: 90vh; width: 100%; }

  /* ── FORMS ── */
  .field input,
  .field select,
  .field textarea,
  .contact-form input,
  .contact-form textarea,
  .auth-form input,
  .publish-form input,
  .publish-form select,
  .publish-form textarea {
    font-size: 16px; /* Prevents iOS zoom */
    min-height: 48px;
  }

  /* ── CUSTOM DROPDOWNS ── */
  .dropdown-menu {
    max-height: 220px;
    border-radius: 12px;
    padding: 0.3rem;
  }
  .dropdown-menu li { padding: 0.6rem 0.8rem; font-size: 0.9rem; }

  /* ── PHONE INPUT ── */
  .phone-input-wrap .dropdown { width: 100px; }
  .phone-input-wrap .dropdown-menu { max-height: 180px; min-width: 140px; }

  /* ── PERFORMANCE ── */
  .hero-search { box-shadow: 0 2px 12px rgba(9, 65, 54, 0.1); }
  .hero-tabs { box-shadow: none; }

  /* ── REVIEWS CAROUSEL ── */
  .reviews-track {
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 1rem;
  }
  .review-card { scroll-snap-align: start; }

  /* ── CAT CTA ── */
  .cat-cta { padding: 1.2rem; border-radius: 1rem; }
  .cat-cta h3 { font-size: 1.1rem; }
  .cat-cta p { font-size: 0.9rem; }
}

/* ── VERY SMALL (< 360px) ── */
@media (max-width: 360px) {
  .nav-inner { padding: 0.6rem 12px; }
  .nav-brand { font-size: 1rem; }
  .nav-logo { height: 24px; }
  .nav-actions { gap: 0.35rem; }
  .nav-theme-btn, .nav-user-btn { width: 36px; height: 36px; }
  .nav-contact { height: 36px; padding: 0 0.5rem; font-size: 0.72rem; line-height: 1; }
  .nav-lang { height: 36px; padding: 0 0.45rem; font-size: 0.7rem; }
  .nav-lang svg { width: 14px; height: 14px; }
  .hero { min-height: 460px; }
  .hero-content h1 { font-size: 1.3rem; margin-bottom: 1rem; }
  .hero-tab { padding: 0.5rem 0.3rem; font-size: 0.78rem; }
  .hero-form { padding: 0.75rem; }
  .property-thumb { height: 200px; }
  .footer-links { gap: 0.5rem 1rem; }
}

/* ── TABLETS (577px–767px) ── */
@media (min-width: 577px) and (max-width: 767px) {
  .properties-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .servicos-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .contacto-info { grid-template-columns: repeat(2, 1fr); }
  .gallery-main { height: 300px; }
  .detail-grid { grid-template-columns: 1fr 1fr; }
  .perfil-fav-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── DESKTOP MEDIUM (768px–1023px) ── */
@media (min-width: 768px) and (max-width: 1023px) {
  .hero { height: 780px; }
  .hero-content h1 { font-size: clamp(2rem, 5vw, 2.8rem); }
  .nav-inner { padding: 1rem 32px; gap: 0.5rem; }
  .nav-actions { gap: 0.35rem; }
  .nav-contact { padding: 0.5rem 1rem; }
}

/* Dark mode on mobile */
@media (max-width: 767px) {
  html.dark { background-color: #1a1a1a !important; }
  html.dark body { background-color: #1a1a1a !important; }
}
