/* ================================================================
   Casas da Ribeira Quente – Main Stylesheet
   ================================================================ */

:root {
  --crq-bg: #faf8f4;
  --crq-dark: #1a1a1a;
  --crq-accent: #c96f4a;
  --crq-accent-soft: #f0c9b5;
  --crq-muted: #555;
  --crq-border: #e8e4dc;
}

/* ================================================================
   FULL-WIDTH OVERRIDE
   Ensures CRQ blocks always span the full viewport width,
   regardless of Elementor section/column width (boxed layouts).
   ================================================================ */
.crq-hero,
.crq-pool,
.crq-section,
.crq-booking-bar-wrap,
.crq-lightbox,
.crq-footer {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  box-sizing: border-box;
}

/* Elementor wrappers: reset padding/width so sections touch edges */
.elementor-widget-crq-hero,
.elementor-widget-crq-piscina,
.elementor-widget-crq-casas,
.elementor-widget-crq-atracoes,
.elementor-widget-crq-galeria,
.elementor-widget-crq-testemunhos,
.elementor-widget-crq-como-chegar,
.elementor-widget-crq-booking-bar {
  width: 100%;
}
.elementor-widget-crq-hero > .elementor-widget-container,
.elementor-widget-crq-piscina > .elementor-widget-container,
.elementor-widget-crq-casas > .elementor-widget-container,
.elementor-widget-crq-atracoes > .elementor-widget-container,
.elementor-widget-crq-galeria > .elementor-widget-container,
.elementor-widget-crq-testemunhos > .elementor-widget-container,
.elementor-widget-crq-como-chegar > .elementor-widget-container,
.elementor-widget-crq-booking-bar > .elementor-widget-container {
  padding: 0 !important;
  margin: 0 !important;
}
.elementor-section:has(.elementor-widget-crq-hero),
.elementor-section:has(.elementor-widget-crq-piscina),
.elementor-section:has(.elementor-widget-crq-casas),
.elementor-section:has(.elementor-widget-crq-atracoes),
.elementor-section:has(.elementor-widget-crq-galeria),
.elementor-section:has(.elementor-widget-crq-testemunhos),
.elementor-section:has(.elementor-widget-crq-como-chegar),
.elementor-section:has(.elementor-widget-crq-booking-bar) {
  padding: 0 !important;
  max-width: none !important;
}
.elementor-section:has(.elementor-widget-crq-hero) .elementor-container,
.elementor-section:has(.elementor-widget-crq-piscina) .elementor-container,
.elementor-section:has(.elementor-widget-crq-casas) .elementor-container,
.elementor-section:has(.elementor-widget-crq-atracoes) .elementor-container,
.elementor-section:has(.elementor-widget-crq-galeria) .elementor-container,
.elementor-section:has(.elementor-widget-crq-testemunhos) .elementor-container,
.elementor-section:has(.elementor-widget-crq-como-chegar) .elementor-container,
.elementor-section:has(.elementor-widget-crq-booking-bar) .elementor-container {
  max-width: none !important;
  width: 100%;
  padding: 0 !important;
}

/* Prevent horizontal scrollbar from 100vw */
html, body { overflow-x: hidden; max-width: 100%; }

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Jost', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--crq-dark);
  background: var(--crq-bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.font-display { font-family: 'Cormorant Garamond', serif; font-weight: 500; letter-spacing: .01em; }
em, .crq-italic { font-style: italic; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ----- Containers ----- */
.crq-container         { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.crq-container-narrow  { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.crq-section           { padding: 96px 24px; }
@media (min-width: 768px) { .crq-section { padding: 128px 40px; } }

/* ----- Icons ----- */
.icon-sm { width: 16px; height: 16px; }
.icon-md { width: 20px; height: 20px; }
.icon-lg { width: 24px; height: 24px; }
.icon-xl { width: 40px; height: 40px; }
.text-accent { color: var(--crq-accent); }

/* ----- Buttons ----- */
.btn-dark {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--crq-dark); color: #fff; border: none;
  padding: 14px 32px; font-size: 13px; letter-spacing: .08em;
  text-transform: uppercase; font-weight: 500; cursor: pointer;
  transition: background .3s ease, transform .2s ease; font-family: inherit;
}
.btn-dark:hover { background: #000; transform: translateY(-2px); }
.btn-dark.btn-white { background: #fff; color: var(--crq-dark); }
.btn-dark.btn-white:hover { background: var(--crq-accent-soft); }
.btn-block { display: block; width: 100%; }
.btn-outline-light {
  display: inline-flex; align-items: center; padding: 14px 32px; font-size: 13px;
  letter-spacing: .08em; text-transform: uppercase; font-weight: 500;
  background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.6);
  cursor: pointer; transition: all .3s ease;
}
.btn-outline-light:hover { background: #fff; color: var(--crq-dark); }

/* ----- Section label ----- */
.section-label {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 12px; letter-spacing: .35em; font-weight: 500;
  text-transform: uppercase; color: var(--crq-dark); margin-bottom: 16px;
}
.section-label::before { content:''; display:block; width:40px; height:1px; background: currentColor; }
.section-label-center { justify-content: center; }
.section-label-center::after { content:''; display:block; width:40px; height:1px; background: currentColor; }

.crq-section-head { text-align: center; margin-bottom: 64px; }
.crq-section-head h2 { font-size: clamp(2.2rem, 4vw, 3.4rem); line-height: 1.1; margin: 8px 0; }
.crq-section-head p  { max-width: 640px; margin: 16px auto 0; color: var(--crq-muted); }

/* ================================================================
   HEADER
   ================================================================ */
.crq-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(250, 248, 244, .96);
  box-shadow: 0 1px 0 rgba(0,0,0,.06);
  padding: 12px 0; transition: background .4s, padding .4s, box-shadow .4s;
}
.crq-header.is-transparent {
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  padding: 20px 0;
}
.crq-header-inner {
  max-width: 1400px; margin: 0 auto; padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.crq-logo img { height: 48px; width: auto; object-fit: contain; }
.crq-logo .logo-light { display: none; }
.crq-header.is-transparent .crq-logo .logo-light { display: block; }
.crq-header.is-transparent .crq-logo .logo-dark  { display: none; }
.crq-header.is-transparent .crq-menu a,
.crq-header.is-transparent .crq-book-link,
.crq-header.is-transparent .crq-burger { color: #fff; }

.crq-nav { flex: 1; }
.crq-menu {
  list-style: none; padding: 0; margin: 0;
  display: flex; gap: 40px; justify-content: center;
}
.crq-menu a {
  font-size: 13px; letter-spacing: .15em; text-transform: uppercase;
  font-weight: 500; color: var(--crq-dark); transition: color .3s;
}
.crq-menu a:hover { color: var(--crq-accent); }

.crq-header-right { display: flex; align-items: center; gap: 16px; color: var(--crq-dark); }
.crq-book-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; letter-spacing: .2em; text-transform: uppercase; font-weight: 500;
  transition: color .3s;
}
.crq-book-link:hover { color: var(--crq-accent); }
.crq-burger { display: none; background: none; border: 0; color: var(--crq-dark); cursor: pointer; }

/* Language switcher (Polylang) */
.crq-lang-switcher {
  display: inline-flex; align-items: center; gap: 2px;
  list-style: none; padding: 4px; margin: 0;
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 999px;
  background: rgba(255,255,255,.6);
  backdrop-filter: blur(8px);
}
.crq-header.is-transparent .crq-lang-switcher {
  border-color: rgba(255,255,255,.4);
  background: rgba(255,255,255,.08);
}
.crq-lang-item a {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 30px; height: 26px; padding: 0 10px;
  border-radius: 999px;
  font-size: 11px; letter-spacing: .16em; font-weight: 600;
  color: inherit; text-decoration: none;
  transition: background .25s ease, color .25s ease;
}
.crq-lang-item a:hover { background: rgba(201, 111, 74, .12); color: var(--crq-accent); }
.crq-lang-item.is-active a { background: var(--crq-accent); color: #fff; }
.crq-header.is-transparent .crq-lang-item.is-active a { background: #fff; color: var(--crq-dark); }

@media (max-width: 980px) {
  .crq-menu { display: none; }
  .crq-burger { display: inline-flex; }
  .crq-book-link span { display: none; }
  .crq-header.is-open .crq-menu {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0;
    background: #faf8f4; padding: 24px; box-shadow: 0 10px 30px rgba(0,0,0,.1);
  }
  .crq-header.is-open .crq-menu li { border-bottom: 1px solid #eee; }
  .crq-header.is-open .crq-menu a { display: block; padding: 14px 0; }
}

/* ================================================================
   HERO
   ================================================================ */
.crq-hero {
  position: relative; height: 100vh; min-height: 700px; width: 100%;
  overflow: hidden; color: #fff;
  background-size: cover; background-position: center; background-repeat: no-repeat;
  display: block;
}
.elementor-widget-crq-hero,
.elementor-widget-crq-hero > .elementor-widget-container { display: block; width: 100%; }
.crq-hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}
.crq-hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to bottom, rgba(0,0,0,.25) 0%, rgba(0,0,0,.1) 40%, rgba(0,0,0,.55) 100%);
}
.crq-hero-content {
  position: relative; z-index: 2;
  height: 100%; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 80px 24px 0;
}
.crq-eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 11px; letter-spacing: .4em; text-transform: uppercase;
  font-weight: 500; margin-bottom: 24px; opacity: .9;
}
.crq-line { display: block; width: 40px; height: 1px; background: rgba(255,255,255,.7); }
.crq-hero-title {
  font-size: clamp(2.5rem, 6vw, 5.2rem); line-height: 1.05; margin: 0 0 32px;
  font-weight: 400; max-width: 900px;
}
.crq-hero-text {
  max-width: 640px; margin: 0 auto 48px; font-weight: 300;
  font-size: clamp(1rem, 1.2vw, 1.15rem); line-height: 1.6; color: rgba(255,255,255,.9);
}
.crq-hero-cta { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.crq-hero-features {
  position: absolute; bottom: 96px; left: 0; right: 0; padding: 0 24px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; max-width: 1080px; margin: 0 auto;
}
.crq-feature { display: flex; align-items: center; gap: 16px; }
.crq-feature-icon {
  width: 48px; height: 48px; border: 1px solid rgba(255,255,255,.5);
  border-radius: 999px; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.crq-feature-title { font-size: 1.25rem; line-height: 1.2; }
.crq-feature-desc  { font-size: 12px; letter-spacing: .03em; color: rgba(255,255,255,.75); }
.crq-scroll-indicator {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: rgba(255,255,255,.8); animation: crq-bounce 2s infinite;
}
.crq-scroll-indicator span { font-size: 10px; letter-spacing: .3em; text-transform: uppercase; }
@keyframes crq-bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50%      { transform: translate(-50%, -8px); }
}
@media (max-width: 768px) {
  .crq-hero-features { grid-template-columns: 1fr; gap: 16px; bottom: 120px; }
}

/* ================================================================
   BOOKING BAR
   ================================================================ */
.crq-booking-bar-wrap {
  position: relative; margin-top: -80px; z-index: 20; padding: 0 24px;
}
.crq-booking-bar {
  max-width: 1200px; margin: 0 auto; background: #fff;
  padding: 32px; box-shadow: 0 20px 40px rgba(0,0,0,.12);
}
.crq-booking-subtitle { font-size: 13px; color: var(--crq-muted); margin: 0 0 20px; }
.crq-booking-form {
  display: grid; grid-template-columns: 1fr 1fr 1fr auto; gap: 16px; align-items: stretch;
}
.crq-field {
  border: 1px solid #e5e5e5; padding: 16px 20px; display: flex; align-items: center; gap: 12px;
  cursor: pointer; transition: border-color .3s;
}
.crq-field:hover { border-color: var(--crq-dark); }
.crq-field span { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.crq-field-label { font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: #888; }
.crq-field input, .crq-field select {
  border: 0; background: transparent; font-size: 14px; color: var(--crq-dark);
  padding: 0; font-family: inherit; font-weight: 500; outline: 0;
}
@media (max-width: 768px) {
  .crq-booking-form { grid-template-columns: 1fr; }
}

/* ================================================================
   HOUSES
   ================================================================ */
.crq-casas-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(460px, 1fr)); gap: 40px;
}
@media (max-width: 640px) { .crq-casas-grid { grid-template-columns: 1fr; } }

.house-card {
  background: #fff; overflow: hidden; box-shadow: 0 1px 3px rgba(0,0,0,.04);
  transition: transform .4s ease, box-shadow .4s ease;
}
.house-card:hover { transform: translateY(-6px); box-shadow: 0 20px 50px -10px rgba(0,0,0,.18); }
.house-card-image { position: relative; height: 340px; overflow: hidden; }
.house-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.house-card:hover .house-card-image img { transform: scale(1.04); }
.house-card-price {
  position: absolute; top: 16px; right: 16px; background: rgba(255,255,255,.95);
  padding: 6px 12px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  font-weight: 500; backdrop-filter: blur(6px);
}
.house-card-body { padding: 32px; }
.house-card-body h3 { font-size: clamp(1.5rem, 2vw, 2rem); line-height: 1.2; margin: 0 0 20px; }
.house-card-meta {
  display: flex; flex-wrap: wrap; gap: 20px; padding-bottom: 20px;
  border-bottom: 1px solid #f1f1f1; color: #666; font-size: 13px;
}
.house-card-meta span { display: inline-flex; align-items: center; gap: 6px; }
.house-card-body p { margin: 20px 0; color: var(--crq-muted); min-height: 60px; }

/* ================================================================
   POOL
   ================================================================ */
.crq-pool {
  position: relative; height: 90vh; min-height: 600px;
  background-size: cover; background-position: center; background-attachment: fixed;
  display: flex; align-items: flex-start; justify-content: center; overflow: hidden;
}
.crq-pool::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.1) 0%, transparent 50%, rgba(0,0,0,.1) 100%);
}
.crq-pool-inner {
  position: relative; z-index: 1; text-align: center; color: #fff;
  padding: 128px 24px 0; max-width: 900px;
}
.crq-pool-inner h2 { font-size: clamp(2.25rem, 5vw, 4rem); line-height: 1.1; }

/* ================================================================
   ATTRACTIONS
   ================================================================ */
.crq-attractions { background: #fff; }
.crq-attractions-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px;
}
.attr-card {
  background: #fff; border: 1px solid #f0ece3; overflow: hidden;
  transition: transform .4s ease;
}
.attr-card:hover { transform: translateY(-4px); }
.attr-card-image { height: 260px; overflow: hidden; }
.attr-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.attr-card:hover .attr-card-image img { transform: scale(1.08); }
.attr-card-body { padding: 24px; }
.attr-card-body h3 { font-size: 1.5rem; margin: 0 0 8px; }
.attr-card-body p  { font-size: 14px; color: #666; min-height: 42px; margin: 0 0 16px; }
.attr-card-meta {
  display: flex; gap: 16px; padding-top: 16px; border-top: 1px solid #f1f1f1;
  font-size: 12px; color: #555;
}
.attr-card-meta span { display: inline-flex; align-items: center; gap: 6px; }

/* ================================================================
   GALLERY — horizontal carousel with prev/next arrows
   ================================================================ */
.crq-gallery-carousel {
  position: relative;
}
.crq-gallery-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 3 * 16px) / 4); /* 4 visible, 16px gap */
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding-bottom: 4px; /* room for focus outlines */
}
.crq-gallery-grid::-webkit-scrollbar { display: none; }
@media (max-width: 1024px) { .crq-gallery-grid { grid-auto-columns: calc((100% - 2 * 16px) / 3); } }
@media (max-width: 640px)  { .crq-gallery-grid { grid-auto-columns: calc((100% - 16px) / 2); } }
@media (max-width: 420px)  { .crq-gallery-grid { grid-auto-columns: 100%; } }

.gallery-item {
  position: relative; aspect-ratio: 4/3; overflow: hidden;
  border: 0; padding: 0; background: #ddd; cursor: pointer;
  scroll-snap-align: start;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.gallery-item:hover img { transform: scale(1.1); }

/* Arrow buttons (overlay, centered vertically) */
.crq-gallery-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 3;
  width: 52px; height: 52px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #ffffff; color: #c96f4a; border: 1px solid rgba(0,0,0,.06);
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
  cursor: pointer;
  transition: transform .25s ease, background .25s ease, color .25s ease, opacity .25s ease;
}
.crq-gallery-arrow:hover { background: #c96f4a; color: #fff; transform: translateY(-50%) scale(1.08); }
.crq-gallery-arrow:disabled { opacity: .35; cursor: default; transform: translateY(-50%); }
.crq-gallery-prev { left: -22px; }
.crq-gallery-next { right: -22px; }
@media (max-width: 768px) {
  .crq-gallery-arrow { width: 44px; height: 44px; }
  .crq-gallery-prev { left: 6px; }
  .crq-gallery-next { right: 6px; }
}

/* Lightbox */
.crq-lightbox {
  position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,.95);
  display: none; align-items: center; justify-content: center; padding: 24px;
}
.crq-lightbox.is-open { display: flex; }
.crq-lightbox-img { max-width: 92vw; max-height: 88vh; object-fit: contain; }
.crq-lightbox button {
  position: absolute; background: transparent; color: #fff; border: 0;
  font-size: 40px; cursor: pointer; opacity: .8; transition: opacity .2s;
}
.crq-lightbox button:hover { opacity: 1; }
.crq-lightbox-close { top: 24px; right: 24px; font-size: 28px; }
.crq-lightbox-prev  { left: 24px;  top: 50%; transform: translateY(-50%); }
.crq-lightbox-next  { right: 24px; top: 50%; transform: translateY(-50%); }
.crq-lightbox-counter { position: absolute; bottom: 24px; color: rgba(255,255,255,.8); font-size: 13px; letter-spacing: .2em; }

/* ================================================================
   TESTIMONIALS
   ================================================================ */
.crq-testimonials { background: #fff; }
.crq-testimonial-box {
  position: relative; background: var(--crq-bg); padding: 64px 40px;
}
@media (min-width: 768px) { .crq-testimonial-box { padding: 80px; } }
.crq-quote-icon { position: absolute; top: 32px; left: 32px; color: rgba(201, 111, 74, .3); }
.crq-testimonial-content { text-align: center; }
.crq-stars { display: flex; justify-content: center; gap: 4px; margin-bottom: 20px; color: var(--crq-accent); }
.crq-stars svg { width: 20px; height: 20px; fill: currentColor; }
.crq-testimonial-text { font-size: clamp(1.3rem, 2.5vw, 1.75rem); font-style: italic; line-height: 1.35; max-width: 760px; margin: 0 auto; min-height: 100px; }
.crq-testimonial-author { margin-top: 32px; }
.crq-testimonial-name { font-size: 1.25rem; }
.crq-testimonial-meta { font-size: 13px; color: #666; letter-spacing: .03em; margin-top: 4px; }
.crq-testimonial-nav { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 40px; }
.crq-testimonial-nav button {
  width: 44px; height: 44px; border-radius: 999px; border: 1px solid var(--crq-dark);
  background: transparent; font-size: 20px; cursor: pointer; transition: all .3s;
  display: inline-flex; align-items: center; justify-content: center;
}
.crq-testimonial-nav button:hover { background: var(--crq-dark); color: #fff; }
.crq-testimonial-dots { display: flex; gap: 8px; padding: 0 16px; }
.crq-testimonial-dots span {
  height: 2px; background: rgba(26,26,26,.3); display: block; transition: all .3s;
}
.crq-testimonial-dots span.is-active { width: 32px; background: var(--crq-dark); }
.crq-testimonial-dots span:not(.is-active) { width: 16px; }

/* ================================================================
   HOW TO GET
   ================================================================ */
.crq-howto-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start;
}
@media (max-width: 900px) { .crq-howto-grid { grid-template-columns: 1fr; } }
.crq-map { position: relative; height: 540px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,.08); background: #fff; }
.crq-map iframe { width: 100%; height: 100%; border: 0; }
.crq-howto-cards { display: flex; flex-direction: column; gap: 24px; }
.crq-info-card {
  background: #fff; padding: 32px; border-left: 4px solid var(--crq-accent);
}
.crq-info-card.crq-info-dark { background: var(--crq-dark); color: #fff; border-left: 0; }
.crq-info-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.crq-info-head h4 { font-size: 1.5rem; margin: 0; }
.crq-info-card p { color: var(--crq-muted); line-height: 1.6; margin: 0; }
.crq-info-dark p { color: rgba(255,255,255,.8); }
.crq-info-dark .btn-white {
  display: inline-block; background: #fff; color: var(--crq-dark);
  padding: 12px 28px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
  font-weight: 500; margin-top: 20px; transition: background .3s;
}
.crq-info-dark .btn-white:hover { background: var(--crq-accent-soft); }
.crq-gps { display: flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 13px; color: var(--crq-accent); }
.crq-gps a { text-decoration: underline; text-underline-offset: 4px; }
.crq-tip {
  max-width: 720px; margin: 64px auto 0; background: #f5efe5;
  border: 1px solid #e8dcc9; padding: 32px; text-align: center;
}
.crq-tip h4 { font-size: 1.4rem; margin: 8px 0 12px; }
.crq-tip p { color: var(--crq-muted); margin: 0; }

/* ================================================================
   SINGLE CASA
   ================================================================ */
.crq-back-link { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: #666; margin-bottom: 32px; }
.crq-back-link:hover { color: var(--crq-dark); }
.crq-single-grid { display: grid; grid-template-columns: 1fr 400px; gap: 40px; align-items: start; }
@media (max-width: 900px) { .crq-single-grid { grid-template-columns: 1fr; } }
.crq-single-image { overflow: hidden; border-radius: 4px; }
.crq-single-image img { width: 100%; height: 540px; object-fit: cover; display: block; }

/* Casa photo gallery (main + thumbs) */
.crq-casa-gallery { display: flex; flex-direction: column; gap: 10px; }
.crq-casa-main {
  position: relative;
  aspect-ratio: 16/10;
  background: #eee;
  overflow: hidden;
  border-radius: 4px;
}
.crq-casa-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
  transition: opacity .35s ease;
}
.crq-casa-main-img.is-loading { opacity: .5; }
.crq-casa-prev, .crq-casa-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 999px;
  background: rgba(255,255,255,.9); color: var(--crq-dark);
  border: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .2s, transform .2s;
  backdrop-filter: blur(4px);
}
.crq-casa-prev:hover, .crq-casa-next:hover { background: #fff; transform: translateY(-50%) scale(1.05); }
.crq-casa-prev { left: 14px; }
.crq-casa-next { right: 14px; }
.crq-casa-counter {
  position: absolute; bottom: 14px; right: 14px;
  background: rgba(0,0,0,.7); color: #fff;
  font-size: 12px; padding: 5px 11px;
  letter-spacing: .1em; border-radius: 999px;
  backdrop-filter: blur(4px);
}

.crq-casa-thumbs {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}
@media (max-width: 640px) { .crq-casa-thumbs { grid-template-columns: repeat(4, 1fr); } }

.crq-casa-thumb {
  padding: 0; border: 0; background: transparent; cursor: pointer;
  aspect-ratio: 1/1; overflow: hidden; border-radius: 3px;
  opacity: .65; transition: opacity .25s, transform .25s, outline .25s;
  outline: 2px solid transparent; outline-offset: 2px;
}
.crq-casa-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.crq-casa-thumb:hover { opacity: 1; transform: translateY(-1px); }
.crq-casa-thumb.is-active { opacity: 1; outline-color: var(--crq-dark); }
.crq-single-content { margin-top: 40px; }
.crq-single-content h1 { font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: 1.1; margin: 16px 0 24px; font-weight: 500; }
.crq-content { color: var(--crq-muted); line-height: 1.75; font-size: 1.05rem; }
.crq-content p { margin: 0 0 1.2em; }

/* Amenities grid */
.crq-amenities { margin-top: 48px; padding-top: 48px; border-top: 1px solid #ece7dc; }
.crq-amenities-title { font-size: 1.75rem; margin: 0 0 24px; color: var(--crq-dark); font-weight: 500; }
.crq-amenities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (max-width: 520px) { .crq-amenities-grid { grid-template-columns: 1fr; } }
.crq-amenity {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1px solid #ece7dc;
  padding: 16px 20px;
  border-radius: 3px;
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.crq-amenity:hover {
  border-color: var(--crq-accent);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px -8px rgba(26,26,26,.10);
}
.crq-amenity-icon {
  width: 40px;
  height: 40px;
  background: var(--crq-accent-soft);
  color: var(--crq-accent);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.crq-amenity-label { font-size: 14.5px; color: var(--crq-dark); font-weight: 500; letter-spacing: .01em; }

/* Aside */
.crq-single-aside {
  background: #fff;
  padding: 30px;
  border-radius: 4px;
  border: 1px solid #ece7dc;
  box-shadow: 0 10px 40px -12px rgba(26,26,26,.10), 0 2px 6px rgba(26,26,26,.04);
  position: sticky;
  top: 110px;
}
.crq-single-price { display: flex; align-items: baseline; gap: 8px; }
.crq-price { font-size: 2.5rem; font-weight: 500; color: var(--crq-dark); }
.crq-price-label { font-size: 14px; color: #888; }
.crq-price-note { font-size: 11px; color: #888; letter-spacing: .22em; text-transform: uppercase; margin: 4px 0 22px; font-weight: 500; }
.crq-single-meta { margin: 0 0 24px; padding: 20px 0; border-top: 1px solid #ece7dc; border-bottom: 1px solid #ece7dc; }
.crq-single-meta div { display: flex; align-items: center; gap: 12px; padding: 7px 0; font-size: 14px; color: var(--crq-muted); }
.crq-meta-note { font-size: 11px; color: #888; text-align: center; margin-top: 14px; letter-spacing: .02em; }

/* ================================================================
   BOOK NOW PAGE (matches React prototype: 2-col form + sidebar)
   ================================================================ */
.crq-book-page {
  background: var(--crq-bg);
  min-height: 100vh;
  padding-bottom: 100px;
}
.crq-book-header-wrap {
  padding: 140px 24px 50px;
  text-align: center;
  background: var(--crq-bg);
}
.crq-book-header-wrap h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.1;
  margin: 16px 0 0;
  color: var(--crq-dark);
  font-weight: 500;
}
.crq-book-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}
.crq-book-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 36px;
  align-items: start;
}
@media (max-width: 960px) { .crq-book-grid { grid-template-columns: 1fr; gap: 24px; } }

/* Form card */
.crq-book-form-card {
  background: #fff;
  padding: 48px;
  border-radius: 4px;
  border: 1px solid #ece7dc;
  box-shadow: 0 10px 40px -12px rgba(26,26,26,.10), 0 2px 6px rgba(26,26,26,.04);
  display: flex;
  flex-direction: column;
  gap: 26px;
}
@media (max-width: 640px) { .crq-book-form-card { padding: 28px 22px; gap: 22px; } }

.crq-book-label {
  display: block;
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #8a8a8a;
  margin-bottom: 10px;
  font-weight: 500;
}
.crq-book-field {
  display: block;
  margin: 0;
}
.crq-book-field input,
.crq-book-field select,
.crq-book-field textarea {
  width: 100%;
  border: 1px solid #e1ddd4;
  border-radius: 3px;
  padding: 15px 18px;
  font-size: 14.5px;
  font-family: inherit;
  color: var(--crq-dark);
  background: #fdfcf9;
  outline: 0;
  transition: border-color .25s, background .25s, box-shadow .25s;
  box-sizing: border-box;
}
.crq-book-field input:hover,
.crq-book-field select:hover,
.crq-book-field textarea:hover {
  background: #fff;
  border-color: #c9c3b5;
}
.crq-book-field input:focus,
.crq-book-field select:focus,
.crq-book-field textarea:focus {
  border-color: var(--crq-dark);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(26,26,26,.05);
}
.crq-book-field textarea { resize: vertical; min-height: 120px; line-height: 1.6; }

.crq-book-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
@media (max-width: 520px) { .crq-book-row { grid-template-columns: 1fr; gap: 20px; } }

/* House picker (clickable cards) */
.crq-book-field-group { display: flex; flex-direction: column; }
.crq-house-picker {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 520px) { .crq-house-picker { grid-template-columns: 1fr; } }

.crq-house-pick {
  background: #fdfcf9;
  border: 1.5px solid #e1ddd4;
  border-radius: 3px;
  padding: 18px 20px;
  text-align: left;
  cursor: pointer;
  transition: all .25s cubic-bezier(.25,.46,.45,.94);
  font-family: inherit;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}
.crq-house-pick:hover {
  border-color: #a8a396;
  background: #fff;
  transform: translateY(-1px);
}
.crq-house-pick.is-active {
  border-color: var(--crq-dark);
  background: #fff;
  box-shadow: 0 4px 16px -4px rgba(26,26,26,.15), inset 0 0 0 1px var(--crq-dark);
}
.crq-house-pick.is-active::after {
  content: '✓';
  position: absolute;
  top: 10px;
  right: 14px;
  width: 20px;
  height: 20px;
  background: var(--crq-dark);
  color: #fff;
  border-radius: 999px;
  font-size: 12px;
  line-height: 20px;
  text-align: center;
}
.crq-pick-title { font-size: 18px; color: var(--crq-dark); font-weight: 500; }
.crq-pick-price { font-size: 12px; color: #777; letter-spacing: .03em; }

/* Submit button */
.crq-book-submit {
  margin-top: 10px;
  padding: 17px 32px;
  font-size: 13px;
  letter-spacing: .22em;
}

/* Sidebar aside */
.crq-book-aside {
  position: sticky;
  top: 100px;
  background: #fff;
  border-radius: 4px;
  border: 1px solid #ece7dc;
  box-shadow: 0 10px 40px -12px rgba(26,26,26,.10), 0 2px 6px rgba(26,26,26,.04);
  overflow: hidden;
}
.crq-aside-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  background: #eee;
}
.crq-aside-body { padding: 28px; }
.crq-aside-title {
  font-size: 24px;
  color: var(--crq-dark);
  margin-bottom: 10px;
  line-height: 1.25;
  font-weight: 500;
}
.crq-aside-excerpt {
  font-size: 13.5px;
  color: #666;
  line-height: 1.6;
  margin: 0 0 22px;
  min-height: 55px;
}
.crq-aside-meta {
  border-top: 1px solid #ece7dc;
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 14px;
  color: var(--crq-muted);
}
.crq-aside-meta div {
  display: flex;
  align-items: center;
  gap: 12px;
}
.crq-aside-total {
  border-top: 1px solid #ece7dc;
  margin-top: 20px;
  padding-top: 22px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.crq-aside-total-label {
  font-size: 11px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: #8a8a8a;
  font-weight: 500;
}
.crq-aside-total-value {
  font-size: 32px;
  color: var(--crq-dark);
  font-weight: 500;
}

/* Success state */
.crq-book-success {
  max-width: 640px;
  margin: 0 auto;
  background: #fff;
  padding: 72px 48px;
  text-align: center;
  border-radius: 4px;
  border: 1px solid #ece7dc;
  box-shadow: 0 10px 40px -12px rgba(26,26,26,.10);
}
.crq-success-icon {
  width: 76px;
  height: 76px;
  border-radius: 999px;
  background: var(--crq-accent-soft);
  color: var(--crq-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}
.crq-book-success h2 { font-size: 2.25rem; margin: 0 0 14px; font-weight: 500; }
.crq-book-success p { color: var(--crq-muted); margin: 0 0 32px; line-height: 1.6; }

/* ================================================================
   FOOTER
   ================================================================ */
.crq-footer { background: #111; color: #fff; padding: 80px 24px 32px; }
.crq-footer-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px;
}
@media (max-width: 900px) { .crq-footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .crq-footer-grid { grid-template-columns: 1fr; } }
.crq-footer-logo { height: 60px; width: auto; margin-bottom: 16px; }
.crq-footer p { color: rgba(255,255,255,.6); font-size: 13px; line-height: 1.6; }
.crq-footer h4 { font-size: 1.2rem; margin: 0 0 20px; color: #fff; }
.crq-contact {
  display: flex; align-items: center; gap: 8px; color: rgba(255,255,255,.75);
  font-size: 14px; padding: 6px 0; transition: color .2s;
}
.crq-contact:hover { color: #fff; }
.crq-address { display: flex; align-items: flex-start; gap: 8px; color: rgba(255,255,255,.75); font-size: 14px; }
.crq-social { display: flex; gap: 12px; margin-top: 24px; }
.crq-social a {
  width: 36px; height: 36px; border: 1px solid rgba(255,255,255,.3); border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; transition: all .2s;
}
.crq-social a:hover { background: #fff; color: #111; }
.crq-footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); margin-top: 56px; padding-top: 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  color: rgba(255,255,255,.5); font-size: 12px;
}
.crq-footer-menu { display: flex; gap: 24px; list-style: none; padding: 0; margin: 0; }

/* ================================================================
   SCROLL REVEAL ANIMATIONS
   ================================================================ */
.reveal {
  opacity: 0;
  transition: opacity .9s cubic-bezier(.25,.46,.45,.94), transform .9s cubic-bezier(.25,.46,.45,.94), filter .9s ease;
  will-change: opacity, transform;
}
.reveal-up    { transform: translate3d(0, 40px, 0); }
.reveal-down  { transform: translate3d(0, -40px, 0); }
.reveal-left  { transform: translate3d(-50px, 0, 0); }
.reveal-right { transform: translate3d(50px, 0, 0); }
.reveal-zoom  { transform: scale(.94); }
.reveal-blur  { filter: blur(8px); transform: translate3d(0, 20px, 0); }
.reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0);
}
.stagger > * { opacity: 0; transform: translate3d(0, 30px, 0); transition: opacity .8s ease, transform .8s ease; }
.stagger.is-visible > *:nth-child(1) { opacity: 1; transform: none; transition-delay: 0ms; }
.stagger.is-visible > *:nth-child(2) { opacity: 1; transform: none; transition-delay: 120ms; }
.stagger.is-visible > *:nth-child(3) { opacity: 1; transform: none; transition-delay: 240ms; }
.stagger.is-visible > *:nth-child(4) { opacity: 1; transform: none; transition-delay: 360ms; }
.stagger.is-visible > *:nth-child(5) { opacity: 1; transform: none; transition-delay: 480ms; }
.stagger.is-visible > *:nth-child(6) { opacity: 1; transform: none; transition-delay: 600ms; }
.stagger.is-visible > *:nth-child(7) { opacity: 1; transform: none; transition-delay: 720ms; }
.stagger.is-visible > *:nth-child(8) { opacity: 1; transform: none; transition-delay: 840ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .stagger > * { opacity: 1 !important; transform: none !important; filter: none !important; transition: none !important; }
  .crq-pool { background-attachment: scroll; }
}

/* ================================================================
   MOBILE FIXES - menu aberto + hero video
   ================================================================ */
@media (max-width: 980px) {
  .crq-header.is-open,
  .crq-header.is-open.is-transparent {
    background: #faf8f4 !important;
    box-shadow: 0 1px 0 rgba(0,0,0,.06) !important;
    padding: 12px 0 !important;
  }

  .crq-header.is-open .crq-logo .logo-light { display: none !important; }
  .crq-header.is-open .crq-logo .logo-dark  { display: block !important; }

  .crq-header.is-open .crq-menu,
  .crq-header.is-open.is-transparent .crq-menu {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #faf8f4 !important;
    padding: 18px 28px 22px;
    box-shadow: 0 14px 34px rgba(0,0,0,.12);
  }

  .crq-header.is-open .crq-menu a,
  .crq-header.is-open.is-transparent .crq-menu a,
  .crq-header.is-open .crq-book-link,
  .crq-header.is-open .crq-burger {
    color: var(--crq-dark) !important;
  }

  .crq-header.is-open .crq-menu li { border-bottom: 1px solid var(--crq-border); }
  .crq-header.is-open .crq-menu li:last-child { border-bottom: 0; }
  .crq-header.is-open .crq-menu a { padding: 15px 0; }

  /* Keep language switcher visible + compact on mobile */
  .crq-lang-switcher { padding: 3px; }
  .crq-lang-item a   { min-width: 26px; height: 22px; padding: 0 8px; font-size: 10px; }
}

@media (max-width: 768px) {
  .crq-hero {
    height: auto;
    min-height: 760px;
  }

  .crq-hero-video {
    height: 100%;
    object-fit: cover;
  }

  .crq-hero-content {
    min-height: 760px;
    height: auto;
    justify-content: flex-start;
    padding: 132px 20px 56px;
  }

  .crq-eyebrow {
    gap: 10px;
    font-size: 10px;
    letter-spacing: .32em;
    margin-bottom: 18px;
    width: 100%;
    justify-content: center;
  }

  .crq-line { width: 30px; }

  .crq-hero-title {
    font-size: clamp(2.35rem, 13vw, 3.35rem);
    line-height: 1.04;
    margin-bottom: 18px;
    max-width: 100%;
  }

  .crq-hero-text {
    font-size: 1rem;
    line-height: 1.45;
    margin-bottom: 22px;
    max-width: 340px;
  }

  .crq-hero-cta {
    width: 100%;
    gap: 12px;
  }

  .crq-hero-cta a {
    width: min(100%, 360px);
    justify-content: center;
  }

  .crq-hero-features {
    position: static;
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    max-width: 360px;
    width: 100%;
    padding: 0;
    margin: 28px auto 0;
    text-align: left;
  }

  .crq-feature {
    align-items: center;
    gap: 14px;
  }

  .crq-feature-icon {
    width: 54px;
    height: 54px;
  }

  .crq-feature-title { font-size: 1.45rem; }
  .crq-feature-desc { font-size: .82rem; line-height: 1.35; }
  .crq-scroll-indicator { display: none; }
}

@media (max-width: 420px) {
  .crq-header-inner { padding: 0 20px; }
  .crq-logo img { height: 42px; }
  .crq-hero-content { padding-top: 118px; }
  .crq-hero-title { font-size: clamp(2.15rem, 12vw, 3rem); }
  .crq-hero-text { max-width: 310px; }
}
