@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400..700;1,400..700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

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

html, body {
  min-height: 100vh;
  line-height: 1.5;
  font-family: 'Poppins', sans-serif;
  font-size: 100%;
  background-color: #fff8f0;
}

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

input, button, select, textarea {
  font: inherit;
}

ul, ol {
  list-style: none;
}

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

nav {
    position: sticky;
    top: 0;
    background: rgba(255, 248, 240, 0.85);
    backdrop-filter: blur(10px);
    z-index: 100;
}

.navbar-container {
    display: flex;
    align-items: center;
    padding: 1.5rem;
    gap: 2.5rem;
    font-family: 'Lora', serif;
    font-size: clamp(1rem, 1.35vw, 1.5rem);
}

#logo {
    font-size: clamp(1.6rem, 5.4vw, 2.3rem);
    font-weight: 600;
    font-family: 'Lora', serif;
}

nav ul {
    display: flex;
    gap: 2.1rem;
    margin: 0 auto;
}

 nav ul li {
    text-shadow: none;
    transition: text-shadow 0.2s ease-in-out;
 }

 nav ul li:hover {
    text-shadow: 0 0 30px #43b4e9, 0 0 25px #43b4e9;
 }

.cta-nav {
    background-color: #43b4e9;
    transition: background-color 0.5s ease;
    border: none;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 1.5rem;
}

.cta-nav:hover {
    background-color: #3495c2;
    cursor: pointer;
    color: #fac88b;
}

.cta-nav:active {
    transform: translateY(1px);
}

.hamburger {
    display: none;
}

.hero {
    display: flex;
    flex-direction: column;
    height: 80vh;
    justify-content: flex-end;
    align-items: center;
    gap: 2rem;
    padding: 0 5%;
}

.home-hero {
    background-image: url('images/heroImage.jpg');
    background-size: cover;
    background-position: right center;
}

.home-hero-content {
    max-width: 1500px;
    border-radius: 8px;
    margin-bottom: 1rem;
    backdrop-filter: blur(3px);
}

.home-hero-content h1 {
    font-family: 'Lora', serif;
    font-size: clamp(2.3rem, 7.2vw, 5.4rem);
    line-height: 1.1;
    font-weight: 700;
    font-style: italic;
    color: #fff8f0;
    text-shadow: 3px 3px 10px #E67E22;
}

.page-content {
    max-width: 1100px;
    margin: 0 auto;
    font-size: clamp(0.9rem, 2.7vw, 1.1rem);
}

.page-content h2 {
    font-family: 'Lora', serif;
    font-size: clamp(1.8rem, 5.4vw, 2.7rem);
    margin: 3rem 0 2rem;
}

.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 0.3rem;
}

.card {
    border-radius: 10px;
    height: 30rem;
    display: flex;
    padding: 1rem;
    flex-direction: column;
    justify-content: end;
    position: relative;
    z-index: 0;
    cursor: pointer;
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.19), 0px 6px 6px rgba(0, 0, 0, 0.23)
}

.card::before {
    will-change: background-color;
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, 0.2);
    z-index: 1;
    pointer-events: none;
    border-radius: 10px;
}

.card h3 {
    color: #fff;
    font-size: clamp(1.4rem, 4.5vw, 1.8rem);
    font-family: 'Lora', serif;
    position: relative;
    z-index: 2;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6)
}

.card-button {
    background-color: transparent;
    border: 1px solid #fff;
    color: #fff;
    align-self: flex-start;
    padding: 0.4rem;
    border-radius: 13px;
    position: relative;
    z-index: 2;
}

.hidden-text {
    will-change: opacity, max-height;
    color: #fff;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 2;
    opacity: 0;
    max-height: 0;
    visibility: hidden;
    overflow: hidden;
    transition: opacity 0.12s ease, max-height 0.12s ease, visibility 0s linear 0.12s;
}

.card:hover::before {
    background-color: rgba(0, 0, 0, 0.5);
}

.card:hover .hidden-text {
    opacity: 1;
    max-height: 70px;
    visibility: visible;
    transition: opacity 0.12s ease, max-height 0.12s ease, visibility 0s;
}

.rainforest-card {
    background-image: url('images/rainforest-home.jpg');
    background-size: cover;
    background-position: center bottom;
}

.beach-card {
    background-image: url('images/beach-home-card.jpg');
    background-size: cover;
    background-position: center center;
}

.amenities-card {
    background-image: url('images/amenities-home.jpg');
    background-size: cover;
    background-position: center center;
}

.divider-line {
    height: 0px;
    width: 100%;
    border-top: 10px solid #43b4e9;
    margin-bottom: 1rem;
}

.grid-container {
    display: grid;
    align-items: center;
    grid-template-columns: 1fr 1fr;
    margin-bottom: 1rem;
    cursor: pointer;
}

.target {
    transition: font-size 0.2s ease;
}

.left-grid {
    font-size: clamp(1.3rem, 4.5vw, 1.8rem);
    font-weight: 600;
}

.grid-container:hover .target {
    font-size: clamp(2rem, 7vw, 3.2rem);
}

.right-grid {
    font-size: clamp(1.1rem, 3.6vw, 1.4rem);
}

footer {
    background-color: #fab85d;
    padding: 2rem 0;
    margin-top: 7rem;
    font-size: clamp(0.8rem, 2.7vw, 1.1rem);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    place-items: center;
}

.footer-margin {
    margin-bottom: 1rem;
}

.column ul li, .column h3 {
    margin-bottom: 0.5rem;
}

footer a:hover {
    color: #43b4e9;
}

.accommo-hero {
    background-image: url('images/accommo-hero.jpg');
    background-size: cover;
    background-position: center center;
}

.accommo-cards {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 4rem;
    padding: 2.5rem;
    background-color: #fac88b;
    border-radius: 40px;
    margin-bottom: 3rem;
}

.page-cards {
    transition: transform 0.3s ease;
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.19), 0px 6px 6px rgba(0, 0, 0, 0.23);
}

.page-cards:hover {
    transform: translateY(-10px);
    box-shadow: 0px 15px 30px rgba(0, 0, 0, 0.25), 0px 10px 10px rgba(0, 0, 0, 0.3);
}

.accommo-cards img {
    width: 28rem;
    height: 20rem;
    border-radius: 40px;
    object-fit: cover;
    object-position: center bottom;
}

.flex-accommo {
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 0 0 500px;
}

.card-heading {
    font-size: clamp(1.5rem, 5.4vw, 2.3rem);
    font-family: 'Lora', serif;
    margin-bottom: 0.5rem;
}

.flex-accommo > .subheading {
    font-size: clamp(1rem, 3.6vw, 1.3rem);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.page-button {
    align-self: flex-start;
    padding: 0.8rem;
    border-radius: 20px;
    background-color: transparent;
    margin-top: 0.8rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.page-button:hover {
    background-color: #3495c2;
    color: #fac88b;
}

.disclaimer {
    font-size: clamp(0.7rem, 2.3vw, 0.8rem);
    color: #8b6f47;
    margin-top: 0.5rem;
}

.act-hero {
    background-image: url('images/act-hero.jpg');
    background-size: cover;
    background-position: center center;
}

.intro-section {
    display: flex;
    gap: 3rem;
    align-items: center;
    margin-bottom: 2rem;
}

.intro-section p {
    flex: 1 1 400px;
}

.act-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 3rem;
}

.act-card {
    background-color: #fac88b;
    border-radius: 40px;
    height: 33rem;
    padding: 2rem;
}

.act-card img {
    border-radius: 40px;
    margin-bottom: 0.8rem;
    width: 34rem;
    height: 20rem;
}

.act-button {
    background-color: #fac88b;
    border: none;
}

.trans-hero {
    background-image: url('images/trans-hero.jpg');
    background-size: cover;
    background-position: center center;
}

.button-trans-flex {
    display: flex;
    gap: 2rem;
    justify-content: center;
    align-items: center;
    font-size: clamp(1.1rem, 3.6vw, 1.4rem);
}

.margin-p-el {
    margin-bottom: 2.5rem;
}

.booking-hero {
    background-image: url('images/booking-hero.jpg');
    background-size: cover;
    background-position: center center;
}

form {
    background: rgba(255, 248, 240, 0.85);
    backdrop-filter: blur(2px);
    display: grid;
    gap: 1rem;
    padding: 1.5rem;
    border-radius: 40px;
    max-width: 500px;
}

input {
    width: 100%;
}

.grid-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group label {
    font-weight: 600;
    font-size: clamp(0.9rem, 2.8vw, 1.1rem);
}


#travel {
    max-width: 48%;
}

.page-button:disabled {
    background-color: #ccc;
    color: #666;
    cursor: not-allowed;
    opacity: 0.6;
}

@media (max-width: 992px) {

    .card-button,
    .page-button,
    .cta-nav,
    nav ul li a {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        padding: 0.6rem 1rem;
    }
    nav {
        flex-wrap: wrap;
        gap: 1rem;
        padding: 1rem;
        position: relative;
    }

    nav ul {
        gap: 1rem;
        width: 100%;
        justify-content: center;
    }

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

    .navbar-container {
        display: none;
        flex-direction: column;
        width: 100%;
        background: rgba(255, 248, 240, 0.98);
        position: absolute;
        top: 100%;
        left: 0;
        padding: 1rem;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        z-index: 99;
    }

    .navbar-container.active {
        display: flex;
    }

    .navbar-container ul {
        flex-direction: column;
    }

    .hamburger {
        display: block;
        font-size: 3rem;
        text-align: center;
        padding: 0 1rem;
    }  

    .hero {
        height: 60vh;
        min-height: 400px;
    }

    .home-hero-content {
        padding: 1rem;
    }

    .page-content {
        padding: 0 1.5rem;
    }

    .card-container {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .card {
        height: 25rem;
    }

    .hidden-text {
        opacity: 1;
        max-height: 100px;
        visibility: visible;
    }

    .card::before {
        background-color: rgba(0, 0, 0, 0.5);
    }

    .grid-container {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
        padding: 0 1rem;
    }

    footer {
        margin-top: 4rem;
    }

    .accommo-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
        border-radius: 20px;
        margin-bottom: 2rem;
    }

    .accommo-cards img {
        width: 100%;
        height: auto;
        min-height: 200px;
        border-radius: 20px;
    }

    .flex-accommo {
        flex: 1 1 auto;
    }

    .intro-section {
        flex-direction: column;
        gap: 0.4rem;
    }

    .intro-section p {
        flex: 1;
    }

    .act-grid-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .act-card {
        height: auto;
        padding: 1.5rem;
        border-radius: 20px;
    }

    .act-card img {
        width: 100%;
        height: auto;
        min-height: 200px;
        border-radius: 20px;
    }

    .button-trans-flex {
        flex-direction: column;
        gap: 1rem;
    }

    .booking-hero {
        height: auto;
        min-height: 100vh;
        padding: 2rem 1.5rem;
        justify-content: center;
    }

    form {
        max-width: 100%;
        padding: 1.5rem;
        border-radius: 20px;
    }

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

    #travel {
        max-width: 100%;
    }
}