/* =========================================================
   home.css
   ---------------------------------------------------------
   TABLE OF CONTENTS
   1) BASE / UTILITIES
   3) ABOUT US
   4) ROOMS & SHARED BG
   5) ROOMS – CARDS
   6) HOTEL AMENITIES – LAYOUT
   8) MEDIA QUERIES
   ========================================================= */


/* =========================================================
   1) BASE / UTILITIES
   ========================================================= */
body {
    background-color: white;
    min-height: var(--min-height-body);
}

.card {
    padding: clamp(1.25rem, 3vw, 2rem);
    border-radius: var(--border-radius-secondary);
    background-color: var(--background-tertiary);
    border: var(--border-primary);
    box-shadow: var(--box-shadow-primary);
}

.title-secondary {
    font-family: var(--font-family-secondary);
    font-weight: 400;
    /* ✅ lighter for elegance */
    font-size: 2.5rem;
    /* ✅ adjust size for hero */
    letter-spacing: 0.03em;
    /* ✅ improves readability */
}

.title-tertiary {
    font-family: var(--font-family-primary);
    font-weight: var(--font-weight-bold);
    font-size: clamp(1.25rem, 1.8vw, 1.75rem);
    line-height: var(--line-height-relaxed);
    color: var(--text-primary);
}

.title-tertiary .underline {
    padding-bottom: .5rem;
}

#prevBtn,
#nextBtn {
    display: none;
}


/* =========================================================
   3) ABOUT US
   ========================================================= */
#aboutus {
    min-height: 95vh;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
    align-items: center;
    /* card hugs bottom line */
    gap: clamp(1rem, 3vw, 2rem);
    padding: clamp(1.5rem, 4vw, 3rem) var(--margin-page, 1rem);
    position: relative;
}

.about-us__image {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
}

.about-us__image img {
    display: block;
    width: min(50rem, 100%);
    height: auto;
    object-fit: cover;
    border-radius: var(--border-radius-secondary);
    box-shadow: var(--box-shadow-primary);
}

.about-us__details {
    grid-column: 2;
    grid-row: 1;
    /* ✅ same row as image */
    align-self: center;
    position: relative;
    z-index: 2;
    margin-left: -3.5rem;
    /* overlap into the image */
    background: var(--background-tertiary);
}

.about-lead {
    font-family: var(--font-family-primary);
    color: var(--brand-primary-color);
    line-height: var(--line-height-relaxed);
    font-size: var(--font-size-lg);
    padding-top: 1rem;
}

.about-us__details .button {
    margin-top: 2rem;
    width: 12rem;
    box-shadow: var(--box-shadow-primary);
}


/* =========================================================
   4) ROOMS & SHARED BACKGROUND
   ========================================================= */
.rooms,
.gallery {
    min-height: 95vh;
    padding-bottom: 2rem;
    margin: var(--margin-page-negative);
}

/* Example: Rooms / Gallery sections */
.rooms,
.gallery,
.amenities__description {
    background: linear-gradient(rgba(246, 246, 246, 0.96),
            rgba(246, 246, 246, 0.96)), var(--background-image) repeat center center;
    background-size: cover, 30%;
    box-shadow: var(--box-shadow-secondary);
}

.rooms__header,
.gallery__header,
.amenities__header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1.5625rem;
    margin: var(--margin-page);
    gap: 1rem;
}

.rooms__header p,
.amenities__header p {
    width: 80rem;
    text-align: center;
    flex-wrap: wrap;
}

.rooms__header h2,
.amenities__header h2 {
    padding-bottom: 2rem;
}

/* =========================================================
   6) HOTEL AMENITIES – LAYOUT
   ========================================================= */
.amenities {
    min-height: 95vh;
    margin: var(--margin-page);
}

.amenity__desc {
    padding-top: 2rem;
}

.hotel-detail__amenities-sublist {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.hotel-detail__amenity-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    vertical-align: middle;
    flex-wrap: nowrap;
    text-align: center;
    width: 10rem;
    height: 8rem;
    border: var(--border-primary);
    box-shadow: var(--box-shadow-primary);
    background: linear-gradient(rgba(246, 246, 246, 0.96),
            rgba(246, 246, 246, 0.96)), var(--background-image);
    background-size: cover, 100% auto;
    background-repeat: no-repeat;
    position: relative;
    transition: all 0.3s ease-in-out;
    overflow: hidden;
}

/* --- Smooth Hover Effect --- */
.hotel-detail__amenity-card:hover {
    transform: translateY(-5px);
    /* Lift effect */
    box-shadow: 0px 10px 20px rgba(0, 0, 0, 0.2);
    /* Stronger shadow */
    border-color: var(--brand-primary-color);
    /* Highlight border */
    transition: all 0.3s ease-in-out;
}

/* --- Subtle Background Zoom --- */
.hotel-detail__amenity-card:hover::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    z-index: 0;
    transform: scale(1.05);
    transition: all 0.3s ease-in-out;
}

/* --- Text & Icon Effects --- */
.hotel-detail__amenity-card i {
    font-size: 2rem;
    transition: color 0.3s ease-in-out, transform 0.3s ease-in-out;
}

.hotel-detail__amenity-card:hover i {
    color: var(--brand-primary-color);
    transform: scale(1.2);
}

.hotel-detail__amenity-card h4 {
    font-size: 1rem;
    transition: color 0.3s ease-in-out;
}

.hotel-detail__amenity-card:hover h4 {
    color: var(--brand-primary-color);
}

/* --- Ripple Effect --- */
.hotel-detail__amenity-card::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    top: 50%;
    left: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 10%, transparent 70%);
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    transition: transform 0.5s ease-in-out, opacity 0.5s ease-in-out;
}

.hotel-detail__amenity-card:hover::after {
    transform: translate(-50%, -50%) scale(2);
    opacity: 1;
}


/* =========================================================
   8) MEDIA QUERIES
   ========================================================= */

/* =========================
   Desktop-only Search Button Overrides
   ========================= */
@media (min-width: 1025px) {
    .booking-form__fields {
        height: 8rem;
        padding: 0 0 !important;
        border-radius: 100px;
    }

    /* Add left spacing only to the first field */
    .booking-form__fields> :first-child {
        padding-left: 2rem;
        /* spacing from container edge */
    }

    /* Keep input-wrap neutral (no forced padding) */
    .input-wrap {
        padding-left: 0 !important;
    }

    .input-wrap {
        position: relative;
    }

    .input-wrap .dropdown-icon, .input-wrap i {
        position: absolute;
        right: 1rem;
        top: 50%;
        transform: translateY(-50%);
        pointer-events: none;
        color: var(--brand-primary-color);
    }

    .booking-form__fields .button--primary {
        height: auto;
        align-self: stretch;
        border-radius: 0px 100px 100px 0;
    }
}

@media (max-width: 1024px) {

    .title-tertiary {
        align-items: flex-start;
    }

    /* --- About Us --- */
    #aboutus.about--blue {
        margin: var(--margin-page-negative) !important;
        display: flex;
        flex-direction: column;
        width: fit-content;
    }

    .about-us__details {
        display: flex;
        flex-direction: column;
        width: fit-content !important;
        margin: 0;
    }

    .about-us__details .button {
        width: 100%;
        /* full width button for tap targets */
    }

    /* --- Room Details --- */
    .rooms__header p,
    .rooms__header h3 {
        width: 100vw;
        padding: 0 1rem;
        text-align: left;
    }

    /* --- Amenities --- */
    .amenities {
        margin: var(--margin-page-negative) !important;
    }

    .amenities__header p,
    .amenities__header h3 {
        width: 100vw;
        padding: 0 1rem;
        text-align: left;
    }

    .amenities__header h2 {
        padding-bottom: 2rem;
    }

    .amenity {
        display: flex;
        flex-direction: column;
        position: relative;
        /* padding: 5rem 0rem; */
    }

    .hotel-detail__amenities-sublist {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: .75rem;
    }

    .hotel-detail__amenity-card {
        width: 100%;
        height: 6.25rem;
        border-radius: 12px;
    }

    .hotel-detail__amenity-card i {
        font-size: 1.6rem;
        margin-bottom: .35rem;
    }

    .hotel-detail__amenity-card h4 {
        font-size: .95rem;
    }
}