:root {
    --color-light-blue: #3A6D8C;
    --color-primary-white: rgb(240, 240, 240);
    --cream: #EAD8B1;
    --light-blue: #6A9AB0;
    --dark-blue: #3A6D8C;
    --navy-blue: #001F3F;
    --brand-color: hsl(46, 100%, 50%);
    --black: hsl(0, 0%, 0%);
    --white: hsl(0, 0%, 100%);
    /*--font-title: "Montserrat", sans-serif;
  --font-text: "Lato", sans-serif;
  --bg-color: #FAF7F3 --green:#004030;*/
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #F6F4EB;
}

/* Map area */
.map-section {
    background-color: white;
    margin: 60px auto;
    text-align: center;
    max-width: 100%;
    display: flex;
    flex-direction: column;
}

.map-section h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: #001F3F;
    margin-bottom: 15px;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
    padding: 1rem;
}

.map-section h3 {
    font-size: 1rem;
    font-weight: 400;
    color: #001F3F;
    margin-bottom: 25px;
    letter-spacing: 1px;
    position: relative;
    display: inline-block;
    font-family: 'Varela Round', serif;
}

.map-container {
    position: relative;
    width: 100%;
    height: 500px;
    border-radius: 20px;
    overflow: hidden;
    padding: 1rem;
}


.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 20px;
}

.map-section a {
    font-weight: 500;
    color: #007bff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.map-section a:hover {
    color: #ffc107;
    text-decoration: underline;
}

/* fonts*/
.custom-font-1 {
    font-family: 'Lora', sans-serif;
    font-size: 50%;
    color: #001F3F;
}

.custom-font-2 {
    font-family: 'Varela Round', serif;
    color: #001F3F;
}



/*Bootstrap*/

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.carousel {}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
}

.carousel-control-prev,
.carousel-control-next {
    width: 5%;
}

/*.footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  white-space: nowrap;
  line-height: 60px;
}*/

.img-fluid {

    object-fit: cover;

    transition: 0.3s;
}

.img-fluid:hover {
    transform: scale(1.3);
}


.backgroundText {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    width: 100%;
    height: 30dvh;
    max-height: 450px;
    background-image: url('@Url.Content("~/resources/ResortBgdImage.jpg")');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}


.pointer-events-none {
    pointer-events: none;
}

#carousel,
.carousel-inner,
.carousel-item {
    height: 80vh;
}


/* OVERVIEW CONTAINER */

/* Container adjustments */
.container-content {
    padding: 4rem 1rem;
}

/* Flex layout adjustments */
.contentContainer {
    width: 100%;
    max-width: 83rem;
    gap: 3rem;
    background: white;
    padding: 1.5rem;
    margin: 0 auto;
    /* centers the container */
    border-radius: 1rem;
    /* soft corners */
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

/* Video layout */
.video-container {
    display: flex;
    align-items: center;
    justify-content: center;
}

.content-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.75rem;
}

.content-text {
    text-align: justify !important;
    font-family: 'Varela Round', serif !important;
    font-size: 0.9rem;
}

/* Equal height between text box and video on large screens */
@media (min-width: 992px) {
    .custom-font-1 {
        min-height: 420px;
    }

    .content-video {
        max-height: 420px;
    }
}

#overview {
    color: #001F3F;
    font-family: 'Lora', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
}

/* Small tablets */
@media (min-width: 576px) {
    .content-text {
        font-size: 0.95rem;
    }

    #overview {
        font-size: 1.25rem;
    }
}

@media (min-width: 768px) {
    .content-text {
        font-size: 1rem;
    }

    #overview {
        font-size: 1.4rem;
    }
}

/* OVERVIEW ENDS */

/* Card Rooms */
.rooms-header {
    font-family: 'Lora', sans-serif;
    font-size: 50px;
    color: #001F3F;
    margin-top: 3rem;
}

.card-component {
    font-family: 'Varela Round', serif;
    color: #001F3F;
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    justify-content: center;
    padding: 3rem 1.5rem;
    max-width: 85rem;
    /* matches overview section */
    margin: 0 auto;
    /* center alignment */
}

.card-component .card {
    height: auto;
    aspect-ratio: 4 / 3;
    max-height: 30rem;
    display: grid;
    place-items: center;
    max-width: 85rem;
    overflow: hidden;
    border-radius: 0.625rem;
    box-shadow: 0.25rem 0.25rem 0.5rem rgba(0, 0, 0, 0.25);
    position: relative;
}

.card-component .card>* {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
}

.card-component .card__background {
    object-fit: cover;
    max-width: 100%;
    height: 100%;
    gap: 100px;
}

.card-component .card__content {
    --flow-space: 0.9375rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-self: flex-end;
    width: 100%;
    height: 55%;
    padding: 12% 1.25rem 1.875rem;
    background: linear-gradient(180deg, hsla(0, 0%, 0%, 0) 0%, hsla(0, 0%, 0%, 0.3) 10%, hsl(0, 0%, 0%) 100%);
}

.card-component .card__content--container {
    --flow-space: 1.25rem;
}

.card-component .card__title {
    color: white;
    position: relative;
    font-family: 'Lora', san-serif;
    font-size: 2.25rem;
    line-height: 1.1;
    width: fit-content;
    width: -moz-fit-content;
}

.card-component .card__title::after {
    content: "";
    position: absolute;
    height: 0.3125rem;
    width: calc(100% + 1.25rem);
    bottom: calc((1.25rem - 0.5rem) * -1);
    left: -1.25rem;
    background-color: var(--brand-color);
}

.card-component .card__description {
    font-size: 1rem;
    line-height: 1.5;
    color: var(--white);
}

.card-component .card__button {
    padding: 0.75em 1.6em;
    width: fit-content;
    width: -moz-fit-content;
    font-variant: small-caps;
    font-weight: bold;
    border-radius: 0.45em;
    border: none;
    background-color: var(--brand-color);
    font-family: var(--font-title);
    font-size: 1.125rem;
    color: var(--black);
}

.card-component .card__button:focus {
    outline: 2px solid black;
    outline-offset: -5px;
}

.card-component .flow>*+* {
    margin-top: var(--flow-space, 1em);
}

@media (any-hover: hover) and (any-pointer: fine) {
    .card-component .card__content {
        transform: translateY(62%);
        transition: transform 500ms ease-out;
        transition-delay: 500ms;
    }

    @media (max-width: 768px) {
        .card-component .card__content {
            transform: translateY(0);
            background: linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.7));
        }
    }

    .card-component .card__title::after {
        opacity: 0;
        transform: scaleX(0);
        transition: opacity 1000ms ease-in, transform 500ms ease-out;
        transition-delay: 500ms;
        transform-origin: right;
    }

    .card-component .card__background {
        transition: transform 500ms ease-in;
    }

    .card-component .card__content--container> :not(.card__title),
    .card-component .card__button {
        opacity: 0;
        transition: transform 500ms ease-out, opacity 500ms ease-out;
    }

    .card-component .card:hover .card__content,
    .card-component .card:focus-within .card__content {
        transform: translateY(0);
        transition: transform 500ms ease-in;
    }

    .card-component .card:focus-within .card__content {
        transition-duration: 0ms;
    }

    .card-component .card:hover .card__background,
    .card-component .card:focus-within .card__background {
        transform: scale(1.3);
    }

    .card-component .card:hover .card__content--container> :not(.card__title),
    .card-component .card:hover .card__button,
    .card-component .card:focus-within .card__content--container> :not(.card__title),
    .card-component .card:focus-within .card__button {
        opacity: 1;
        transition: opacity 500ms ease-in;
        transition-delay: 1000ms;
    }

    .card-component .card:hover .card__title::after,
    .card-component .card:focus-within .card__title::after {
        opacity: 1;
        transform: scaleX(1);
        transform-origin: left;
        transition: opacity 500ms ease-in, transform 500ms ease-in;
        transition-delay: 500ms;
    }
}

.line {
    position: relative;
    top: 0;
    left: 0;
    width: 50%;
    height: 4px;
    background: linear-gradient(to right, #001F3F, #003366);
    z-index: 1000;
    margin: 5rem auto;
    border-radius: 2px;
}

.line::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: #001F3F;
    z-index: -1;
}


/* =======================
   PACKAGES SECTION
======================= */
.packages-section {
    padding: 40px 20px;
    background-color: #F6F4EB;
    /* beige background */
    font-family: 'Lora', serif;
    color: #001F3F;
    /* dark blue text */
}

/* Grid Layout */
.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

/* Package Card */
.card {
    background: #FFFFFF;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    color: #001F3F;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    position: relative;
    display: block;
}

.card:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.card-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Card Info */
.card-info {
    padding: 15px;
    text-align: center;
    background: #FFFFFF;
    color: #001F3F;
}

.card-info h2 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
}

/* Hover Overlay */
.card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 31, 63, 0);
    /* transparent dark blue tint */
    transition: background 0.3s ease;
    pointer-events: none;
}

.card:hover::after {
    background: rgba(0, 31, 63, 0.1);
}

/* =======================
   MODAL
======================= */
.module {
    display: none;
    position: fixed;
    z-index: 1000;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.module:target {
    display: flex;
}

.module-content {
    background-color: #FFFFFF;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    position: relative;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    max-height: 90vh;
    overflow-y: auto;
    color: #001F3F;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 30px;
    font-weight: bold;
    color: #001F3F;
    text-decoration: none;
    transition: color 0.2s;
}

.close-modal:hover {
    color: #000;
}

.module-content h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #001F3F;
}

/* Overlay Content */
.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    pointer-events: none;
}

.carousel-overlay .container {
    pointer-events: none;
}

/* Text Styling - Responsive */
.carousel-overlay h1 {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
    animation: fadeInDown 1s ease-in-out;
    /* Responsive font size: scales from 2rem (mobile) to 5rem (desktop) */
    font-size: clamp(2rem, 8vw, 5rem);
}

.carousel-overlay p {
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.8);
    animation: fadeInUp 1s ease-in-out;
    /* Responsive font size: scales from 1rem (mobile) to 2rem (desktop) */
    font-size: clamp(1rem, 3vw, 2rem);
}


.pool-banner {
    position: relative;
    width: 100%;
    height: 40vh;
    min-height: 300px;
    max-height: 500px;
    background-image: url('../Resources/big pool (4).jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.pool-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.pool-text-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
}

.pool-text {
    color: white;
    text-align: center;
    font-weight: 600;
    line-height: 1.6;
    margin: 0;
    font-size: 1.125rem;
}

/* Tablet styles */
@media (min-width: 768px) {
    .pool-banner {
        height: 45vh;
        min-height: 350px;
    }

    .pool-text-container {
        padding: 0 40px;
    }

    .pool-text {
        font-size: 1.375rem;
        line-height: 1.7;
    }
}

/* Desktop styles */
@media (min-width: 1024px) {
    .pool-banner {
        height: 50vh;
        min-height: 400px;
        max-height: 600px;
    }

    .pool-text-container {
        padding: 0 60px;
    }

    .pool-text {
        font-size: 1.625rem;
        line-height: 1.8;
    }
}

/* Large desktop styles */
@media (min-width: 1920px) {
    .pool-text {
        font-size: 1.875rem;
    }

    .map-section {
        display: flex;
        flex-direction: column;
    }

    /* Small mobile adjustments */
    @media (max-width: 480px) {
        .pool-banner {
            min-height: 280px;
        }

        .pool-text {
            font-size: 1rem;
            line-height: 1.5;
        }
    }
}