#header-bg {
    opacity: 0.6;
    object-fit: cover;
    z-index: 0;
}

.header-container {
    height: 400px;
}

.header-container h2 {
    color: #F6F4EB !important;
    justify-content: left;
}

.h1 {
    color: #001F3F !important;
    justify-content: center;
}

.header-text-container {
    z-index: 1;
}

.header-text {
    font-family: 'Varela Round', serif;
    font-size: 1rem;
    line-height: 1.4;
    color: #F6F4EB;
}

body {
    background-color: #F6F4EB;
}

html {
    scroll-behavior: smooth;
}

#packages-section {
    scroll-margin-top: 80px;
    /* Adjust based on your header height */
}

/* ROOMS */

.room-img-lg {
    height: 500px;
    /* adjust as needed */
    object-fit: cover;
    border-radius: 5px;
}

.custom-card-container {}

.card-text {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    /* shows only 3 lines */
    -webkit-box-orient: vertical;
}

.btn-dark:hover {
    background-color: #343a40;
    /* slightly lighter */
    color: #fff;
}

.room-card {
    width: 90%;
    /* reduced width on large screens */
    max-width: 900px;
    /* prevent it from being too wide */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.room-card:hover {
    transform: translateY(-5px);
}

.carousel-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}


/* ------------------ ROOMS ------------------ */

/* Container adjustments */
.custom-card-container {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 1000px;
}

/* Room Card */
.room-card {
    width: 90%;
    /* width relative to container */
    max-width: 1000px;
    /* prevent too wide cards */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s;
}

.room-card:hover {
    transform: translateY(-5px);
}

/* Row inside card */
.room-card .row {
    margin: 0;
}

/* Carousel Column */
.room-card .col-md-5 {
    display: flex;
    align-items: center;
    padding: 0.5rem;
}

.row {
    justify-content: center;
}

/* Carousel Images */
.room-img-lg,
.carousel-img {
    width: 100%;
    height: 300px;
    /* default height for desktop */
    object-fit: cover;
    border-radius: 5px;
}

/* Card Body Column */
.room-card .col-md-7 .card-body {
    padding: 1rem;
}

/* Card Text (Description) */
.card-text {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    /* max 3 lines on desktop */
    -webkit-box-orient: vertical;
}

/* Card Title */
.card-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

/* Buttons */
.card-body .btn-dark {
    font-size: 0.8rem;
    border-radius: 20px;
    padding: 5px 12px;
    transition: all 0.3s ease;
    background-color: transparent;
    color: #001F3F;
}

.card-body .btn-dark:hover {
    background-color: #001F3F;
    color: #fff;
}

/* ------------------ RESPONSIVE ------------------ */

/* Tablet screens */
@media (max-width: 991px) {

    .room-card .col-md-5,
    .room-card .col-md-7 {
        padding: 0;
    }

    .room-img-lg,
    .carousel-img {
        height: 350px;
    }

    .card-body {
        padding: 1.25rem;
    }
}

/* Small tablets and large phones */
@media (max-width: 768px) {
    .custom-card-container {
        padding: 0 0.5rem;
    }

    .room-card {
        width: 100%;
        border-radius: 8px;
    }

    /* Stack carousel and info vertically on mobile */
    .room-card .row {
        flex-direction: column !important;
    }

    .room-card .col-md-5,
    .room-card .col-md-7 {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
    }

    /* Adjust carousel height for tablets */
    .room-img-lg,
    .carousel-img {
        height: 300px;
        border-radius: 8px 8px 0 0;
    }

    .card-body {
        padding: 1.25rem;
    }

    .card-title {
        font-size: 1.35rem;
    }

    .card-text {
        -webkit-line-clamp: 4;
        font-size: 0.9rem;
    }
}

/* Mobile phones */
@media (max-width: 576px) {
    .custom-card-container {
        margin-bottom: 1.5rem;
        padding: 0 0.25rem;
    }

    .room-card {
        border-radius: 6px;
    }

    /* Optimize carousel for mobile */
    .room-img-lg,
    .carousel-img {
        height: 250px;
        border-radius: 6px 6px 0 0;
    }

    .card-body {
        padding: 1rem;
    }

    .card-title {
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }

    .card-body p {
        font-size: 0.85rem;
        margin-bottom: 0.4rem;
    }

    .card-text {
        -webkit-line-clamp: 3;
        font-size: 0.85rem;
        line-height: 1.5;
        margin-bottom: 0.75rem;
    }

    .card-body .btn-dark {
        font-size: 0.85rem;
        padding: 6px 16px;
        width: 100%;
        text-align: center;
    }
}

/* Very small phones (iPhone SE, etc.) */
@media (max-width: 380px) {

    .room-img-lg,
    .carousel-img {
        height: 220px;
    }

    .card-body {
        padding: 0.875rem;
    }

    .card-title {
        font-size: 1.1rem;
    }

    .card-body p {
        font-size: 0.8rem;
    }

    .card-text {
        font-size: 0.8rem;
    }
}

/* Carousel controls adjustments for mobile */
@media (max-width: 768px) {

    .carousel-control-prev,
    .carousel-control-next {
        width: 40px;
    }

    .carousel-control-prev-icon,
    .carousel-control-next-icon {
        width: 20px;
        height: 20px;
    }
}

/* Legacy support */
.room-img-lg {
    height: 400px;
    object-fit: cover;
    border-radius: 0;
}



/* =======================
   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(4, 1fr);
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

/* 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
/* ====== MODAL BACKDROP ====== */
.module {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: flex-start;
    padding-top: 100px; /* prevents overlap with navbar */
    overflow-y: auto;
    backdrop-filter: blur(4px); /* soft blur effect */
}

/* Show when targeted */
.module:target {
    display: flex;
    animation: fadeIn 0.3s ease forwards;
}

/* ====== CLICKABLE BACKGROUND TO CLOSE ====== */
.module-close-area {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: block;
    background: transparent;
    cursor: pointer;
}

/* ====== MODAL BOX ====== */
.module-content {
    position: relative;
    z-index: 2; /* keep above background */
    background: #fff;
    color: #001F3F;
    padding: 2rem 1.5rem;
    border-radius: 1rem;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-height: calc(90vh - 80px);
    overflow-y: auto;
    animation: slideUp 0.3s ease forwards;
}

/* ====== CLOSE BUTTON ====== */
.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: 600;
    color: #001F3F;
    text-decoration: none;
    line-height: 1;
    transition: color 0.2s;
}

.close-modal:hover {
    color: #000;
}

/* ====== HEADINGS ====== */
.module-content h2 {
    text-align: center;
    margin-bottom: 1rem;
    color: #001F3F;
    font-size: 1.8rem;
    border-bottom: 2px solid #001F3F;
    display: inline-block;
    padding-bottom: 0.25rem;
}

/* ====== TEXT CONTENT ====== */
.module-content p {
    line-height: 1.6;
    color: #333;
    margin-bottom: 1rem;
}

/* ====== BUTTON STYLES (optional) ====== */
.module-content .btn {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    background-color: #001F3F;
    color: #fff;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.2s;
}

.module-content .btn:hover {
    background-color: #003366;
}

/* ====== CUSTOM SCROLLBAR ====== */
.module-body::-webkit-scrollbar {
    width: 6px;
}
.module-body::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

/* ====== ANIMATIONS ====== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}


/* ====== RESPONSIVE ADJUSTMENTS ====== */
@media (max-width: 480px) {
    .module-content {
        padding: 1.5rem 1rem;
        width: 95%;
        border-radius: 0.75rem;
    }

    .module-content h2 {
        font-size: 1.5rem;
    }

    .close-modal {
        font-size: 26px;
    }
}


/* =======================
   PACKAGE DETAILS
======================= */
.package-details table,
.package-type-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.package-details th,
.package-details td,
.package-type-content th,
.package-type-content td {
    padding: 12px;
    text-align: left;
    border: 1px solid #ddd;
    color: #001F3F;
}

.package-details th,
.package-type-content th {
    background-color: #001F3F;
    color: #FFFFFF;
    font-weight: bold;
}

.package-type-content tbody tr:hover {
    background-color: rgba(0, 31, 63, 0.05);
}

/* Inclusions */
.inclusions {
    background-color: #FFFFFF;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #ddd;
    color: #001F3F;
}

.inclusions h3 {
    margin: 0 0 15px 0;
}

.inclusions ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.inclusions li {
    padding: 8px 0;
    border-bottom: 1px solid #dee2e6;
}

.inclusions li:last-child {
    border-bottom: none;
}

.inclusions li::before {
    content: "\2713 ";
    color: #001F3F;
    font-weight: bold;
    margin-right: 10px;
}

/* =======================
   PACKAGE TYPE SWITCH
======================= */
.package-type-content {
    display: none;
}

.package-type-content.active {
    display: block;
}

/* Toggle Buttons */
.btn-group {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: center;
}

.btn-toggle {
    font-size: 0.8rem;
    border-radius: 20px;
    padding: 5px 12px;
    background-color: transparent;
    color: #001F3F;
    border: 1px solid #001F3F;
    transition: all 0.3s ease;
}

.btn-toggle:hover,
.btn-toggle.active {
    background-color: #001F3F;
    color: #FFFFFF;
}

@media (max-width: 1024px) {
    .card-container {
        grid-template-columns: repeat(2, 1fr);
        max-width: 700px;
        padding: 10px;
    }
}

/* Base styles for h1 headers */
h1 {
    text-align: center;
    margin-bottom: 40px;
    color: #001F3F;
    font-size: 2.5rem;
    /* Default desktop size */
    word-wrap: break-word;
    /* Prevent overflow */
}

.packages-section {
    text-align: center;
    margin-bottom: 40px;
    color: #001F3F;
    font-size: 2.5rem;
    padding: 0 15px;
    word-wrap: break-word;
}

/* Tablet devices (768px and below) */
@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
        margin-bottom: 30px;
    }

    .packages-section {
        font-size: 2rem;
        margin-bottom: 30px;
    }
}

/* Mobile devices (576px and below) */
@media (max-width: 576px) {
    h1 {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }

    .packages-section {
        font-size: 1.5rem;
        margin-bottom: 20px;
        padding: 0 10px;
    }
}

/* Extra small devices (400px and below) */
@media (max-width: 400px) {
    h1 {
        font-size: 1.25rem;
        margin-bottom: 15px;
    }

    .packages-section {
        font-size: 1.25rem;
        margin-bottom: 15px;
    }
}