/* =========================
   RESET & GLOBAL
========================= */

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


html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

body {
    font-family: Poppins, sans-serif;
    line-height: 1.6;
    color: #0f2f76;
    background: #eaf6ff;
}

.container {
    width: min(1200px, 90%);
    margin: auto;
}


/* =========================
   HEADER & NAVIGATION
========================= */

header {
    position: fixed;
    width: 100%;
    background: #fcf0da;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
    z-index: 999;
    transition: background .3s ease, box-shadow .3s ease, transform .3s ease;
}

header.hidden {
    transform: translateY(-100%);
}

/* Transparent over the hero until the page is scrolled (JS adds .solid) */

header:not(.solid) {
    background: linear-gradient(rgba(0, 0, 0, .45), rgba(0, 0, 0, 0));
    box-shadow: none;
}

header:not(.solid) .logo,
header:not(.solid) nav a {
    color: white;
    text-shadow: 0 1px 6px rgba(0, 0, 0, .6);
}

header:not(.solid) .menu-toggle span {
    background: white;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #0f2f76;
    font-weight: 600;
    font-size: 1.4rem;
}

.logo span {
    font-family: Poppins, sans-serif;
    font-weight: 700;
    font-size: 2rem;
}

.logo img {
    height: 50px;
    width: auto;
    display: block;
}

nav {
    display: flex;
    gap: 24px;
    align-items: center;
}

nav a {
    text-decoration: none;
    font-family: Poppins, sans-serif;
    font-weight: 600;
    font-size: 1.1rem;
    color: #0f2f76;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;

    width: 44px;
    height: 44px;
    padding: 10px;

    background: none;
    border: none;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    height: 3px;
    border-radius: 2px;
    background: #0f2f76;
    transition: transform .25s ease, opacity .25s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

section[id] {
    scroll-margin-top: 80px;
}

.book-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 50px;
    cursor: pointer;

    font-family: Poppins, sans-serif;
    font-size: 0.9rem;
    font-weight: 700;

    background: #38b6ff;
    color: #0f2f76;

    transition: 0.25s ease;
}


/* =========================
   HERO
========================= */

.hero {
    position: relative;
    min-height: 100vh;

    background: url("../images/hero.webp") center / cover no-repeat;

    display: flex;
    justify-content: center;
    align-items: center;
}

.overlay {
    position: absolute;
    inset: 0;

    display: flex;
    justify-content: center;
    align-items: center;

    background: rgba(0, 0, 0, .01);
}

.hero-content {
    position: relative;
    text-align: center;
    color: white;
    width: min(700px, 90%);
}

.hero h1 {
    font-size: inherit;
    font-weight: inherit;
    margin: 0;
}

.hero-sub {
    display: block;
    font-family: "Gochi Hand", cursive;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: .5px;
    color: white;
    white-space: normal;
    margin: 0 0 5px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .6);
}

.hero-title {
    display: block;
    font-family: "Gochi Hand", cursive;
    font-size: clamp(4.2rem, 10vw, 7rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: 2px;
    color: white;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .6);
}

.buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.primary,
.secondary,
.whatsapp-btn {
    width: 220px;
    text-align: center;
    padding: 14px 30px;
    border-radius: 40px;
    text-decoration: none;
    transition: .25s ease;
}

.primary {
    background: #0077cc;
    color: white;
    border: none;
}

.secondary {
    background: white;
    color: #333;
}

.whatsapp-btn {
    background: #25D366;
    color: white;
}

.primary:hover,
.secondary:hover,
.whatsapp-btn:hover,
.book-btn:hover {
    transform: translateY(-2px);
    filter: brightness(.9);
    box-shadow: 0 6px 15px rgba(0, 0, 0, .18);
}


/* =========================
   BOOKING MODAL
========================= */

.booking-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;

    background: rgba(0, 0, 0, .65);

    align-items: center;
    justify-content: center;

    padding: 20px;
}

.booking-modal-content {
    position: relative;
    width: 100%;
    max-width: 420px;
    padding: 45px 30px 35px;

    background: #eaf6ff;
    border-radius: 20px;
    text-align: center;

    animation: modalAppear .25s ease;
}

.booking-modal-content h2 {
    margin: 0 0 10px;
    font-family: Poppins, sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f2f76;
    text-shadow: none;
}

.booking-modal-content p {
    margin-bottom: 25px;
}

.booking-option {
    display: block;
    padding: 15px 20px;
    margin: 12px 0;

    border-radius: 12px;

    color: white;
    text-decoration: none;
    font-weight: 600;
    text-align: center;

    transition: .2s ease;
}

.booking-option:hover {
    transform: translateY(-2px);
    filter: brightness(.9);
}

.booking-btn-option {
    background: #003580;
}

.hostelworld-btn-option {
    background: #f25621;
}

.airbnb-btn-option {
    background: #ff385c;
}

.whatsapp-btn-option {
    background: #25D366;
}

.close-modal {
    position: absolute;
    top: 12px;
    right: 18px;

    background: none;
    border: none;

    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    color: #555;
}

@keyframes modalAppear {
    from {
        opacity: 0;
        transform: translateY(20px) scale(.97);
    }

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


/* =========================
   FEATURES
========================= */

.features {
    padding: 80px 0 20px;
}

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

.feature {
    background: #fcf0da;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, .08);
    text-align: center;
}


/* =========================
   GENERAL SECTIONS
========================= */

section {
    padding: 30px 0 90px;
}

#rooms h2,
#kitesurf-package h2,
#mauritania-package h2,
#reviews h2,
#gallery h2,
#contact h2 {
    text-align: center;
    white-space: normal;
    font-size: clamp(1.8rem, 6vw, 3.5rem);
    font-family: Poppins, sans-serif;
    font-weight: 700;
    margin-bottom: 20px;
    color: #0f2f76;
}


/* =========================
   ACCOMMODATION
========================= */

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

.card {
    background: #fcf0da;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .08);
}


.card h3 {
    padding: 20px;
}

.card p {
    padding: 0 20px 25px;
}

/* =========================
   ACCOMMODATION CAROUSELS
========================= */

.card-carousel {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 2;
    overflow: hidden;
}

.card-carousel img {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    opacity: 0;
    transition: opacity .35s ease;
}

.card-carousel img.active {
    opacity: 1;
}

/* ARROWS */

.carousel-prev,
.carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);

    width: 38px;
    height: 38px;

    border: none;
    border-radius: 50%;

    background: rgba(255, 255, 255, .85);
    color: #0f2f76;

    cursor: pointer;

    font-size: 1.4rem;
    line-height: 1;

    z-index: 2;

    transition: .2s ease;
}

.carousel-prev {
    left: 12px;
}

.carousel-next {
    right: 12px;
}

.carousel-prev:hover,
.carousel-next:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

/* =========================
   PACKAGE SECTIONS
========================= */

#kitesurf-package p,
#reviews p,
#mauritania-package p {
    font-size: 1.1rem;
}

.package-card {
    max-width: 900px;
    margin: 40px auto 0;
    background: #fcf0da;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, .08);
}


.package-summary {
    padding: 35px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.package-summary > div {
    flex: 1;
}

.package-summary h3 {
    font-family: Poppins, sans-serif;
    font-size: 2rem;
    margin: 0 0 10px;
}


/* Centered package subtitle */

.package-subtitle {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 12px;
}


/* Left aligned package description */

.package-description {
    text-align: left;
    font-size: 1.1rem;
    margin: 0;
}


/* Package toggle */

.package-toggle {
    flex-shrink: 0;

    border: none;
    background: #38b6ff;
    color: #0f2f76;

    padding: 10px 16px;
    border-radius: 40px;

    cursor: pointer;
    font-family: inherit;
    font-size: .9rem;

    display: flex;
    align-items: center;
    gap: 8px;

    transition: .25s ease;
}

.package-toggle:hover {
    transform: translateY(-2px);
    filter: brightness(.9);
    box-shadow: 0 6px 15px rgba(0, 0, 0, .18);
}

.toggle-icon {
    font-size: 1.2rem;
    line-height: 1;
    transition: transform .3s ease;
}


/* Expandable details */

.package-details {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows .5s ease;
}

.package-details-inner {
    overflow: hidden;
    padding: 0 35px;
}

.package-card.active .package-details {
    grid-template-rows: 1fr;
}

.package-card.active .package-details-inner {
    padding: 10px 35px 35px;
}

.package-card.active .toggle-icon {
    transform: rotate(45deg);
}


/* Package content */

.package-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 20px;
}

.package-grid h3,
.package-extra h3,
.mauritania-extra h3 {
    font-family: Poppins, sans-serif;
    margin-bottom: 12px;
}

.package-grid ul {
    padding-left: 20px;
}

.package-grid li {
    margin-bottom: 8px;
}

.package-extra,
.mauritania-extra {
    margin-top: 35px;
}

.package-buttons {
    margin-top: 30px;
}


/* Price */

.package-price-large {
    font-family: Poppins, sans-serif;
    font-size: 3rem;
    font-weight: 800;
    color: #0077cc;
    margin: 15px 0;
}

.package-price-large span {
    font-size: 1rem;
    font-weight: 400;
    color: #666;
}

.package-note {
    font-size: .9rem;
    color: #777;
    margin-top: 15px;
    padding-left: 15px;
    border-left: 3px solid #0077cc;
}


/* =========================
   REVIEWS
========================= */

.reviews-section {
    padding: 0 0 60px;
}

.section-heading {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 40px;
}

.review-platforms {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 45px;
}

.review-platform {
    background: #fcf0da;
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, .06);
}

.platform-name {
    font-family: Poppins, sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.rating {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 5px;
}

.rating strong {
    font-size: 3rem;
    line-height: 1;
}

.rating span {
    color: #666;
    font-size: .95rem;
}

.stars {
    margin: 12px 0 5px;
    font-size: 1.3rem;
    letter-spacing: 3px;
}

.review-count {
    color: #777;
    font-size: .9rem;
    margin-bottom: 25px;
}

.review-card {
    background: white;
    border-radius: 12px;
    padding: 22px;
    text-align: left;
}

.review-text {
    font-style: italic;
    color: #444;
    margin-bottom: 12px;
}

.review-author {
    font-size: .85rem;
    color: #777;
}


/* =========================
   GALLERY
========================= */

#gallery {
    padding: 30px 0;
}

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

.gallery img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

/* =========================
   GALLERY CAROUSEL
========================= */

.gallery-carousel {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.gallery-slides {
    position: relative;
}

.gallery-slide {
    display: none;

    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, 220px);
    gap: 10px;
}

.gallery-slide.active {
    display: grid;
}

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

    border-radius: 12px;
}


/* ARROWS */

.gallery-prev,
.gallery-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);

    width: 46px;
    height: 46px;

    border: none;
    border-radius: 50%;

    background: rgba(255,255,255,.9);
    color: #0f2f76;

    font-size: 1.6rem;
    cursor: pointer;

    z-index: 2;
}

.gallery-prev {
    left: 15px;
}

.gallery-next {
    right: 15px;
}


/* MOBILE */

@media (max-width: 700px) {

    .gallery-slide {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(3, 150px);
        gap: 6px;
    }

    .gallery-slide img {
        border-radius: 8px;
    }

    .gallery-prev,
    .gallery-next {
        width: 40px;
        height: 40px;
    }

    .gallery-prev {
        left: 8px;
    }

    .gallery-next {
        right: 8px;
    }
}


/* =========================
   CTA
========================= */

.cta {
    background: #fba915;
    text-align: center;
    padding: clamp(60px, 8vw, 100px) 20px;
}

.cta h2 {
    font-family: "Gochi Hand", cursive;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 30px;
}

.cta .primary {
    display: inline-block;
    width: auto;
    padding: 18px 45px;
    font-size: 1.15rem;
    font-weight: 700;

    background: white;
    color: #0077cc;
}

.cta .book-btn {
    font-size: 1.5rem;
	
}

/* =========================
   CONTACT
========================= */

#contact {
    padding: 50px 0 80px;
}

#contact .container {
    max-width: 1000px;
}

.contact-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 50px;
    align-items: center;
}

/* MAP */

.contact-map {
    width: 100%;
    min-width: 0;
    height: 320px;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, .12);
}


.contact-map iframe {
    display: block;
    width: 100%;
    max-width: 100%;
    height: 100%;
    border: 0;
}

/* CONTACT INFORMATION */

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-info a {
    display: flex;
    align-items: center;
    gap: 18px;

    color: #0f2f76;
    text-decoration: none;

    font-size: 1.05rem;
    font-weight: 500;

    transition: .2s ease;
}

.contact-info a:hover {
    transform: translateX(5px);
    opacity: .7;
}

.contact-info i {
    width: 28px;
    text-align: center;
    font-size: 1.5rem;
}


/* MOBILE */

@media (max-width: 700px) {

    .contact-content {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .contact-map {
        height: 250px;
    }

    .contact-info {
        gap: 20px;
    }

    .contact-info a {
        justify-content: center;
        text-align: left;
        font-size: 1rem;
    }
}

/* =========================
   FOOTER
========================= */

footer {
    padding: 35px;
    text-align: center;
    background: #fcf0da;
    color: #0f2f76;
}

footer a {
    color: inherit;
    text-decoration: underline;
}

footer a:hover {
    opacity: .7;
}


/* =========================
   STICKY WHATSAPP
========================= */

.sticky-whatsapp {
    position: fixed;
    right: 20px;
    bottom: 20px;

    width: 58px;
    height: 58px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: #25D366;
    color: white;

    border-radius: 50%;
    font-size: 1.8rem;
    line-height: 1;

    text-decoration: none;

    box-shadow: 0 5px 20px rgba(0, 0, 0, .25);

    z-index: 10000;

    transition: transform .2s ease;
}

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


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 900px) {

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

    .review-platforms {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin: auto;
    }
}


@media (max-width: 768px) {

    header .container {
        padding: 10px 0;
    }

    .logo img {
        height: 40px;
    }

    .logo span {
        font-size: 1.1rem;
    }

    .menu-toggle {
        display: flex;
    }

    nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;

        flex-direction: column;
        gap: 0;
        padding: 10px 5% 20px;

        background: #fcf0da;
        box-shadow: 0 8px 12px rgba(0, 0, 0, .1);
    }

    nav.open {
        display: flex;
    }

    nav a {
        width: 100%;
        padding: 14px 0;
        text-align: center;
        border-bottom: 1px solid rgba(15, 47, 118, .12);
    }

    nav .book-btn {
        margin-top: 16px;
        width: 100%;
        padding: 14px 20px;
        font-size: 1rem;
    }
}


@media (max-width: 700px) {

    .package-summary {
        flex-direction: column;
        align-items: stretch;
        padding: 25px;
        gap: 20px;
    }

    .package-summary h3 {
        text-align: center;
    }

    .package-toggle {
        width: 100%;
        justify-content: center;
    }

    .package-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .package-details-inner {
        padding: 0 25px;
    }

    .package-card.active .package-details-inner {
        padding: 10px 25px 25px;
    }

    .package-price-large {
        font-size: 2.5rem;
    }
    .contact-content {
        grid-template-columns: minmax(0, 1fr);
        gap: 35px;
    }

    .contact-map {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        height: 250px;
    }
}


@media (max-width: 600px) {

    .booking-modal-content h2 {
        font-size: 1.3rem;
    }

    .reviews-section {
        padding: 30px 0;
    }

    #contact {
        padding: 40px 20px;
    }

    #contact a {
        font-size: 1rem;
        text-align: center;
        word-break: break-word;
    }

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

    .sticky-whatsapp {
        right: 15px;
        bottom: calc(15px + env(safe-area-inset-bottom));

        width: 56px;
        height: 56px;

        font-size: 1.7rem;
    }
}
