/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

:root {
    /* Luxury Palette */
    --primary-color: #0d2818;
    /* Very Deep Green for richness */
    --primary-light: #2d4f3b;
    /* Softer Green */
    --accent-color: #C5A059;
    /* Muted Gold (more elegant than bright gold) */
    --accent-light: #dcc082;

    --text-main: #1a1a1a;
    --text-secondary: #555555;
    --text-muted: #888888;

    --bg-body: #ffffff;
    --bg-offset: #f9f8f6;
    /* Warm off-white */

    --white: #ffffff;
    --black: #000000;

    --font-heading: 'Playfair Display', serif;
    --font-body: 'Montserrat', sans-serif;

    --container-width: 1300px;
    --gutter: 20px;
}

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

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

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-weight: 500;
    line-height: 1.25;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -1px;
}

h2 {
    font-size: 2.5rem;
}

h3 {
    font-size: 1.75rem;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--gutter);
}

/* 
   NAVIGATION 
   Logo centered, Menu split left/right
*/
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 25px 0;
    transition: all 0.4s ease;
    background: transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    height: 60px;
}

/* Three-column layout for desktop nav */
.nav-left,
.nav-right {
    flex: 1;
    display: flex;
}

.nav-left {
    justify-content: flex-end;
    padding-right: 40px;
}

.nav-right {
    justify-content: flex-start;
    padding-left: 40px;
}

.nav-logo {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo {
    height: 70px;
    width: auto;
    transition: transform 0.4s ease, filter 0.3s;
}

.navbar.scrolled .logo {
    height: 55px;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 40px;
    align-items: center;
    margin: 0;
}

.nav-menu li a {
    text-decoration: none;
    color: var(--white);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: color 0.3s ease;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.navbar.scrolled .nav-menu li a {
    color: var(--primary-color);
    text-shadow: none;
}

.nav-menu li a:hover {
    color: var(--accent-light);
}

.navbar.scrolled .nav-menu li a:hover {
    color: var(--accent-color);
}

/* Special styling for Book Now button inside menu if needed, 
   but user asked for consistency. Let's make it a button style. */
.btn-book {
    padding: 10px 25px;
    background: var(--accent-color);
    color: var(--white) !important;
    border: 1px solid var(--accent-color);
    text-shadow: none !important;
    transition: all 0.3s ease;
}

.btn-book:hover {
    background: transparent;
    border-color: var(--accent-color);
    color: var(--accent-color) !important;
    /* Force override */
}

.navbar.scrolled .btn-book:hover {
    color: var(--accent-color) !important;
}


/* 
   HERO SECTION 
*/
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    object-fit: cover;
    z-index: -2;
    pointer-events: none;
}

/* Hide all video controls */
.hero-video::-webkit-media-controls {
    display: none !important;
}

.hero-video::-webkit-media-controls-enclosure {
    display: none !important;
}

.hero-video::-webkit-media-controls-panel {
    display: none !important;
}

.hero-video::-webkit-media-controls-play-button {
    display: none !important;
}

.hero-video::-webkit-media-controls-start-playback-button {
    display: none !important;
}

/* Hide any carousel buttons in hero section - ensure no carousel elements appear */
.hero .carousel-btn,
.hero .carousel-prev,
.hero .carousel-next,
.hero .carousel-indicators,
.hero .carousel-container,
.hero .carousel-slide,
section.hero .carousel-btn,
section.hero .carousel-prev,
section.hero .carousel-next,
section.hero .carousel-indicators,
.hero button.carousel-btn,
.hero button.carousel-prev,
.hero button.carousel-next,
.hero div.carousel-indicators {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    position: absolute !important;
    left: -9999px !important;
    width: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.5));
    z-index: -1;
}

.hero-content {
    text-align: center;
    color: var(--white);
    max-width: 900px;
    padding: 0 20px;
    animation: fadeUp 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.hero-content h1 {
    font-size: 5rem;
    font-weight: 400;
    /* Lighter weight for elegance */
    color: var(--white);
    margin-bottom: 20px;
    line-height: 1.1;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 1.1rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

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

/* 
   SECTIONS GENERAL 
*/
section {
    padding: 120px 0;
}

.btn {
    display: inline-block;
    padding: 18px 45px;
    text-decoration: none;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 600;
    transition: all 0.4s ease;
    border: 1px solid transparent;
    cursor: pointer;
}

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

.btn-primary:hover {
    background-color: var(--accent-color);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(197, 160, 89, 0.2);
}

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

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

/* 
   WELCOME SECTION 
*/
.welcome-section {
    background-color: var(--bg-body);
    text-align: center;
}

.welcome-content {
    max-width: 800px;
    margin: 0 auto;
}

.welcome-content p:first-of-type {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    color: var(--primary-color);
    line-height: 1.5;
    margin-bottom: 2rem;
}

.welcome-content p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-weight: 300;
}

/* Highlight key features */
.highlight-feature {
    color: var(--accent-color);
    font-weight: 600;
    position: relative;
    padding: 2px 4px;
    background: linear-gradient(120deg, rgba(212, 175, 55, 0.15) 0%, rgba(212, 175, 55, 0.05) 100%);
    border-radius: 3px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.highlight-feature:hover {
    background: linear-gradient(120deg, rgba(212, 175, 55, 0.25) 0%, rgba(212, 175, 55, 0.15) 100%);
    transform: translateY(-1px);
}

/* 
   BOOKING PLATFORMS 
*/
.booking-platforms-section {
    padding: 60px 0;
    border-top: 1px solid #eaeaea;
    border-bottom: 1px solid #eaeaea;
    background-color: var(--bg-offset);
}

.booking-platforms {
    display: flex;
    justify-content: center;
    gap: 80px;
    flex-wrap: wrap;
    align-items: center;
}

.booking-platform {
    opacity: 0.5;
    transition: opacity 0.3s, transform 0.3s;
    filter: grayscale(100%);
    display: flex;
    align-items: center;
    text-decoration: none;
}

.booking-platform:hover {
    opacity: 1;
    filter: grayscale(0%);
    transform: translateY(-2px);
}

.booking-platform img {
    height: 35px;
    width: auto;
}

.booking-platform span {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: #333;
}

/* 
   ACCOMMODATIONS 
*/
.accommodations-section {
    background-color: var(--bg-body);
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-label {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--accent-color);
    margin-bottom: 15px;
    font-weight: 600;
}

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

.villas-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.villa-card {
    background: var(--white);
    border: 1px solid #f0f0f0;
    transition: all 0.5s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.villa-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
    border-color: transparent;
}

.villa-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

/* Villa Carousel */
.villa-carousel {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.villa-carousel .carousel-container {
    height: 100%;
    position: relative;
}

.villa-carousel .carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.villa-carousel .carousel-slide.active {
    opacity: 1;
}

.villa-carousel .carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.villa-carousel .carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    color: var(--primary-color);
    font-size: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.villa-carousel .carousel-btn:hover {
    background: var(--white);
    transform: translateY(-50%) scale(1.1);
}

.villa-carousel .carousel-prev {
    left: 10px;
}

.villa-carousel .carousel-next {
    right: 10px;
}

.villa-carousel .carousel-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
}

.villa-carousel .indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s;
    padding: 0;
}

.villa-carousel .indicator.active {
    background: var(--white);
    width: 24px;
    border-radius: 4px;
}

.villa-content {
    padding: 40px 30px;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.villa-content h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.villa-details {
    list-style: none;
    margin-bottom: 30px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    padding-bottom: 30px;
    border-bottom: 1px solid #f5f5f5;
}

.villa-card .btn {
    width: 100%;
    padding: 15px 0;
}

/* 
    DIVING SECTION 
*/
.diving-section {
    background-color: var(--bg-offset);
    position: relative;
}

.diving-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.diving-content h2 {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 30px;
}

.diving-content p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 40px;
}

/* SERVICE PAGE SPECIFIC */
.service-hero {
    background-color: var(--primary-color);
    color: var(--white);
    text-align: center;
    padding: 200px 0 100px;
}

.service-hero h1 {
    color: var(--white);
    margin-bottom: 30px;
}

.service-hero p {
    color: rgba(255, 255, 255, 0.8);
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.2rem;
}

.diving-center-section {
    padding: 100px 0;
}

.diving-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    margin-bottom: 100px;
}

.diving-main img {
    width: 100%;
    border-radius: 4px;
}

.diving-info h3 {
    font-size: 2.5rem;
    margin-bottom: 30px;
}

/* Carousel */
.image-carousel {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
}

.carousel-container {
    height: 600px;
    overflow: hidden;
    position: relative;
}

.carousel-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.8s;
}

.carousel-slide.active {
    opacity: 1;
}

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

/* Carousel buttons - but NOT in hero section */
.carousel-btn:not(.hero .carousel-btn) {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 2;
}

/* Ensure carousel buttons only work in proper carousel contexts */
.diving-carousel .carousel-btn,
.villa-carousel .carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 2;
}

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

.carousel-prev {
    left: 20px;
}

.carousel-next {
    right: 20px;
}


/* 
   LOCATION 
*/
.location-section {
    padding: 0;
}

.map-container iframe {
    width: 100%;
    height: 500px;
    filter: grayscale(100%);
    transition: filter 0.5s;
    display: block;
}

.map-container:hover iframe {
    filter: grayscale(0%);
}


/* 
   FOOTER 
*/
.footer {
    background-color: #081c11;
    /* Even darker green, almost black */
    color: #aeaeae;
    padding: 100px 0 40px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.2fr 1.5fr 0.8fr;
    gap: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 60px;
    margin-bottom: 40px;
    align-items: start;
}

.footer-brand {
    display: flex;
    flex-direction: column;
}

.footer-logo-img {
    height: 80px;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.8;
    margin-bottom: 25px;
}

.footer-description {
    line-height: 1.7;
    max-width: 100%;
    margin-bottom: 15px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
}

.footer-description .highlight-feature {
    color: var(--accent-color);
    font-weight: 600;
    background: rgba(212, 175, 55, 0.15);
    padding: 2px 5px;
    border-radius: 3px;
    display: inline-block;
    margin: 0 2px;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    font-style: italic;
    margin-top: 10px;
}

.footer-section-title {
    color: var(--white);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: var(--font-heading);
}

.footer-contact {
    display: flex;
    flex-direction: column;
}

.footer-contact-item {
    margin-bottom: 25px;
}

.footer-contact-item strong {
    display: block;
    color: var(--white);
    font-size: 0.95rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.footer-contact-item p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

.footer-contact a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s;
    display: inline-block;
}

.footer-contact a:hover {
    color: var(--accent-color);
}

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

.social-instagram {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    text-decoration: none;
    transition: all 0.3s;
    border-radius: 4px;
    width: fit-content;
}

.social-instagram:hover {
    background: var(--accent-color);
    border-color: var(--accent-color);
    color: #fff;
    transform: translateY(-2px);
}

.footer-bottom {
    text-align: center;
    font-size: 0.85rem;
    color: #666;
}

/* WHATSAPP FLOAT */
.whatsapp-float {
    position: fixed;
    right: 30px;
    bottom: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    z-index: 2000;
    transition: transform 0.3s;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .villas-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .nav-menu {
        gap: 20px;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    .footer-social {
        grid-column: 1 / -1;
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
    .nav-wrapper {
        height: auto;
        flex-direction: column;
        padding: 20px 0;
    }

    .nav-left,
    .nav-right {
        justify-content: center;
    }

    .villa-carousel .carousel-btn {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }

    .villa-carousel .carousel-prev {
        left: 5px;
    }

    .villa-carousel .carousel-next {
        right: 5px;
    }

    .villa-carousel .carousel-indicators {
        bottom: 10px;
        gap: 6px;
    }

    .villa-carousel .indicator {
        width: 6px;
        height: 6px;
    }

    .villa-carousel .indicator.active {
        width: 20px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

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

    .footer-description {
        text-align: center;
    }

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

    .footer-contact-item {
        text-align: center;
    }

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

    .social-instagram {
        margin: 0 auto;
    }

    .nav-logo {
        order: -1;
        margin-bottom: 15px;
    }

    .logo {
        height: 60px;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

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

    .diving-main {
        grid-template-columns: 1fr;
    }

    .carousel-container {
        height: 350px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-social {
        justify-self: start;
        text-align: left;
    }
}