/* =================================
   SUITES PAGE STYLES
=================================== */

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

.hero-slideshow {
    position: relative;
    width: 100%;
    min-height: 100dvh;
    height: clamp(300px, 50vh, 600px);
    overflow: hidden;
}

.suites-hero-image {
    position: absolute;
    inset: 0;
}

.suites-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.suites-container {
    position: relative;
    inset: 0;
    z-index: 2;
    height: 100%;
    width: 100%;
    display: flex;
    align-items: flex-end; 
    justify-content: flex-start; 
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.55),
        rgba(0, 0, 0, 0.25),
        rgba(0, 0, 0, 0)
    );
}

.suites-hero-overlay {
    text-align: left;
    color: #fff;
    padding: 2rem 5rem;
}

.suites-hero-heading {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 500;
    letter-spacing: 0.04em;
    margin-bottom: 3rem;
    color: #fff;
}

.suites-hero-scroll {
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    font-weight: 400;
    cursor: pointer;
    opacity: 0.85;
    transition: opacity 0.3s ease, transform 0.3s ease;
    outline: none;
    padding-bottom: 3rem;
}

.suites-hero-scroll:hover {
    opacity: 1;
    transform: translateY(3px);
}

.suites-hero-scroll:focus-visible {
    outline: 1px solid rgba(255,255,255,0.6);
    outline-offset: 6px;
}

/* ===================================
   SUITES TABS & PANELS
=================================== */

.suites-tabs {
    display: grid;
    grid-template-columns:
        clamp(140px, 16vw, 200px)
        minmax(0, 1fr);
    gap: clamp(0.75rem, 2vw, 1rem);
    align-items: start;
    width: 100%;
}

.suites-tabs nav {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: sticky;
    padding-top: clamp(5rem, 1.5vw, 10rem);
    padding-left: clamp(1.5rem, 4vw, 2rem) !important;
    padding-right: clamp(1.5rem, 4vw, 2rem) !important;
}

.suites-tabs button {
    font-family: var(--font-italiana);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
    padding-bottom: 0.3rem;
    opacity: 0.5;
}

.suite-tab {
    background: none;
    border: none;
    text-align: left;
    letter-spacing: 0.12em;
    cursor: pointer;
    padding: 0;
    transition: color 0.3s ease;
    width: fit-content;
    display: inline-block;
}

.suite-tab.active {
    font-weight: bold;
    opacity: 1;
    border-bottom: 0.6px solid #333333ad;
}

.suites-tabs-content {
    display: grid;
    position: relative;
}

.suites-tabs-content::before {
    content: "";
    position: absolute;
    left: 0;
    top: 3rem;
    bottom: 3rem;
    width: 0.2px;
    background-color: #333333c5;
}

.suite-panel {
    display: none;
    max-height: 0;
    opacity: 0;
    grid-area: 1 / 1;   /* same row & column */
    pointer-events: none; 
    overflow: hidden;
    transition: max-height 0.5s ease, opacity 0.5s ease;
}

.suite-panel.active {
    display: grid;
    max-height: 2000px; /* big enough for content */
    opacity: 1;
    pointer-events: auto;
}

/* ===================================
   SUITE CONTENT
=================================== */

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

.suite-specs-s {
    width: 100%;
    min-width: 300px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    align-items: start;
    position: relative;
}

.suites-layout-s {
    display: grid;
    flex-direction: column;
    gap: 1rem;
}

.suite-specs-s::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
    background-color: rgba(0, 0, 0, 0.4);
    transform: translateX(-50%);
}

.suite-specs-s > * {
    min-width: 0;
}

.spec-item-s {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    justify-content: flex-start;
    align-items: start; 
    color: #555;
    min-width: 150px;
}

.spec-item-s::after {
    content: "";
    position: relative;
    width: 80%;
    left: 50%;
    height: 1px;
    background-color: rgba(0, 0, 0, 0.4);
    transform: translateX(-50%);
    margin-top: 1rem;
}

.spec-item-s:last-child::after, .spec-item-s:nth-last-child(2)::after {
    content: none;
}

.spec-label-s {
    font-size: 0.9rem; 
    font-weight: 700;   
    line-height: 1.2;  
    color: var(--text-color) !important;
    margin: 0rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.spec-value-s {
    font-size: 0.9rem;
    text-align: left;
    margin: 0rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.content-card-suite-1, 
.content-card-suite-2,
.content-card-suite-3 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: clamp(2rem, 4vw, 4rem);
    align-items: flex-start;
    padding-top: clamp(5rem, 1.5vw, 10rem);
    padding-bottom: clamp(1rem, 1.5vw, 2rem);
    padding-left: clamp(1rem, 8vw, 2rem);
    padding-right: clamp(1rem, 8vw, 2rem);
    min-height: 100dvh;
}

/* ===================================
   SUITES SLIDERS
=================================== */

.slider-suites {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    position: relative;
    gap: clamp(2rem, 3vw, 4rem);
    padding-bottom: clamp(1rem, 8vw, 2rem);
    padding-left: clamp(1rem, 8vw, 2rem);
    padding-right: clamp(1rem, 8vw, 2rem);
}

.slides {
    position: relative;
    width: 100%;
    max-width: 800px;
    height: 500px;
    overflow: hidden;
    margin: 0 auto;
}

.slide-card {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    pointer-events: none;
    z-index: 0;
}

.slide-card.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
}

.slide-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center; 
    display: block;
    padding-bottom: 2rem;
}

.arrow, .arrow.prev, .arrow.next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0);
    color: var(--bg-color-light);
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-size: 2rem;
    z-index: 20;
    border-radius: 50%;
    transition: background-color 0.3s;
}

.arrow.prev {
    left: 1rem;
}

.arrow.next {
    right: 1rem;
}

.arrow:hover, .arrow.prev:hover, .arrow.next:hover {
    opacity: 0.7;
}

.slider-loader {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.slider-loader.hidden {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* ===================================
   SUITE TEXT & BUTTONS
=================================== */

#suites1.card-contents p, #suites2.card-contents p, #suites3.card-contents p {
    margin: 0rem;
    padding-bottom: 1rem;
    position: static;
}

.suites-text h2 {
    font-family: var(--font-italiana);
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-top: 0rem;
    padding-bottom: 1rem;
}

.suites-text h3 {
    color: var(--text-color);
    font-family: var(--font-italiana);
    font-size: clamp(1rem, 4vw, 1.2rem);
    font-weight: 700;
    letter-spacing: 0.1em;
    margin-top: 0rem;
    padding-bottom: 1rem;
}

.suites-text p {
    font-size: 0.9rem;
}

.card-content p {
    font-size: clamp(0.8rem, 2.2vw, 1rem);
    font-weight: 400;
    line-height: 1.4;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    padding-bottom: 2rem;
}

.card-contents.suites-layout {
    gap: 1rem;
}

.btn-suites-s {
    display: inline-block;
    width: fit-content;
    font-size: 1rem;
    font-weight: 500;
    line-height: 2;
    padding-top: 1rem;
    padding-bottom: 0.3rem;
    border-bottom: 0.6px solid var(--text-color);
    color: #555;
}

/* ===================================
   RESPONSIVE (SUITES PAGE)
=================================== */

@media screen and (max-width: 1500px) {
    .content-card-suite-1, .content-card-suite-2, .content-card-suite-3 {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .content-card-suite-1, .content-card-suite-2, .content-card-suite-3 > * {
        width: 100%;
    }
}

@media (max-width: 1024px) {
    .suite-tab {
        background: none;
        border: none;
        text-align: left;
        font-family: var(--font-italiana);
        font-size: 1.2rem;
        letter-spacing: 0.12em;
        color: #777;
        cursor: pointer;
        padding: 0;
        transition: color 0.3s ease;
    }

    .suite-tab.active {
        color: #111;
    }

    .suites-tabs-content {
        position: relative;
    }

    .content-card-suite-1,
    .content-card-suite-2,
    .content-card-suite-3 {
        min-height: auto;
    }

}

@media (max-width: 900px) {
    .suites-tabs {
        grid-template-columns: 1fr;
    }

    .suites-tabs nav {
        display: none;
    }

    .suites-tabs-content {
        display: block;
    }

    .btn-suites-s {
        margin-left:8px;
    }
}

@media (min-width: 640px) {
    .suites-content-grid {
        grid-template-columns: 2fr 1fr;
        align-items: start;
    }

    .suites-content-grid > .suites-features {
        justify-self: center; 
        text-align: center;
    }
}

@media (max-width: 640px) {
    .suites-layout {
        display: flex;
        flex-direction: column;
        margin-left: 1rem;
        margin-right: 1rem;
    }
}

/* Default: always show text on touch devices */
@media (hover: none) {
    .suite-overlay p {
        opacity: 1;
        transform: none;
    }
}

/* Hover devices: animate on hover */
@media (hover: hover) {
    .suite-tab:hover {
        opacity: 1;
    }
}