/* Fonts loaded via <link> in header partial: Fraunces (display serif) + Outfit (UI sans) */

:root {
  /* Innovate Realty: Midnight Navy, restrained gold accents and editorial ivory surfaces */
  --primary-color: #02081A;
  --primary-hover: #111B33;
  --primary-soft: #16203A;
  --secondary-color: #D0A76A;
  --secondary-bright: #F0CF92;
  --secondary-hover: #A78150;
  --accent-color: #A78150;
  --whatsapp-color: #25d366;      /* Official WhatsApp Green */
  --text-dark: #02081A;
  --text-light: #F6F2E9;
  --text-gray: #6F5941;
  --bg-light: #F6F2E9;
  --bg-white: #FFFDF8;
  --bg-dark: #02081A;
  --border-color: #DED3C1;
  --font-sans: 'Outfit', -apple-system, sans-serif;
  --font-heading: 'Fraunces', 'Outfit', serif;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 6px rgba(2,8,26,0.06);
  --shadow-md: 0 12px 24px -8px rgba(2,8,26,0.14), 0 4px 8px -4px rgba(2,8,26,0.08);
  --shadow-lg: 0 28px 50px -12px rgba(2,8,26,0.28), 0 10px 18px -10px rgba(2,8,26,0.12);
  --glow-gold: 0 0 0 1px rgba(208,167,106,0.4), 0 18px 40px -16px rgba(208,167,106,0.5);
  --transition: all 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Reset and Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  color: var(--text-dark);
  /* Atmospheric base: warm ivory with subtle gold/navy radial depth instead of a flat fill */
  background-color: var(--bg-light);
  background-image:
    radial-gradient(1100px 600px at 12% -8%, rgba(208,167,106,0.10), transparent 60%),
    radial-gradient(1000px 700px at 100% 0%, rgba(2,8,26,0.07), transparent 55%);
  background-attachment: fixed;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-optical-sizing: auto;
  color: var(--primary-color);
  letter-spacing: -0.01em;
  line-height: 1.15;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

::selection {
  background: rgba(208,167,106,0.28);
  color: var(--primary-hover);
}

/* Header & Navigation */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background:
    linear-gradient(180deg, rgba(2,8,26,0.97), rgba(17,27,51,0.92)),
    radial-gradient(600px 120px at 0% 0%, rgba(208,167,106,0.16), transparent 70%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(208,167,106,0.18);
  padding: 15px 0;
}

header::after {
  /* Thin gold filament under the header */
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(208,167,106,0.7), transparent);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 16px;
  gap: 20px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--secondary-color);
  min-width: max-content;
}

.brand-mark {
  display: block;
  flex: 0 0 auto;
  width: 60px;
  height: auto;
}

.brand-wordmark {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.08rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  padding-left: 0.26em;
}

.brand-subtitle {
  margin-top: 5px;
  color: var(--text-light);
  font-size: 0.52rem;
  font-weight: 400;
  letter-spacing: 0.55em;
  padding-left: 0.55em;
  opacity: 0.78;
}

.brand-lockup-footer {
  margin-bottom: 18px;
}

.logo-text {
  font-size: 1.5rem;
  color: var(--bg-white);
  font-weight: 800;
  letter-spacing: -0.5px;
}

.logo-text span {
  color: var(--secondary-color);
}

nav {
  flex: 1 1 auto;
  min-width: 0;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 6px;
  align-items: center;
  justify-content: center;
}

nav ul li a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  color: var(--text-light);
  font-weight: 600;
  font-size: 0.94rem;
  line-height: 1.1;
  padding: 8px 9px;
  border-radius: var(--radius-sm);
  text-align: center;
  white-space: nowrap;
}

nav ul li a:hover, nav ul li a.active {
  color: var(--secondary-color);
  background: rgba(255, 255, 255, 0.05);
}

.nav-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.language-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.language-option {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--text-light);
  line-height: 1;
  opacity: 0.72;
  border: 1px solid transparent;
}

.language-option:hover,
.language-option.active {
  opacity: 1;
  background: rgba(208, 167, 106, 0.18);
  border-color: rgba(208, 167, 106, 0.65);
}

.flag-icon {
  width: 24px;
  height: 18px;
  border-radius: 3px;
  object-fit: cover;
  display: block;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.btn-favorites {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  color: var(--text-light);
  padding: 8px 14px;
  border-radius: 50px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1;
  border: 1px solid rgba(255,255,255,0.1);
  white-space: nowrap;
}

.btn-favorites:hover {
  background: rgba(208, 167, 106, 0.2);
  border-color: var(--secondary-color);
  color: var(--secondary-color);
}

.btn-favorites .fav-count {
  background: var(--secondary-color);
  color: var(--primary-color);
  font-weight: bold;
  font-size: 0.75rem;
  padding: 2px 7px;
  border-radius: 50%;
}

.btn-admin,
.btn-admin-panel {
  background: rgba(208, 167, 106, 0.18);
  border-color: rgba(208, 167, 106, 0.55);
  color: var(--text-light) !important;
  font-weight: 700 !important;
}

.btn-admin:hover,
.btn-admin-panel:hover {
  background: var(--secondary-color) !important;
  color: var(--primary-color) !important;
}

.btn-logout {
  background: #ef4444;
  border-color: rgba(255,255,255,0.18);
  color: white !important;
  font-weight: 700 !important;
}

.btn-logout:hover {
  background: #dc2626 !important;
  border-color: rgba(255,255,255,0.28);
  color: white !important;
}

/* Banner Hero Section */
.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(115deg, rgba(2,8,26,0.92) 0%, rgba(2,8,26,0.72) 45%, rgba(17,27,51,0.9) 100%),
    url('/uploads/villa_exterior.png') no-repeat center center/cover;
  padding: 140px 20px 120px;
  text-align: center;
  color: var(--text-light);
}

/* Atmospheric depth: soft gold glow + slow drift */
.hero::before {
  content: '';
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(540px 380px at 22% 28%, rgba(208,167,106,0.28), transparent 60%),
    radial-gradient(620px 460px at 82% 80%, rgba(2,8,26,0.12), transparent 65%);
  pointer-events: none;
  animation: heroDrift 18s ease-in-out infinite alternate;
}

@keyframes heroDrift {
  from { transform: translate3d(-2%, -1%, 0) scale(1.02); }
  to   { transform: translate3d(2%, 2%, 0) scale(1.08); }
}

.hero-content {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
}

.hero-subtitle {
  color: var(--secondary-bright);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 20px;
  opacity: 0;
  animation: riseIn 0.8s var(--ease-out) 0.05s forwards;
}

.hero-subtitle::before {
  content: '';
  display: inline-block;
  width: 34px;
  height: 1px;
  background: var(--secondary-color);
  vertical-align: middle;
  margin-right: 14px;
}

.hero-title {
  color: #F6F2E9;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 26px;
  opacity: 0;
  animation: riseIn 0.9s var(--ease-out) 0.18s forwards;
}

.hero-desc {
  font-size: 1.15rem;
  color: rgba(246, 242, 233, 0.82);
  max-width: 640px;
  margin: 0 auto 40px;
  opacity: 0;
  animation: riseIn 0.9s var(--ease-out) 0.32s forwards;
}

/* Search Filters Form */
.search-container {
  max-width: 1040px;
  margin: -56px auto 56px auto;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  padding: 28px 30px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(255,255,255,0.6);
  position: relative;
  z-index: 10;
  opacity: 0;
  animation: riseIn 0.9s var(--ease-out) 0.46s forwards;
}

.search-container::before {
  /* Gold hairline crown */
  content: '';
  position: absolute;
  top: 0;
  left: 28px;
  right: 28px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--secondary-color), transparent);
  border-radius: 2px;
}

.search-form {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 15px;
  align-items: end;
}

/* Menu em segunda linha quando logo, menu e botões não cabem lado a lado */
@media (max-width: 1440px) {
  .header-container {
    flex-wrap: wrap;
    row-gap: 4px;
  }

  nav {
    order: 3;
    width: 100%;
  }

  nav ul {
    flex-wrap: wrap;
  }

  .nav-actions {
    margin-left: auto;
  }
}

@media (max-width: 900px) {
  .header-container {
    flex-wrap: wrap;
    gap: 14px;
  }

  nav {
    order: 3;
    width: 100%;
  }

  nav ul {
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
  }

  .nav-actions {
    margin-left: auto;
  }

  .search-form {
    grid-template-columns: 1fr 1fr;
  }
  .search-form .form-group-submit {
    grid-column: span 2;
  }
}

@media (max-width: 600px) {
  header {
    padding: 10px 0;
  }

  .header-container {
    justify-content: center;
  }

  .nav-actions,
  .nav-buttons {
    justify-content: center;
    flex-wrap: wrap;
  }

  .nav-actions {
    width: 100%;
    margin-left: 0;
    flex: 1 1 100%;
  }

  .nav-buttons {
    width: 100%;
    gap: 8px;
  }

  .btn-favorites {
    min-height: 40px;
    padding: 8px 12px;
    font-size: 0.86rem;
  }

  .search-form {
    grid-template-columns: 1fr;
  }
  .search-form .form-group-submit {
    grid-column: span 1;
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input, .form-group select {
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
  background: var(--bg-light);
}

.form-group input:focus, .form-group select:focus {
  border-color: var(--secondary-color);
  background: var(--bg-white);
  box-shadow: 0 0 0 3px rgba(208, 167, 106, 0.15);
}

.btn-search-submit {
  width: 100%;
  padding: 13px 20px;
  background: linear-gradient(135deg, var(--primary-soft), var(--primary-color));
  color: var(--bg-white);
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
  box-shadow: 0 8px 18px -10px rgba(2,8,26,0.7);
}

.btn-search-submit:hover {
  background: linear-gradient(135deg, var(--secondary-bright), var(--secondary-color));
  color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--glow-gold);
}

/* Load More (paginação) */
.load-more-container {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.btn-load-more {
  padding: 14px 40px;
  background: transparent;
  color: var(--primary-color);
  border: 1.5px solid var(--secondary-color);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
}

.btn-load-more:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--secondary-bright), var(--secondary-color));
  color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--glow-gold);
}

.btn-load-more:disabled {
  opacity: 0.7;
  cursor: default;
}

/* Properties Section */
.section-container {
  max-width: 1200px;
  margin: 0 auto 80px auto;
  padding: 0 20px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: clamp(1.9rem, 3.5vw, 2.6rem);
  font-weight: 500;
  position: relative;
  padding-bottom: 14px;
}

.section-header h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 64px;
  height: 3px;
  background: linear-gradient(90deg, var(--secondary-bright), var(--secondary-color));
  border-radius: 2px;
}

/* Property Grid and Cards */
.properties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
}

.property-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), border-color 0.4s var(--ease-out);
  position: relative;
  display: flex;
  flex-direction: column;
  /* Orchestrated page-load: staggered reveal */
  opacity: 0;
  animation: cardReveal 0.7s var(--ease-out) forwards;
}

/* Stagger across the grid for a cascading entrance */
.properties-grid .property-card:nth-child(1) { animation-delay: 0.05s; }
.properties-grid .property-card:nth-child(2) { animation-delay: 0.13s; }
.properties-grid .property-card:nth-child(3) { animation-delay: 0.21s; }
.properties-grid .property-card:nth-child(4) { animation-delay: 0.29s; }
.properties-grid .property-card:nth-child(5) { animation-delay: 0.37s; }
.properties-grid .property-card:nth-child(6) { animation-delay: 0.45s; }
.properties-grid .property-card:nth-child(n+7) { animation-delay: 0.5s; }

.property-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(208, 167, 106, 0.55);
}

.card-image-wrapper {
  position: relative;
  height: 230px;
  overflow: hidden;
}

.card-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.property-no-image {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  height: 100%;
  background: #e8e7e3;
  color: #656b72;
  font-size: 0.9rem;
  font-weight: 600;
}

.property-no-image i { font-size: 2rem; }

.property-no-image-detail {
  height: 500px;
  border-radius: var(--radius-lg);
  margin-bottom: 30px;
}

@media (max-width: 600px) {
  .property-no-image-detail { height: 300px; }
}

.property-card:hover .card-image-wrapper img {
  transform: scale(1.08);
}

.card-tag {
  position: absolute;
  top: 15px;
  left: 15px;
  padding: 6px 14px;
  background: rgba(2, 8, 26, 0.78);
  backdrop-filter: blur(6px);
  color: var(--text-light);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 50px;
  z-index: 5;
}

.card-tag.destaque {
  background: linear-gradient(135deg, var(--secondary-bright), var(--secondary-color));
  color: var(--primary-hover);
  border-color: rgba(255,255,255,0.4);
}

.card-tag.reservado {
  background: rgba(180, 83, 9, 0.85);
}

.card-tag.vendido {
  background: rgba(127, 29, 29, 0.85);
}

.card-fav-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: var(--shadow-sm);
  z-index: 5;
  transition: var(--transition);
}

.card-fav-btn:hover {
  transform: scale(1.1);
  background: var(--bg-white);
}

.card-fav-btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--text-gray);
  stroke-width: 2;
  transition: var(--transition);
}

.card-fav-btn.is-active svg {
  fill: #e63946;
  stroke: #e63946;
}

.card-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-price {
  font-family: var(--font-heading);
  font-size: 1.55rem;
  color: var(--secondary-hover);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--primary-color);
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.3s var(--ease-out);
}

.property-card:hover .card-title {
  color: var(--secondary-hover);
}

.card-location {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--text-gray);
  font-size: 0.85rem;
  margin-bottom: 20px;
}

.card-location svg {
  width: 14px;
  height: 14px;
  stroke: var(--text-gray);
}

.card-features {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid var(--border-color);
  padding-top: 15px;
  margin-top: auto;
  font-size: 0.85rem;
  color: var(--text-dark);
}

.card-features-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.card-features-item svg {
  width: 16px;
  height: 16px;
  stroke: var(--secondary-color);
  fill: none;
}

/* Property Detail Page Design */
.detail-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  margin-top: 40px;
}

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

/* Premium Image Carousel */
.carousel-container {
  position: relative;
  height: 500px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-bottom: 30px;
  background: #000;
}

@media (max-width: 600px) {
  .carousel-container {
    height: 300px;
  }
}

.carousel-slides {
  height: 100%;
  position: relative;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
}

.carousel-slide.active {
  opacity: 1;
  visibility: visible;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(2, 8, 26, 0.7);
  color: var(--bg-white);
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: var(--transition);
  z-index: 10;
}

.carousel-btn:hover {
  background: var(--secondary-color);
  color: var(--primary-color);
}

.carousel-btn.prev {
  left: 20px;
}

.carousel-btn.next {
  right: 20px;
}

.carousel-btn svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
}

.carousel-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.indicator.active {
  background: var(--secondary-color);
  transform: scale(1.3);
}

.carousel-counter {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(2, 8, 26, 0.8);
  color: var(--text-light);
  padding: 6px 12px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  z-index: 10;
}

/* Property Header / Info Panel */
.property-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 30px;
}

.property-title-section h1 {
  font-size: 2.2rem;
  margin-bottom: 10px;
}

.property-meta-info {
  display: flex;
  gap: 20px;
  color: var(--text-gray);
  font-size: 0.95rem;
}

.property-meta-info span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.property-price-section {
  text-align: right;
}

.property-price-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--text-gray);
  font-weight: 600;
  letter-spacing: 1px;
}

.property-price-value {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 2.6rem);
  color: var(--secondary-hover);
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.btn-detail-fav {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-white);
  color: var(--text-dark);
  border: 1px solid var(--border-color);
  padding: 10px 20px;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.btn-detail-fav:hover {
  background: var(--bg-light);
  border-color: var(--secondary-color);
}

.btn-detail-fav svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--text-dark);
  stroke-width: 2.5;
  transition: var(--transition);
}

.btn-detail-fav.is-active {
  background: #fff0f1;
  border-color: #ffccd0;
  color: #e63946;
}

.btn-detail-fav.is-active svg {
  fill: #e63946;
  stroke: #e63946;
}

/* Detailed Information Section */
.property-info-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  margin-bottom: 30px;
}

.info-card-title {
  font-size: 1.45rem;
  font-weight: 500;
  margin-bottom: 22px;
  padding-bottom: 12px;
  position: relative;
  color: var(--primary-color);
}

.info-card-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, var(--secondary-bright), var(--secondary-color));
  border-radius: 2px;
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.spec-item {
  display: flex;
  align-items: center;
  gap: 15px;
  background: var(--bg-light);
  padding: 15px;
  border-radius: var(--radius-sm);
}

.spec-icon {
  background: rgba(208, 167, 106, 0.15);
  color: var(--secondary-color);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.spec-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.spec-details label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-gray);
  text-transform: uppercase;
  font-weight: 600;
}

.spec-details span {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-color);
}

.property-description {
  white-space: pre-line;
  color: #6F5941;
  font-size: 1rem;
  line-height: 1.8;
}

.video-preview, .video-player {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #02081a;
}

.video-preview { position: relative; padding: 0; cursor: pointer; }
.video-preview img, .video-frame iframe { display: block; width: 100%; height: 100%; object-fit: cover; border: 0; }
.video-play-icon { position: absolute; inset: 0; display: grid; place-items: center; color: white; font-size: 1.5rem; }
.video-play-icon i { display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; background: var(--secondary-color); box-shadow: 0 8px 30px #0008; }
.video-preview:focus-visible { outline: 3px solid var(--secondary-color); outline-offset: 3px; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
}

.feature-tag {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-dark);
}

.feature-tag svg {
  color: #10b981;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Sidebar Lead Forms / Agent Contact */
.sidebar-sticky {
  position: sticky;
  top: 100px;
}

.agent-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  text-align: center;
}

.agent-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 15px auto;
  border: 3px solid var(--secondary-color);
}

.agent-name {
  font-size: 1.25rem;
  margin-bottom: 5px;
}

.agent-role {
  font-size: 0.85rem;
  color: var(--text-gray);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
  font-weight: 600;
}

.agent-contact-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  text-align: left;
}

.agent-contact-form input, .agent-contact-form textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  outline: none;
  font-family: inherit;
  font-size: 0.9rem;
}

.agent-contact-form input:focus, .agent-contact-form textarea:focus {
  border-color: var(--secondary-color);
}

.btn-agent-submit {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, var(--primary-soft), var(--primary-color));
  color: var(--bg-white);
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: var(--transition);
}

.btn-agent-submit:hover {
  background: linear-gradient(135deg, var(--secondary-bright), var(--secondary-color));
  color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--glow-gold);
}

/* Floating WhatsApp Icon */
.whatsapp-floating {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: var(--whatsapp-color);
  color: var(--bg-white);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  z-index: 999;
  cursor: pointer;
  transition: transform 0.2s ease, background-color 0.3s ease;
  animation: pulse-ring 2s infinite;
}

.whatsapp-floating:hover {
  background-color: #20ba5a;
  transform: scale(1.1);
}

.whatsapp-floating svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
}

@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
  }
}

/* Footer Section */
footer {
  position: relative;
  background:
    radial-gradient(800px 320px at 85% 0%, rgba(208,167,106,0.12), transparent 60%),
    linear-gradient(180deg, #111B33, var(--bg-dark));
  color: rgba(246, 242, 233, 0.72);
  padding: 70px 20px 32px 20px;
  border-top: 1px solid rgba(208,167,106,0.45);
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--secondary-color), transparent);
}

.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.footer-info h3 {
  color: var(--bg-white);
  margin-bottom: 20px;
}

.footer-info p {
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.footer-links h4 {
  color: var(--bg-white);
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-links ul li a:hover {
  color: var(--secondary-color);
  padding-left: 5px;
}

.footer-bottom {
  max-width: 1200px;
  margin: 30px auto 0 auto;
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
}

@media (max-width: 600px) {
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
  }
}

/* Admin Dashboard & Login Styles */
.admin-login-container {
  max-width: 450px;
  margin: 100px auto;
  background: var(--bg-white);
  padding: 40px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
}

.admin-login-title {
  text-align: center;
  margin-bottom: 30px;
}

.alert {
  padding: 12px 15px;
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
  font-size: 0.9rem;
  font-weight: 500;
}

.alert-error {
  background: #fdf2f2;
  color: #9b1c1c;
  border: 1px solid #f8b4b4;
}

.alert-success {
  background: #f3faf7;
  color: #03543f;
  border: 1px solid #def7ec;
}

.admin-dashboard {
  max-width: 1200px;
  margin: 40px auto 80px auto;
  padding: 0 20px;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.btn-logout {
  background: #ef4444;
  color: white;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.btn-logout:hover {
  background: #dc2626;
}

.admin-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
}

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

.admin-card-form {
  background: var(--bg-white);
  padding: 30px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.admin-card-form h3 {
  margin-bottom: 20px;
  color: var(--primary-color);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
}

.admin-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 15px;
}

.admin-form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
}

.admin-form-group input, 
.admin-form-group select, 
.admin-form-group textarea {
  padding: 10px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  outline: none;
  font-family: inherit;
  font-size: 0.9rem;
}

.admin-form-group input:focus, 
.admin-form-group select:focus, 
.admin-form-group textarea:focus {
  border-color: var(--secondary-color);
}

.admin-form-submit {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, var(--primary-soft), var(--primary-color));
  color: var(--bg-white);
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 10px;
}

.admin-form-submit:hover {
  background: linear-gradient(135deg, var(--secondary-bright), var(--secondary-color));
  color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--glow-gold);
}

/* Admin - Integração MLS */
.admin-integration {
  background: var(--bg-white);
  padding: 30px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  margin-top: 30px;
}

.admin-integration-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.admin-integration-head h3 {
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 8px;
}

.integration-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

.integration-badge.is-on {
  background: rgba(34, 160, 94, 0.12);
  color: #1f8a4c;
}

.integration-badge.is-off {
  background: rgba(120, 130, 145, 0.14);
  color: var(--text-gray);
}

.admin-integration-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-test-connection {
  padding: 13px 22px;
  background: transparent;
  color: var(--primary-color);
  border: 1.5px solid var(--secondary-color);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.btn-test-connection:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--secondary-bright), var(--secondary-color));
  color: var(--primary-hover);
}

.btn-test-connection:disabled {
  opacity: 0.7;
  cursor: default;
}

.integration-test-result {
  font-size: 0.88rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.integration-test-result.is-ok { color: #1f8a4c; }
.integration-test-result.is-error { color: #d13b3b; }

/* Admin listings list */
.admin-listings {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  padding: 30px;
  height: fit-content;
}

.admin-listings h3 {
  margin-bottom: 20px;
}

.admin-list-item {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 0;
  border-bottom: 1px solid var(--border-color);
}

.admin-list-item:last-child {
  border-bottom: none;
}

.admin-list-thumb {
  width: 70px;
  height: 70px;
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.admin-list-info {
  flex-grow: 1;
}

.admin-list-title {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 3px;
}

.admin-list-meta {
  font-size: 0.8rem;
  color: var(--text-gray);
}

.admin-list-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-list-actions form {
  display: flex;
  align-items: center;
  margin: 0;
}

.btn-delete {
  background: #fee2e2;
  color: #ef4444;
  border: 1px solid #fca5a5;
  padding: 0;
  width: 32px;
  height: 32px;
  box-sizing: border-box;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.btn-delete:hover {
  background: #ef4444;
  color: white;
}

.btn-view-site {
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  color: var(--primary-color);
  padding: 0;
  width: 32px;
  height: 32px;
  box-sizing: border-box;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.btn-view-site:hover {
  border-color: var(--primary-color);
}

/* 404 View */
.notfound-container {
  text-align: center;
  padding: 100px 20px;
}

.notfound-title {
  font-size: 6rem;
  color: var(--secondary-color);
  margin-bottom: 10px;
}

.notfound-text {
  font-size: 1.5rem;
  margin-bottom: 30px;
}

.btn-home {
  display: inline-block;
  background: var(--primary-color);
  color: var(--bg-white);
  padding: 12px 30px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.btn-home:hover {
  background: linear-gradient(135deg, var(--secondary-bright), var(--secondary-color));
  color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--glow-gold);
}

.notfound-title {
  font-weight: 600;
  background: linear-gradient(135deg, var(--secondary-bright), var(--secondary-color));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ===== Motion keyframes (cookbook: orchestrated page-load reveals) ===== */
@keyframes riseIn {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes cardReveal {
  from { opacity: 0; transform: translateY(26px) scale(0.985); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Respect users who prefer less motion */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .hero-subtitle, .hero-title, .hero-desc, .search-container, .property-card {
    opacity: 1 !important;
  }
}

/* ==========================================================================
   Admin Tabs & Edit Layouts
   ========================================================================== */
.admin-tabs {
  display: flex;
  gap: 10px;
  border-bottom: 2px solid var(--border-color);
  margin-bottom: 30px;
  padding-bottom: 10px;
}

.tab-btn {
  background: transparent;
  border: none;
  color: var(--text-gray);
  padding: 10px 20px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.tab-btn:hover {
  color: var(--primary-color);
  background: rgba(2, 8, 26, 0.05);
}

.tab-btn.active {
  color: var(--primary-color);
  background: rgba(2, 8, 26, 0.08);
  box-shadow: inset 0 -2px 0 var(--secondary-color);
}

.tab-content {
  display: none;
  animation: cardReveal 0.4s var(--ease-out);
}

.tab-content.active {
  display: block;
}

.btn-edit {
  background: rgba(208, 167, 106, 0.12);
  color: var(--secondary-hover);
  border: 1px solid rgba(208, 167, 106, 0.3);
  padding: 0 12px;
  height: 32px;
  box-sizing: border-box;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: var(--transition);
}

.btn-edit:hover {
  background: var(--secondary-color);
  color: var(--text-light);
}

.btn-cancel {
  padding: 13px 20px;
  background: transparent;
  color: var(--text-gray);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
  margin-top: 10px;
}

.btn-cancel:hover {
  background: #fee2e2;
  color: #ef4444;
  border-color: #fca5a5;
}

/* API Documentation styles */
.badge-method {
  background: #e0f2fe;
  color: #0369a1;
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.85rem;
}

.code-block {
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-family: monospace;
  font-size: 0.9rem;
  color: var(--primary-color);
  word-break: break-all;
  display: inline-block;
}

.json-code {
  background: var(--bg-dark);
  color: #a7f3d0;
  padding: 15px;
  border-radius: var(--radius-sm);
  overflow-x: auto;
  font-family: monospace;
  font-size: 0.85rem;
  line-height: 1.5;
  border: 1px solid #1e293b;
}

/* ==========================================================================
   Public Blog Layouts
   ========================================================================== */
.blog-banner {
  background: linear-gradient(135deg, var(--primary-color) 0%, #111B33 100%);
  padding: 80px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(208, 167, 106, 0.2);
}

.blog-banner::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(208, 167, 106, 0.7), transparent);
}

.blog-banner-content {
  max-width: 800px;
  margin: 0 auto;
}

.blog-subtitle {
  color: var(--secondary-color);
  font-family: var(--font-sans);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.blog-title {
  color: var(--text-light);
  font-size: 2.8rem;
  font-family: var(--font-heading);
}

@media (max-width: 768px) {
  .blog-title { font-size: 2rem; }
}

.tag-filter-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 25px;
  padding: 10px 15px;
  background: rgba(208, 167, 106, 0.1);
  border: 1px solid rgba(208, 167, 106, 0.2);
  border-radius: var(--radius-sm);
  width: fit-content;
}

.clear-tag-btn {
  background: rgba(0,0,0,0.05);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

.clear-tag-btn:hover {
  background: #fee2e2;
  color: #ef4444;
}

.no-posts-container {
  text-align: center;
  padding: 60px 20px;
  background: var(--bg-white);
  border-radius: var(--radius-md);
  border: 1px dashed var(--border-color);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

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

.blog-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: rgba(208, 167, 106, 0.3);
}

.blog-card-img-wrapper {
  position: relative;
  aspect-ratio: 1200 / 630;
  overflow: hidden;
  background: var(--bg-light);
}

.blog-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

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

.blog-card-content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-card-meta {
  font-size: 0.82rem;
  color: var(--text-gray);
  margin-bottom: 12px;
  display: flex;
  gap: 15px;
}

.blog-card-title {
  font-size: 1.25rem;
  margin-bottom: 12px;
  line-height: 1.35;
}

.blog-card-title a:hover {
  color: var(--secondary-hover);
}

.blog-card-excerpt {
  color: var(--text-gray);
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 20px;
  flex-grow: 1;
}

.blog-card-footer {
  display: flex;
  flex-direction: column;
  gap: 15px;
  border-top: 1px solid var(--border-color);
  padding-top: 15px;
  margin-top: auto;
}

.blog-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.blog-tag-badge {
  background: var(--bg-light);
  color: var(--primary-color);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 500;
  border: 1px solid var(--border-color);
}

.blog-tag-badge:hover {
  background: var(--secondary-color);
  color: var(--primary-hover);
  border-color: var(--secondary-color);
}

.blog-card-link {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary-color);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
}

.blog-card-link:hover {
  color: var(--secondary-hover);
}

.blog-card-link i {
  transition: transform 0.25s var(--ease-out);
}

.blog-card-link:hover i {
  transform: translateX(4px);
}

/* ==========================================================================
   Public Blog Post Detail View
   ========================================================================== */
.post-detail-container {
  max-width: 800px;
  margin: 40px auto 80px auto;
  padding: 0 20px;
}

.post-header {
  margin-bottom: 30px;
}

.btn-back-blog {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-gray);
  margin-bottom: 25px;
}

.btn-back-blog:hover {
  color: var(--primary-color);
}

.post-meta {
  font-size: 0.88rem;
  color: var(--text-gray);
  margin-bottom: 10px;
}

.post-detail-title {
  font-size: 3rem;
  line-height: 1.15;
  margin-bottom: 20px;
  color: var(--primary-color);
}

@media (max-width: 768px) {
  .post-detail-title { font-size: 2.2rem; }
}

.post-tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
}

.post-hero-image-wrapper {
  width: 100%;
  aspect-ratio: 1200 / 630;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: 40px;
  border: 1px solid var(--border-color);
}



.post-hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-content {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text-dark);
}

.post-content p {
  margin-bottom: 25px;
  text-align: justify;
}

.post-footer-actions {
  margin-top: 50px;
  padding-top: 30px;
  border-top: 1px solid var(--border-color);
}

/* ==========================================================================
   Modals (Popups) for Admin Forms
   ========================================================================== */
.admin-modal {
  display: none; /* Hidden by default */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(2, 8, 26, 0.45); /* Dark branding overlay */
  backdrop-filter: blur(8px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeIn 0.3s ease-out;
}

.admin-modal.active {
  display: flex;
}

.admin-modal-content {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  border: 1px solid rgba(208, 167, 106, 0.25);
  box-shadow: var(--shadow-lg), var(--glow-gold);
  width: 100%;
  max-width: 750px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 35px;
  position: relative;
  animation: scaleIn 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-gray);
  cursor: pointer;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-light);
  transition: var(--transition);
}

.close-modal:hover {
  background: #fee2e2;
  color: #ef4444;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes scaleIn {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* Include buttons above lists */
.list-header-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 15px;
}

.btn-include {
  background: linear-gradient(135deg, var(--primary-soft), var(--primary-color));
  color: var(--bg-white);
  border: none;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.btn-include:hover {
  background: linear-gradient(135deg, var(--secondary-bright), var(--secondary-color));
  color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   Admin Search & Pagination Controls
   ========================================================================== */
.admin-search-wrapper {
  margin-bottom: 20px;
  position: relative;
  width: 100%;
}

.admin-search-input {
  width: 100%;
  padding: 12px 12px 12px 40px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.92rem;
  outline: none;
  background: var(--bg-white);
  transition: var(--transition);
}

.admin-search-input:focus {
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 3px rgba(208, 167, 106, 0.15);
}

.admin-search-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-gray);
  pointer-events: none;
}

.pagination-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid var(--border-color);
}

.pagination-btn {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--primary-color);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}

.pagination-btn:hover:not(:disabled) {
  border-color: var(--primary-color);
  background: rgba(2, 8, 26, 0.05);
}

.pagination-btn:disabled {
  color: var(--text-gray);
  border-color: var(--border-color);
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination-info {
  font-size: 0.88rem;
  color: var(--text-gray);
  font-weight: 500;
}

/* ==========================================================================
   Quill Editor styling overrides
   ========================================================================== */
.quill-editor-wrapper {
  margin-bottom: 15px;
  background: var(--bg-white);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
}

.quill-editor-wrapper .ql-toolbar.ql-snow {
  border: none;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-light);
  border-top-left-radius: var(--radius-sm);
  border-top-right-radius: var(--radius-sm);
  padding: 8px;
}

.quill-editor-wrapper .ql-container.ql-snow {
  border: none;
  border-bottom-left-radius: var(--radius-sm);
  border-bottom-right-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.95rem;
}

.quill-editor-wrapper .ql-editor {
  min-height: 250px;
  max-height: 400px;
}

/* API Tokens Tab Styles */
.tokens-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}

.tokens-table th {
  padding: 12px 10px;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--primary-color);
  text-align: left;
  border-bottom: 2px solid var(--border-color);
  background: var(--bg-light);
}

.tokens-table td {
  padding: 14px 10px;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}

.tokens-table tr:hover {
  background-color: rgba(2, 8, 26, 0.02);
}

.btn-copy-token {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--primary-color);
  font-size: 0.95rem;
  padding: 4px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.btn-copy-token:hover {
  color: var(--secondary-color);
  background-color: rgba(208, 167, 106, 0.1);
}

/* ==========================================================================
   Public Form Pages (Leads / Trabalhe Conosco)
   ========================================================================== */
.form-page {
  max-width: 720px;
  margin: 60px auto 90px auto;
  padding: 0 20px;
}

.form-page-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 40px 40px 45px;
}

.form-page-head {
  text-align: center;
  margin-bottom: 30px;
}

.form-page-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-soft), var(--primary-color));
  color: var(--secondary-bright);
  font-size: 1.6rem;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}

.form-page-head h1 {
  font-family: var(--font-heading);
  color: var(--primary-color);
  font-size: 2rem;
  line-height: 1.15;
  margin-bottom: 10px;
}

.form-page-head p {
  color: var(--text-gray);
  font-size: 0.98rem;
  max-width: 520px;
  margin: 0 auto;
}

.form-page-form .admin-form-submit {
  margin-top: 22px;
  padding: 15px;
  font-size: 1rem;
}

.career-either-help {
  font-size: 0.85rem;
  color: var(--text-gray);
  background: var(--bg-light);
  border: 1px dashed var(--border-color);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-bottom: 16px;
}

.career-either-help i {
  color: var(--secondary-color);
  margin-right: 4px;
}

/* DDI / country select */
.ddi-select {
  padding: 10px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  outline: none;
  font-family: inherit;
  font-size: 0.9rem;
  background: var(--bg-white);
  width: 100%;
}

.ddi-select:focus {
  border-color: var(--secondary-color);
}

@media (max-width: 600px) {
  .form-page-card {
    padding: 28px 20px 32px;
  }
  .form-page-head h1 {
    font-size: 1.6rem;
  }
}

/* ==========================================================================
   User photo preview (round box) — admin user & profile forms
   ========================================================================== */
.photo-preview-wrap {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
}

.photo-preview {
  width: 90px;
  height: 90px;
  min-width: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--secondary-color);
  background: var(--bg-light);
  box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   Admin — Leads & Candidatos
   ========================================================================== */
.tab-count {
  display: inline-block;
  min-width: 18px;
  padding: 1px 6px;
  margin-left: 4px;
  border-radius: 999px;
  background: var(--secondary-color);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
}

.candidate-card {
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}

.candidate-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.candidate-name {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--primary-color);
}

.candidate-position {
  font-size: 0.85rem;
  color: var(--text-gray);
  margin-top: 2px;
}

.candidate-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 12px 0;
  font-size: 0.85rem;
}

.candidate-contact a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
}

.candidate-contact a:hover {
  color: var(--secondary-color);
  text-decoration: underline;
}

.candidate-experience {
  font-size: 0.88rem;
  color: var(--text-dark);
  line-height: 1.55;
  white-space: pre-wrap;
  border-top: 1px dashed var(--border-color);
  padding-top: 12px;
  margin-top: 4px;
}

/* ============================================================
   Modais modernos (substituem alert() e confirm() nativos)
   ============================================================ */
.app-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(2, 8, 26, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.28s var(--ease-out);
}

.app-modal-overlay.is-visible {
  opacity: 1;
}

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

.app-modal {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-lg);
  padding: 34px 30px 28px;
  text-align: center;
  transform: translateY(14px) scale(0.96);
  opacity: 0;
  transition: transform 0.32s var(--ease-out), opacity 0.32s var(--ease-out);
}

/* Fina barra dourada no topo, alinhada ao branding */
.app-modal::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: linear-gradient(90deg, var(--secondary-color), var(--secondary-bright));
}

.app-modal-overlay.is-visible .app-modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.app-modal-icon {
  width: 62px;
  height: 62px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 1.7rem;
  color: var(--primary-color);
  background: rgba(2, 8, 26, 0.10);
}

.app-modal--info .app-modal-icon {
  color: var(--primary-color);
  background: rgba(2, 8, 26, 0.10);
}
.app-modal--confirm .app-modal-icon {
  color: var(--secondary-hover);
  background: rgba(208, 167, 106, 0.14);
}
.app-modal--warning .app-modal-icon,
.app-modal--error .app-modal-icon {
  color: #b4531f;
  background: rgba(180, 83, 31, 0.12);
}
.app-modal--success .app-modal-icon {
  color: var(--accent-color);
  background: rgba(56, 124, 38, 0.14);
}

.app-modal-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.app-modal-message {
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--text-gray);
  margin-bottom: 26px;
  white-space: pre-line;
}

.app-modal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.app-modal-btn {
  flex: 1 1 auto;
  min-width: 120px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: var(--transition);
}

.app-modal-btn--primary {
  color: var(--text-light);
  background: linear-gradient(135deg, var(--primary-soft), var(--primary-color));
  box-shadow: var(--shadow-sm);
}
.app-modal-btn--primary:hover {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.app-modal-btn--ghost {
  color: var(--primary-color);
  background: transparent;
  border-color: var(--border-color);
}
.app-modal-btn--ghost:hover {
  background: var(--bg-light);
  border-color: var(--primary-color);
}

.app-modal-btn:focus-visible {
  outline: 2px solid var(--secondary-color);
  outline-offset: 2px;
}

@media (max-width: 480px) {
  .app-modal-actions {
    flex-direction: column-reverse;
  }
  .app-modal-btn {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .app-modal-overlay,
  .app-modal {
    transition: opacity 0.15s linear;
  }
  .app-modal {
    transform: none;
  }
}

/* Busca rápida do iHomeFinder na página inicial */
.idx-quick-search {
  min-height: 96px;
}

/* Melhores regiões de Orlando (página inicial) */
.regions-section {
  padding-top: 10px;
}

.regions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.region-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 240px;
  border-radius: var(--radius-md);
  overflow: hidden;
  text-decoration: none;
  color: var(--text-light);
  background: var(--primary-color);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(208, 167, 106, 0.25);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}

.region-card:hover,
.region-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.region-card:focus-visible {
  outline: 3px solid var(--secondary-color);
  outline-offset: 3px;
}

.region-card-plain {
  background:
    radial-gradient(420px 220px at 100% 0%, rgba(208, 167, 106, 0.28), transparent 70%),
    linear-gradient(150deg, var(--primary-soft), var(--primary-color));
}

.region-card-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.region-card:not(.region-card-plain)::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(2, 8, 26, 0.05) 20%, rgba(2, 8, 26, 0.85) 100%);
}

.region-card-body {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.region-card-name {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1.15;
}

.region-card-desc {
  font-size: 0.95rem;
  color: rgba(246, 242, 233, 0.85);
  line-height: 1.5;
}

.region-card-cta {
  margin-top: 6px;
  color: var(--secondary-bright);
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Menu compacto no celular: depois da primeira rolagem o cabeçalho vira uma
   barra com o logo e o botão de menu (três linhas). O cabeçalho fica fixo e o
   espaço dele é reservado no topo da página, para o conteúdo não pular. */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 0;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(208, 167, 106, 0.45);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  flex: 0 0 auto;
}

.menu-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--text-light);
  transition: transform 0.25s var(--ease-out), opacity 0.2s ease;
}

.menu-toggle:focus-visible {
  outline: 3px solid var(--secondary-color);
  outline-offset: 2px;
}

header.menu-open .menu-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
header.menu-open .menu-toggle-bar:nth-child(2) { opacity: 0; }
header.menu-open .menu-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  html.has-compact-header body {
    padding-top: var(--header-full-height, 0px);
  }

  html.has-compact-header header {
    position: fixed;
    left: 0;
    right: 0;
  }

  header.is-compact {
    padding: 8px 0;
  }

  header.is-compact .header-container {
    flex-wrap: wrap;
    justify-content: space-between;
    row-gap: 10px;
  }

  header.is-compact nav,
  header.is-compact .nav-actions {
    display: none;
  }

  header.is-compact .menu-toggle {
    display: inline-flex;
  }

  header.is-compact.menu-open {
    max-height: 100vh;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  header.is-compact.menu-open nav {
    display: block;
    order: 3;
    width: 100%;
  }

  header.is-compact.menu-open nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }

  header.is-compact.menu-open nav ul li a {
    width: 100%;
    justify-content: flex-start;
    min-height: 48px;
    padding: 10px 14px;
    font-size: 1rem;
  }

  header.is-compact.menu-open .nav-actions {
    display: flex;
    order: 4;
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    margin-left: 0;
    padding: 6px 0 10px;
    border-top: 1px solid rgba(208, 167, 106, 0.18);
  }
}

@media (prefers-reduced-motion: reduce) {
  .menu-toggle-bar { transition: none; }
}

/* --- Página da matéria: leitura, compartilhamento e chamadas --- */
.post-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-gray);
  margin-bottom: 22px;
}

.post-breadcrumb a { color: var(--text-gray); font-weight: 600; }
.post-breadcrumb a:hover { color: var(--primary-color); }
.post-breadcrumb-current {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1 1 200px;
  min-width: 0;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.post-meta i { margin-right: 4px; }

.post-content h2 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  line-height: 1.25;
  margin: 42px 0 14px;
  color: var(--primary-color);
}

.post-content h3 { margin: 30px 0 10px; }
.post-content ul,
.post-content ol { margin: 0 0 25px 1.3em; }
.post-content li { margin-bottom: 10px; }
.post-content a { color: var(--secondary-hover); text-decoration: underline; text-underline-offset: 3px; }
.post-content img,
.post-content video,
.post-content iframe { max-width: 100%; height: auto; border-radius: var(--radius-sm); }
.post-content table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
.post-content blockquote {
  margin: 0 0 25px;
  padding: 14px 20px;
  border-left: 4px solid var(--secondary-color);
  background: var(--bg-white);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

@media (max-width: 600px) {
  .post-content { font-size: 1.05rem; }
  .post-content p { text-align: left; }
  .post-content h2 { font-size: 1.45rem; }
}

.post-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: -14px 0 34px;
}

.post-share-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-gray);
  margin-right: 4px;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: var(--bg-white);
  color: var(--primary-color);
  font-size: 1.05rem;
  cursor: pointer;
  transition: transform 0.2s var(--ease-out), background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.share-btn:hover,
.share-btn:focus-visible { transform: translateY(-2px); color: var(--bg-white); border-color: transparent; }
.share-btn:focus-visible { outline: 3px solid var(--secondary-color); outline-offset: 2px; }
.share-whatsapp:hover, .share-whatsapp:focus-visible { background: #128c4a; }
.share-facebook:hover, .share-facebook:focus-visible { background: #1658c9; }
.share-linkedin:hover, .share-linkedin:focus-visible { background: #0a5a96; }
.share-x:hover, .share-x:focus-visible { background: #000; }
.share-copy:hover, .share-copy:focus-visible { background: var(--primary-color); }
.share-copy.is-copied { background: var(--secondary-hover); color: var(--bg-white); border-color: transparent; }

.post-cta {
  margin-top: 46px;
  padding: 30px;
  border-radius: var(--radius-lg);
  color: var(--text-light);
  background:
    radial-gradient(420px 200px at 100% 0%, rgba(208, 167, 106, 0.28), transparent 70%),
    linear-gradient(140deg, var(--primary-soft), var(--primary-color));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  box-shadow: var(--shadow-md);
}

.post-cta-text { flex: 1 1 320px; }
.post-cta h2 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  line-height: 1.2;
  margin-bottom: 8px;
  color: var(--text-light);
}
.post-cta p { color: rgba(246, 242, 233, 0.85); margin: 0; }

.post-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  flex: 0 1 auto;
}

.post-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: transform 0.2s var(--ease-out), background 0.2s ease;
}

.post-cta-btn:hover { transform: translateY(-2px); }
.post-cta-whatsapp { background: #1fa855; color: #fff; }
.post-cta-whatsapp:hover { background: #178c46; color: #fff; }
.post-cta-search { background: var(--secondary-color); color: var(--primary-color); }
.post-cta-search:hover { background: var(--secondary-bright); color: var(--primary-color); }

@media (max-width: 600px) {
  .post-cta { padding: 24px 20px; }
  .post-cta-actions, .post-cta-btn { width: 100%; }
}

.post-related { margin-top: 56px; }
.post-related h2 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  color: var(--primary-color);
  margin-bottom: 20px;
}

.post-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

.post-related-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  color: var(--text-dark);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}

.post-related-card:hover,
.post-related-card:focus-visible { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.post-related-card img { width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; }
.post-related-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 18px; }
.post-related-body time { font-size: 0.8rem; color: var(--text-gray); }
.post-related-title { font-family: var(--font-heading); font-size: 1.05rem; line-height: 1.3; font-weight: 500; }

@media (max-width: 420px) {
  .post-share { gap: 7px; }
  .post-share-label { flex-basis: 100%; margin-bottom: 2px; }
}

.share-x-mark { font-family: var(--font-sans); font-weight: 800; font-size: 1.05rem; line-height: 1; }

/* ==========================================================================
   Busca própria — Stellar MLS via MLS Grid
   ========================================================================== */
.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; }

.mls-search, .mls-listing { max-width: 1440px; margin: 0 auto; padding: 32px clamp(16px, 3vw, 40px) 56px; }
.mls-preview-banner { background: #fff6e0; border: 1px solid var(--secondary-color); color: var(--primary-color); border-radius: var(--radius-sm); padding: 10px 14px; margin-bottom: 18px; font-size: .9rem; }
.mls-eyebrow { font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; color: var(--secondary-hover); margin: 0 0 8px; font-weight: 600; }
.mls-search-head h1 { font-family: var(--font-heading); font-size: clamp(1.9rem, 3.4vw, 2.8rem); line-height: 1.08; margin: 0 0 8px; color: var(--primary-color); }
.mls-search-head p { margin: 0; color: var(--text-gray); }

.mls-filters { margin: 26px 0 18px; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; align-items: end; background: var(--bg-white); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 18px; box-shadow: var(--shadow-sm); }
.mls-field { display: flex; flex-direction: column; gap: 6px; font-size: .78rem; font-weight: 600; color: var(--text-gray); text-transform: uppercase; letter-spacing: .06em; }
.mls-field select, .mls-field input { font: inherit; font-size: .95rem; text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--primary-color); background: #fff; border: 1px solid var(--border-color); border-radius: 10px; padding: 11px 12px; min-height: 46px; }
.mls-field select:focus, .mls-field input:focus { outline: 2px solid var(--secondary-color); outline-offset: 1px; border-color: var(--secondary-color); }
.mls-field-q { grid-column: 1 / -1; position: relative; }
.mls-field-q i { position: absolute; left: 16px; bottom: 15px; color: var(--secondary-hover); }
.mls-field-q input { padding-left: 44px; font-size: 1.05rem; min-height: 52px; }
.mls-check { display: flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--primary-color); min-height: 46px; }
.mls-check input { accent-color: var(--secondary-hover); width: 18px; height: 18px; }
.mls-filter-actions { display: flex; gap: 10px; align-items: center; }
.mls-btn-primary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--primary-color); color: var(--text-light); border: 0; border-radius: 999px; padding: 13px 22px; font: 600 .95rem var(--font-sans); cursor: pointer; text-decoration: none; transition: var(--transition); white-space: nowrap; }
.mls-btn-primary:hover { background: var(--primary-hover); box-shadow: var(--glow-gold); }
.mls-btn-ghost { white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; color: var(--primary-color); border: 1px solid var(--border-color); border-radius: 999px; padding: 11px 18px; font-weight: 600; font-size: .9rem; text-decoration: none; background: transparent; transition: var(--transition); }
.mls-btn-ghost:hover { border-color: var(--secondary-color); color: var(--secondary-hover); }

.mls-results-bar { display: flex; justify-content: space-between; align-items: center; margin: 8px 0 14px; color: var(--primary-color); }
.mls-map-toggle { display: none; align-items: center; gap: 8px; border: 1px solid var(--border-color); background: var(--bg-white); border-radius: 999px; padding: 9px 16px; font: 600 .9rem var(--font-sans); color: var(--primary-color); cursor: pointer; }
.mls-capped { font-size: .85rem; color: var(--text-gray); margin: -6px 0 12px; }

.mls-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, 42%); gap: 24px; align-items: start; }
.mls-map-wrap { position: sticky; top: 110px; height: calc(100vh - 140px); min-height: 480px; border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border-color); box-shadow: var(--shadow-sm); }
.mls-map { width: 100%; height: 100%; background: #e9e4da; }
.mls-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.mls-grid-3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
@media (min-width: 1100px) { .mls-grid-3 { grid-template-columns: repeat(3, 1fr); } }

.mls-card { background: var(--bg-white); border: 1px solid var(--border-color); border-radius: var(--radius-md); overflow: hidden; display: flex; flex-direction: column; transition: var(--transition); }
.mls-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: rgba(208,167,106,.6); }
.mls-card-media { position: relative; display: block; aspect-ratio: 4 / 3; background: linear-gradient(135deg, #16203A, #02081A); overflow: hidden; }
.mls-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.mls-card:hover .mls-card-media img { transform: scale(1.04); }
.mls-card-media.is-empty::after, .mls-card-empty { content: ''; position: absolute; inset: 0; display: grid; place-items: center; color: rgba(208,167,106,.6); font-size: 2rem; }
.mls-status { position: absolute; top: 12px; left: 12px; background: rgba(2,8,26,.82); color: var(--text-light); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; backdrop-filter: blur(4px); }
.mls-status-active-under-contract, .mls-status-pending { background: rgba(167,129,80,.92); }
.mls-status-coming-soon { background: rgba(22,32,58,.92); border: 1px solid var(--secondary-color); }
.mls-photo-count { position: absolute; bottom: 10px; right: 10px; background: rgba(2,8,26,.7); color: #fff; font-size: .75rem; padding: 4px 9px; border-radius: 999px; }
.mls-card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.mls-card-price { font-family: var(--font-heading); font-size: 1.55rem; font-weight: 600; color: var(--primary-color); line-height: 1; }
.mls-card-facts { display: flex; gap: 14px; font-size: .9rem; color: var(--text-gray); }
.mls-card-facts strong { color: var(--primary-color); }
.mls-card-address { color: var(--primary-color); text-decoration: none; font-weight: 600; font-size: .95rem; line-height: 1.35; }
.mls-card-address span { font-weight: 400; color: var(--text-gray); font-size: .88rem; }
.mls-card-address:hover { color: var(--secondary-hover); }
.mls-card-courtesy { margin-top: auto; padding-top: 10px; border-top: 1px solid #efe7da; font-size: .74rem; color: #7c7468; line-height: 1.4; }

.mls-pin span { display: inline-block; transform: translate(-50%, -100%); background: var(--primary-color); color: #fff; font: 700 .75rem var(--font-sans); padding: 5px 9px; border-radius: 999px; box-shadow: 0 4px 10px rgba(2,8,26,.3); white-space: nowrap; border: 2px solid #fff; transition: transform .2s; }
.mls-pin.is-active span, .mls-pin:hover span { background: var(--secondary-color); color: var(--primary-color); transform: translate(-50%, -100%) scale(1.12); z-index: 1000; }

.mls-pagination { display: flex; justify-content: space-between; align-items: center; margin-top: 28px; color: var(--text-gray); font-size: .9rem; }
.mls-pagination a { color: var(--primary-color); font-weight: 600; text-decoration: none; border: 1px solid var(--border-color); padding: 10px 18px; border-radius: 999px; background: var(--bg-white); }
.mls-pagination a:hover { border-color: var(--secondary-color); }
.mls-empty { text-align: center; padding: 60px 20px; color: var(--text-gray); border: 1px dashed var(--border-color); border-radius: var(--radius-md); }
.mls-empty i { font-size: 2rem; color: var(--secondary-color); }

.mls-disclaimer { margin-top: 40px; padding: 22px 24px; background: var(--bg-white); border: 1px solid var(--border-color); border-radius: var(--radius-md); font-size: .76rem; line-height: 1.6; color: #6b6458; }
.mls-disclaimer p { margin: 8px 0 0; }
.mls-disclaimer a { color: var(--primary-color); }
.mls-disclaimer-source { display: flex; align-items: center; gap: 12px; font-size: .85rem; color: var(--primary-color); font-weight: 600; }
.mls-grid-logo { height: 30px; width: auto; }
.mls-grid-wordmark { font-weight: 800; letter-spacing: .08em; border: 1.5px solid var(--primary-color); padding: 4px 8px; border-radius: 6px; font-size: .78rem; }

/* Página do imóvel */
.mls-breadcrumb { margin-bottom: 16px; }
.mls-gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 220px 220px; gap: 8px; border-radius: var(--radius-lg); overflow: hidden; position: relative; margin-bottom: 30px; }
.mls-gallery.is-single { grid-template-columns: 1fr; grid-template-rows: 460px; }
.mls-gallery-item { border: 0; padding: 0; margin: 0; cursor: zoom-in; background: #16203A; overflow: hidden; }
.mls-gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease-out); }
.mls-gallery-item:hover img { transform: scale(1.03); }
.mls-gallery-item-0 { grid-row: 1 / span 2; }
.mls-gallery-all { position: absolute; right: 16px; bottom: 16px; background: rgba(255,253,248,.95); border: 0; border-radius: 999px; padding: 10px 16px; font: 600 .88rem var(--font-sans); color: var(--primary-color); cursor: pointer; box-shadow: var(--shadow-md); }
.mls-listing-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: start; }
.mls-listing-price-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.mls-listing-price { font-family: var(--font-heading); font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 600; color: var(--primary-color); }
.mls-listing-price-row .mls-status { position: static; }
.mls-listing-head h1 { font-family: var(--font-heading); font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 10px 0 2px; color: var(--primary-color); }
.mls-listing-city { margin: 0; color: var(--text-gray); }
.mls-listing-facts { list-style: none; padding: 18px 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 26px; border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }
.mls-listing-facts li { display: flex; align-items: center; gap: 8px; color: var(--text-gray); }
.mls-listing-facts i { color: var(--secondary-hover); }
.mls-listing-facts strong { color: var(--primary-color); font-size: 1.15rem; }
.mls-listing-courtesy { font-size: .85rem; color: #6b6458; margin: 12px 0 0; }
.mls-block { margin-top: 34px; }
.mls-block h2, .mls-similar h2, .mls-contact-card h2, .mls-calc h2 { font-family: var(--font-heading); font-size: 1.4rem; color: var(--primary-color); margin: 0 0 14px; }
.mls-remarks { white-space: pre-line; line-height: 1.75; color: #2b2a28; }
.mls-details { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0 28px; margin: 0; }
.mls-details div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid #efe7da; font-size: .92rem; }
.mls-details dt { color: var(--text-gray); }
.mls-details dd { margin: 0; color: var(--primary-color); font-weight: 600; text-align: right; }
.mls-listing-map { height: 340px; border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border-color); }
.mls-listing-side { position: sticky; top: 110px; display: flex; flex-direction: column; gap: 18px; }
.mls-contact-card { background: var(--primary-color); color: var(--text-light); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; gap: 12px; }
.mls-contact-card h2 { color: var(--text-light); }
.mls-contact-card p { margin: 0; color: #c9cfdc; line-height: 1.55; font-size: .93rem; }
.mls-contact-card .mls-btn-ghost { color: var(--text-light); border-color: rgba(246,242,233,.3); justify-content: center; }
.mls-btn-whatsapp { display: flex; align-items: center; justify-content: center; gap: 10px; background: var(--whatsapp-color); color: #fff; border-radius: 999px; padding: 14px; font-weight: 700; text-decoration: none; transition: var(--transition); }
.mls-btn-whatsapp:hover { filter: brightness(1.05); transform: translateY(-1px); }
.mls-contact-firm { font-size: .78rem !important; color: var(--secondary-color) !important; text-align: center; }
.mls-calc { background: var(--bg-white); border: 1px solid var(--border-color); border-radius: var(--radius-lg); padding: 22px; }
.mls-calc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mls-calc-grid label { display: flex; flex-direction: column; gap: 5px; font-size: .72rem; color: var(--text-gray); font-weight: 600; }
.mls-calc-grid input { font: 600 .95rem var(--font-sans); padding: 9px; border: 1px solid var(--border-color); border-radius: 8px; width: 100%; box-sizing: border-box; }
.mls-calc-result { display: flex; flex-direction: column; margin: 16px 0 6px; font-size: .82rem; color: var(--text-gray); }
.mls-calc-result strong { font-family: var(--font-heading); font-size: 1.7rem; color: var(--primary-color); }
.mls-calc-note { font-size: .74rem; color: #8a8174; margin: 0; }
.mls-similar { margin-top: 56px; }
.mls-similar .mls-btn-ghost { margin-top: 22px; }

.mls-lightbox { position: fixed; inset: 0; background: rgba(2,8,26,.96); z-index: 5000; display: flex; align-items: center; justify-content: center; }
.mls-lightbox[hidden] { display: none; }
.mls-lightbox figure { margin: 0; max-width: 92vw; max-height: 88vh; text-align: center; }
.mls-lightbox img { max-width: 92vw; max-height: 82vh; object-fit: contain; border-radius: 8px; }
.mls-lightbox figcaption { color: #c9cfdc; margin-top: 10px; font-size: .85rem; }
.mls-lightbox-close { position: absolute; top: 14px; right: 20px; background: none; border: 0; color: #fff; font-size: 2.4rem; cursor: pointer; }
.mls-lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.12); border: 0; color: #fff; font-size: 2.4rem; width: 54px; height: 54px; border-radius: 50%; cursor: pointer; }
.mls-lightbox-nav.prev { left: 16px; } .mls-lightbox-nav.next { right: 16px; }

/* Destaques e busca rápida na home */
.mls-featured-footer { display: flex; justify-content: center; margin-top: 28px; }
.mls-quick-form { display: grid; grid-template-columns: 1fr auto auto auto; gap: 10px; background: var(--bg-white); border-radius: var(--radius-lg); padding: 12px; box-shadow: var(--shadow-lg); }
.mls-quick-form input, .mls-quick-form select { font: 500 1rem var(--font-sans); border: 1px solid var(--border-color); border-radius: 999px; padding: 13px 16px; min-height: 50px; color: var(--primary-color); background: #fff; }
.mls-quick-q { position: relative; }
.mls-quick-q i { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: var(--secondary-hover); }
.mls-quick-q input { width: 100%; box-sizing: border-box; padding-left: 42px; }

.legal-page { max-width: 820px; padding-top: 40px; padding-bottom: 60px; line-height: 1.7; }
.admin-mls { max-width: 980px; padding-top: 30px; padding-bottom: 60px; }
.admin-mls-status { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin: 18px 0; }
.admin-mls-status div { background: var(--bg-white); border: 1px solid var(--border-color); border-radius: var(--radius-sm); padding: 14px; display: flex; flex-direction: column; gap: 4px; }
.admin-mls-status span { font-size: .75rem; color: var(--text-gray); text-transform: uppercase; letter-spacing: .06em; }
.admin-mls-actions { display: flex; gap: 12px; margin: 16px 0 26px; flex-wrap: wrap; }
.admin-mls-form { display: flex; flex-direction: column; gap: 16px; background: var(--bg-white); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 22px; }
.admin-mls-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; color: var(--primary-color); }
.admin-mls-form label.admin-check { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; }
.admin-mls-form input[type=text], .admin-mls-form input[type=password] { font: inherit; padding: 11px 12px; border: 1px solid var(--border-color); border-radius: 10px; }
.admin-help { font-size: .82rem; color: var(--text-gray); margin: -8px 0 0; }
.admin-mls-run { font-size: .85rem; color: var(--text-gray); }
.btn-outline { background: transparent !important; color: var(--primary-color) !important; border: 1px solid var(--border-color) !important; text-decoration: none; }

@media (max-width: 1099px) {
  .mls-layout { grid-template-columns: 1fr; }
  .mls-map-wrap { display: none; position: relative; top: 0; height: 70vh; }
  .mls-layout.show-map .mls-map-wrap { display: block; order: -1; }
  .mls-layout.show-map .mls-results { display: none; }
  .mls-map-toggle { display: inline-flex; }
  .mls-listing-layout { grid-template-columns: 1fr; }
  .mls-listing-side { position: static; }
}
@media (max-width: 720px) {
  .mls-search, .mls-listing { padding-top: 20px; }
  .mls-filters { grid-template-columns: 1fr 1fr; padding: 14px; }
  .mls-filter-actions, .mls-check { grid-column: 1 / -1; }
  .mls-filter-actions .mls-btn-primary { flex: 1; }
  .mls-gallery { grid-template-columns: 1fr; grid-template-rows: 280px; }
  .mls-gallery-item:not(.mls-gallery-item-0) { display: none; }
  .mls-gallery-item-0 { grid-row: auto; }
  .mls-calc-grid { grid-template-columns: 1fr 1fr 1fr; }
  .mls-quick-form { grid-template-columns: 1fr 1fr; border-radius: var(--radius-md); }
  .mls-quick-q, .mls-quick-form button { grid-column: 1 / -1; }
}
.mls-field { min-width: 0; }
.mls-field select, .mls-field input { width: 100%; min-width: 0; box-sizing: border-box; }
.mls-filters { box-sizing: border-box; max-width: 100%; }
@media (max-width: 720px) {
  .mls-filter-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .mls-filter-actions .mls-btn-ghost { justify-content: center; }
}

/* Cadastro de imóveis: autorização DBPR, investimento, documentos */
.admin-fieldset { border: 1px solid var(--border-color); border-radius: var(--radius-sm); padding: 16px 18px 6px; margin: 22px 0 0; background: #fffdf8; }
.admin-fieldset legend { font-weight: 700; color: var(--primary-color); padding: 0 8px; font-size: .95rem; }
.admin-fieldset legend i { color: var(--secondary-hover); margin-right: 6px; }
.admin-check-line { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; line-height: 1.45; margin: 8px 0 14px; color: var(--primary-color); }
.admin-check-line input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--secondary-hover); flex: 0 0 auto; }
.admin-tips { margin: 0 0 14px; font-size: .85rem; color: var(--text-gray); }
.admin-tips summary { cursor: pointer; font-weight: 600; color: var(--primary-color); }
.admin-tips ul { margin: 8px 0 0; padding-left: 20px; line-height: 1.55; }
.admin-doc-list { display: flex; flex-direction: column; gap: 2px; }
.admin-badge { display: inline-block; margin-left: 8px; font-size: .7rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; vertical-align: middle; }
.admin-badge.warn { background: #fff4d6; color: #8a5a00; border: 1px solid #f0d28a; }
.admin-badge.danger { background: #fee2e2; color: #b91c1c; border: 1px solid #fca5a5; }

.invest-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.invest-grid div { background: var(--bg-light); border: 1px solid var(--border-color); border-radius: var(--radius-sm); padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.invest-grid span { font-size: .78rem; color: var(--text-gray); }
.invest-grid strong { font-family: var(--font-heading); font-size: 1.35rem; color: var(--primary-color); }
.invest-grid small { font-family: var(--font-sans); font-size: .8rem; font-weight: 500; color: var(--text-gray); margin-left: 2px; }
.invest-notes { font-size: .88rem; color: #3b3a36; margin: 14px 0 0; }
.invest-disclaimer { font-size: .78rem; color: #6b6458; line-height: 1.55; margin: 12px 0 0; }
.doc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.doc-list a { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--border-color); border-radius: var(--radius-sm); text-decoration: none; color: var(--primary-color); background: #fff; transition: var(--transition); }
.doc-list a:hover { border-color: var(--secondary-color); box-shadow: var(--shadow-sm); }
.doc-list i { font-size: 1.5rem; color: #b42318; }
.doc-list span { font-weight: 600; }
.doc-list small { color: var(--text-gray); font-size: .8rem; }
.ext-links { display: flex; flex-wrap: wrap; gap: 10px; }
.ext-links a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--border-color); color: var(--primary-color); font-weight: 600; text-decoration: none; background: #fff; }
.ext-links a:hover { border-color: var(--secondary-color); color: var(--secondary-hover); }
.agent-initials { display: grid; place-items: center; background: var(--primary-color); color: var(--secondary-color); font-family: var(--font-heading); font-size: 2rem; font-weight: 600; border: 3px solid var(--secondary-color); }
.agent-brokerage { display: flex; flex-direction: column; gap: 2px; font-size: .82rem; margin: 10px 0 4px; text-align: center; }
.agent-brokerage strong { color: var(--primary-color); }
.agent-brokerage a { color: var(--secondary-hover); font-weight: 600; text-decoration: none; }
.agent-courtesy { font-size: .78rem; color: var(--text-gray); text-align: center; margin: 6px 0 12px; }

/* ==========================================================================
   Novo visual (nov/2026): cabeçalho em uma linha, seções da home, rodapé
   ========================================================================== */
.btn-header-cta { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 18px; border-radius: 999px; background: linear-gradient(135deg, #E2BE84, #C2995C); color: var(--primary-color); font-weight: 700; font-size: .9rem; white-space: nowrap; text-decoration: none; box-shadow: 0 6px 18px -8px rgba(208,167,106,.8); transition: var(--transition); }
.btn-header-cta:hover { transform: translateY(-1px); box-shadow: var(--glow-gold); }
@media (min-width: 1280px) {
  .header-container { flex-wrap: nowrap; }
  nav { order: 0; width: auto; }
  nav ul { flex-wrap: nowrap; gap: 2px; }
  nav ul li a { font-size: .9rem; padding: 8px 10px; }
  .nav-actions { margin-left: 0; }
  #header-fav-link [data-i18n] { display: none; }
  #header-fav-link { padding: 0 14px; }
}
@media (max-width: 900px) { .btn-header-cta { display: none; } }

.home-wrap { max-width: 1240px; margin: 0 auto; padding: 0 clamp(16px, 3vw, 32px); }
.home-eyebrow { font-size: .78rem; letter-spacing: .24em; text-transform: uppercase; color: var(--secondary-hover); font-weight: 700; margin: 0 0 10px; }
.home-title { font-family: var(--font-heading); font-size: clamp(1.8rem, 3.2vw, 2.6rem); line-height: 1.12; color: var(--primary-color); margin: 0 0 12px; font-weight: 500; }
.home-intro { color: var(--text-gray); max-width: 640px; margin: 0 0 34px; line-height: 1.6; }

.home-services { padding: 90px 0 70px; background: var(--bg-white); border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }
.services-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.service-card { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 30px 26px 26px; border: 1px solid var(--border-color); border-radius: var(--radius-md); background: var(--bg-light); text-decoration: none; color: var(--primary-color); transition: var(--transition); overflow: hidden; }
.service-card::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--secondary-color), transparent); opacity: 0; transition: var(--transition); }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); background: #fff; }
.service-card:hover::before { opacity: 1; }
.service-num { position: absolute; top: 18px; right: 22px; font-family: var(--font-heading); font-size: 1rem; color: rgba(167,129,80,.55); }
.service-card > i { font-size: 1.6rem; color: var(--secondary-hover); }
.service-card h3 { font-family: var(--font-heading); font-size: 1.25rem; margin: 6px 0 0; font-weight: 600; }
.service-card p { margin: 0; color: #4b4a45; line-height: 1.55; font-size: .93rem; flex: 1; }
.service-link { font-weight: 700; font-size: .88rem; color: var(--secondary-hover); display: inline-flex; gap: 8px; align-items: center; }

.home-process { padding: 90px 0; background: var(--primary-color); color: var(--text-light); position: relative; overflow: hidden; }
.home-process::after { content: ''; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; border: 1px solid rgba(208,167,106,.18); box-shadow: 0 0 0 60px rgba(208,167,106,.03), 0 0 0 120px rgba(208,167,106,.02); }
.home-process .home-title { color: var(--text-light); }
.home-process .home-eyebrow { color: var(--secondary-color); }
.process-steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; position: relative; z-index: 1; }
.process-steps li { border-top: 1px solid rgba(208,167,106,.35); padding-top: 24px; }
.process-num { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--secondary-color); color: var(--secondary-color); font-family: var(--font-heading); font-size: 1.2rem; margin-bottom: 16px; }
.process-steps h3 { font-family: var(--font-heading); font-size: 1.2rem; color: #fff; margin: 0 0 8px; font-weight: 500; }
.process-steps p { margin: 0; color: #c9cfdc; line-height: 1.55; font-size: .93rem; }

.home-blog { padding: 90px 0 70px; }
.home-blog-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.home-blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.home-post { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--primary-color); }
.home-post-img { display: block; aspect-ratio: 1200 / 630; border-radius: var(--radius-md); overflow: hidden; background: #16203A; }
.home-post-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease-out); }
.home-post:hover .home-post-img img { transform: scale(1.04); }
.home-post-date { font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--secondary-hover); font-weight: 600; }
.home-post-title { font-family: var(--font-heading); font-size: 1.2rem; line-height: 1.3; font-weight: 500; }
.home-post:hover .home-post-title { color: var(--secondary-hover); }

.cta-band { background: linear-gradient(135deg, #0b1530 0%, #02081A 60%); padding: 64px 0; border-top: 1px solid rgba(208,167,106,.25); }
.cta-band-inner { display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; }
.cta-band h2 { font-family: var(--font-heading); color: #fff; font-size: clamp(1.6rem, 3vw, 2.3rem); margin: 0 0 8px; font-weight: 500; }
.cta-band p { color: #c9cfdc; margin: 0; }
.cta-band-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-whatsapp { display: inline-flex; align-items: center; gap: 10px; background: var(--whatsapp-color); color: #fff; border-radius: 999px; padding: 15px 26px; font-weight: 700; text-decoration: none; }
.cta-ghost { display: inline-flex; align-items: center; border: 1px solid rgba(208,167,106,.6); color: var(--secondary-color); border-radius: 999px; padding: 15px 26px; font-weight: 700; text-decoration: none; }
.cta-whatsapp:hover, .cta-ghost:hover { transform: translateY(-1px); }

.site-footer .footer-brokerage { font-size: .85rem; line-height: 1.6; }
.site-footer .footer-brokerage span { opacity: .8; }
.footer-bottom { flex-direction: column; gap: 10px; }
.footer-legal { font-size: .8rem; opacity: .85; margin: 0; }
.footer-meta { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; font-size: .8rem; margin: 0; }
.footer-meta a { color: inherit; }
.eho { display: inline-flex; align-items: center; gap: 6px; }

@media (max-width: 1024px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(2, 1fr); }
  .home-blog-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .home-services, .home-process, .home-blog { padding: 60px 0; }
  .services-grid, .process-steps, .home-blog-grid { grid-template-columns: 1fr; }
  .cta-band-actions a { flex: 1; justify-content: center; }
}
@media (max-width: 640px) {
  .section-header { flex-direction: column; align-items: flex-start; gap: 6px; }
  .section-header h2 { font-size: 1.9rem; }
}

/* ==========================================================================
   SISTEMA DA MARCA (Manual da Marca Innovate Realty, 2026)
   Paleta: Midnight Navy #02081A · Innovate Gold #D0A76A · Champagne #F0CF92
           Bronze #A78150 · Warm Taupe #6F5941 · Ivory #F6F2E9  (70/20/10)
   Tipografia: Cormorant Garamond (títulos) · Montserrat (navegação, botões, corpo)
   ========================================================================== */
:root {
  --primary-color: #02081A;
  --primary-hover: #0B1430;
  --secondary-color: #D0A76A;
  --secondary-bright: #F0CF92;
  --secondary-hover: #A78150;
  --brand-taupe: #6F5941;
  --text-light: #F6F2E9;
  --text-gray: #6F5941;
  --bg-light: #F6F2E9;
  --bg-white: #FBF8F1;
  --border-color: rgba(208,167,106,.30);
  --font-sans: 'Montserrat', -apple-system, 'Segoe UI', sans-serif;
  --font-heading: 'Cormorant Garamond', 'Times New Roman', serif;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --gold-line: linear-gradient(90deg, transparent, rgba(208,167,106,.75), transparent);
  --diamond-divider: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='12' viewBox='0 0 160 12'%3E%3Cpath d='M0 6h68M92 6h68' stroke='%23D0A76A' stroke-width='1'/%3E%3Cpath d='M80 1.5l4.5 4.5L80 10.5 75.5 6z' fill='none' stroke='%23D0A76A' stroke-width='1'/%3E%3C/svg%3E");
}

body { font-family: var(--font-sans); font-weight: 400; letter-spacing: .005em; }
h1, h2, h3, h4, .home-title, .section-header h2 { font-family: var(--font-heading); font-weight: 500; letter-spacing: .01em; }

/* Logo horizontal: símbolo | divisor | INNOVATE / REALTY */
.brand-lockup { gap: 14px; }
.brand-mark { width: 64px; filter: drop-shadow(0 1px 1px rgba(0,0,0,.25)); }
.brand-divider { width: 1px; height: 34px; background: linear-gradient(180deg, transparent, var(--secondary-color), transparent); }
.brand-wordmark { align-items: flex-start; }
.brand-name { font-family: 'Cormorant Garamond', serif; font-size: 1.32rem; font-weight: 500; letter-spacing: .34em; padding-left: 0; color: var(--secondary-color); }
.brand-subtitle { font-family: 'Montserrat', sans-serif; font-size: .5rem; letter-spacing: .62em; padding-left: .2em; margin-top: 6px; color: var(--secondary-bright); opacity: .85; }

/* Navegação: navy translúcido, links Montserrat caixa alta, contato com contorno dourado */
header { background: rgba(2,8,26,.88) !important; backdrop-filter: saturate(140%) blur(12px); -webkit-backdrop-filter: saturate(140%) blur(12px); border-bottom: 1px solid rgba(208,167,106,.22); }
nav ul li a { font-family: var(--font-sans); text-transform: uppercase; letter-spacing: .14em; font-size: .72rem !important; font-weight: 500; }
.btn-header-cta { background: transparent; color: var(--secondary-color); border: 1px solid var(--secondary-color); box-shadow: none; text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; font-weight: 600; border-radius: 2px; }
.btn-header-cta:hover { background: var(--secondary-color); color: var(--primary-color); }

/* Botões: caixa alta, contorno dourado 1px sobre Midnight Navy */
.mls-btn-primary, .btn-include, .admin-form-submit, .post-cta-btn:not(.post-cta-whatsapp), .search-btn, button[type=submit].btn-primary {
  background: var(--primary-color); color: var(--text-light); border: 1px solid var(--secondary-color) !important;
  text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 600; border-radius: 2px;
}
.mls-btn-primary:hover, .btn-include:hover { background: var(--secondary-color); color: var(--primary-color); box-shadow: none; }
.mls-btn-ghost, .cta-ghost { text-transform: uppercase; letter-spacing: .12em; font-size: .74rem; border-radius: 2px; border-color: rgba(208,167,106,.55); }
.cta-whatsapp, .mls-btn-whatsapp { text-transform: uppercase; letter-spacing: .1em; font-size: .78rem; border-radius: 2px; }

/* Hero: degradê navy à esquerda, eyebrow dourado, título Cormorant ivory + gold */
.hero {
  text-align: left;
  padding: 150px clamp(20px, 6vw, 96px) 140px;
  background:
    linear-gradient(90deg, rgba(2,8,26,.97) 0%, rgba(2,8,26,.88) 38%, rgba(2,8,26,.35) 72%, rgba(2,8,26,.15) 100%),
    url('/uploads/villa_exterior.png') no-repeat 70% center / cover;
}
.hero::before { background: radial-gradient(520px 360px at 18% 30%, rgba(208,167,106,.16), transparent 62%); }
.hero-content { max-width: 1240px; margin: 0 auto; }
.hero-content > * { max-width: 640px; }
.hero-subtitle { color: var(--secondary-color); font-family: var(--font-sans); font-size: .74rem; letter-spacing: .32em; font-weight: 500; }
.hero-title { font-family: var(--font-heading); font-weight: 400; font-size: clamp(2.8rem, 6vw, 5rem); line-height: 1.02; letter-spacing: .005em; color: var(--text-light); }
.hero-title em { font-style: italic; color: var(--secondary-color); font-weight: 500; }
.hero-desc { margin: 0 0 40px; font-weight: 300; font-size: 1.05rem; line-height: 1.7; }
@media (max-width: 720px) { .hero { padding: 110px 22px 120px; background-position: 60% center; } }

/* Títulos de seção: Cormorant com divisor em losango dourado */
.section-header h2::after, .home-title::after { content: ''; position: absolute; left: 0; bottom: 0; width: 160px; height: 12px; background: var(--diamond-divider) no-repeat left center; border-radius: 0; }
.home-title { position: relative; padding-bottom: 22px; margin-bottom: 18px; font-size: clamp(2.1rem, 3.6vw, 3rem); font-weight: 500; }
.section-header h2 { padding-bottom: 22px; font-size: clamp(2.1rem, 3.8vw, 3rem); }
.home-eyebrow, .mls-eyebrow { font-family: var(--font-sans); font-size: .7rem; letter-spacing: .34em; color: var(--secondary-hover); font-weight: 600; }
.home-process .home-eyebrow { color: var(--secondary-color); }

/* Cards: borda dourada 1px a 30%, nome em Cormorant, preço à direita */
.mls-card, .property-card, .service-card, .region-card, .home-post .home-post-img, .property-info-card, .mls-calc, .mls-filters, .search-container {
  border: 1px solid rgba(208,167,106,.30) !important; border-radius: var(--radius-md);
}
.mls-card-price, .listing-price, .property-price { font-family: var(--font-heading); font-weight: 600; letter-spacing: .01em; }
.mls-card-address { font-family: var(--font-heading); font-size: 1.12rem; font-weight: 600; color: var(--secondary-hover); }
.mls-card-address span { font-family: var(--font-sans); font-size: .8rem; color: var(--text-gray); }
.mls-status { border-radius: 2px; letter-spacing: .14em; font-size: .64rem; border: 1px solid rgba(208,167,106,.5); }
.service-card { background: #fff; }
.service-card h3, .process-steps h3, .home-post-title { font-family: var(--font-heading); font-size: 1.45rem; font-weight: 600; }
.service-card > i, .process-num { color: var(--secondary-color); }
.service-card > i { font-size: 1.5rem; width: 54px; height: 54px; display: grid; place-items: center; border: 1px solid rgba(208,167,106,.55); border-radius: 50%; }
.process-num { position: relative; border: 0; width: 46px; height: 46px; font-size: 1.25rem; z-index: 0; }
.process-num::before { content: ''; position: absolute; inset: 7px; border: 1px solid var(--secondary-color); transform: rotate(45deg); z-index: -1; }

/* Faixas escuras com linhas finas douradas */
.home-process, .cta-band { border-top: 1px solid rgba(208,167,106,.25); border-bottom: 1px solid rgba(208,167,106,.25); }
.cta-band h2 { font-family: var(--font-heading); font-weight: 500; font-size: clamp(2rem, 3.6vw, 2.8rem); }

/* Rodapé: assinatura do infinito com divisores */
.footer-signature { display: flex; align-items: center; gap: 22px; max-width: 1240px; margin: 34px auto 0; padding: 0 clamp(16px, 3vw, 32px); }
.footer-signature span { flex: 1; height: 1px; background: var(--gold-line); }
.footer-signature img { width: 54px; height: auto; opacity: .95; }
.site-footer h4 { font-family: var(--font-heading); font-size: 1.25rem; letter-spacing: .04em; color: var(--secondary-color); }
.footer-cta-line { height: 1px; background: var(--gold-line); }
.mls-quick-form input, .mls-quick-form select, .mls-field select, .mls-field input, .search-container input, .search-container select { border-radius: 4px; border-color: rgba(208,167,106,.4); }
.mls-quick-form { border-radius: var(--radius-md); }
.mls-card-price, .listing-price, .property-price, .mls-listing-price, .invest-grid strong, .mls-calc-result strong { font-variant-numeric: lining-nums; }
.mls-card-price { font-size: 1.75rem; }
@media (max-width: 900px) { .brand-divider { height: 26px; } .brand-mark { width: 52px; } .brand-name { font-size: 1.1rem; } }
@media (max-width: 720px) {
  .hero-title { font-size: clamp(2.3rem, 10vw, 2.9rem); }
  .search-container { margin-left: 14px; margin-right: 14px; width: auto; }
}

/* Rodapé refinado (nov/2026): sem linha cortando o logo, uma única assinatura do infinito */
footer.site-footer { padding: 76px clamp(20px, 4vw, 48px) 30px; border-top: 1px solid rgba(208,167,106,.28); background: radial-gradient(700px 300px at 85% 0%, rgba(208,167,106,.08), transparent 60%), linear-gradient(180deg, #0B1430, #02081A); }
footer.site-footer::before { height: 1px; opacity: .8; }
.site-footer .footer-grid { max-width: 1200px; grid-template-columns: 1.6fr 1fr 1fr; gap: 56px; padding-bottom: 0; border-bottom: 0; }
.site-footer .brand-lockup-footer { margin-bottom: 22px; }
.site-footer .footer-about { font-size: .92rem; line-height: 1.75; color: rgba(246,242,233,.72); max-width: 470px; margin: 0 0 22px; }
.footer-facts, .footer-contact { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.footer-facts li, .footer-contact a { display: grid; grid-template-columns: 18px 1fr; gap: 12px; align-items: center; font-size: .86rem; color: rgba(246,242,233,.72); }
.footer-facts i, .footer-contact i { color: var(--secondary-color); font-size: .9rem; text-align: center; }
.site-footer .footer-links h4 { font-family: var(--font-heading); font-size: 1.3rem; font-weight: 500; color: var(--secondary-color); margin: 6px 0 20px; letter-spacing: .03em; }
.site-footer .footer-links ul { gap: 13px; }
.site-footer .footer-links a { font-size: .88rem; color: rgba(246,242,233,.78); transition: color .25s; }
.site-footer .footer-links a:hover { color: var(--secondary-bright); padding-left: 0; }
.site-footer .footer-signature { max-width: 1200px; margin: 54px auto 22px; padding: 0; gap: 26px; }
.site-footer .footer-signature span { background: linear-gradient(90deg, transparent, rgba(208,167,106,.45)); }
.site-footer .footer-signature span:last-child { background: linear-gradient(90deg, rgba(208,167,106,.45), transparent); }
.site-footer .footer-signature img { width: 46px; }
.site-footer .footer-bottom { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: row; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; border-top: 0; padding-top: 0; }
.site-footer .footer-legal, .site-footer .footer-meta { font-size: .74rem; letter-spacing: .04em; color: rgba(246,242,233,.5); margin: 0; }
.site-footer .footer-meta { display: flex; gap: 22px; align-items: center; }
.site-footer .footer-meta a { color: rgba(246,242,233,.6); }
.site-footer .footer-meta a:hover { color: var(--secondary-color); }
@media (max-width: 900px) {
  .site-footer .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .site-footer .footer-info { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .site-footer .footer-grid { grid-template-columns: 1fr; }
  .site-footer .footer-bottom { flex-direction: column; text-align: center; }
  .site-footer .footer-meta { flex-wrap: wrap; justify-content: center; gap: 12px 18px; }
}
