* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

:root {
    --primary-color: #A89269;
    --text-color: #4A4A4A;
    --light-bg: #EAE6D2;
    --white: #ffffff;
    --dark-overlay: rgba(168, 146, 105, 0.3);
}

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
}

h1,
h2,
h3,
h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 500;
    letter-spacing: -0.02em;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(var(--dark-overlay), var(--dark-overlay)),
        url('cover.jpg') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
    position: relative;
}


.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 300;
    letter-spacing: 2px;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 2rem;
    line-height: 1.8;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #967d56;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: transparent;
    color: var(--white);
    border: 2px solid var(--white);
}

.btn-secondary:hover {
    background-color: var(--white);
    color: var(--primary-color);
}

/* About Section */
.about {
    padding: 100px 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

.about-text p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

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

    .photo-stack {
        position: relative;
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 12px;
        pointer-events: none;
        /* allow hover only on images */
    }

    .photo-stack img {
        position: absolute;
        width: 72%;
        max-width: 420px;
        height: 78%;
        object-fit: cover;
        border-radius: 12px;
        box-shadow: 0 14px 36px rgba(0, 0, 0, 0.18);
        transition: transform 0.28s ease, box-shadow 0.28s ease;
        pointer-events: auto;
    }

    /* base stacking — photos start centered/stacked */
    .photo-stack img:nth-child(1) {
        z-index: 1;
        transform: translate(0, 0) rotate(0deg) scale(1);
        opacity: 0.98;
    }

    .photo-stack img:nth-child(2) {
        z-index: 2;
        transform: translate(0, 0) rotate(0deg) scale(1);
    }

    /* apartment photo on top */
    .photo-stack img:nth-child(3) {
        z-index: 3;
        transform: translate(0, 0) rotate(0deg) scale(1);
        box-shadow: 0 26px 50px rgba(0, 0, 0, 0.28);
    }

    /* Animation for photo stack spread effect - triggered by JS */
    .photo-stack.animate img:nth-child(1) {
        animation: spread1 1s ease-out forwards;
    }

    .photo-stack.animate img:nth-child(2) {
        animation: spread2 1s ease-out forwards;
    }

    .photo-stack.animate img:nth-child(3) {
        animation: spread3 1s ease-out forwards;
    }



    /* hover lifts the image under the cursor */
    /* .photo-stack img:hover {
                transform: translateY(-8px) scale(1.02);
                box-shadow: 0 30px 60px rgba(0,0,0,0.32);
                z-index: 99;
            } */

    /* smaller screens: collapse into a stacked single column with small overlap */
    @media (max-width: 768px) {
        .about-image {
            height: 300px;
            overflow: hidden;
        }

        .photo-stack {
            display: flex;
            width: 100%;
            height: 100%;
            padding: 0;
            gap: .5em;
            overflow-x: auto;
            scroll-snap-type: x mandatory;
            /* Snap to each image */
            scroll-behavior: smooth;
            -webkit-overflow-scrolling: touch;
            /* Smooth scrolling on iOS */
            scrollbar-width: none;
            /* Hide scrollbar on Firefox */
            -ms-overflow-style: none;
            /* Hide scrollbar on IE/Edge */

            justify-content: unset;
        }

        /* Hide scrollbar on Webkit browsers */
        .photo-stack::-webkit-scrollbar {
            display: none;
        }

        .photo-stack img {
            position: static;
            width: 100%;
            /* Full width of parent container */
            height: 100%;
            max-width: none;
            border-radius: 10px;
            transform: none !important;
            box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
            object-fit: cover;
            flex-shrink: 0;
            /* Prevent images from shrinking */
            scroll-snap-align: start;
            /* Each image snaps to the start */
        }

        /* Remove hover effects on mobile */
        .photo-stack img:hover {
            transform: none;
            z-index: auto;
        }
    }
}

@keyframes spread1 {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }

    100% {
        transform: translate(150px, 82px) rotate(4deg) scale(0.96);
    }
}

@keyframes spread2 {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }

    100% {
        transform: translate(-100px, 100px) rotate(-3.5deg) scale(0.985);
    }
}

@keyframes spread3 {
    0% {
        transform: translate(0, 0) rotate(0deg) scale(1);
    }

    100% {
        transform: translate(0, -10px) rotate(0deg) scale(1);
    }
}

.features {
    list-style: none;
    margin: 2rem 0;
}

.features li {
    padding: 0.5rem 0;
    font-size: 1.1rem;
}

.features li::before {
    content: "✓";
    color: var(--primary-color);
    font-weight: bold;
    margin-right: 10px;
}

.about-image {
    height: 500px;

}

/* Why Kapparis Section */
.why-kapparis {
    padding: 100px 0;
    background-color: var(--white);
}

.why-kapparis h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.reasons {
    display: grid;
    gap: 2rem;
}

.reason-card {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    padding: 2rem;
    background-color: var(--light-bg);
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.reason-card:hover {
    transform: translateY(-5px);
}

.reason-icon {
    font-size: 2rem;
    color: var(--primary-color);
    min-width: 60px;
}

.reason-content h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

/* Rooms Section */
.rooms {
    padding: 100px 0;
    background-color: var(--light-bg);
}

.rooms h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 3rem;
}

.room-card {
    background-color: var(--white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.room-card:hover {
    transform: translateY(-10px);
}

.room-image {
    height: 300px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

/* Slideshow Styles */
.slideshow-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    display: none;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

.slide.active {
    display: block;
    opacity: 1;
}

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

/* Navigation arrows */
.slide-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 12px 15px;
    font-size: 18px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    z-index: 10;
    border-radius: 3px;
}

.slide-nav:hover {
    background: rgba(0, 0, 0, 0.8);
}

.slide-nav.prev {
    left: 10px;
}

.slide-nav.next {
    right: 10px;
}

/* Dots indicator */
.dots-container {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.dot.active,
.dot:hover {
    background: rgba(255, 255, 255, 0.9);
}

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

.room-content {
    padding: 2rem;
}

.room-content h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.room-features {
    font-size: 0.9rem;
    color: #666;
    margin-top: 1rem;
}

/* Amenities Section */
.amenities {
    padding: 100px 0;
    background-color: var(--white);
}

.amenities h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.amenity-card {
    text-align: center;
    padding: 2rem;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.amenity-card:hover {
    transform: translateY(-5px);
}

.amenity-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    border-radius: 10px;
    margin-bottom: 1.5rem;
}

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

.amenity-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.amenity-card a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.amenity-card a:hover {
    text-decoration: underline;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background-color: var(--light-bg);
}

.contact h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.contact-info {
    padding: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

.contact-item span {
    margin-right: 1rem;
    font-size: 1.2rem;
}

.contact-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.contact-item a:hover {
    text-decoration: underline;
}

.social-links {
    margin-top: 2rem;
}

.social-links a {
    display: inline-block;
    margin-right: 1rem;
    padding: 10px 20px;
    background-color: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.social-links a:hover {
    background-color: #967d56;
}

.map-container {
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
}

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

/* Responsive Design */
@media (max-width: 900px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    #hero {
        flex-direction: column;
        justify-content: top;
        height: fit-content;
        padding: 10px 0;

    }

    .hero-content {
        padding: 0 1em;
    }

    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;

        h2 {
            text-align: center;
        }
    }

    .rooms-grid {
        grid-template-columns: 1fr;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .btn-secondary {
        display: none;
    }

    .container {
        padding: 0 15px;
    }

    .about-image {


        .photo-stack {
            img {
                width: 100%;
                border-radius: 10px;
            }
        }

    }

    /* Mobile slideshow adjustments */
    .slide-nav {
        padding: 8px 12px;
        font-size: 16px;
    }

    .slide-nav.prev {
        left: 5px;
    }

    .slide-nav.next {
        right: 5px;
    }

    .dots-container {
        bottom: 10px;
    }

    .dot {
        width: 10px;
        height: 10px;
        border-width: 1px;
    }

    .contact-content {

        .contact-info {
            font-size: 1em;
            padding: 0.5rem;
        }

        .contact-item {
            font-size: inherit;
        }

        .map-container {
            max-width: 100vw;
            width: 100%;
        }

    }


}



/* Bootstrap Icons styling */
.contact-item .bi {
    font-size: 1.5rem;
    color: var(--primary-color);
    display: inline-block;
    width: 24px;
    height: 24px;
    line-height: 1;
}

/* Navigation (optional floating nav) */

.nav-group {
    display: flex;
    position: fixed;
    top: 20px;
    width: 100%;
    z-index: 1000;
    padding: 0 1em;
    align-items: center;
}

@media screen and (max-width: 900px) {
    .nav-group {
        flex-direction: column;
        padding: 0;
        position: relative;
        top: 0;

        .hero-logo {
            max-width: 100px;
        }

        nav {
            margin: 0;
            margin-top: 5px;
            margin-bottom: 10px;
            width: 96%;
            padding: 5px;

            a {
                padding: 1px;
            }
        }
    }
}

.hero-logo {
    max-width: 130px;
}

.nav {
    background-color: rgba(255, 255, 255, 0.9);
    padding: 10px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    margin-left: auto;
}

.nav a {
    display: inline-block;
    padding: 8px 15px;
    margin: 0 5px;
    color: var(--primary-color);
    text-decoration: none;
    border-radius: 15px;
    transition: background-color 0.3s ease;
    font-size: 0.9rem;
}

.nav a:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* -------------------- Booking Widget -----------------*/


#tbg_booking_widget {
    font-family: 'Open Sans', sans-serif;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    container-type: inline-size;
    margin: 1em auto;
}


#tbg_booking_widget * {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

#tbg_booking_widget .booking_type_selector {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-column-gap: 10px;
    column-gap: 10px;
}

#tbg_booking_widget .booking_type_selector span {
    border: 1px solid #d0cbc9;
    padding: 5px 10px;
    border-bottom: 0px;
    text-transform: uppercase;
    background-color: #f0f0f0;
    cursor: pointer;
}

#tbg_booking_widget .booking_type_selector .selected {
    background-color: white;
}

#tbg_booking_widget .booking_container {
    background-color: #F8F7F9;
    padding: 10px 10px;
    /*   width: -webkit-fit-content; */
    /*   width: -moz-fit-content; */
    margin: 0 auto;
    border-radius: 4px;
    -webkit-box-shadow: rgba(0, 0, 0, 0.2) 0px 2px 8px 3px;
    box-shadow: rgba(0, 0, 0, 0.2) 0px 2px 8px 3px;
}

@media screen and (max-width: 990px) {
    #tbg_booking_widget .booking_container {
        width: 100%;
    }
}

#tbg_booking_widget label {
    font-size: 12px;
    position: absolute;
    top: 0;
    left: 10px;
    padding: 2px;
    color: #272727;
}

#tbg_booking_widget form {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
    container-type: inline-size;
}

@media screen and (max-width: 990px) {
    #tbg_booking_widget form {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
    }
}

@container (max-width: 500px) {
    #tbg_booking_widget form {
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
    }
}

#tbg_booking_widget .input_box {
    background-color: white;
    display: inline-block;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    position: relative;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;

    flex-grow: 1;
}

#tbg_booking_widget input,
#tbg_booking_widget select {
    font-size: 13px;
    border: none;
    padding: 27px 10px 5px;
    min-width: 56px;
    -webkit-appearance: none;
    flex-grow: 1;
}

#tbg_booking_widget input:focus,
#tbg_booking_widget select:focus {
    outline: unset;
}

#tbg_booking_widget input[type='submit'] {
    text-transform: uppercase;
    font-family: "Jost", Sans-serif;
    cursor: pointer;
    font-weight: 300;
    -webkit-transition: background-color 1s ease;
    transition: background-color 1s ease;
    min-height: 47px;
    padding: 2px 5px;
    -webkit-box-flex: 1;
    -ms-flex-positive: 1;
    flex-grow: 1;
}



#tbg_booking_widget svg {
    height: 1em;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -ms-flex-line-pack: center;
    align-content: center;
    padding: 0 5px;
    margin-left: auto;
}

#tbg_booking_widget svg path {
    fill: #6e6e6e;
}