/* =================================
   HOME PAGE STYLES
=================================== */

/* ===================================
   CONSTRUCTION POPUP
=================================== */

html.lenis:has(.construction-popup.is-visible),
body:has(.construction-popup.is-visible) {
    transform: none !important;
}

.construction-popup {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 9999;
    transition: opacity 0.8s ease, visibility 0.8s ease;
}

.construction-popup.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.construction-popup.is-visible .construction-popup-box {
    transform: translateY(0) scale(1);
}

.construction-popup-box {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: clamp(320px, 90vw, 700px);
    max-height: min(90vh, 400px);
    background-color: rgba(243, 243, 243, 0.96);
    border-radius: 0.2rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateY(10px) scale(0.98);
    transition: transform 0.8s ease;
    letter-spacing: 0.1em;
}

.construction-popup-box h2 {
    font-family: var(--font-italiana);
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 600;
    color: var(--text-color);
    letter-spacing: 0.1em;
    line-height: 1.3;
}

.construction-popup-box p {
    font-family: var(--font-m-plus);
    font-size: clamp(0.9rem, 2.2vw, 1.1rem);
    font-weight: 400;
    opacity: 0.8;
}

.construction-popup-box button {
    font-size: clamp(0.85rem, 2vw, 1rem);
}

.close-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    background: none;
    border: none;
    cursor: pointer;
    color: #333;
    border-radius: 0.2rem;
    opacity: 0.7;
}

.close-btn:hover {
    background-color: #33333394;
    transition: background-color 0.2s ease, color 0.2s ease;
    color: #fff;
}

.close-btn svg {
    width: 20px;
    height: 20px;
}

.popup-left {
    background-color: #172838;
    border-radius: 0.25rem;
    display: flex;
    align-items: center;
}

.popup-right {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 2rem;
}

.construction-popup-heading {
    display: flex;
    align-items: center;
    color: var(--text-color);
}

.construction-popup-btn {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.4rem 1rem;
    font-family: var(--font-m-plus);
    font-size: 1.3rem;
    font-weight: 400;
    line-height: 1.6;
    letter-spacing: 0.05em;
    opacity: 0.8;
    border: 1px solid #333;
    border-radius: 3px;
    white-space: nowrap;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.construction-popup-btn:hover {
    background-color: #333;
    color: #fff;
}

/* ===================================
   HERO SLIDESHOW
=================================== */

.hero-slideshow {
    position: relative;
    width: 100%;
    height: 100dvh;
    padding: 0;
    margin: 0;
}

.slideshow-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0s ease;
    object-fit: cover;
    object-position: center;
    z-index: 1;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.slideshow-bullets {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    z-index: 10;
    padding-bottom: 1rem;
}

.bullets-wrapper {
    display: flex;
    gap: 0.75rem;
}

.bullet {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 1px solid #ffffff;
    background: transparent;
    cursor: pointer;
    transition: background-color 0.3s ease;
    padding: 0;
}

.video-pause {
    border: 0px #ffffff00;
    background: transparent;
    transition: background-color 0.3s ease;
    padding: 0;
    color: #ffffff;
}

.bullet.active {
    background-color: #ffffff;
}

.index-container {
    position: absolute;
    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)
    );
}

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

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

.index-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;
}

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

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

/* ===================================
   MAIN CONTENT
=================================== */

.main-content {
    max-width: 100%;
    margin: 0 auto;
    padding: 0vw 0vw;
}

.content-card {
    display: flex;
    gap: 6%;
    align-items: flex-start;
    padding-top: clamp(2rem, 6vw, 4rem);
    padding-bottom: clamp(2rem, 6vw, 4rem);
    padding-left: clamp(1rem, 8vw, 2rem);
    padding-right: clamp(1rem, 8vw, 2rem);
    min-height: 500px;
}

.content-card.reverse {
    flex-direction: row-reverse;
    background-color: var(--bg-color-light);
    padding: clamp(1rem, 2vw, 3rem);
    padding-left: clamp(0.5rem, 4vw, 1.5rem);
    padding-right: clamp(0.5rem, 4vw, 1.5rem);
}

.card-image {
    flex: 1;
    min-width: 0;
    height: 500px;
    overflow: hidden;
    position: relative;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.card-content {
    flex: 1;
    min-width: 0;
    position: sticky;
    top: 75px;
}

.card-content h2 {
    font-family: var(--font-italiana);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-color);
    letter-spacing: 0.1em;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.large-text {
    font-size: 16px;
    line-height: 1.3;
    margin-bottom: 2rem;
    color: var(--text-color);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 0.4rem 2rem;
    background-color: transparent;
    color: var(--text-color);
    border: 1px solid var(--text-color);
    border-radius: 3px;
    font-weight: 400;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--text-color);
    color: white;
    opacity: 0.7;
}

.spacer {
    height: 8vw;
}

/* ===================================
   STATEMENT SECTIONS
=================================== */

#odd {
    background-color: rgba(255, 255, 255, 0.758);
    display: flex;
}

.statement {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100dvh;
    text-align: center;
    font-family: var(--font-italiana);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 400;
    letter-spacing: 0.1em;
    color: #555;
    text-shadow:
        0.4px 0 0 currentColor,
       -0.4px 0 0 currentColor;
    padding-top: clamp(3rem, 5vw, 8rem);
    padding-bottom: clamp(3rem, 5vw, 8rem);
    padding-left: clamp(5rem, 18vw, 30rem);
    padding-right: clamp(5rem, 18vw, 30rem);
    opacity: 0;
    transform: translateX(var(--x-offset)) translateY(40px);
    transition:
        opacity 2.4s ease,
        transform 2.8s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

.statement p {
    padding-top: 2rem;
}

.statement.is-visible {
    opacity: 1;
    transform: translateX(0) translateY(0);
}

/* ===================================
   SUITES SECTION (INDEX PAGE)
=================================== */

.suites_header {
    display: none;
}

.suite-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

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

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

.suite-card {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    cursor: pointer;
    max-height: clamp(320px, 50vw, 700px);
}

.suite-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.suite-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    padding: 2rem;
    text-align: center;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.55),
        rgba(0, 0, 0, 0.25),
        rgba(0, 0, 0, 0)
    );
    transition: background 0.6s ease;
    pointer-events: none;
}

.suite-overlay h3 {
    font-family: var(--font-italiana);
    letter-spacing: 0.1em;
    font-size: clamp(1.4em, 4.5vw, 2.6em);
    font-weight: 500;
    margin: 0;
    transform: translateY(10px);
    transition: transform 0.6s ease;
    color: #fff !important;
    text-shadow:
        0.4px 0 0 currentColor,
       -0.4px 0 0 currentColor;
}

.suite-overlay p {
    font-size: 1.05rem;
    line-height: 1.4;
    max-width: 80%;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 1s ease, transform 1s ease;
    color: #fff !important;
    padding-top: 1rem;
}

.suite-card:hover .suite-overlay h3 {
    transform: translateY(0);
}

.suite-card:hover .suite-overlay p {
    opacity: 1;
    transform: translateY(0);
}

/* ===================================
   EXPERIENCES SECTION
=================================== */

.experiences-section {
    display: grid;
    grid-template-columns: 2fr 5fr; 
    gap: 2rem;
    padding: 4rem 2rem;
    background-color: var(--bg-color-light);
    align-items: start;
    min-height: 100dvh;  
    height: auto;
}

.experiences-left {
    background: var(--bg-color-light);
    position: sticky;
    top: 75px;
    align-self: start; 
    padding-bottom: 2rem;
}

.experiences-left h2 {
    line-height: 1.3;  
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 600;
    font-family: var(--font-italiana);
}

.experiences-left p {
    color: #555;
    font-size: clamp(0.8rem, 2.2vw, 1rem);
    font-family: var(--font-m-plus);
    font-weight: 400;
    line-height: 1.4; 
    padding-bottom: 1rem;
}

.btn-experiences, .btn-about {
    font-family: var(--font-m-plus);
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 2;
    padding-bottom: 0.3rem;
    border-bottom: 0.6px solid var(--text-color);
    color: #555;
}

.btn-experiences:hover, .btn-about:hover {
    opacity: 0.7;
}

.experiences-right {
    display: flex;
    flex-direction: column;
    gap: clamp(1rem, 8vw, 1.5rem);
    min-height: 500px;
    position: sticky;
    top: 75px;
}

.experiences-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: clamp(1rem, 8vw, 1.5rem);
}

.experiences-row.four-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.experiences-row.two-columns {
    grid-template-columns: repeat(2, 1fr);
}

.image-tile {
    position: relative;
    overflow: hidden;
}

.image-tile img {
    width: 100%;
    height: 100%;
    min-height: 500px;
    object-fit: cover;
    display: block;
}

.tile {
    background: var(--bg-color-light);
    overflow: hidden;
    text-align: left;
}

.hide-on-mobile {
    display: block;
}

/* ===================================
   ABOUT SECTION (INDEX PAGE)
=================================== */

#about-click.content-card {
    min-height: 100dvh;  
    height: auto;      
}

#about.card-image {
    position: sticky;    
    top: 75px; 
    min-width: 65%;
}

/* ===================================
   MAP SECTION
=================================== */

.map-section {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 1rem;
    padding-left: clamp(1rem, 8vw, 3rem);
    background-color: var(--bg-color-light);
    min-height: 100dvh; 
}

.map-summary {
    flex: 1 1 0px; 
    color: #555;
    text-align: right;
    display: grid;
    place-items: left;  
    padding-right: clamp(1rem, 8vw, 1rem);
}

.map-summary h2 {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    font-size: 2.5rem;
    font-weight: 600;
    font-family: var(--font-italiana);
    color: var(--text-color);
    letter-spacing: 0.1em;
    line-height: 1.3;
    margin-bottom: 1rem;
    padding-top: clamp(2rem, 16vw, 2rem);
    padding-bottom: clamp(1rem, 8vw, 1rem);
}

.country, .place {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
    font-size: 0.9rem;
    font-weight: 700;
    font-family: var(--font-italiana);
    line-height: 1.3;
    letter-spacing: 0.15em;
    color: var(--text-color);
}

.greece {
    font-size: 1.5rem;
    font-weight: 500;
    font-family: var(--font-m-plus);
    line-height: 1.3;
    letter-spacing: 0.05em;
    color: var(--text-color);
    padding-bottom: clamp(1rem, 8vw, 1rem);
}

.lefkada {
    font-size: 2.3rem;
    font-weight: 400;
    font-family: var(--font-m-plus);
    line-height: 1.6;
    color: var(--text-color);
    padding-bottom: clamp(1rem, 8vw, 1rem);
}

.summary {
    font-size: clamp(0.8rem, 2.2vw, 1rem);
    font-family: var(--font-m-plus);
    font-weight: 400;
    color: #555;
    line-height: 1.4;
    margin-bottom: 2rem;
    padding-bottom: clamp(1rem, 8vw, 1rem);
}

.map-container {
  flex: 1 1 536px;
  min-height: 500px;
  position: relative;
  overflow: hidden;
}

.map-container iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: none;
}

/* ===================================
   IMAGE SLIDERS (HOME PAGE)
=================================== */

.slider {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    position: relative;
    gap: clamp(2rem, 3vw, 4rem);
    padding-bottom: clamp(1rem, 4vw, 3rem);
    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 {
    display: none;
    position: absolute;
    width: 100%;
    height: 100%;
    transition: opacity 1s ease;
}

.slide-card.active {
    display: block;
}

.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;
}

/* ===================================
   RESPONSIVE (HOME PAGE)
=================================== */

@media screen and (min-width: 1025px) {
    .hero-slideshow {
        margin-top: 0px;
    }

    .content-card {
        flex-direction: row;
        gap: 2rem;
    }

    .content-card.reverse {
        flex-direction: row-reverse;
        gap: 2rem;
        padding: clamp(2rem, 2vw, 4rem);
        padding-left: clamp(0.5rem, 4vw, 1.5rem);
        padding-right: clamp(0.5rem, 4vw, 1.5rem);
    }

    .card-content h2 {
        font-size: 1.5rem;
        margin-top: 1rem;
    }

    .large-text {
        font-size: 1rem;
    }
}

@media screen and (max-width: 1024px) {
    .hero-slideshow {
        height: 60hv;
    }

    .main-content {
        padding: 0vw 0vw;
    }

    .card-content {
        position: static;
        top: auto;
    }

    .card-content h2 {
        font-size: 1.3rem;
    }

    .content-card,
    .content-card.reverse {
        flex-direction: column;
        gap: 2rem;
    }

    .content-card-suite {
        grid-template-columns: 1fr;
    }

    .content-card-suite.slider {
        grid-template-columns: 1fr;
        justify-items: stretch;
    }

    .content-card-suite.slider .suite-card-link {
        width: 100%;
    }

    .suite-card {
        position: relative;
        width: 100%;
        margin: 0;
        transform: none;
        overflow: hidden;
    }

    .suite-card img {
        width: 100%;
        height: auto;
        object-fit: cover;
        max-height: none;
        display: block;
    }

    .suite-overlay p {
        visibility: hidden;
    }

    .slider { 
        grid-template-columns: 1fr !important; 
    }

    .map-section {
        padding-left: 0rem;
    }

    .experiences-row {
        grid-template-columns: 1fr;
    }

    .experiences-section {
        grid-template-columns: 3fr 5fr;
        gap: 1rem;
        padding-bottom: 2rem;
        padding-top: 2rem;
        height: auto;
        min-height: auto;
    }

    .hide-on-mobile {
        display: none;
    }

    .experiences-row.four-columns {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .experiences-right {
        gap: clamp(1rem, 8vw, 1.5rem);
        min-height: auto;
    }

    #about-click.content-card {
        height: auto;
        min-height: auto;
        order: 1;
    }

    #about.card-image {
        position:static;
        order: 2;
    }
}

@media (max-width: 743px) {
    .map-summary {
        text-align: left;
        padding-left: clamp(1rem, 8vw, 1rem);
    }
}

@media (max-width: 640px) {
    .construction-popup-box {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        transform: translateY(0);
        width: 100vw;
        max-width: 100vw;
        max-height: 50vh;
        padding-bottom: env(safe-area-inset-bottom);
    }

    .index-container {
        align-items: flex-start !important;
        justify-content: flex-start !important;
    }

    .index-hero-overlay {
        padding-top: 10rem !important;
        text-align: center !important;
        width: 100vw !important;
    }

    .slides {
        max-height: 300px;        
    }

    #content-card-suites-index {
        padding-left: 0rem;
        padding-right: 0rem;
    }

    .content-card-suite {
        grid-template-columns: 1fr;
    }

    .content-card-suite.slider {
        grid-template-columns: 1fr;
        justify-items: stretch;
    }

    .content-card-suite.slider {
        justify-items: center;
    }

    .suite-card {
        position: relative;
        width: 100%;
        margin: 0;
        transform: none;
        overflow: hidden;
    }

    .suite-card {
        aspect-ratio: 3 / 4;
        max-height: clamp(320px, 50vw, 700px);
    }

    .suite-card img {
        height: 100%;
        transition: transform 0.8s ease;
    }

    .experiences-section {
        grid-template-columns: 1fr;
        padding-left: 0rem;
        padding-right: 0rem;
    }

    .experiences-left, #suites.card-content {
        position: static;
        margin-left: 1rem;
        margin-right: 1rem;
    }

    #about-click {
        padding-left: 0rem;
        padding-right: 0rem;
    }

    .card-content {
        margin-left: 1rem;
        margin-right: 1rem;
    }

    .image-tile img {
        min-height: 300px;
    }
}

/* 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-card:hover .suite-overlay p {
        opacity: 1;
        transform: translateY(0);
    }

    .suite-card:hover .suite-overlay h3 {
        transform: translateY(-4px);
    }
}