/* ============================================================
   CASA PALMIRA — Stylesheet
   ============================================================ */

:root {
    --cream: #f9f6f0;
    --white: #ffffff;
    --dark: #1c1917;
    --mid: #78716c;
    --border: #e8e3dc;
    --wine: #7d2b3e;
    --wine-dark: #5c1f2e;
    --gold: #c8a45a;
    --shadow: 0 4px 24px rgba(28, 25, 23, 0.1);
    --radius: 12px;
    --t: 0.3s ease;
}

/* ── Reset ─────────────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html {
    scroll-behavior: smooth;
}
body {
    font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    background: var(--cream);
    color: var(--dark);
    line-height: 1.7;
    font-size: 16px;
    font-weight: 400;
}
img {
    max-width: 100%;
    height: auto;
    display: block;
}
a {
    text-decoration: none;
    color: inherit;
}
ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ── Typography ─────────────────────────────────────────────── */
h1,
h2,
h3,
h4 {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 400;
    line-height: 1.25;
}
h1 {
    font-size: clamp(2.6rem, 7vw, 5rem);
}
h2 {
    font-size: clamp(1.75rem, 4vw, 2.75rem);
}
h3 {
    font-size: 1.15rem;
}

.section-label {
    display: inline-block;
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--wine);
    margin-bottom: 0.75rem;
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 4rem;
}
.section-header p {
    color: var(--mid);
    margin-top: 1rem;
    font-size: 1.05rem;
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
    display: inline-block;
    padding: 14px 34px;
    border-radius: 4px;
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    transition: var(--t);
    cursor: pointer;
    border: none;
}
.btn-primary {
    background: var(--wine);
    color: var(--white);
}
.btn-primary:hover {
    background: var(--wine-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}
.btn-outline {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.65);
}
.btn-outline:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--white);
}

/* ── Navigation ─────────────────────────────────────────────── */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 22px 0;
    transition:
        background var(--t),
        box-shadow var(--t),
        padding var(--t);
}
#navbar.scrolled {
    background: var(--white);
    box-shadow: 0 2px 16px rgba(28, 25, 23, 0.08);
    padding: 12px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-logo {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 1.45rem;
    font-style: italic;
    color: var(--white);
    letter-spacing: 0.02em;
    transition: color var(--t);
}
#navbar.scrolled .nav-logo {
    color: var(--dark);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2.25rem;
}
.nav-links a {
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    transition: color var(--t);
}
#navbar.scrolled .nav-links a {
    color: var(--dark);
}
.nav-links a:hover {
    color: var(--gold);
}
#navbar.scrolled .nav-links a:hover {
    color: var(--wine);
}

.nav-cta {
    background: var(--wine) !important;
    color: var(--white) !important;
    padding: 9px 22px;
    border-radius: 4px;
}
.nav-cta:hover {
    background: var(--wine-dark) !important;
    color: var(--white) !important;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
}
.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--white);
    transition: var(--t);
}
#navbar.scrolled .nav-toggle span {
    background: var(--dark);
}

/* ── Hero ────────────────────────────────────────────────────── */
#hero {
    min-height: 100vh;
    background: url("../img/463429782.jpg") center / cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}
.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(28, 25, 23, 0.45) 0%,
        rgba(28, 25, 23, 0.65) 100%
    );
}
.hero-content {
    position: relative;
    color: var(--white);
    padding: 0 24px;
    max-width: 800px;
}
.hero-badge {
    display: inline-block;
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 6px 18px;
    border-radius: 2px;
    margin-bottom: 1.25rem;
    color: rgba(255, 255, 255, 0.85);
}
.hero-content h1 {
    font-style: italic;
    font-weight: 400;
    margin-bottom: 1rem;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.35);
}
.hero-content p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.82);
    margin-bottom: 2.5rem;
    letter-spacing: 0.03em;
}
.hero-btns {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── Award Strip ─────────────────────────────────────────────── */
.award-strip {
    background: var(--wine);
    padding: 18px 24px;
}
.award-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    color: var(--white);
}
.award-badge {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 8px;
}
.award-content strong {
    display: block;
    font-size: 1.05rem;
    font-family: "Helvetica Neue", Arial, sans-serif;
}
.award-content p {
    font-size: 0.88rem;
    opacity: 0.82;
}

/* ── About ───────────────────────────────────────────────────── */
#about {
    padding: 100px 0;
}
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}
.about-text h2 {
    margin-bottom: 1.5rem;
}
.about-text p {
    color: var(--mid);
    margin-bottom: 1rem;
}
.about-highlights {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.about-highlights li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
}
.icon {
    font-size: 1.2rem;
}
.about-img img {
    width: 100%;
    height: 480px;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* ── Rooms ───────────────────────────────────────────────────── */
.section-alt {
    background: var(--white);
}
#rooms {
    padding: 100px 0;
}
.rooms-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.room-card {
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--cream);
    transition:
        transform var(--t),
        box-shadow var(--t);
}
.room-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}
.room-img {
    position: relative;
    overflow: hidden;
    height: 220px;
}
.room-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s ease;
}
.room-card:hover .room-img img {
    transform: scale(1.06);
}
.room-tag {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: var(--wine);
    color: var(--white);
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 4px 11px;
    border-radius: 3px;
}
.room-info {
    padding: 1.5rem;
}
.room-info h3 {
    margin-bottom: 0.5rem;
}
.room-info p {
    font-size: 0.9rem;
    color: var(--mid);
    line-height: 1.65;
}

/* ── Amenities ───────────────────────────────────────────────── */
#amenities {
    padding: 100px 0;
}
.amenities-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}
.amenity-item {
    text-align: center;
    padding: 2.25rem 1.25rem;
    border-radius: var(--radius);
    transition:
        background var(--t),
        box-shadow var(--t);
}
.amenity-item:hover {
    background: var(--white);
    box-shadow: var(--shadow);
}
.amenity-icon {
    font-size: 2.25rem;
    display: block;
    margin-bottom: 1rem;
}
.amenity-item h4 {
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-weight: 600;
    font-size: 0.92rem;
    margin-bottom: 0.4rem;
}
.amenity-item p {
    font-size: 0.84rem;
    color: var(--mid);
}

/* ── Gallery ─────────────────────────────────────────────────── */
#gallery {
    padding: 100px 0;
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 220px;
    gap: 8px;
}
.gallery-wide {
    grid-column: span 2;
}
.gallery-tall {
    grid-row: span 2;
}
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    display: block;
    cursor: pointer;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.55s ease;
}
.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(28, 25, 23, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--t);
}
.gallery-overlay span {
    color: var(--white);
    font-size: 2.5rem;
    font-weight: 300;
    opacity: 0;
    transition: opacity var(--t);
}
.gallery-item:hover .gallery-overlay {
    background: rgba(28, 25, 23, 0.42);
}
.gallery-item:hover .gallery-overlay span {
    opacity: 1;
}
.gallery-item:hover img {
    transform: scale(1.06);
}

/* ── Lightbox ────────────────────────────────────────────────── */
#lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    align-items: center;
    justify-content: center;
}
#lightbox.active {
    display: flex;
}
.lb-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
}
.lb-img {
    position: relative;
    z-index: 1;
    max-width: 90vw;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 4px;
    user-select: none;
}
.lb-close,
.lb-prev,
.lb-next {
    position: absolute;
    z-index: 2;
    background: none;
    border: none;
    color: var(--white);
    cursor: pointer;
    opacity: 0.75;
    transition: opacity var(--t);
    font-size: 2rem;
    padding: 8px;
    line-height: 1;
}
.lb-close:hover,
.lb-prev:hover,
.lb-next:hover {
    opacity: 1;
}
.lb-close {
    top: 20px;
    right: 24px;
    font-size: 1.75rem;
}
.lb-prev {
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3.5rem;
}
.lb-next {
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3.5rem;
}
.lb-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    color: rgba(255, 255, 255, 0.6);
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
}

/* ── Surroundings ────────────────────────────────────────────── */
#surroundings {
    padding: 100px 0;
}
.poi-categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: start;
}
.poi-category {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(28, 25, 23, 0.06);
}
.poi-cat-title {
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 1.1rem 1.5rem;
    background: var(--wine);
    color: var(--white);
}
.poi-list {
    padding: 0.5rem 0;
}
.poi-item {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 0.15rem 1rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
    transition: background var(--t);
}
.poi-item:last-child {
    border-bottom: none;
}
.poi-item:hover {
    background: var(--cream);
}
.poi-name {
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    grid-column: 1;
    grid-row: 1;
}
.poi-desc {
    font-size: 0.8rem;
    color: var(--mid);
    grid-column: 1;
    grid-row: 2;
    line-height: 1.5;
}
.poi-dist {
    grid-column: 2;
    grid-row: 1 / 3;
    align-self: center;
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--wine);
    white-space: nowrap;
    background: rgba(125, 43, 62, 0.08);
    padding: 3px 8px;
    border-radius: 20px;
}

@media (max-width: 1024px) {
    .poi-categories {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .poi-categories {
        grid-template-columns: 1fr;
    }
}

/* ── Reviews ─────────────────────────────────────────────────── */
#reviews {
    padding: 100px 0;
}
.reviews-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 4.5rem;
    align-items: start;
}
.award-large {
    text-align: center;
}
.award-large img {
    width: 200px;
    margin: 0 auto 1rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.award-large p {
    font-size: 0.88rem;
    color: var(--mid);
}
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}
.review-card {
    background: var(--white);
    padding: 1.75rem;
    border-radius: var(--radius);
    box-shadow: 0 2px 12px rgba(28, 25, 23, 0.06);
    border-left: 4px solid var(--wine);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.review-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.stars {
    color: var(--gold);
    font-size: 1rem;
    letter-spacing: 0.05em;
}
.review-score {
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--white);
    background: var(--wine);
    padding: 2px 8px;
    border-radius: 3px;
}
.review-title {
    font-weight: 600;
    font-style: normal !important;
    color: var(--dark) !important;
    font-size: 0.95rem;
}
.review-card p {
    color: var(--mid);
    font-style: italic;
    font-size: 0.88rem;
    line-height: 1.65;
}
.review-card cite {
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    margin-top: auto;
}

/* ── Contact ─────────────────────────────────────────────────── */
#contact {
    padding: 100px 0;
}
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}
.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
}
.contact-icon {
    font-size: 1.75rem;
    flex-shrink: 0;
    line-height: 1;
}
.contact-item h4 {
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--wine);
    margin-bottom: 0.3rem;
}
.contact-item p {
    color: var(--mid);
    font-size: 0.95rem;
}
.wa-link {
    display: inline-block;
    margin-top: 0.3rem;
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    color: #25d366;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color var(--t);
}
.wa-link:hover {
    color: #1da851;
}
.contact-booking {
    background: var(--dark);
    color: var(--white);
    padding: 3rem 2.5rem;
    border-radius: var(--radius);
    text-align: center;
}
.contact-booking h3 {
    font-style: italic;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}
.contact-booking p {
    opacity: 0.8;
    margin-bottom: 2rem;
    line-height: 1.65;
}

/* ── Footer ──────────────────────────────────────────────────── */
footer {
    background: var(--dark);
    color: rgba(255, 255, 255, 0.6);
    padding: 60px 0 28px;
}
.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    gap: 2rem;
}
.footer-brand h3 {
    font-family: 'Playfair Display', Georgia, serif;
    color: var(--white);
    font-style: italic;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}
.footer-brand p {
    font-size: 0.85rem;
}
.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    align-items: center;
}
.footer-links a {
    font-size: 0.875rem;
    transition: color var(--t);
}
.footer-links a:hover {
    color: var(--white);
}
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    font-size: 0.78rem;
    text-align: center;
}

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .rooms-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .amenities-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    /* Nav */
    .nav-toggle {
        display: flex;
    }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 1.25rem 1.5rem;
        box-shadow: var(--shadow);
        gap: 0.25rem;
    }
    .nav-links.open {
        display: flex;
    }
    .nav-links a {
        color: var(--dark) !important;
        padding: 0.6rem 0;
    }
    .nav-cta {
        padding: 0.6rem 0 !important;
        background: none !important;
        color: var(--wine) !important;
    }

    /* Sections */
    #about,
    #rooms,
    #amenities,
    #gallery,
    #reviews,
    #contact {
        padding: 64px 0;
    }
    .section-header {
        margin-bottom: 2.5rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .about-img img {
        height: 300px;
    }
    .rooms-grid {
        grid-template-columns: 1fr;
    }
    .amenities-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 180px;
    }

    .reviews-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .award-large {
        display: flex;
        align-items: center;
        gap: 1.5rem;
        text-align: left;
    }
    .award-large img {
        width: 90px;
        margin: 0;
    }
    .reviews-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }

    .lb-prev {
        left: 8px;
    }
    .lb-next {
        right: 8px;
    }
}

@media (max-width: 480px) {
    .amenities-grid {
        grid-template-columns: 1fr;
    }
    .gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 220px;
    }
    .gallery-wide {
        grid-column: span 1;
    }
    .hero-btns {
        flex-direction: column;
        align-items: center;
    }
    .award-content {
        flex-direction: column;
        text-align: center;
    }
}
