:root {
  --primary: #00969A; /* Azul Esverdeado Piscina */
  --primary-dark: #007175;
  --secondary: #FDF0D5; /* Areia Praia Light */
  --sand-dark: #C6AC8F;
  --white: #FFFFFF;
  --dark: #003049; /* Deep Navy for text */
  --text: #334155;
  --accent: #FFB5A7; /* Coral accent */
  --transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow: 0 15px 35px rgba(0, 48, 73, 0.1);
  --font-main: 'Inter', sans-serif;
  --font-title: 'Outfit', sans-serif;
}

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

html, body {
  overflow-x: hidden; /* Prevent horizontal scroll globally */
  width: 100%;
  position: relative;
  margin: 0;
  padding: 0;
  min-height: 100%; /* Ensure body covers full screen */
}

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  font-family: var(--font-main);
  background-color: var(--white);
  color: var(--text);
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: var(--font-title);
  color: var(--dark);
  font-weight: 700;
}

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

ul {
  list-style: none;
}

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

/* Base Layout */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

section {
  padding: 100px 0;
}

/* Google Reviews Section */
.google-rating {
    margin-top: 10px;
    font-weight: 600;
    color: var(--primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.google-rating .stars {
    color: #FFD700;
    font-size: 1.5rem;
    letter-spacing: 2px;
}

.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.review-card {
    background: #FEF9F0; /* Light sand tone */
    padding: 30px;
    border-radius: 25px;
    box-shadow: 0 10px 30px rgba(0, 48, 73, 0.05);
    border: 1px solid rgba(0, 180, 216, 0.05);
    transition: var(--transition);
}

.review-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 48, 73, 0.1);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.review-header img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-light);
}

.review-header h4 {
    font-size: 1.1rem;
    margin-bottom: 2px;
}

.review-header span {
    font-size: 0.85rem;
    color: #888;
}

.review-card p {
    font-size: 0.95rem;
    font-style: italic;
    color: var(--text);
    margin-bottom: 20px;
    line-height: 1.6;
}

.review-stars {
    color: #FFD700;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.btn-outline-primary {
    display: inline-flex;
    align-items: center;
    padding: 15px 35px;
    border: 2px solid var(--primary); /* Visible border */
    color: var(--primary);
    background: transparent; /* No fill by default */
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    text-decoration: none;
    box-shadow: 0 5px 15px rgba(0, 180, 216, 0.1);
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 180, 216, 0.2);
}

/* Animations - Initial States */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-50px);
  transition: 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal-right {
  opacity: 0;
  transform: translateX(50px);
  transition: 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.zoom-in {
  opacity: 0;
  transform: scale(0.85);
  transition: 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.active, 
.reveal-left.active, 
.reveal-right.active, 
.zoom-in.active {
  opacity: 1;
  transform: translate(0, 0) scale(1);
}

/* Delay modifiers for sequential reveals */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* Dynamic Background Elements - New Hollow Outline Style */
.bg-icon {
  position: absolute;
  z-index: -1;
  opacity: 0.15;
  pointer-events: none;
  color: var(--primary); /* Controlled via color property */
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.bg-icon svg {
    width: 100%;
    height: 100%;
}

.turtle { width: 140px; }
.shell { width: 100px; }
.starfish { width: 90px; }

/* Grain Texture Overlay */
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
    z-index: 10000;
}

/* New floating animations */
@keyframes drift {
    0% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(5px, -10px) rotate(5deg); } /* Reduced translation to prevent overflow */
    66% { transform: translate(-5px, 10px) rotate(-3deg); }
    100% { transform: translate(0, 0) rotate(0deg); }
}

.floating-1 { animation: drift 15s infinite ease-in-out; }
.floating-2 { animation: drift 20s infinite ease-in-out reverse; }
.floating-3 { animation: drift 18s infinite ease-in-out; }
.floating-4 { animation: drift 25s infinite ease-in-out; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
  box-shadow: 0 5px 15px rgba(64, 167, 181, 0.3);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(64, 167, 181, 0.4);
}

.btn-whatsapp {
  background-color: #25D366;
  color: var(--white);
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  z-index: 9999;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-whatsapp.lift {
  bottom: 90px; /* Lift up to avoid footer text */
}

.btn-whatsapp:hover {
  transform: scale(1.1) translateY(-5px);
  box-shadow: 0 15px 30px rgba(37, 211, 102, 0.4);
}

/* Header/Nav */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 30px 0;
  transition: var(--transition);
}

header.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  padding: 12px 0;
  box-shadow: 0 10px 30px rgba(0, 48, 73, 0.05);
}

.logo h2 {
    font-size: 1.5rem;
    margin: 0;
    color: var(--white); /* Default white for hero */
    transition: var(--transition);
}

header.scrolled .logo h2 {
    color: var(--primary);
}

header.scrolled .nav-links a {
    color: var(--dark);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo-circle {
  width: 50px;
  height: 50px;
  background: var(--white);
  border-radius: 50%;
  padding: 5px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.logo-circle img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.logo:hover .logo-circle {
  transform: scale(1.05) rotate(5deg);
}

.logo h2 {
    font-size: 1.5rem;
    margin: 0;
    color: var(--white); /* White by default */
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--white); /* White by default */
  position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

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

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

.nav-mobile-btn {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Sections */
.section-secondary {
    background-color: var(--secondary);
    border-top: 1px solid var(--sand-dark);
    border-bottom: 1px solid var(--sand-dark);
}

.page-hero {
    position: relative;
    height: 100vh; /* Set to full viewport height */
    width: 100vw;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-align: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 48, 73, 0.4) 0%, rgba(0, 48, 73, 0.7) 100%);
    z-index: 1;
}

.page-hero .container {
    position: relative;
    z-index: 2;
}

/* Specific Subpage Backgrounds */
.hero-acomodacoes { background-image: url('../img/heroacomodacoes.webp'); }
.hero-praias { background-image: url('../img/heropraias.webp'); }
.hero-galeria { background-image: url('../img/heronossoespaco.webp'); }
.hero-contato { background-image: url('../img/herocontato.webp'); }

.section-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    position: relative;
}

.section-title::before {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

/* Hero */
.hero {
    height: 100vh;
    width: 100vw; /* Explicit full width */
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    color: var(--white);
    text-align: center;
    background: url('../img/heroindex.webp') no-repeat center center;
    background-size: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 48, 73, 0.4) 0%, rgba(0, 48, 73, 0.7) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 0 20px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.2;
    color: var(--white);
    text-shadow: 0 4px 15px rgba(0, 48, 73, 0.5); /* Added for readability */
}

.hero p {
    font-size: 1.4rem;
    margin-bottom: 35px;
    opacity: 0.9;
    color: var(--white);
    text-shadow: 0 2px 10px rgba(0, 48, 73, 0.4);
}

/* Grid Layouts */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

/* Pet Friendly */
.pet-friendly {
    display: flex;
    align-items: center;
    gap: 20px;
    background: var(--white);
    padding: 20px;
    border-radius: 15px;
    margin-top: 30px;
    box-shadow: var(--shadow);
}

.pet-friendly i {
    font-size: 2.5rem;
    color: var(--primary);
}

/* Infra Section */
.infra-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.infra-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    padding: 50px 40px;
    border-radius: 25px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 20px 40px rgba(0, 48, 73, 0.05);
    transition: var(--transition);
}

.infra-card:hover {
    transform: translateY(-15px);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 30px 60px rgba(0, 48, 73, 0.1);
}

.infra-card i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.infra-card h3 {
    margin-bottom: 15px;
}

/* Ingoo Section */
.ingoo-box {
    background: linear-gradient(135deg, #40A7B5 0%, #2D7A85 100%);
    color: var(--white);
    padding: 60px;
    border-radius: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 20px 40px rgba(64, 167, 181, 0.3);
}

.ingoo-content h2 {
    color: var(--white);
    font-size: 2.5rem;
}

.ingoo-content h3 {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 20px;
}

.ingoo-visual i {
    font-size: 8rem;
    opacity: 0.2;
}

/* Footer */
footer {
    position: relative;
    background: url('../img/rodape.png') no-repeat center bottom;
    background-size: cover;
    background-attachment: fixed; /* Parallax effect */
    color: var(--white);
    padding: 100px 0 30px;
    overflow: hidden;
    display: block;
    margin-bottom: 0 !important;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(0deg, rgba(0, 48, 73, 0.9) 0%, rgba(0, 48, 73, 0.5) 100%);
    z-index: 1;
}

footer .container {
    position: relative;
    z-index: 2;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 50px;
    margin-bottom: 50px;
}

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

.footer-social {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-social a {
    color: var(--white);
    opacity: 0.8;
}

.footer-social a:hover {
    opacity: 1;
    color: var(--primary);
}

.footer-copy {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.6;
    font-size: 0.9rem;
}

.footer-link {
    font-weight: bold;
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.footer-link:hover {
    opacity: 1;
    color: var(--primary);
}

/* Subpages Hero */
.page-hero {
    background-color: var(--secondary);
    padding: 150px 0 80px;
    text-align: center;
}

.page-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--white);
    text-shadow: 0 4px 15px rgba(0, 48, 73, 0.5); /* Added for readability */
}

.page-hero p {
    color: var(--white);
    text-shadow: 0 2px 10px rgba(0, 48, 73, 0.4);
}

/* Room Cards */
.rooms-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.room-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 50px rgba(0, 48, 73, 0.08);
    transition: var(--transition);
}

.room-card:hover {
    transform: translateY(-15px) scale(1.02);
    box-shadow: 0 40px 80px rgba(0, 48, 73, 0.15);
}

.room-img {
    position: relative;
    height: 300px;
}

.room-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    image-rendering: -webkit-optimize-contrast; /* Sharpen images */
    filter: brightness(1.02) contrast(1.05); /* Make images pop */
    backface-visibility: hidden;
}

.room-tag {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--primary);
    color: var(--white);
    padding: 8px 15px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
}

.room-info {
    padding: 30px;
}

.room-info h3 {
    margin-bottom: 10px;
    font-size: 1.5rem;
}

.room-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
}

.room-info p {
    margin-bottom: 20px;
    color: var(--text);
}

.room-note {
    background: #f9f9f9;
    padding: 10px 15px;
    border-radius: 10px;
    font-size: 0.85rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.room-features {
    margin-bottom: 20px;
    font-weight: 600;
    color: var(--dark);
}

/* Map Section */
.map-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.map-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.map-item i {
    font-size: 2rem;
    color: var(--primary);
}

.map-container.static-map {
    position: relative;
    width: 100%;
    min-height: 400px;
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 5px solid var(--white);
}

.map-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


.map-placeholder {
    height: 400px;
    background: #eee;
    border-radius: 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #999;
}

.map-placeholder i {
    font-size: 4rem;
    margin-bottom: 10px;
}

/* Destination Cards */
.dest-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.dest-card {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 50px rgba(0, 48, 73, 0.08);
    transition: var(--transition);
}

.dest-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(0, 48, 73, 0.12);
}

.dest-img {
    height: 250px;
}

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

.dest-info {
    padding: 25px;
}

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

/* Gallery Section */
.gallery-section {
    margin-bottom: 100px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 50px;
    align-items: center;
}

.gallery-grid.rev-grid {
    grid-template-columns: 2fr 3fr;
}

.gallery-item {
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.gallery-item img {
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-info p {
    font-size: 1.2rem;
    color: var(--text);
    margin-bottom: 25px;
}

.space-features {
    list-style: none;
    margin-top: 20px;
}

.space-features li {
    margin-bottom: 12px;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.space-features i {
    color: var(--primary);
    font-size: 0.9rem;
}

/* FAQ & Contact */
.faq-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 80px;
}

.faq-item {
    background: #f9f9f9;
    border-radius: 15px;
    margin-bottom: 20px;
    overflow: hidden;
    transition: var(--transition);
}

.faq-question {
    padding: 25px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question i {
    transition: transform 0.3s ease;
}

.faq-answer {
    padding: 0 25px 25px;
    display: none;
    color: var(--text);
}

.faq-item.active {
    background: var(--white);
    box-shadow: var(--shadow);
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
    color: var(--primary);
}

.faq-item.active .faq-answer {
    display: block;
}

.contact-card {
    background: var(--white);
    padding: 30px;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.contact-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #eee;
}

.contact-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.contact-item i {
    font-size: 1.8rem;
    color: var(--primary);
}

.contact-item strong {
    display: block;
    font-size: 1.1rem;
    color: var(--dark);
}

@media (max-width: 992px) {
    .faq-grid { grid-template-columns: 1fr; gap: 50px; }
}

/* Accommodations Home Grid */
.rooms-grid-home {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.room-card-mini {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 30px rgba(0, 48, 73, 0.05);
    transition: var(--transition);
}

.room-card-mini:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 20px 50px rgba(0, 48, 73, 0.1);
}

/* Room Image Carousel */
.carousel-container {
    position: relative;
    overflow: hidden;
    height: 300px;
}

.carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-track img {
    min-width: 100%;
    height: 100%;
    object-fit: cover;
    flex-shrink: 0;
}

.room-card-mini .card-img {
    aspect-ratio: 1 / 1;
    overflow: hidden;
}

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

.room-card-mini:hover .card-img img {
    transform: scale(1.1);
}

.room-card-mini .card-body {
    padding: 25px;
    text-align: center;
}

.room-card-mini h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

/* Our Space Grid */
.space-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 400px);
    gap: 20px;
    margin-top: 40px;
}

.space-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.space-item.large {
    grid-row: span 2;
}

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

.space-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px 25px;
    background: linear-gradient(0deg, rgba(0, 48, 73, 0.7) 0%, transparent 100%);
    color: var(--white);
    opacity: 1; /* Always visible */
    transform: translateY(0);
}

.space-overlay h3 {
    color: var(--white);
    margin-bottom: 2px;
    font-size: 1.1rem;
}

.space-overlay p {
    font-size: 0.85rem;
    opacity: 0.9;
}

.space-item:hover img {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .space-grid {
        grid-template-columns: 1fr;
        grid-template-rows: repeat(4, 350px);
    }
    .space-item.large {
        grid-row: span 1;
    }
}

/* Location Visual */
.map-card {
    border-radius: 30px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 48, 73, 0.15);
    border: 5px solid var(--white);
}

/* Final CTA */
.final-cta {
    padding: 120px 0;
    background: var(--primary-dark);
    position: relative;
    overflow: hidden;
}

.cta-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    padding: 80px 60px;
    border-radius: 40px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.cta-box h2 {
    color: var(--white);
    font-size: 3rem;
    margin-bottom: 20px;
}

.cta-box p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.btn-outline-white {
    background: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

/* --- RESPONSIVENESS (Mobile First) --- */

/* Tablet & Smaller Desktop */
@media (max-width: 1024px) {
    .container { width: 92%; }
    .hero h1 { font-size: 3.5rem; }
    .grid-2 { gap: 30px; }
}

/* Mobile Large */
@media (max-width: 768px) {
    section { padding: 60px 0; }
    
    .nav-mobile-btn { 
        display: block; 
        color: var(--white); 
        z-index: 1001;
        transition: var(--transition);
    }

    .nav-mobile-btn .fa-times {
        color: var(--primary) !important; /* Blue when menu is open */
    }

    header.scrolled .nav-mobile-btn {
        color: var(--primary);
    }
    
    .nav-links { 
        position: fixed;
        top: 0;
        right: -100%; /* Hidden by default */
        width: 80%;
        height: 100vh;
        background: var(--white);
        display: flex !important;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
        z-index: 1000;
        gap: 40px;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.5rem;
        color: var(--dark) !important; /* Always dark in mobile menu */
    }
    
    .hero h1 { font-size: 2.8rem; }
    .hero p { font-size: 1.1rem; }
    
    .grid-2 { grid-template-columns: 1fr; }
    
    /* Force specific order for location */
    .location-highlight .grid-2 {
        display: flex;
        flex-direction: column-reverse;
    }
    
    .rooms-grid-home {
        grid-template-columns: 1fr;
    }
    
    .space-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }
    
    .space-item {
        height: 250px;
    }
    
    .space-item.large {
        grid-row: span 1;
        height: 300px;
    }
    
    .cta-box {
        padding: 50px 20px;
    }
    
    .cta-box h2 { font-size: 2.2rem; }
    
    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .cta-buttons .btn {
        width: 100%;
        text-align: center;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .dest-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-social {
        align-items: center;
    }

    /* Professional 1-column layout for accommodations on mobile */
    .rooms-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .room-img {
        height: 250px;
    }

    /* Nosso Espaço Mobile Reordering (Title -> Square Photo -> Description) */
    .gallery-grid, .gallery-grid.rev-grid {
        display: flex;
        flex-direction: column;
        gap: 25px;
    }

    .gallery-info {
        display: contents; /* Allow reordering of children */
    }

    .gallery-grid .section-title {
        order: 1;
        text-align: center;
        margin-bottom: 5px;
        width: 100%;
    }

    /* Force square aspect ratio for space images on mobile */
    .gallery-item {
        order: 2;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
        aspect-ratio: 1 / 1;
        height: auto;
    }

    /* Footer Mobile Centering */
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

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

    .footer-info .logo-circle {
        margin-left: auto;
        margin-right: auto;
    }

    .footer-social {
        align-items: center;
    }

    .gallery-item img {
        height: 100% !important;
        object-fit: cover;
    }

    .gallery-info p {
        order: 3;
        text-align: center;
    }

    .space-features {
        order: 4;
        padding-left: 20px;
    }
}

/* Mobile Small */
@media (max-width: 480px) {
    .hero h1 { font-size: 2.2rem; }
    .section-title { font-size: 2rem; }
    
    .infra-card {
        padding: 30px 20px;
    }
}
/* Nearby Distances Styles */
.map-nearby {
    margin-top: 35px;
    padding-top: 30px;
    border-top: 1px solid rgba(0, 180, 216, 0.1);
    display: grid;
    gap: 25px;
}

.nearby-section h4 {
    color: var(--primary);
    font-size: 1.1rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nearby-list {
    list-style: none;
    padding: 0;
}

.nearby-list li {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 0.95rem;
    border-bottom: 1px dashed rgba(0, 48, 73, 0.05);
}

.nearby-list li:last-child {
    border-bottom: none;
}

.nearby-list li span:last-child {
    font-weight: 600;
    color: var(--primary);
}
/* Reviews Carousel - Robust Layout */
.reviews-carousel-container {
    position: relative;
    overflow: hidden;
    padding: 20px 0 60px;
    width: 100%;
}

.reviews-carousel-track {
    display: flex;
    align-items: stretch;
    transition: transform 0.8s cubic-bezier(0.45, 0, 0.55, 1);
}

.reviews-carousel-item {
    flex: 0 0 33.333333%; /* 3 items visible */
    padding: 0 15px; /* Replaces the gap to ensure transform math is easy */
    box-sizing: border-box;
}

.reviews-carousel-item .review-card {
    display: flex;
    flex-direction: column;
    padding: 40px;
    height: 100%; /* Fill the stretch container */
    background: #FEF9F0;
    border-radius: 30px;
    box-shadow: 0 15px 40px rgba(0, 48, 73, 0.08);
    border: 1px solid rgba(0, 180, 216, 0.1);
    box-sizing: border-box;
    text-align: left;
}
/* Utility to hide AI watermarks on generated images */
.hide-watermark {
    overflow: hidden !important;
    position: relative;
}

.hide-watermark img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transform: scale(1.2); /* Increased zoom to 20% to ensure watermark is hidden */
    transform-origin: center center;
    transition: transform 0.5s ease;
}

.hide-watermark:hover img {
    transform: scale(1.25); /* Maintain hover animation */
}

.review-card p {
    font-size: 1.1rem;
    line-height: 1.7;
    margin: 20px 0;
    flex-grow: 1;
    white-space: pre-line;
    color: var(--dark);
}

.review-stars {
    margin-top: auto;
    color: #FFB703;
    font-size: 1rem;
}

.review-stars small {
    display: block;
    opacity: 0.8;
    margin-top: 8px;
    color: var(--primary); /* Use blue for better contrast than yellow */
    font-weight: 600;
}

@media (max-width: 992px) {
    .reviews-carousel-item {
        flex-basis: 50%; /* 2 items visible */
    }
}

@media (max-width: 768px) {
    .reviews-carousel-item {
        flex-basis: 100%; /* 1 item visible */
    }
    
    .reviews-carousel-item .review-card {
        padding: 30px 20px;
    }

    .review-card p {
        font-size: 1rem;
    }
}
