:root {
    --color-sand: #f5f0e8;
    --color-navy-deep: #0a1226;
    --color-navy: #1c3260;
    --color-navy-light: #2d4a86;
    --color-turquoise: #2eb3c4;
    --color-turquoise-deep: #1c8fa6;
    --color-gold: #c9a08a;
    --color-text: #2c2c2c;
    --color-muted: #6b6b6b;
    --color-white: #ffffff;
    --font-primary: 'Georgia', serif;
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body {
    font-family: var(--font-sans);
    color: var(--color-text);
    background: var(--color-white);
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.2s, background 0.2s, border-color 0.2s;
}
.btn:hover { opacity: 0.85; }
.btn--primary { background: var(--color-gold); color: #2a2016; }
.btn--airbnb { background: #ff5a5f; color: var(--color-white); }
.btn--outline { border: 2px solid var(--color-navy); color: var(--color-navy); background: transparent; }

.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 32px;
    padding: 32px 0;
}

.property-card {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: box-shadow 0.2s;
}
.property-card:hover { box-shadow: 0 4px 24px rgba(0,0,0,0.14); }
.property-card a { text-decoration: none; color: inherit; }
.property-card__image { width: 100%; height: 220px; object-fit: cover; display: block; }
.property-card__image--placeholder {
    background: #eef0f2;
    display: flex;
    align-items: center;
    justify-content: center;
}
.property-card__image--placeholder::after {
    content: "Photo coming soon";
    color: var(--color-muted);
    font-size: 0.85rem;
}
.property-card__body { padding: 20px; }
.property-card__title { font-family: var(--font-primary); font-size: 1.2rem; margin: 0 0 6px; }
.property-card__neighborhood { color: var(--color-muted); font-size: 0.9rem; margin: 0 0 6px; }
.property-card__specs { color: var(--color-muted); font-size: 0.85rem; margin: 0 0 10px; }
.property-card__rate { font-weight: 700; font-size: 1.1rem; color: var(--color-navy); margin: 0; }

.property-single { max-width: 960px; margin: 0 auto; padding: 32px 24px; }
.property-single h1 { font-family: var(--font-primary); font-size: 2.2rem; }
.property-single__neighborhood { color: var(--color-muted); font-size: 1.1rem; }
.property-single__specs { color: var(--color-muted); }
.property-single__rate { font-size: 1.5rem; font-weight: 700; color: var(--color-navy); }
.property-single__booking { margin: 32px 0; display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.property-video--vertical { margin: 16px 0 24px; text-align: center; }
.property-video--vertical video {
    width: 100%;
    max-width: 380px;
    aspect-ratio: 9 / 16;
    border-radius: 12px;
    background: #000;
    box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}
.property-single__map { margin: 32px 0; border-radius: 8px; overflow: hidden; }
.property-single__inquiry { margin-top: 48px; }

.hero {
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    min-height: 560px;
    color: var(--color-sand);
    display: flex;
    align-items: center;
    justify-content: center;
    isolation: isolate;
    margin: 24px;
}
.hero__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    animation: hero-cycle 18s infinite;
}
.hero__slide img {
    width: 100%; height: 100%; object-fit: cover;
    filter: saturate(1.08) contrast(1.03);
    animation: hero-kenburns 18s infinite;
}
.hero__slide:nth-child(1) { animation-delay: 0s; }
.hero__slide:nth-child(2) { animation-delay: 6s; }
.hero__slide:nth-child(3) { animation-delay: 12s; }
.hero__slide:nth-child(1) img { animation-delay: 0s; }
.hero__slide:nth-child(2) img { animation-delay: 6s; }
.hero__slide:nth-child(3) img { animation-delay: 12s; }

@keyframes hero-cycle {
    0%   { opacity: 0; }
    3%   { opacity: 1; }
    30%  { opacity: 1; }
    36%  { opacity: 0; }
    100% { opacity: 0; }
}
@keyframes hero-kenburns {
    0%   { transform: scale(1.0); }
    33%  { transform: scale(1.09); }
    100% { transform: scale(1.09); }
}

@media (prefers-reduced-motion: reduce) {
    .hero__slide, .hero__slide img { animation: none; }
    .hero__slide:first-child { opacity: 1; }
}

.hero__dots {
    position: absolute;
    right: 28px;
    bottom: 28px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.hero__dot {
    width: 6px; height: 24px;
    border-radius: 3px;
    background: rgba(245,240,232,0.3);
    overflow: hidden;
    position: relative;
}
.hero__dot::after {
    content: "";
    position: absolute; left: 0; top: 0; width: 100%; height: 0%;
    background: var(--color-gold);
    animation: hero-dot-fill 18s infinite;
}
.hero__dot:nth-child(1)::after { animation-delay: 0s; }
.hero__dot:nth-child(2)::after { animation-delay: 6s; }
.hero__dot:nth-child(3)::after { animation-delay: 12s; }
@keyframes hero-dot-fill {
    0%    { height: 0%; }
    33.3% { height: 100%; }
    100%  { height: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    .hero__dot::after { animation: none; }
    .hero__dot:first-child::after { height: 100%; }
}

.hero__scrim {
    position: absolute; inset: 0;
    background: linear-gradient(0deg, var(--color-navy-deep) 0%, rgba(10,18,38,0.55) 32%, rgba(10,18,38,0.15) 55%, rgba(10,18,38,0.35) 100%);
    z-index: 1;
}
.hero__panel {
    position: relative;
    z-index: 2;
    max-width: 360px;
    margin: 0 24px 0 12px;
    padding: 30px 32px;
    text-align: center;
    transform: translateX(-190px);
    background: rgba(20,70,110,0.14);
    backdrop-filter: blur(30px) saturate(1.7);
    -webkit-backdrop-filter: blur(30px) saturate(1.7);
    border-radius: 32px;
    border: 1px solid rgba(200,228,245,0.32);
    box-shadow:
        0 24px 60px rgba(4,14,28,0.35),
        inset 0 1px 0 rgba(255,255,255,0.28),
        inset 0 0 40px rgba(120,180,215,0.08);
    overflow: hidden;
}
.hero__panel::before {
    content: "";
    position: absolute;
    top: -40%; left: -20%;
    width: 70%; height: 90%;
    background: radial-gradient(ellipse at center, rgba(255,255,255,0.2) 0%, transparent 70%);
    transform: rotate(-15deg);
    pointer-events: none;
}
.hero__panel > * { position: relative; z-index: 1; }
.hero__eyebrow {
    font-family: var(--font-primary);
    font-style: italic;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.86rem;
    color: #c3ddef;
    margin: 0 0 14px;
}
.hero__title {
    font-family: var(--font-primary);
    font-weight: 400;
    font-size: clamp(1.72rem, 2.8vw, 2.38rem);
    line-height: 1.08;
    letter-spacing: -0.01em;
    text-wrap: balance;
    margin: 0 0 13px;
    color: #fdfaf4;
}
.hero__title em { font-style: italic; color: var(--color-gold); }
.hero__tagline {
    font-size: 0.86rem;
    line-height: 1.55;
    color: rgba(245,240,232,0.85);
    margin: 0 auto 22px;
}
.hero__ctas { display: flex; gap: 10px; justify-content: center; }
.hero__ctas .btn--primary {
    background: rgba(46,179,196,0.22);
    backdrop-filter: blur(12px) saturate(1.4);
    -webkit-backdrop-filter: blur(12px) saturate(1.4);
    border: 1px solid rgba(120,220,235,0.55);
    color: var(--color-sand);
}
.hero__ctas .btn--primary:hover {
    background: rgba(46,179,196,0.34);
}
.hero__ctas .btn--outline {
    border-color: rgba(245,240,232,0.4);
    color: var(--color-sand);
}
.hero__ctas .btn--outline:hover {
    background: rgba(245,240,232,0.1);
    border-color: rgba(245,240,232,0.6);
}
.hero__ctas .btn { padding: 10px 22px; font-size: 0.88rem; }
.hero__wave {
    position: absolute;
    left: 0; right: 0; bottom: -1px;
    z-index: 2;
    width: 100%;
    height: 48px;
    line-height: 0;
}

.section { padding: 64px 24px; max-width: 1100px; margin: 0 auto; }
.section__title { font-family: var(--font-primary); font-size: 2rem; margin: 0 0 8px; }
.section__subtitle { color: var(--color-muted); margin: 0 0 32px; }

.testimonials { background: var(--color-sand); padding: 64px 24px; }
.testimonials__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; max-width: 1100px; margin: 0 auto; }
.testimonial { background: var(--color-white); padding: 28px; border-radius: 8px; }
.testimonial__text { font-style: italic; margin: 0 0 16px; line-height: 1.7; }
.testimonial__author { font-weight: 600; color: var(--color-muted); font-size: 0.9rem; }

.site-footer { background: var(--color-text); color: var(--color-white); padding: 48px 24px; text-align: center; }
.site-footer a { color: var(--color-sand); }
.site-footer a:hover, .site-footer a:focus { color: var(--color-turquoise); }
.site-footer__address { margin: 0 0 8px; }
.site-footer__email { margin: 0 0 16px; }
.site-footer__whatsapp { margin: 0 0 16px; }
.site-footer__whatsapp a { color: var(--color-turquoise); font-weight: 600; }
.site-footer__whatsapp a:hover, .site-footer__whatsapp a:focus { color: var(--color-white); }
.site-footer__hours { font-size: 0.85rem; opacity: 0.75; }

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

.contact-grid { display: grid; grid-template-columns: 1fr; gap: 48px; }
@media (min-width: 641px) {
    .contact-grid { grid-template-columns: 1fr 1fr; }
}

.property-carousel {
    position: relative;
    width: 100%;
    max-height: 500px;
    overflow: hidden;
}
.property-carousel__track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}
.property-carousel__track::-webkit-scrollbar { display: none; }
.property-carousel__slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
}
.property-carousel__media {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    display: block;
}
.property-carousel__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.4);
    color: var(--color-white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 2;
}
.property-carousel__arrow--prev { left: 12px; }
.property-carousel__arrow--next { right: 12px; }
.property-carousel__dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}
.property-carousel__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    padding: 0;
}
.property-carousel__dot.is-active { background: var(--color-white); }

@media (min-width: 721px) and (max-width: 900px) {
    .hero__panel { transform: translateX(-60px); }
}

@media (max-width: 720px) {
    .hero { min-height: 480px; margin: 16px; }
    .hero__panel { margin: 0 auto; padding: 20px; width: min(300px, 82vw); max-width: none; transform: translateX(-50px); }
    .hero__eyebrow { font-size: 0.85rem; margin: 0 0 12px; }
    .hero__title { font-size: 1.7rem; margin: 0 0 12px; }
    .hero__tagline { font-size: 0.9rem; margin: 0 auto 20px; }
    .hero__ctas { gap: 8px; }
    .hero__ctas .btn { padding: 10px 18px; font-size: 0.85rem; }
}

@media (max-width: 480px) {
    .hero { min-height: 420px; }
    .hero__panel { padding: 16px 14px; width: min(220px, 68vw); border-radius: 24px; transform: translateX(-24px); }
    .hero__eyebrow { font-size: 0.7rem; margin: 0 0 8px; }
    .hero__title { font-size: 1.3rem; margin: 0 0 8px; }
    .hero__tagline { font-size: 0.76rem; line-height: 1.4; margin: 0 auto 14px; }
    .hero__ctas { flex-direction: column; gap: 6px; }
    .hero__ctas .btn { padding: 8px 14px; font-size: 0.76rem; }
}
