@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500&family=Syne:wght@500;600;700;800&family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400&display=swap');
@import url('./luxury-tokens.css');

/* CSS Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

img, picture, video, canvas, svg {
  max-width: 100%;
  display: block;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-black);
  color: var(--text-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
}

body {
  font-family: var(--font-sans-main);
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-white);
  background-color: var(--bg-black);
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
  position: relative;
  letter-spacing: 0.03em;
}

/* Selection */
::selection {
  background: #ffffff;
  color: #000000;
}

/* Section Background Themes */
.theme-black {
  background-color: #000000;
  color: #ffffff;
}

.theme-white {
  background-color: #ffffff;
  color: #000000;
}

.theme-sand {
  background-color: var(--bg-corporate-sand);
  color: #000000;
}

.theme-dark-corporate {
  background-color: var(--bg-corporate-dark-sand);
  color: #ffffff;
}

.theme-stone {
  background-color: var(--bg-corporate-stone);
  color: #000000;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans-main);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 500;
  color: inherit;
}

.text-uppercase {
  text-transform: uppercase;
  letter-spacing: 0.16em;
}

/* Syne Negrita: Precios y etiquetas destacadas */
.font-price,
.price-highlight,
.property-card-price,
.price-tag,
.hero-property-price,
.wishlist-item-price,
.detail-price,
.highlight-syne,
.highlight-label {
  font-family: var(--font-syne) !important;
  font-weight: 700 !important;
}

.eyebrow {
  font-family: var(--font-sans-main);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 1rem;
}

.theme-black .eyebrow,
.theme-dark-corporate .eyebrow {
  color: var(--corporate-sand-accent);
}

.theme-white .eyebrow,
.theme-sand .eyebrow,
.theme-stone .eyebrow {
  color: #70675b;
}

.section-title {
  font-size: clamp(1.4rem, 2.2vw, 2.05rem);
  line-height: 1.25;
  margin-bottom: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  max-width: 780px;
}

.section-title strong, .section-title em {
  font-weight: 700;
  font-style: normal;
}

.hero-title {
  font-size: clamp(1.75rem, 3.2vw, 2.75rem);
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

/* Constrained Editorial & Hero Titles (Properties, Guides, Blog, Articles) - Always Centered */
.guide-hero-title,
.article-hero-title,
.property-hero-title,
.editorial-hero-title,
.archive-hero-section h1,
.archive-hero-content h1,
.properties-hero-title,
main > section:first-of-type h1,
section h1 {
  font-size: clamp(1.4rem, 2.3vw, 2.05rem) !important;
  line-height: 1.25 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  max-width: 780px !important;
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Titles inside centered containers */
.text-center .archive-hero-content h1,
.archive-hero-content.text-center h1,
.text-center h1,
.archive-hero-section .text-center h1 {
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
}

.section-subtitle {
  font-size: 1.0rem;
  line-height: 1.75;
  font-weight: 400;
  max-width: 680px;
}

.theme-black .section-subtitle,
.theme-dark-corporate .section-subtitle {
  color: var(--text-gray-light);
}

.theme-white .section-subtitle,
.theme-sand .section-subtitle {
  color: #4a4a4a;
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1.25rem, 4vw, 4.5rem);
  padding-right: clamp(1.25rem, 4vw, 4.5rem);
}

/* =========================================================================
   EDITORIAL, GUIDES & ARTICLES: UNIFIED 1280px CONTAINER
   Banner Titles and Text Content share the exact same 1280px grid width
   ========================================================================= */
.container-1280,
.editorial-container,
.guide-container,
.article-container,
.archive-hero-section .container,
.archive-hero-content,
.guide-hero-banner .container,
.article-hero-banner .container {
  max-width: 1280px !important;
}

/* Generous Breathing Room for Sections */
.section-padding {
  padding-top: clamp(6rem, 10vw, 10.5rem);
  padding-bottom: clamp(6rem, 10vw, 10.5rem);
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  font-size: inherit;
  transition: var(--transition-smooth);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 2.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border-radius: 0;
  transition: var(--transition-smooth);
  position: relative;
  white-space: nowrap;
  text-align: center;
}

.btn-solid-white {
  background: #ffffff;
  color: #000000;
  border: 1px solid #ffffff;
}

.btn-solid-white:hover {
  background: transparent;
  color: #ffffff;
}

.btn-solid-black {
  background: #000000;
  color: #ffffff;
  border: 1px solid #000000;
}

.btn-solid-black:hover {
  background: transparent;
  color: #000000;
}

.btn-outline-white {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.btn-outline-white:hover {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
}

.btn-outline-black {
  background: transparent;
  color: #000000;
  border: 1px solid rgba(0, 0, 0, 0.4);
}

.btn-outline-black:hover {
  background: #000000;
  color: #ffffff;
  border-color: #000000;
}

.btn-link-underline {
  padding: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 2px solid currentColor;
  padding-bottom: 3px;
}

.blog-read-more,
.blog-card-link {
  font-size: 0.6875rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.16em !important;
  text-transform: uppercase !important;
  color: #ffffff !important;
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.4) !important;
  padding: 0.65rem 1.35rem !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.5rem !important;
  text-decoration: none !important;
  align-self: flex-start !important;
  margin-top: auto !important;
  border-radius: 0 !important;
  transition: all var(--transition-smooth) !important;
  cursor: pointer !important;
}

.blog-read-more:hover,
.blog-card-link:hover,
.blog-post-card:hover .blog-read-more,
.blog-card:hover .blog-card-link {
  background: #ffffff !important;
  color: #000000 !important;
  border-color: #ffffff !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.18) !important;
}

.btn-link-underline:hover {
  gap: 0.85rem;
  opacity: 0.75;
}

/* Badges */
.badge-minimal {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: 0;
  background: #000000;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.badge-minimal.white {
  background: #ffffff;
  color: #000000;
  border: 1px solid #ffffff;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: #000000;
}
::-webkit-scrollbar-thumb {
  background: #333333;
}
::-webkit-scrollbar-thumb:hover {
  background: #ffffff;
}

/* =========================================================================
   UNIVERSAL 800PX BANNER SYSTEM - CENTERED AT HALF HEIGHT & TEXT CENTERED
   ========================================================================= */
.hero-section,
.archive-hero-section,
.editorial-hero-banner,
.hero-full-listing,
.rentals-banner-section,
.guide-hero-banner,
.article-hero-banner {
  height: 800px !important;
  max-height: 800px !important;
  min-height: 800px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  padding-bottom: 0 !important;
}

.archive-hero-content,
.hero-content,
.editorial-hero-banner .container,
.guide-hero-banner .container,
.article-hero-banner .container,
.properties-hero-content {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-bottom: 0 !important;
}

@media (max-width: 992px) {
  .hero-section,
  .archive-hero-section,
  .editorial-hero-banner,
  .hero-full-listing,
  .rentals-banner-section,
  .guide-hero-banner,
  .article-hero-banner {
    height: auto !important;
    max-height: 800px;
    min-height: auto !important;
  }

  .archive-hero-section.properties-hero-banner {
    max-height: none !important;
    height: auto !important;
  }
}

/* Properties Hero with Search directly over the banner */
.archive-hero-section.properties-hero-banner {
  height: 800px !important;
  max-height: 800px !important;
  min-height: 800px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding-top: 80px !important;
  padding-bottom: 1.5rem !important;
  position: relative !important;
}

.properties-hero-content {
  width: 100% !important;
  max-width: 1280px !important;
  margin: 0 auto !important;
  padding-bottom: 0 !important;
  position: relative !important;
  z-index: 5 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
}

.properties-hero-header {
  margin-bottom: 1rem !important;
  text-align: center !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
}

.properties-hero-title {
  font-size: clamp(1.6rem, 2.8vw, 2.4rem) !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em !important;
  margin: 0.25rem 0 0.35rem 0 !important;
  text-transform: uppercase !important;
  color: #ffffff !important;
  line-height: 1.15 !important;
}

.properties-hero-subtitle {
  color: rgba(255, 255, 255, 0.85) !important;
  font-size: 0.8rem !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  margin: 0 !important;
}

.quick-search-box.properties-banner-search {
  background: rgba(12, 12, 12, 0.88) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8) !important;
  padding: 1.15rem 1.5rem !important;
}

/* =========================================================================
   LUXURY EDITORIAL GUIDE ENHANCEMENTS (TABLES, FAQS & MULTI-IMAGES)
   ========================================================================= */
.guide-content-wrap {
  max-width: 1140px;
  margin: 0 auto;
}

.guide-pillar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin: 2.5rem 0 3.5rem 0;
}

.guide-pillar-card {
  background: var(--color-carbon-arena, #121212);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 2rem 1.75rem;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.guide-pillar-card:hover {
  transform: translateY(-4px);
  border-color: var(--corporate-sand-accent, #c5a880);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6);
}

.guide-pillar-icon {
  font-size: 1.8rem;
  margin-bottom: 1rem;
  color: var(--corporate-sand-accent, #c5a880);
}

.guide-pillar-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.guide-pillar-desc {
  font-size: 0.9rem;
  color: #b0b0b0;
  line-height: 1.65;
  margin: 0;
}

/* Luxury Tables */
.guide-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 2rem 0 3rem 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0a0a0a;
}

.guide-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.92rem;
  color: #d4d4d4;
  min-width: 580px;
}

.guide-table th {
  background: #141414;
  color: var(--corporate-sand-accent, #c5a880);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.guide-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  line-height: 1.6;
}

.guide-table tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

.guide-table strong {
  color: #ffffff;
}

/* Editorial Figures / Images */
.guide-figure {
  margin: 2.75rem 0;
}

.guide-figure-img {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: block;
}

.guide-figure-caption {
  display: block;
  font-size: 0.78rem;
  color: #999;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 0.65rem;
  text-align: center;
}

/* FAQ Accordion */
.faq-section {
  margin-top: 4.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 3.5rem;
}

.faq-category-title {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--corporate-sand-accent, #c5a880);
  margin: 2.25rem 0 1.25rem 0;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.faq-accordion-group {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.faq-item {
  background: #111111;
  border: 1px solid rgba(255, 255, 255, 0.09);
  transition: border-color 0.25s ease, background-color 0.25s ease;
}

.faq-item[open] {
  border-color: rgba(197, 168, 128, 0.4);
  background: #151515;
}

.faq-question {
  padding: 1.2rem 1.4rem;
  font-size: 0.98rem;
  font-weight: 600;
  color: #ffffff;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  user-select: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-question::after {
  content: '+';
  font-size: 1.35rem;
  font-weight: 300;
  color: var(--corporate-sand-accent, #c5a880);
  transition: transform 0.25s ease;
}

.faq-item[open] .faq-question::after {
  content: '−';
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 1.4rem 1.4rem 1.4rem;
  font-size: 0.92rem;
  line-height: 1.8;
  color: #c4c4c4;
}

.faq-answer p {
  margin: 0 0 0.8rem 0;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.faq-answer ul {
  margin: 0.5rem 0 0.8rem 1.25rem;
  padding: 0;
}

.faq-answer li {
  margin-bottom: 0.4rem;
}

/* CookieYes Floating Consent Revisit Button & Banner Defense */
.cky-btn-revisit,
.cky-revisit-bottom-left,
.cky-revisit-bottom-right,
#cky-consent-container,
.cky-consent-container,
.cky-modal,
.cky-overlay {
  z-index: 2147483647 !important;
  pointer-events: auto !important;
}

.cky-btn-revisit,
.cky-revisit-bottom-left,
.cky-revisit-bottom-right {
  cursor: pointer !important;
}

.cky-revisit-bottom-right {
  bottom: 120px !important; /* Clears floating whatsapp & email buttons */
}


