/* Import Premium Web Fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

/* CUSTOM PROPERTY DESIGN SYSTEM */
:root {
  --primary: #1f3d2b;
  --primary-light: #2c543c;
  --primary-dark: #12251a;
  --accent: #c8a96a;
  --accent-light: #dfc285;
  --accent-dark: #ad8e4f;
  
  --bg-main: #fcfbfa;
  --bg-card: #ffffff;
  --bg-footer: #12251a;
  --bg-overlay: rgba(18, 37, 26, 0.45);
  
  --text-primary: #1e2521;
  --text-muted: #5c685f;
  --text-light: #fcfbfa;
  --text-gold: #c8a96a;
  
  --border: rgba(31, 61, 43, 0.08);
  --border-light: rgba(255, 255, 255, 0.15);
  --border-focus: #c8a96a;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 8px 20px rgba(18, 37, 26, 0.08);
  --shadow-lg: 0 16px 36px rgba(18, 37, 26, 0.12);
  
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans: 'Outfit', 'Inter', -apple-system, sans-serif;
  
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  
  --max-width: 1240px;
  --header-height: 80px;
}

/* CSS RESET & GENERAL STYLES */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

button {
  cursor: pointer;
}

/* CONTAINER */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

.section {
  padding-top: 40px;
  padding-bottom: 40px;
}

.section + .section {
  padding-top: 0;
}

.section:last-of-type {
  border-bottom: none;
}

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

.section-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.section-tagline {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent-dark);
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
}

.view-all-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
}

.view-all-link:hover {
  color: var(--accent-dark);
  border-color: var(--accent-dark);
}

/* HEADER & STICKY NAVIGATION */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 100;
  display: flex;
  align-items: center;
  transition: all var(--transition-normal);
  border: none;
  background: var(--primary-dark);
}

.header.scrolled {
  background: var(--primary-dark);
  height: 70px;
  box-shadow: var(--shadow-md);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header .container {
  max-width: 1560px;
}

.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-light);
  transition: color var(--transition-fast);
  flex-shrink: 0;
}

.header-logo-img {
  height: 32px;
  width: auto;
  object-fit: contain;
}

.logo-icon {
  width: 28px;
  height: 28px;
  background-color: var(--accent);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-dark);
  font-weight: 800;
  font-family: var(--font-sans);
  font-size: 1.1rem;
}

.nav-menu {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  flex-shrink: 0;
  gap: 22px;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  position: relative;
  padding: 8px 0;
  text-decoration: none;
  white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
  color: var(--accent);
}

.header.scrolled .nav-link {
  color: rgba(255, 255, 255, 0.85);
}

.header.scrolled .nav-link:hover, .header.scrolled .nav-link.active {
  color: var(--accent);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: width var(--transition-fast);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 12px;
}

.btn-publish {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-light);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 10px 18px;
  white-space: nowrap;
  border-radius: 999px;
  transition: all var(--transition-fast);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  cursor: pointer;
}

.btn-publish:hover {
  background-color: rgba(255, 255, 255, 0.2);
  color: var(--text-light);
  border-color: rgba(255, 255, 255, 0.3);
}

.header.scrolled .btn-publish {
  background-color: rgba(255, 255, 255, 0.16);
  color: var(--text-light);
  border-color: rgba(255, 255, 255, 0.22);
}

.header.scrolled .btn-publish:hover {
  background-color: rgba(255, 255, 255, 0.26);
  color: var(--text-light);
  border-color: rgba(255, 255, 255, 0.3);
}

/* HERO SECTION SLIDESHOW */
.hero {
  position: relative;
  height: 90vh;
  min-height: 650px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-color: var(--primary-dark);
}

.hero-slideshow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity var(--transition-slow) ease-in-out;
  transform: scale(1.05);
  transition-property: opacity, transform;
}

.hero-slide.active {
  opacity: 1;
  transform: scale(1);
}

.hero-slideshow::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(18, 37, 26, 0.65) 0%,
    rgba(18, 37, 26, 0.45) 50%,
    rgba(18, 37, 26, 0.7) 100%
  );
  z-index: 2;
}

/* HERO OVERLAY WRAPPER */
.hero-overlay-wrapper {
  position: relative;
  z-index: 3;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
}

/* DISCRETE WEBTV WIDGET */
.webtv-widget {
  width: 100%;
  max-width: 320px;
  background: linear-gradient(135deg, rgba(18, 37, 26, 0.95) 0%, rgba(138, 115, 73, 0.85) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
}

.webtv-widget-header {
  width: 100%;
  aspect-ratio: 4/3;
  position: relative;
  background-color: #000;
}

.webtv-widget-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.webtv-sound-btn {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.webtv-sound-btn:hover {
  background: var(--primary);
}

.webtv-sound-btn svg {
  width: 18px;
  height: 18px;
}

.webtv-widget-body {
  padding: 16px;
}

.webtv-widget-title {
  color: #ffffff;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  margin-bottom: 16px;
  text-transform: uppercase;
  font-weight: 700;
}

.webtv-playlist {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.webtv-playlist-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px;
  border-radius: 12px;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.webtv-playlist-item:hover,
.webtv-playlist-item.active {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.webtv-playlist-item.active {
  border-color: var(--accent);
}

.webtv-item-thumb {
  width: 60px;
  height: 40px;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}

.webtv-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.webtv-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 14px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.webtv-item-info {
  display: flex;
  flex-direction: column;
}

.webtv-item-info h4 {
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.webtv-item-info p {
  color: #a0aab2;
  font-size: 0.75rem;
  margin: 0;
}

/* HERO CONTENT OVERLAY */
.hero-content {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: 800px;
  text-align: left;
  padding: 20px;
  color: var(--text-light);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 4rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 1.15rem;
  font-weight: 400;
  margin-bottom: 36px;
  opacity: 0.95;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
  max-width: 600px;
}

/* SEARCH SECTION (OUTSIDE HERO) */
.search-section {
  position: relative;
  z-index: 10;
  margin-top: 40px; /* Completely below the hero, sitting on the white part */
  padding-bottom: 0; /* Removed space between search and next section */
}

/* CENTRAL SEARCH COMPONENT */
.search-container {
  width: 100%;
  background: linear-gradient(135deg, rgba(18, 37, 26, 0.95) 0%, rgba(138, 115, 73, 0.85) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.4);
  margin-bottom: 0; /* Removed margin to close gap with news section */
}

/* SEARCH TABS */
.search-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 12px;
  position: relative;
}

.search-tab {
  padding: 6px 20px;
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: 30px;
  color: white;
  transition: all var(--transition-fast);
  cursor: pointer;
  border: none;
  background: transparent;
}

.search-tab:hover {
  background: rgba(255, 255, 255, 0.1);
}

.search-tab.active {
  background-color: var(--accent);
  color: var(--primary-dark);
}

/* SEARCH BAR LAYOUT (BASIC) */
.search-form {
  display: flex;
  background-color: white;
  padding: 6px;
  border-radius: 50px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  align-items: center;
}

/* ADVANCED SEARCH FORM (IMÓVEIS) */
.search-form-advanced {
  display: block;
}

.advanced-filters-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  column-gap: 10px;
  row-gap: 8px;
  align-items: end;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.filter-group label {
  color: rgba(255,255,255,0.9);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  height: 14px; /* fixed height to ensure consistent alignment */
}

.filter-select, .filter-input {
  width: 100%;
  padding: 10px 14px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.15);
  background: white;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 500;
  outline: none;
  transition: border-color var(--transition-fast);
  height: 40px; /* fixed height for inputs */
  box-sizing: border-box;
}

.filter-select:focus, .filter-input:focus {
  border-color: var(--accent);
}

.filter-group-ref {
  grid-column: span 2;
}

.filter-input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.filter-input-with-icon .filter-input {
  padding-right: 36px;
}

.ref-icon {
  position: absolute;
  right: 12px;
  color: #64748b;
  display: flex;
}

.filter-submit-wrapper {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
}

.submit-buttons-container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
  height: 40px;
}

.btn-cta-outline-gold {
  color: white; /* Solid white text for visibility */
  background: rgba(255, 255, 255, 0.08); /* slight visible background */
  border: 1px solid rgba(200, 169, 106, 0.8); /* Stronger gold border */
  border-radius: 6px;
  padding: 0 20px;
  height: 40px; /* match input height */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
  box-sizing: border-box;
}

.btn-cta-outline-gold:hover {
  background: rgba(200, 169, 106, 0.2);
  transform: translateY(-1px);
}

.btn-search-advanced {
  background-color: var(--accent);
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0 28px;
  height: 40px; /* match input height */
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 12px rgba(200, 169, 106, 0.3);
  width: auto;
  min-width: 120px;
  box-sizing: border-box;
}

.btn-search-advanced:hover {
  background-color: var(--accent-light);
  transform: translateY(-2px);
}

/* RESPONSIVE GRID FOR ADVANCED FILTERS */
@media (max-width: 992px) {
  .advanced-filters-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .filter-group-ref {
    grid-column: span 1;
  }
  .filter-submit-wrapper {
    grid-column: span 1;
  }
}

@media (max-width: 768px) {
  .advanced-filters-grid {
    grid-template-columns: 1fr;
  }
  .filter-group-ref, .filter-submit-wrapper {
    grid-column: span 1;
  }
}

.search-input-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  padding-left: 16px;
  gap: 12px;
}

.search-icon {
  color: #64748b;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.search-input {
  width: 100%;
  font-size: 1rem;
  color: var(--text-primary);
  font-weight: 500;
  border: none;
  background: transparent;
  outline: none;
}

.search-input::placeholder {
  color: #94a3b8;
}

.btn-search {
  background-color: var(--primary-dark);
  color: white;
  font-weight: 600;
  font-size: 1rem;
  padding: 14px 36px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background-color var(--transition-fast);
  border: none;
  cursor: pointer;
}

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

/* HERO CTA BUTTONS */
.hero-ctas {
  display: flex;
  gap: 16px;
  margin-top: 36px;
}

.search-ctas {
  margin-top: 0;
  margin-left: 24px;
}

.btn-cta {
  padding: 12px 28px;
  border-radius: 50px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all var(--transition-fast);
}

.btn-cta-primary {
  background-color: var(--accent);
  color: var(--primary-dark);
  box-shadow: 0 4px 15px rgba(200, 169, 106, 0.3);
}

.btn-cta-primary:hover {
  background-color: var(--accent-light);
  transform: translateY(-2px);
}

.btn-cta-secondary {
  border: 2px solid var(--text-light);
  color: var(--text-light);
  background: transparent;
}

.btn-cta-secondary:hover {
  background-color: var(--text-light);
  color: var(--primary-dark);
  transform: translateY(-2px);
}

/* SLIDESHOW DOTS */
.slideshow-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 4;
}

.slideshow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.slideshow-dot.active {
  background: var(--accent);
  width: 24px;
  border-radius: 10px;
}

/* SECTION 1: IMÓVEIS EM DESTAQUE (HORIZONTAL SNAP CAROUSEL) */
.carousel-wrapper {
  position: relative;
  width: 100%;
}

.carousel-scroller {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none; /* Firefox */
  padding-bottom: 12px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.carousel-scroller::-webkit-scrollbar {
  display: none; /* Safari & Chrome */
}

/* Carousel Control Arrows */
.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  z-index: 10;
  transition: all var(--transition-fast);
}

.carousel-arrow:hover {
  background-color: var(--primary);
  color: var(--text-light);
  border-color: var(--primary);
}

.carousel-arrow-left {
  left: -22px;
}

.carousel-arrow-right {
  right: -22px;
}

/* IMOVEIS GRID (2 ROWS) */
.imoveis-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  width: 100%;
}

@media (max-width: 1024px) {
  .imoveis-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* REAL ESTATE CARDS */
.card-imovel {
  position: relative;
  background-color: var(--bg-card);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  display: flex;
  flex-direction: column;
}

/* Subtle gradient top line */
.card-imovel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(200, 169, 106, 0.8) 0%, rgba(18, 37, 26, 0.6) 100%);
  z-index: 10;
  opacity: 0.7;
  transition: opacity var(--transition-normal), height var(--transition-normal);
}

.card-imovel:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  border-color: rgba(200, 169, 106, 0.2);
}

.card-imovel:hover::before {
  opacity: 1;
  height: 4px;
}

.card-img-wrap {
  position: relative;
  height: 180px;
  overflow: hidden;
  background-color: #eee;
}

.card-img {
  width: 100%;
  height: 100%;
  transition: transform var(--transition-slow);
}

.card-imovel:hover .card-img {
  transform: scale(1.08);
}

.badge-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: var(--primary);
  color: var(--text-light);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 50px;
  z-index: 2;
}

.badge-tag.highlight {
  background-color: var(--accent-dark);
}

.card-body {
  padding: 12px 16px 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-price {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 4px 10px;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 800;
  color: var(--primary-dark);
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.card-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-location {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  color: #000000;
  font-weight: 500;
  margin-bottom: 12px;
}

.card-location svg {
  flex-shrink: 0;
  color: var(--accent-dark);
}

.card-details {
  margin-top: auto;
  border-top: 1px solid rgba(0,0,0,0.1);
  padding-top: 10px;
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #000000;
  font-weight: 600;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* SECTION 2: CLASSIFICADOS RECENTES (DENSE GRID) */
.grid-classifieds {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.card-classified {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.card-classified:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.classified-img-wrap {
  position: relative;
  height: 160px;
  overflow: hidden;
  background-color: #eee;
}

.classified-img {
  width: 100%;
  height: 100%;
  transition: transform var(--transition-slow);
}

.card-classified:hover .classified-img {
  transform: scale(1.06);
}

.classified-price-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background-color: rgba(18, 37, 26, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-light);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  z-index: 2;
}

.classified-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.classified-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.classified-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* SECTION 3: SERVIÇOS RECOMENDADOS */
.services-header-wrap {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 24px;
}

.services-categories {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.services-categories::-webkit-scrollbar {
  display: none;
}

.category-pill {
  padding: 10px 24px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 30px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.category-pill svg {
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.category-pill:hover, .category-pill.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(27, 67, 50, 0.2);
}

.category-pill:hover svg, .category-pill.active svg {
  color: var(--accent);
}

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

.card-service {
  background-color: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.025);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.card-service::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card-service:hover {
  box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

.card-service:hover::before {
  opacity: 1;
}

.service-profile {
  display: flex;
  align-items: center;
  gap: 16px;
}

.service-avatar-wrap {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  background-color: #f8fafc;
  flex-shrink: 0;
}

.service-avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.service-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.service-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: #1e293b;
  line-height: 1.2;
}

.service-role {
  font-size: 0.85rem;
  font-weight: 500;
  color: #64748b;
}

.service-rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #dcfce7;
  color: #15803d;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-top: 4px;
  width: fit-content;
}

.service-desc {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.6;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid #f1f5f9;
}

.service-actions {
  margin-top: auto;
  padding-top: 8px;
}

.btn-service-profile {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background-color: var(--primary);
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(20, 61, 46, 0.15);
}

.btn-service-profile:hover {
  background-color: #0f2d22;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(20, 61, 46, 0.25);
}

.btn-service-whatsapp {
  background-color: #25d366;
  color: #fff;
  border-radius: 6px;
  width: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--transition-fast);
}

.btn-service-whatsapp:hover {
  background-color: #1ebd59;
}

/* SECTION 4: GUIA LOCAL */
.grid-guide {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card-guide {
  position: relative;
  height: 220px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.card-guide:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.guide-img-wrap {
  width: 100%;
  height: 100%;
  background-color: #eee;
}

.guide-img {
  width: 100%;
  height: 100%;
  transition: transform var(--transition-slow);
}

.card-guide:hover .guide-img {
  transform: scale(1.06);
}

.guide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(18, 37, 26, 0.9) 0%, rgba(18, 37, 26, 0.2) 60%, rgba(18, 37, 26, 0.4) 100%);
  z-index: 2;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--text-light);
}

.guide-tag {
  align-self: flex-start;
  background-color: var(--accent);
  color: var(--primary-dark);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.guide-name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 4px;
}

.guide-desc {
  font-size: 0.8rem;
  opacity: 0.85;
  line-height: 1.3;
}

/* SECTION 5: NOTÍCIAS (ASYMMETRIC SPLIT) */
.news-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
}

/* Large Featured Article Left */
.news-featured {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
}

.news-featured:hover {
  box-shadow: var(--shadow-md);
}

.featured-img-wrap {
  position: relative;
  height: 280px;
  overflow: hidden;
  background-color: #eee;
}

.featured-img {
  width: 100%;
  height: 100%;
  transition: transform var(--transition-slow);
}

.news-featured:hover .featured-img {
  transform: scale(1.04);
}

.featured-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.news-date-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--accent-dark);
}

.featured-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--primary);
}

.featured-title a:hover {
  color: var(--accent-dark);
}

.featured-excerpt {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.news-author-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-top: 8px;
}

.news-author-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--accent);
}

/* Smaller Sidebar Articles Right */
.news-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: space-between;
}

.news-sidebar-item {
  display: flex;
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.news-sidebar-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.sidebar-img-wrap {
  width: 120px;
  align-self: stretch;
  overflow: hidden;
  flex-shrink: 0;
  background-color: #eee;
  display: flex;
}

.sidebar-img {
  width: 100%;
  height: 100%;
}

.sidebar-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  flex: 1;
}

.sidebar-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
}

.sidebar-title a:hover {
  color: var(--accent-dark);
}

.sidebar-meta {
  order: -1;
  align-self: flex-start;
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--primary);
  background-color: transparent;
  border: 1px solid var(--accent);
  padding: 3px 10px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}


/* INTEGRATED HOME HUB SECTION */
.hub-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  align-items: start;
}

.hub-left {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hub-right {
  position: sticky;
  top: 100px;
  transition: transform 0.3s ease-out, box-shadow 0.3s ease;
}


/* VIDEO PLAYLIST CARD */
.video-playlist-card {
  background: linear-gradient(135deg, rgba(18, 37, 26, 0.95) 0%, rgba(138, 115, 73, 0.85) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
}

.video-player-area {
  width: 100%;
  aspect-ratio: 4/5;
  background-color: #000;
  position: relative;
}

.video-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.playlist-area {
  padding: 24px;
}

.playlist-header {
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.playlist-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  margin-bottom: 8px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.playlist-item.active {
  border-color: #cda434;
  background-color: rgba(255,255,255,0.05);
}

.playlist-item:hover {
  background-color: rgba(255,255,255,0.1);
}

.playlist-thumb {
  width: 70px;
  height: 50px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  background-color: #333;
}

.playlist-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
}

.play-icon {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 1rem;
}

.playlist-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.playlist-title {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
}

.playlist-subtitle {
  color: #a0a5b1;
  font-size: 0.8rem;
}

@media (max-width: 1024px) {
  .imoveis-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

/* REAL ESTATE CARDS */
.card-imovel {
  position: relative;
  background-color: var(--bg-card);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  display: flex;
  flex-direction: column;
}

/* Subtle gradient top line */
.card-imovel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, rgba(200, 169, 106, 0.8) 0%, rgba(18, 37, 26, 0.6) 100%);
  z-index: 10;
  opacity: 0.7;
  transition: opacity var(--transition-normal), height var(--transition-normal);
}

.card-imovel:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
  border-color: rgba(200, 169, 106, 0.2);
}

.card-imovel:hover::before {
  opacity: 1;
  height: 4px;
}

.card-img-wrap {
  position: relative;
  height: 180px;
  overflow: hidden;
  background-color: #eee;
}

.card-img {
  width: 100%;
  height: 100%;
  transition: transform var(--transition-slow);
}

.card-imovel:hover .card-img {
  transform: scale(1.08);
}

.badge-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: var(--primary);
  color: var(--text-light);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 50px;
  z-index: 2;
}

.badge-tag.highlight {
  background-color: var(--accent-dark);
}

.card-body {
  padding: 12px 16px 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-price {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 4px 10px;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 800;
  color: var(--primary-dark);
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.card-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-location {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  color: #000000;
  font-weight: 500;
  margin-bottom: 12px;
}

.card-location svg {
  flex-shrink: 0;
  color: var(--accent-dark);
}

.card-details {
  margin-top: auto;
  border-top: 1px solid rgba(0,0,0,0.1);
  padding-top: 10px;
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #000000;
  font-weight: 600;
}

.detail-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* SECTION 2: CLASSIFICADOS RECENTES (DENSE GRID) */
.grid-classifieds {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.card-classified {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.card-classified:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.classified-img-wrap {
  position: relative;
  height: 160px;
  overflow: hidden;
  background-color: #eee;
}

.classified-img {
  width: 100%;
  height: 100%;
  transition: transform var(--transition-slow);
}

.card-classified:hover .classified-img {
  transform: scale(1.06);
}

.classified-price-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background-color: rgba(18, 37, 26, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-light);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 6px;
  z-index: 2;
}

.classified-body {
  padding: 12px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.classified-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.classified-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* SECTION 3: SERVIÇOS RECOMENDADOS */
.services-header-wrap {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 24px;
}

.services-categories {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.services-categories::-webkit-scrollbar {
  display: none;
}

.category-pill {
  padding: 10px 24px;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 30px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.category-pill svg {
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.category-pill:hover, .category-pill.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(27, 67, 50, 0.2);
}

.category-pill:hover svg, .category-pill.active svg {
  color: var(--accent);
}

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

.card-service {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all var(--transition-normal);
}

.card-service:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.service-profile {
  display: flex;
  align-items: center;
  gap: 16px;
}

.service-avatar-wrap {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--accent);
  background-color: #eee;
}

.service-info {
  display: flex;
  flex-direction: column;
}

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

.service-role {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-dark);
}

.service-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 2px;
}

.service-rating svg {
  color: var(--accent);
}

.service-desc {
  font-size: 0.9rem;
  color: #000;
  line-height: 1.5;
  flex-grow: 1;
}

.service-actions {
  margin-top: auto;
  display: flex;
  gap: 8px;
}

.btn-service-profile {
  flex: 1;
  text-align: center;
  font-size: 0.9rem;
  font-weight: bold;
  padding: 12px 16px;
  border-radius: 8px;
  border: none;
  background-color: var(--primary);
  color: #fff;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-service-profile:hover {
  filter: brightness(0.85);
  transform: translateY(-1px);
}

.btn-service-whatsapp {
  background-color: #25d366;
  color: #fff;
  border-radius: 6px;
  width: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--transition-fast);
}

.btn-service-whatsapp:hover {
  background-color: #1ebd59;
}

/* SECTION 4: GUIA LOCAL */
.grid-guide {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card-guide {
  position: relative;
  height: 220px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.card-guide:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.guide-img-wrap {
  width: 100%;
  height: 100%;
  background-color: #eee;
}

.guide-img {
  width: 100%;
  height: 100%;
  transition: transform var(--transition-slow);
}

.card-guide:hover .guide-img {
  transform: scale(1.06);
}

.guide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(18, 37, 26, 0.9) 0%, rgba(18, 37, 26, 0.2) 60%, rgba(18, 37, 26, 0.4) 100%);
  z-index: 2;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--text-light);
}

.guide-tag {
  align-self: flex-start;
  background-color: var(--accent);
  color: var(--primary-dark);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.guide-name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 4px;
}

.guide-desc {
  font-size: 0.8rem;
  opacity: 0.85;
  line-height: 1.3;
}

/* SECTION 5: NOTÍCIAS (ASYMMETRIC SPLIT) */
.news-layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 24px;
}

/* Large Featured Article Left */
.news-featured {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
}

.news-featured:hover {
  box-shadow: var(--shadow-md);
}

.featured-img-wrap {
  position: relative;
  height: 280px;
  overflow: hidden;
  background-color: #eee;
}

.featured-img {
  width: 100%;
  height: 100%;
  transition: transform var(--transition-slow);
}

.news-featured:hover .featured-img {
  transform: scale(1.04);
}

.featured-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.news-date-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--accent-dark);
}

.featured-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--primary);
}

.featured-title a:hover {
  color: var(--accent-dark);
}

.featured-excerpt {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.news-author-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-top: 8px;
}

.news-author-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--accent);
}

/* Smaller Sidebar Articles Right */
.news-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  justify-content: space-between;
}

.news-sidebar-item {
  display: flex;
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.news-sidebar-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
}

.sidebar-img-wrap {
  width: 120px;
  align-self: stretch;
  overflow: hidden;
  flex-shrink: 0;
  background-color: #eee;
  display: flex;
}

.sidebar-img {
  width: 100%;
  height: 100%;
}

.sidebar-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  flex: 1;
}

.sidebar-title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
}

.sidebar-title a:hover {
  color: var(--accent-dark);
}

.sidebar-meta {
  order: -1;
  align-self: flex-start;
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--primary);
  background-color: transparent;
  border: 1px solid var(--accent);
  padding: 3px 10px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}


/* INTEGRATED HOME HUB SECTION */
.hub-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  align-items: start;
}

.hub-left {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.hub-right {
  position: sticky;
  top: 100px;
}

/* MARKETPLACE FEATURED CARD */
.marketplace-card-featured {
  background: linear-gradient(135deg, rgba(18, 37, 26, 0.95) 0%, rgba(138, 115, 73, 0.85) 100%);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  position: relative;
}

.marketplace-card-featured::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 0;
}

.marketplace-img-wrap {
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

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

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

.marketplace-body {
  padding: 24px;
  position: relative;
  z-index: 1;
  color: white;
}

.marketplace-badge {
  display: inline-block;
  background-color: var(--accent);
  color: var(--text-light);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 50px;
  margin-bottom: 12px;
}

.marketplace-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.2;
}

.marketplace-price {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 20px;
}

.btn-marketplace {
  display: block;
  text-align: center;
  background-color: var(--primary-light);
  color: white;
  font-weight: 700;
  padding: 14px 20px;
  border-radius: 8px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-marketplace:hover {
  background-color: #fff;
  color: var(--primary-dark);
}

@media (max-width: 1024px) {
  .hub-layout {
    grid-template-columns: 1fr;
  }
  .hub-right {
    position: static;
  }
}

/* PREMIUM FOOTER */
.footer {
  background-color: var(--bg-footer);
  color: var(--text-light);
  padding-top: 64px;
  padding-bottom: 32px;
  border-top: 4px solid var(--accent);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-about {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-logo {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-light);
}

.footer-desc {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.5;
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  transition: all var(--transition-fast);
}

.social-icon:hover {
  background-color: var(--accent);
  color: var(--primary-dark);
  border-color: var(--accent);
}

.footer-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.85rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
}

.footer-links a:hover {
  color: var(--text-light);
}

.footer-newsletter {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.newsletter-form {
  display: flex;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 6px;
}

.newsletter-input {
  width: 100%;
  font-size: 0.85rem;
  color: var(--text-light);
  padding: 8px 0;
}

.newsletter-input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.btn-newsletter-submit {
  color: var(--accent);
  padding: 0 8px;
}

.btn-newsletter-submit:hover {
  color: var(--text-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
}

/* RESPONSIVE DESIGN - MEDIA QUERIES */

@media (max-width: 1024px) {
  .grid-classifieds {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .grid-services {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .news-layout {
    grid-template-columns: 1fr;
  }
  
  .news-sidebar {
    gap: 16px;
  }
  
  .footer-top {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }
  
  .hero-title {
    font-size: 2.8rem;
  }
  
  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: 24px;
  }
  
  .search-form {
    flex-direction: column;
    padding: 8px;
  }
  
  .search-input-wrapper {
    padding: 8px 4px;
  }
  
  .btn-search {
    width: 100%;
    justify-content: center;
  }
  
  .grid-classifieds {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .grid-guide {
    grid-template-columns: 1fr;
  }
  
  .nav-menu {
    display: none; /* simple mobile drawer toggle or hidden for visual demo */
  }
  
  .footer-top {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.2rem;
  }
  
  .grid-classifieds {
    grid-template-columns: 1fr;
  }
  
  .grid-services {
    grid-template-columns: 1fr;
  }
}

/* ==========================================
   CLASSIFIEDS PAGE SPECIFIC STYLES
   ========================================== */

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 100px; /* offset sticky header */
  margin-bottom: 16px;
}
.breadcrumbs a:hover {
  color: var(--accent-dark);
}

/* Page Intro */
.page-intro {
  margin-bottom: 32px;
}
.page-title {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 8px;
}
.page-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
}

/* Search bar on classifieds page */
.classifieds-search-bar {
  margin-bottom: 24px;
}

/* Split layout: Sidebar + Grid */
.classifieds-split-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: start;
}

/* Filter Sidebar */
.filter-sidebar {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 90px; /* stick below header */
}

.filter-sidebar-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.btn-clear-filters {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-dark);
  border-bottom: 1px solid transparent;
  background: none;
  cursor: pointer;
}
.btn-clear-filters:hover {
  border-color: var(--accent-dark);
}

.filter-group {
  margin-bottom: 20px;
}

.filter-group-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Price range styling */
.price-range-inputs {
  display: flex;
  gap: 8px;
}

.price-input-wrapper {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 10px;
  background-color: var(--bg-main);
  flex: 1;
}

.price-currency {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-right: 4px;
  font-weight: 500;
}

.price-input {
  width: 100%;
  font-size: 0.85rem;
  font-weight: 500;
}

/* Condition Checkboxes */
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.checkbox-label:hover {
  color: var(--text-primary);
}

.checkbox-label input {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
  cursor: pointer;
}

/* Sort Selector */
.select-wrapper {
  position: relative;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 12px;
  background-color: var(--bg-main);
}

.select-filter {
  width: 100%;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
}

/* Condition badges on cards */
.badge-condition {
  position: absolute;
  top: 12px;
  right: 12px;
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--primary);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  z-index: 2;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.badge-condition.novo {
  background-color: #d1fae5;
  color: #065f46;
  border-color: #a7f3d0;
}

.badge-condition.excelente {
  background-color: #fef3c7;
  color: #92400e;
  border-color: #fde68a;
}

.badge-condition.usado {
  background-color: #f3f4f6;
  color: #374151;
  border-color: #e5e7eb;
}

/* Classified card actions */
.classified-card-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

.btn-card-detail {
  flex: 1;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 6px;
  background-color: var(--primary);
  color: var(--text-light);
  transition: all var(--transition-fast);
}

.btn-card-detail:hover {
  background-color: var(--primary-light);
}

.btn-card-whatsapp {
  background-color: #25d366;
  color: #fff;
  border-radius: 6px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color var(--transition-fast);
}

.btn-card-whatsapp:hover {
  background-color: #1ebd59;
}

/* Classified Grid on Page */
.classifieds-page-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
  font-size: 1rem;
}

.no-results svg {
  margin-bottom: 12px;
  color: var(--accent-dark);
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* MODAL OVERLAY STYLING */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(18, 37, 26, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-normal);
  padding: 20px;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-container {
  background-color: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  max-width: 750px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  transform: translateY(24px) scale(0.95);
  transition: transform var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.modal-overlay.active .modal-container {
  transform: translateY(0) scale(1);
}

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

.modal-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
}

.btn-close-modal {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-main);
  color: var(--text-muted);
  transition: all var(--transition-fast);
}

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

.modal-body {
  padding: 24px;
}

/* Detail Modal Split layout */
.detail-modal-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 24px;
}

.detail-modal-img-wrap {
  border-radius: 12px;
  overflow: hidden;
  height: 320px;
  border: 1px solid var(--border);
}

.detail-modal-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-modal-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.detail-modal-badge-row {
  display: flex;
  gap: 8px;
}

.detail-modal-price {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.detail-modal-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}

.detail-modal-meta p {
  margin-bottom: 6px;
}

.detail-modal-description {
  font-size: 0.9rem;
  color: var(--text-primary);
  line-height: 1.5;
}

.detail-modal-cta {
  margin-top: auto;
  display: flex;
  gap: 12px;
}

.btn-modal-wa {
  flex: 1;
  background-color: #25d366;
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background-color var(--transition-fast);
}

.btn-modal-wa:hover {
  background-color: #1ebd59;
}

/* Forms layout inside Publish Modal */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

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

.form-group.full-width {
  grid-column: 1 / -1;
}

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

.form-input, .form-select, .form-textarea {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.9rem;
  background-color: var(--bg-main);
  transition: border-color var(--transition-fast);
  width: 100%;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--accent-dark);
  background-color: #fff;
}

.form-textarea {
  height: 100px;
  resize: vertical;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.btn-modal-cancel {
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid var(--border);
  transition: all var(--transition-fast);
}

.btn-modal-cancel:hover {
  background-color: var(--bg-main);
}

.btn-modal-submit {
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  background-color: var(--primary);
  color: var(--text-light);
  transition: all var(--transition-fast);
}

.btn-modal-submit:hover {
  background-color: var(--primary-light);
}

/* Responsive adjust for classifieds split */
@media (max-width: 900px) {
  .classifieds-split-layout {
    grid-template-columns: 1fr;
  }
  
  .filter-sidebar {
    position: static;
    margin-bottom: 24px;
  }
}

@media (max-width: 768px) {
  .classifieds-page-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .detail-modal-layout {
    grid-template-columns: 1fr;
  }
  
  .detail-modal-img-wrap {
    height: 220px;
  }
}

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

/* ==========================================
   REAL ESTATE (IMÓVEIS) STYLES
   ========================================== */

/* Property Cards */
.property-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  cursor: pointer;
  text-decoration: none;
}
.property-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.property-img-carousel {
  position: relative;
  height: 240px;
  width: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  display: flex;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
}
.property-img-carousel::-webkit-scrollbar {
  display: none; /* Safari and Chrome */
}
.property-img-carousel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  flex-shrink: 0;
  scroll-snap-align: center;
}

.property-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
  z-index: 10;
  box-shadow: var(--shadow-sm);
}

.property-details {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.property-price {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--primary);
}
.property-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}
.property-location {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.property-specs {
  display: flex;
  gap: 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 12px;
  margin-top: 4px;
}
.property-spec-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Real Estate Header Filters */
.re-search-header {
  background: linear-gradient(135deg, var(--primary) 0%, #172d1f 50%, var(--accent-dark) 100%);
  padding: 24px;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  border: none;
  margin-bottom: 32px;
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
}
.re-search-input {
  flex: 1;
  min-width: 250px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 1rem;
  background: white;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}
.re-filter-select {
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 0.95rem;
  background: white;
  min-width: 160px;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}
.btn-re-search {
  background-color: var(--accent);
  color: var(--primary-dark);
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 8px;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  border: none;
  cursor: pointer;
}
.btn-re-search:hover {
  background-color: #d4b878;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

/* Individual Property Detalhe Styles */
.property-gallery-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: 250px 250px;
  gap: 12px;
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 40px;
}
.gallery-img-wrap {
  overflow: hidden;
  position: relative;
}
.gallery-main-img {
  grid-row: 1 / span 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.gallery-sub-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}
.gallery-img-wrap:hover img {
  transform: scale(1.03);
}

.property-detail-layout {
  display: grid;
  grid-template-columns: 1fr 350px;
  gap: 48px;
  margin-bottom: 64px;
}
.property-detail-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.property-detail-header h1 {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  color: var(--primary);
  margin-bottom: 8px;
  line-height: 1.2;
}
.property-detail-location {
  font-size: 1.1rem;
  color: var(--text-muted);
}
.property-detail-specs {
  display: flex;
  gap: 24px;
  font-size: 1rem;
  color: var(--text-primary);
  font-weight: 500;
}
.property-detail-divider {
  height: 1px;
  background-color: var(--border);
  margin: 8px 0;
}
.property-description {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-muted);
}
.property-description p {
  margin-bottom: 16px;
}

.amenities-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}
.amenity-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1rem;
  color: var(--text-primary);
}
.amenity-item svg {
  color: var(--accent-dark);
}

.sticky-contact-card {
  position: sticky;
  top: 100px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.sticky-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.sticky-price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}
.agent-profile {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.agent-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
}
.agent-info h4 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}
.agent-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
}
.btn-schedule {
  background-color: var(--accent);
  color: var(--primary-dark);
  font-size: 1.1rem;
  font-weight: 700;
  padding: 16px;
  border-radius: 8px;
  text-align: center;
  display: block;
  transition: all var(--transition-fast);
  text-decoration: none;
}
.btn-schedule:hover {
  background-color: var(--primary);
  color: var(--text-light);
}

@media (max-width: 900px) {
  .property-detail-layout {
    grid-template-columns: 1fr;
  }
  .property-gallery-grid {
    grid-template-columns: 1fr;
    grid-template-rows: 300px;
  }
  .gallery-sub-img {
    display: none;
  }
  .sticky-contact-card {
    position: relative;
    top: 0;
  }
}

@media (max-width: 768px) {
  .re-search-header {
    flex-direction: column;
    align-items: stretch;
  }
  .re-filter-select {
    width: 100%;
  }
}



.video-sound-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background-color: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  transition: all 0.3s ease;
  z-index: 10;
}
.video-sound-btn:hover {
  background-color: rgba(0, 0, 0, 0.8);
  transform: scale(1.05);
}


.video-product-card {
  margin-top: 16px;
  position: relative;
  background: linear-gradient(135deg, #ebdccc 0%, #d5c2ab 100%);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}

.vpc-title {
  color: #2c2c2c;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 4px;
  line-height: 1.2;
}

.vpc-store {
  color: #5c554e;
  font-size: 0.75rem;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.vpc-btn {
  background-color: transparent;
  color: #2c2c2c;
  padding: 6px 20px;
  border-radius: 50px;
  border: 1px solid #2c2c2c;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.75rem;
  transition: all 0.3s ease;
  width: auto;
}

.vpc-btn:hover {
  background-color: #2c2c2c;
  color: white;
}


.video-playlist-card {
  transition: transform 0.4s ease, box-shadow 0.4s ease !important;
}
.video-playlist-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.25) !important;
}


/* HUB NEWS SECTION */
.hub-news-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 12px;
}

.hub-news-col-small {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hub-news-col-large {
  display: flex;
}

.hub-news-card-small, .hub-news-card-large {
  background: var(--bg-card);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  border: 1px solid var(--border);
}

.hub-news-card-small:hover, .hub-news-card-large:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.hub-news-card-small {
  flex-direction: row;
  height: 90px;
}

.hub-news-card-small .hub-news-img-wrap {
  width: 40%;
  position: relative;
  min-height: 90px;
}

.hub-news-card-small .hub-news-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hub-news-card-small .hub-news-content {
  width: 60%;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hub-news-card-small h4 {
  font-size: 0.9rem;
  line-height: 1.2;
  margin-bottom: 2px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hub-news-card-large {
  flex-direction: column;
  width: 100%;
}

.hub-news-card-large .hub-news-img-wrap {
  height: 210px;
  position: relative;
}

.hub-news-card-large .hub-news-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hub-news-card-large .hub-news-content {
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
}

.hub-news-card-large h3 {
  font-size: 1.3rem;
  text-align: center;
  line-height: 1.2;
  margin: 0;
  padding: 0;
  font-weight: 800;
  line-height: 1.3;
  color: var(--text-primary);
}

.hub-news-card-large p {
  color: var(--text-secondary);
  font-size: 1rem;
  margin-bottom: 16px;
  line-height: 1.5;
  flex: 1;
}

.hub-news-category {
  position: absolute;
  top: 8px;
  left: 8px;
  background-color: var(--primary);
  color: white;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 2;
}

.hub-news-date {
  margin: 0;
  padding: 0;
  line-height: 1;
  font-size: 0.8rem;
  color: var(--text-light);
  font-weight: 500;
}

@media (max-width: 992px) {
  .hub-news-grid {
    grid-template-columns: 1fr;
  }
}


.sticky-news-block {
  z-index: 10;
  background: var(--bg-body);
}




.video-player-area video {
  width: 100%;
  height: 100%;
}

/* Update service desc per user request */
.service-desc {
    color: #000000 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 3 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}

/* Atualizacao dos mini cards de noticias conforme pedido do usuario */
.hub-news-card-small .badge-tag {
    display: none !important;
}

.hub-news-card-small .hub-news-meta {
    display: none !important;
}

.hub-news-card-small .hub-news-content {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: flex-start !important;
    padding-left: 20px !important; /* Margem para a esquerda */
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    height: 100% !important;
}

.hub-news-card-small .hub-news-title {
    margin: 0 !important;
    line-height: 1.4 !important;
}

/* Unify WebTV Widget with Radio Widget */
.webtv-widget {
    background: linear-gradient(135deg, rgba(22, 101, 52, 0.9), rgba(15, 23, 42, 0.9)) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border: 1px solid rgba(212, 175, 55, 0.3) !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2) !important;
}

.webtv-widget-title {
    color: #ffffff !important;
}

.webtv-playlist-item {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(212, 175, 55, 0.2) !important;
}

.webtv-playlist-item.active {
    background: rgba(255, 255, 255, 0.15) !important;
    border: 1px solid rgba(212, 175, 55, 0.5) !important;
}

.webtv-playlist-item h4 {
    color: #ffffff !important;
}

/* Gradient Details to connect with Search Filter */
.webtv-widget {
    position: relative !important;
    overflow: hidden !important;
}

.webtv-widget::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, #166534, #a17a52); /* Verde para Marrom Claro */
    z-index: 20;
}

.radio-widget {
    position: relative !important;
    overflow: hidden !important;
}

.radio-widget::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, #166534, #a17a52); /* Verde para Marrom Claro */
    z-index: 20;
}
