:root {
    --primary: #E07A5F;
    --primary-hover: #C66247;
    --secondary: #3D405B;
    --bg-light: #F4F1DE;
    --bg-white: #FFFFFF;
    --accent: #81B29A;
    --font-main: 'Montserrat', sans-serif;
    --radius: 12px;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s ease;

    --z-base: 0;
    --z-overlay: 1;
    --z-content: 2;
    --z-icon: 10;
    --z-navbar: 100;
    --z-hamburger: 101;
    --z-sidebar-overlay: 150;
    --z-sidebar: 200;
    --z-modal: 1000;

    --breakpoint-mobile: 768px;
    --breakpoint-tablet: 769px;
    --breakpoint-desktop: 1025px;
}

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

html {
    scroll-behavior: smooth;
}

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

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    z-index: var(--z-modal);
    padding: 8px 16px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    font-weight: 600;
    border-radius: 0 0 4px 0;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
    outline: 3px solid #fff;
    outline-offset: 2px;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.btn {
    display: inline-block;
    background-color: var(--primary);
    color: white;
    padding: 14px 32px;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(224, 122, 95, 0.4);
}

.btn:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(224, 122, 95, 0.6);
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--secondary);
}

.section-subtitle {
    text-align: center;
    color: #666;
    margin-bottom: 3rem;
    font-weight: 400;
}

.hero {
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -10%;
    left: 0;
    right: 0;
    bottom: -20%;
    background-image: url(images/banner.avif);
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    z-index: var(--z-base);
    transform: scale(1.2);
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: var(--z-overlay);
}

.hero-content {
    padding: 20px;
    animation: fadeInUp 1s ease-out;
    position: relative;
    z-index: var(--z-content);
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.8rem, 6vw, 5.5rem);
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 3px 15px rgba(0, 0, 0, 0.5);
    line-height: 1.15;
    letter-spacing: 0.5px;
}

.hero p {
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    margin-bottom: 40px;
    font-weight: 300;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

.features {
    padding: 80px 0;
    background-color: var(--bg-white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background: var(--bg-light);
    padding: 30px;
    border-radius: var(--radius);
    text-align: center;
}

.icon-box {
    width: 60px;
    height: 60px;
    background-color: rgba(224, 122, 95, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--primary);
    position: relative;
    animation: none;
}

.icon-box img,
.icon-box svg {
    width: 30px;
    height: 30px;
    filter: invert(43%) sepia(86%) saturate(700%) hue-rotate(330deg) brightness(95%) contrast(90%);
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3) translateY(-30px);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }

    70% {
        transform: scale(0.9);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.feature-card h3 {
    margin-bottom: 10px;
    font-size: 1.2rem;
}

.gallery {
    padding: 80px 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    height: 300px;
    cursor: pointer;
}

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

.location {
    padding: 80px 0;
    background-color: var(--bg-white);
}

.map-container {
    width: 100%;
    height: 400px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    margin-top: 20px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

.availability {
    padding: 80px 0;
    background-image: url(images/footer.avif);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    color: white;
    text-align: center;
    position: relative;
}

.availability::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5));
    z-index: var(--z-overlay);
    pointer-events: none;
}

.availability>* {
    position: relative;
    z-index: var(--z-content);
}

.availability h2 {
    color: white;
    margin-bottom: 1rem;
}

.availability p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.stay-conditions {
    margin: 30px auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    text-align: left;
    max-width: 700px;
}

.stay-conditions h3 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.stay-conditions ul {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    list-style: none;
    padding-left: 0;
}

.stay-conditions li {
    margin-bottom: 10px;
}

.contact-box {
    background: rgba(255, 255, 255, 0.1);
    display: inline-flex;
    align-items: center;
    padding: 20px 40px;
    border-radius: var(--radius);
    backdrop-filter: blur(5px);
    margin-bottom: 30px;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

.phone-number {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.whatsapp-btn {
    background-color: #25D366;
    color: white;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.whatsapp-btn:hover {
    background-color: #20BA56;
}

footer {
    background-color: #111827;
    color: #D1D5DB;
    padding: 40px 0;
    text-align: center;
    font-size: 0.9rem;
    border-top: 1px solid rgba(99, 102, 241, 0.15);
    position: relative;
}

footer strong {
    color: #F9FAFB;
}

.facebook-icon {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 48px;
    height: 48px;
    background-color: #1877F2;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.3);
    z-index: var(--z-icon);
}

.facebook-icon:hover {
    background-color: #0d65d9;
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(24, 119, 242, 0.5);
}

.facebook-icon svg {
    width: 24px;
    height: 24px;
}

.whatsapp-inline {
    display: inline-flex;
}

.footer-copyright {
    margin-top: 10px;
    font-size: 0.8rem;
    opacity: 0.5;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal {
    display: none;
    position: fixed;
    z-index: var(--z-modal);
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    opacity: 1;
}

.modal-content {
    max-width: 95%;
    max-height: 95%;
    border-radius: 8px;
    object-fit: contain;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
}

.modal::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.modal.loading::after {
    opacity: 1;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-modal:hover {
    color: #E07A5F;
}

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(17, 24, 39, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: var(--z-navbar);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border-bottom: 1px solid rgba(101, 102, 176, 0.15);
}

.navbar-brand {
    color: #F9FAFB;
    font-family: 'Playfair Display', serif;
    font-size: 1.45rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    display: flex;
    align-items: center;
    gap: 12px;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.cabin-icon {
    width: 34px;
    height: 32px;
    filter: brightness(0) invert(1);
}

.nav-menu {
    display: flex;
    gap: 30px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    color: #F9FAFB;
    font-size: 1rem;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #6366F1;
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: #6366F1;
}

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

.hamburger {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    display: none;
    flex-direction: column;
    gap: 5px;
    z-index: var(--z-hamburger);
}

.hamburger span {
    width: 28px;
    height: 3px;
    background-color: #F9FAFB;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.sidebar {
    position: fixed;
    top: 0;
    right: -300px;
    width: 280px;
    height: 100vh;
    background: #111827;
    z-index: var(--z-sidebar);
    transition: right 0.3s ease;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
}

.sidebar.open {
    right: 0;
}

.sidebar-header {
    padding: 25px 20px;
    background: rgba(99, 102, 241, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(99, 102, 241, 0.15);
}

.sidebar-header h2 {
    color: #F9FAFB;
    font-size: 1.5rem;
    margin: 0;
}

.close-sidebar {
    background: transparent;
    border: none;
    color: #F9FAFB;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-menu {
    padding: 20px 0;
}

.sidebar-menu li {
    margin: 0;
}

.sidebar-link {
    display: block;
    padding: 15px 25px;
    color: #D1D5DB;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    border-right: 3px solid transparent;
}

.sidebar-link:hover {
    background: rgba(99, 102, 241, 0.12);
    border-right-color: #6366F1;
    color: #F9FAFB;
    padding-right: 30px;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: var(--z-sidebar-overlay);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        display: none;
    }

    .navbar {
        padding: 12px 20px;
    }

    .cabin-icon {
        width: 34px;
        height: 32px;
        flex-shrink: 0;
    }

    .navbar-brand {
        font-size: 0.95rem;
        gap: 8px;
        white-space: nowrap;
        font-weight: 600;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .contact-box {
        flex-direction: column;
        padding: 20px;
        width: 100%;
    }

    .btn {
        width: 100%;
        text-align: center;
    }

    .availability {
        background-image: url(images/footer_mobile.avif);
    }

    .hero::before {
        background-image: url(images/banner_mobile.avif);
        background-size: 100%;
        background-position: center center;
        transform: scale(1) !important;
    }
}

@media (min-width: 1025px) {
    .hero::before {
        will-change: transform;
        transform: scale(1.05) translateY(var(--parallax-y, 0px));
        background-size: 95%;
        background-position: center center;
    }

    .availability {
        background-attachment: fixed;
    }
}

@media (min-width: 769px) {
    .feature-card {
        transition: var(--transition);
    }

    .feature-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow);
        background: white;
    }

    .icon-box {
        transition: all 0.4s ease;
        animation: bounceIn 0.6s ease-out;
    }

    .icon-box img,
    .icon-box svg {
        transition: transform 0.4s ease, filter 0.4s ease, fill 0.4s ease;
    }

    .icon-box svg path {
        transition: fill 0.4s ease;
    }

    .feature-card:hover .icon-box {
        background-color: var(--primary);
        color: white;
        transform: scale(1.1);
        box-shadow: 0 8px 20px rgba(224, 122, 95, 0.3);
    }

    .feature-card:hover .icon-box img,
    .feature-card:hover .icon-box svg {
        transform: scale(1.1);
        filter: brightness(0) invert(1);
    }

    .feature-card:nth-child(1) .icon-box {
        animation-delay: 0.1s;
    }

    .feature-card:nth-child(2) .icon-box {
        animation-delay: 0.2s;
    }

    .feature-card:nth-child(3) .icon-box {
        animation-delay: 0.3s;
    }

    .feature-card:nth-child(4) .icon-box {
        animation-delay: 0.4s;
    }

    .feature-card:nth-child(5) .icon-box {
        animation-delay: 0.5s;
    }

    .feature-card:nth-child(6) .icon-box {
        animation-delay: 0.6s;
    }

    .feature-card:nth-child(7) .icon-box {
        animation-delay: 0.7s;
    }

    .feature-card:nth-child(8) .icon-box {
        animation-delay: 0.8s;
    }

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

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