/* ==========================================================================
   RICCI BEACHFRONT SANTOS — PREMIUM BOUTIQUE STYLE SYSTEM
   ========================================================================== */

/* 1. Global Reset & Variables */
:root {
    /* Color Palette */
    --color-primary: #0b1a30;     /* Navy Azul Litorâneo Profundo */
    --color-primary-light: #162a4a;
    --color-accent: #c29853;      /* Dourado Areia Fina */
    --color-accent-dark: #a17835;
    --color-accent-light: #f5eedf;
    --color-text-main: #1f2d3d;   /* Chumbo Escuro */
    --color-text-muted: #5e6e82;  /* Cinza Elegante */
    --color-bg-light: #f8fafc;    /* Off-white Gelado */
    --color-bg-white: #ffffff;
    --color-success: #10b981;     /* Verde Sucesso */
    --color-danger: #ef4444;
    
    /* Styling Tokens */
    --font-headings: 'Montserrat', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition-smooth: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --box-shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
    --box-shadow-medium: 0 15px 40px rgba(11, 26, 48, 0.08);
    --box-shadow-hover: 0 25px 50px rgba(11, 26, 48, 0.15);
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    color: var(--color-text-main);
    background-color: var(--color-bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography elements */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-headings);
    font-weight: 700;
    line-height: 1.25;
}

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

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

hr.divider {
    border: none;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    margin: 24px 0;
}

/* 2. Global Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-family: var(--font-headings);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    outline: none;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-bg-white);
}

.btn-primary:hover {
    background-color: var(--color-primary-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(11, 26, 48, 0.2);
}

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

.btn-secondary:hover {
    background-color: var(--color-accent-dark);
    color: var(--color-bg-white);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(194, 152, 83, 0.3);
}

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

.btn-outline:hover {
    background-color: var(--color-primary);
    color: var(--color-bg-white);
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.05rem;
    border-radius: var(--border-radius-sm);
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 50px;
    font-family: var(--font-headings);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-premium {
    background-color: var(--color-primary);
    color: var(--color-bg-white);
}

.badge-comfort {
    background-color: var(--color-accent-light);
    color: var(--color-accent-dark);
}

.badge-accent {
    background-color: var(--color-accent);
    color: var(--color-primary);
}

/* 3. Header & Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(11, 26, 48, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 16px 0;
    transition: var(--transition-smooth);
}

.navbar.scrolled {
    padding: 12px 0;
    background-color: var(--color-primary);
    box-shadow: var(--box-shadow-soft);
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    width: 330px;
    height: auto;
    margin-top: -20px;
    margin-bottom: -20px;
}

.logo-img {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: contain;
    transition: all 0.3s ease;
}

.navbar.scrolled .logo-img {
    max-height: 150px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    color: rgba(255, 255, 255, 0.85);
    font-family: var(--font-headings);
    font-weight: 500;
    font-size: 0.9rem;
}

.nav-links a:not(.btn):hover {
    color: var(--color-accent);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--color-bg-white);
    cursor: pointer;
}

/* Mobile Drawer */
.mobile-drawer {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background-color: var(--color-primary);
    z-index: 1100;
    padding: 80px 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    box-shadow: -10px 0 30px rgba(0, 0, 0, 0.25);
    transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.mobile-drawer.open {
    right: 0;
}

.close-drawer {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    color: var(--color-bg-white);
    cursor: pointer;
}

.drawer-link {
    color: rgba(255, 255, 255, 0.9);
    font-family: var(--font-headings);
    font-weight: 600;
    font-size: 1.1rem;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.drawer-link.btn {
    border-bottom: none;
    margin-top: 16px;
    text-align: center;
    color: var(--color-primary);
}

/* 4. Hero Section & Property Cards */
.hero {
    position: relative;
    min-height: 100vh;
    padding-top: 220px;
    padding-bottom: 80px;
    display: flex;
    align-items: center;
    background-image: url('AP%204A/sadfasdf.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(11, 26, 48, 0.8) 0%, rgba(11, 26, 48, 0.4) 60%, rgba(248, 250, 252, 1) 100%);
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.hero-content {
    max-width: 720px;
    color: var(--color-bg-white);
}

.hero-badge {
    display: inline-block;
    background-color: var(--color-accent);
    color: var(--color-primary);
    padding: 6px 14px;
    border-radius: 50px;
    font-family: var(--font-headings);
    font-weight: 700;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 20px;
    box-shadow: 0 4px 10px rgba(194, 152, 83, 0.2);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 24px;
    color: var(--color-accent);
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    font-weight: 400;
}

/* Apartments Cards Grid */
.apartamentos-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    width: 100%;
    margin-top: 16px;
}

.ap-card {
    background-color: var(--color-bg-white);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--box-shadow-medium);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.ap-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--box-shadow-hover);
}

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

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

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

.ap-card-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 5;
    background: rgba(255, 255, 255, 0.85) !important;
    color: var(--color-primary) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 24px rgba(11, 26, 48, 0.12);
    font-weight: 700;
}

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

.ap-card-title {
    font-size: 1.5rem;
    color: var(--color-primary);
}

.ap-card-location {
    font-size: 0.9rem;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: -12px;
}

.ap-card-location i {
    width: 16px;
    color: var(--color-accent);
}

.ap-card-specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 16px;
    font-size: 0.85rem;
    color: var(--color-text-main);
    background-color: var(--color-bg-light);
    padding: 16px;
    border-radius: var(--border-radius-sm);
    margin-bottom: 8px;
}

.ap-card-specs span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.ap-card-specs i {
    width: 16px;
    color: var(--color-primary-light);
}

.ap-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 20px;
}

.ap-card-price {
    display: flex;
    flex-direction: column;
}

.price-label {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.price-value {
    font-family: var(--font-headings);
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--color-primary);
    line-height: 1;
}

.price-period {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--color-text-muted);
}

/* 5. Airbnb Style Modal System */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(11, 26, 48, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.modal-container {
    position: relative;
    width: 92%;
    max-width: 1200px;
    height: 90vh;
    background-color: var(--color-bg-white);
    border-radius: var(--border-radius-md);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
    z-index: 5;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: translateY(40px) scale(0.95);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

.modal-close-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    z-index: 10;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: var(--color-bg-white);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--color-primary);
    transition: var(--transition-smooth);
}

.modal-close-btn:hover {
    background-color: var(--color-primary);
    color: var(--color-bg-white);
    transform: scale(1.05);
}

.modal-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 48px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.modal-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.modal-header h2 {
    font-size: 2.2rem;
    color: var(--color-primary);
}

.modal-location {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-location i {
    color: var(--color-accent);
}

/* Airbnb Photo Grid */
.airbnb-photo-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 8px;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    height: 400px;
    position: relative;
}

.grid-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.3s ease, transform 0.5s ease;
    cursor: pointer;
}

.grid-img:hover {
    filter: brightness(0.9);
    transform: scale(1.02);
}

.grid-main-img-wrapper {
    height: 100%;
    overflow: hidden;
}

.grid-sub-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 8px;
    height: 100%;
}

.sub-img-wrapper {
    overflow: hidden;
    height: 100%;
    position: relative;
}

.view-all-photos-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(11, 26, 48, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--color-bg-white);
    font-family: var(--font-headings);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.view-all-photos-overlay:hover {
    background-color: rgba(11, 26, 48, 0.75);
}

/* Layout Columns */
.modal-content-layout {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 48px;
    align-items: start;
}

.modal-details-col {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.owner-intro {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.owner-intro h3 {
    font-size: 1.3rem;
    color: var(--color-primary);
}

.owner-intro p {
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

.owner-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background-color: var(--color-accent-light);
    color: var(--color-accent-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-headings);
    font-weight: 700;
    font-size: 1.1rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.key-features {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.feature-icon {
    width: 24px;
    height: 24px;
    color: var(--color-accent-dark);
    margin-top: 2px;
    flex-shrink: 0;
}

.feature-item h4 {
    font-size: 1rem;
    color: var(--color-primary);
    margin-bottom: 2px;
}

.feature-item p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* Tab System */
.tab-navigation {
    display: flex;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    gap: 8px;
    margin-top: 12px;
}

.tab-btn {
    background: none;
    border: none;
    padding: 12px 20px;
    font-family: var(--font-headings);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    cursor: pointer;
    position: relative;
    transition: var(--transition-smooth);
}

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

.tab-btn.active {
    color: var(--color-primary);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--color-accent);
}

.tab-content {
    display: none;
    padding: 16px 0;
    animation: fadeIn 0.4s ease;
}

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

.description-text {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 24px;
}

.amenity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--color-text-main);
    font-weight: 500;
}

.amenity-item i {
    width: 20px;
    color: var(--color-success);
}

.pricing-details-box {
    background-color: var(--color-bg-light);
    border-radius: var(--border-radius-sm);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    border-left: 4px solid var(--color-accent);
}

.price-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    color: var(--color-text-main);
}

.price-row strong {
    color: var(--color-primary);
    font-size: 1.1rem;
}

.price-row.highlight {
    font-weight: 700;
}

.price-row.highlight strong {
    color: var(--color-accent-dark);
}

.terms-note {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    font-style: italic;
    line-height: 1.4;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 12px;
}

/* Sticky Booking Widget */
.modal-booking-col {
    position: sticky;
    top: 0;
}

.booking-card {
    background-color: var(--color-bg-white);
    border: 1px solid rgba(11, 26, 48, 0.08);
    border-radius: var(--border-radius-md);
    padding: 32px;
    box-shadow: var(--box-shadow-medium);
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.booking-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.booking-price {
    font-family: var(--font-headings);
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--color-primary);
}

.booking-period {
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.booking-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 0.9rem;
}

.booking-rating i {
    color: #eab308;
    fill: #eab308;
    width: 16px;
}

.booking-options {
    background-color: var(--color-bg-light);
    border-radius: var(--border-radius-sm);
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.option-field label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-primary);
    display: block;
    margin-bottom: 4px;
}

.booking-select {
    width: 100%;
    background: none;
    border: none;
    outline: none;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-main);
    cursor: pointer;
}

.btn-large.btn-block {
    padding: 16px;
    border-radius: var(--border-radius-sm);
}

.booking-disclaimer {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    text-align: center;
}

.booking-summary-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 16px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.summary-row.total {
    font-weight: 700;
    color: var(--color-primary);
    font-size: 0.95rem;
}

.pix-tag {
    color: var(--color-success);
    font-weight: 700;
}

/* 6. Fullscreen Slider/Carousel Modal */
.slider-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(11, 26, 48, 0.97);
    z-index: 2500;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    padding: 24px;
}

.slider-modal.open {
    opacity: 1;
    pointer-events: auto;
}

.slider-close-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.slider-close-btn:hover {
    color: var(--color-bg-white);
    transform: scale(1.1);
}

.slider-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-track-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-active-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: var(--border-radius-sm);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    animation: zoomEffect 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--color-bg-white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    z-index: 10;
}

.slider-arrow:hover {
    background-color: var(--color-bg-white);
    color: var(--color-primary);
}

.prev-arrow {
    left: -76px;
}

.next-arrow {
    right: -76px;
}

.slider-counter {
    color: rgba(255, 255, 255, 0.7);
    font-family: var(--font-headings);
    font-weight: 500;
    font-size: 0.9rem;
    margin-top: 24px;
}

.slider-thumbnails {
    display: flex;
    gap: 8px;
    margin-top: 24px;
    max-width: 100%;
    overflow-x: auto;
    padding-bottom: 8px;
}

.slider-thumb {
    width: 60px;
    height: 44px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0.5;
    transition: var(--transition-smooth);
    border: 2px solid transparent;
}

.slider-thumb.active, .slider-thumb:hover {
    opacity: 1;
    border-color: var(--color-accent);
}

/* 7. Alugue Ambos Section */
.alugue-ambos-section {
    padding: 100px 0;
    background-color: var(--color-bg-light);
}

.alugue-ambos-card {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    border-radius: var(--border-radius-lg);
    padding: 64px;
    color: var(--color-bg-white);
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
    align-items: center;
    box-shadow: var(--box-shadow-medium);
}

.alugue-ambos-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
}

.alugue-ambos-content h2 {
    font-size: 2.5rem;
    line-height: 1.2;
}

.alugue-ambos-content p {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
}

.alugue-ambos-visual {
    position: relative;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.visual-stack {
    position: relative;
    width: 80%;
    height: 100%;
}

.stack-img {
    position: absolute;
    width: 80%;
    height: 220px;
    object-fit: cover;
    border-radius: var(--border-radius-md);
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
    border: 3px solid rgba(255,255,255,0.1);
    transition: var(--transition-smooth);
}

.stack-img-1 {
    top: 0;
    left: 0;
    z-index: 2;
}

.stack-img-2 {
    bottom: 0;
    right: 0;
    z-index: 1;
}

.alugue-ambos-card:hover .stack-img-1 {
    transform: translate(-10px, -10px) scale(1.02);
}

.alugue-ambos-card:hover .stack-img-2 {
    transform: translate(10px, 10px) scale(1.02);
}

/* 8. Location Section */
.location-section {
    padding: 100px 0;
    background-color: var(--color-bg-white);
}

.section-header {
    max-width: 720px;
    margin: 0 auto 64px auto;
    text-align: center;
}

.section-header h2 {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: 16px;
}

.section-header p {
    color: var(--color-text-muted);
    font-size: 1.05rem;
}

.map-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 48px;
    align-items: stretch;
}

.location-details-card {
    background-color: var(--color-bg-light);
    border-radius: var(--border-radius-md);
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 28px;
    box-shadow: var(--box-shadow-soft);
}

.location-card-title {
    font-size: 1.4rem;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}

.location-card-title i {
    color: var(--color-accent);
}

.location-timeline {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: relative;
    padding-left: 20px;
}

.location-timeline::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 4px;
    width: 2px;
    height: 80%;
    background-color: rgba(11, 26, 48, 0.08);
}

.timeline-item {
    position: relative;
}

.timeline-marker {
    position: absolute;
    top: 6px;
    left: -20px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--color-accent);
    border: 2px solid var(--color-bg-white);
    box-shadow: 0 0 0 4px var(--color-accent-light);
}

.timeline-item h4 {
    font-size: 0.95rem;
    color: var(--color-primary);
    margin-bottom: 4px;
}

.timeline-item p {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    line-height: 1.4;
}

.custom-map-container {
    position: relative;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: var(--box-shadow-medium);
    border: 4px solid var(--color-bg-light);
    display: flex;
}

.custom-map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
    min-height: 450px;
    flex-grow: 1;
}

.map-tag {
    position: absolute;
    top: 24px;
    left: 24px;
    background-color: var(--color-primary);
    color: var(--color-bg-white);
    padding: 10px 18px;
    border-radius: 50px;
    font-family: var(--font-headings);
    font-weight: 700;
    font-size: 0.8rem;
    box-shadow: 0 10px 25px rgba(11,26,48,0.25);
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 8px;
    pointer-events: none; /* Evita que a tag bloqueie cliques no mapa interativo */
}

/* 9. Booking & PIX Section */
.booking-section {
    padding: 100px 0;
    background-color: var(--color-bg-light);
}

.booking-panel {
    background-color: var(--color-bg-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-medium);
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    overflow: hidden;
}

.booking-form-col {
    padding: 64px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.booking-form-col h2 {
    font-size: 2.2rem;
    color: var(--color-primary);
}

.booking-form-col p {
    color: var(--color-text-muted);
    font-size: 1rem;
    margin-top: -12px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

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

.form-group label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-primary);
    letter-spacing: 0.05em;
}

.form-group input, .form-group select, .form-group textarea {
    padding: 14px 18px;
    border-radius: var(--border-radius-sm);
    border: 1px solid rgba(0, 0, 0, 0.1);
    font-family: var(--font-body);
    font-size: 0.95rem;
    background-color: var(--color-bg-light);
    outline: none;
    transition: var(--transition-smooth);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: var(--color-accent);
    background-color: var(--color-bg-white);
    box-shadow: 0 0 0 4px var(--color-accent-light);
}

/* PIX card column */
.booking-pix-col {
    background-color: var(--color-primary);
    color: var(--color-bg-white);
    padding: 64px;
    display: flex;
    align-items: center;
}

.pix-info-card {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100%;
}

.pix-icon-wrapper {
    width: 64px;
    height: 64px;
    border-radius: var(--border-radius-md);
    background-color: var(--color-accent);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(194, 152, 83, 0.25);
}

.pix-icon-wrapper i {
    width: 32px;
    height: 32px;
}

.pix-info-card h3 {
    font-size: 1.6rem;
    color: var(--color-accent);
}

.pix-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    line-height: 1.6;
}

.pix-key-container {
    background-color: var(--color-primary-light);
    border-radius: var(--border-radius-md);
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.pix-key-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-accent);
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 12px;
}

.pix-key-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: var(--color-primary);
    border-radius: var(--border-radius-sm);
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.pix-key-row code {
    font-family: 'Courier New', Courier, monospace;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--color-bg-white);
    letter-spacing: 0.05em;
}

.btn-copy-pix {
    background-color: var(--color-accent);
    color: var(--color-primary);
    border: none;
    padding: 8px 16px;
    border-radius: var(--border-radius-sm);
    font-family: var(--font-headings);
    font-weight: 700;
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: var(--transition-smooth);
}

.btn-copy-pix:hover {
    background-color: var(--color-bg-white);
    transform: scale(1.03);
}

.btn-copy-pix.success {
    background-color: var(--color-success);
    color: var(--color-bg-white);
}

.payment-safety-tips {
    display: flex;
    flex-direction: column;
    gap: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 24px;
}

.payment-safety-tips h4 {
    font-size: 1rem;
    color: var(--color-bg-white);
    display: flex;
    align-items: center;
    gap: 8px;
}

.payment-safety-tips h4 i {
    width: 18px;
    color: var(--color-accent);
}

.payment-safety-tips ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-left: 4px;
}

.payment-safety-tips li {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
    position: relative;
    padding-left: 16px;
}

.payment-safety-tips li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-success);
    font-weight: 700;
}

/* 10. Footer Section */
.footer {
    background-color: var(--color-primary);
    color: rgba(255, 255, 255, 0.7);
    padding: 80px 0 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

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

.footer-brand {
    font-family: var(--font-headings);
    font-weight: 800;
    font-size: 1.6rem;
    color: var(--color-bg-white);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.footer-logo {
    width: 360px;
    height: auto;
    max-height: 180px;
    object-fit: contain;
}

.footer-brand p {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.5;
    max-width: 320px;
}

.footer-links, .footer-contact {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.footer-links h4, .footer-contact h4 {
    color: var(--color-bg-white);
    font-size: 1.05rem;
    letter-spacing: 0.02em;
}

.footer-links a {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.65);
    transition: var(--transition-smooth);
}

.footer-links a:hover {
    color: var(--color-accent);
    transform: translateX(4px);
}

.footer-contact p {
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-contact i {
    width: 18px;
    color: var(--color-accent);
}

.footer-bottom {
    background-color: var(--color-primary-light);
    padding: 24px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.45);
}

.footer-bottom a {
    color: var(--color-accent);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition-smooth);
}

.footer-bottom a:hover {
    color: var(--color-bg-white);
    text-decoration: underline;
}

.footer-bottom-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* 11. WhatsApp Floating Action Button */
.whatsapp-float {
    position: fixed;
    bottom: 32px;
    right: 32px;
    width: 64px;
    height: 64px;
    background-color: #25d366;
    color: var(--color-bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.35);
    z-index: 1000;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.whatsapp-float:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.5);
    background-color: #20ba5a;
}

.whatsapp-float i {
    width: 32px;
    height: 32px;
}

/* 12. Keyframe Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes zoomEffect {
    from {
        transform: scale(0.92);
        opacity: 0.7;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* 13. Responsive Breakpoints */
@media (max-width: 1024px) {
    .apartamentos-grid {
        grid-template-columns: 1fr;
        max-width: 640px;
        margin: 16px auto 0 auto;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .modal-content-layout {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .modal-booking-col {
        position: relative;
        top: 0;
    }
    
    .alugue-ambos-card {
        grid-template-columns: 1fr;
        padding: 48px;
    }
    
    .alugue-ambos-visual {
        height: 260px;
        margin-top: 24px;
    }
    
    .map-grid {
        grid-template-columns: 1fr;
    }
    
    .booking-panel {
        grid-template-columns: 1fr;
    }
    
    .booking-pix-col {
        padding: 48px;
    }
    
    .prev-arrow {
        left: -16px;
        background-color: rgba(11,26,48,0.7);
    }
    
    .next-arrow {
        right: -16px;
        background-color: rgba(11,26,48,0.7);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }

    .navbar {
        padding: 12px 0;
    }
    
    .logo {
        width: 100%;
        max-width: 270px;
        margin-top: -20px;
        margin-bottom: -20px;
    }
    
    .logo-img {
        width: 100%;
        height: auto;
        max-height: 135px;
        object-fit: contain;
    }
    
    .navbar.scrolled .logo-img {
        max-height: 100px;
    }
    
    .hero {
        display: block;
        min-height: auto;
        padding-top: 195px;
        padding-bottom: 60px;
    }

    .prev-arrow {
        left: 8px !important;
    }
    
    .next-arrow {
        right: 8px !important;
    }

    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .airbnb-photo-grid {
        grid-template-columns: 1fr;
        height: 260px;
    }
    
    .grid-sub-images {
        display: none;
    }
    
    .modal-container {
        width: 95%;
        height: 92vh;
        border-radius: var(--border-radius-sm);
        min-width: 0;
    }
    
    .modal-body {
        padding: 16px;
        overflow-x: hidden;
        width: 100%;
        min-width: 0;
    }

    .modal-content-layout {
        width: 100%;
        min-width: 0;
    }

    .modal-details-col,
    .modal-booking-col {
        width: 100%;
        min-width: 0;
    }

    .feature-item > div {
        min-width: 0;
        flex-grow: 1;
    }

    .tab-navigation {
        overflow-x: auto;
        white-space: nowrap;
        gap: 4px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        margin-top: 8px;
        width: 100%;
    }
    
    .tab-navigation::-webkit-scrollbar {
        display: none;
    }
    
    .tab-btn {
        padding: 10px 12px;
        font-size: 0.85rem;
        flex-shrink: 0;
    }

    .booking-card {
        padding: 24px 20px;
        width: 100%;
        box-sizing: border-box;
    }

    .price-row {
        flex-wrap: wrap;
        gap: 8px;
    }

    .modal-close-btn {
        top: 16px;
        right: 16px;
        width: 36px;
        height: 36px;
    }
    
    .modal-header h2 {
        font-size: 1.6rem;
    }
    
    .amenities-grid {
        grid-template-columns: 1fr;
    }
    
    .booking-form-col {
        padding: 32px 16px;
    }

    .booking-form-col h2 {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    .form-group input, 
    .form-group select, 
    .form-group textarea {
        width: 100%;
        max-width: 100%;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-bottom-container {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    
    .ap-card-image-wrapper {
        height: 240px;
    }

    .ap-card-content {
        padding: 20px;
    }

    .ap-card-specs {
        grid-template-columns: 1fr;
        gap: 8px;
        padding: 12px;
    }

    .ap-card-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .ap-card-price {
        align-items: center;
        text-align: center;
    }

    .ap-card-footer .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .booking-section {
        padding: 60px 0;
    }
    
    .booking-pix-col {
        padding: 32px 20px;
    }
    
    .pix-key-row {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
        text-align: center;
        padding: 16px;
    }
    
    .pix-key-row code {
        font-size: 1.2rem;
        word-break: break-all;
    }
    
    .btn-copy-pix {
        width: 100%;
        justify-content: center;
        padding: 12px;
    }
}

/* ==========================================================================
   14. Dynamic Full Gallery Grid System
   ========================================================================== */
.full-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
    padding: 16px 0;
    max-height: 480px;
    overflow-y: auto;
    border-radius: var(--border-radius-sm);
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

/* Custom scrollbar for gallery grid */
.full-gallery-grid::-webkit-scrollbar {
    width: 6px;
}
.full-gallery-grid::-webkit-scrollbar-track {
    background: transparent;
}
.full-gallery-grid::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
}

.gallery-grid-item {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.gallery-grid-item:hover {
    transform: scale(1.05);
    filter: brightness(0.85);
    border-color: var(--color-accent);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}
