* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    color: #333;
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.main-menu {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 80px; /* adjust as needed for menu height */
    background: transparent;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid #fff;
    z-index: 2000;
    display: flex;
    align-items: center;
    padding: 0 20px;
}

.logo {
    height: 120px;
    margin-right: 30px;
    filter: drop-shadow(2px 2px 4px rgba(0,0,0,0.5));
}

.menu-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    gap: 30px;
    flex: 1;
    margin-left: auto;
    max-width: none;
}

.menu-container a {
    color: #fff;
    text-decoration: none;
    font-size: 1.4em;
    font-weight: 500;
    transition: color 0.3s ease;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    position: relative;
}

.menu-container a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 1px;
    background: #fff;
    transition: width 0.5s ease;
}

.menu-container a:hover {
    color: #f0f0f0;
    text-decoration: none;
}

.menu-container a:hover::after {
    width: 100%;
}

.slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    padding-top: 80px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: background-image 4s ease;
    z-index: 1;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    box-sizing: border-box;
}

.slider h1 {
    opacity: 0;
    font-size: 6em;
    margin: -150px 0 10px 0;
    text-shadow: 4px 4px 8px rgba(0,0,0,0.9), 0px 0px 20px rgba(0,0,0,0.8);
    transition: opacity 0.5s;
}

.slider h2 {
    font-size: 2em;
    margin: 0;
    text-shadow: 4px 4px 8px rgba(0,0,0,0.9), 0px 0px 20px rgba(0,0,0,0.8);
    transition: opacity 0.5s;
}

.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.8);
    border: none;
    font-size: 40px;
    color: #333;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.left {
    left: 20px;
}

.right {
    right: 20px;
}

.arrow:hover {
    background-color: rgba(255, 255, 255, 1);
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.overlay.active {
    opacity: 1;
    visibility: visible;
}

.overlay::before {
    content: '';
    position: absolute;
    top: 80px; /* Same height as menu */
    left: 0;
    right: 0;
    height: 1px;
    background: #fff;
    animation: expandLine 0.8s ease-out;
}

@keyframes expandLine {
    from {
        width: 0;
        left: 50%;
        right: 50%;
    }
    to {
        width: 100%;
        left: 0;
        right: 0;
    }
}

.overlay-content {
    position: absolute;
    top: 80px; /* Behind the menu */
    left: 0;
    right: 0;
    bottom: 120px; /* 100px footer + 20px margin */
    padding: 20px 20px 20px 20px;
    overflow-y: auto;
    color: #fff;
    margin: 0 20px;
}

.overlay-content h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.overlay-content h2 {
    font-size: 1.8em;
    margin: 30px 0 10px 0;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.overlay-content h1 span,
.overlay-content h2 span {
    position: relative;
}

.overlay-content h1 span::after,
.overlay-content h2 span::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.5);
    transition: width 0.5s ease;
}

.overlay-content h1 span:hover::after,
.overlay-content h2 span:hover::after {
    width: 100%;
}

.overlay-content h2 span::after {
    height: 1px;
}

.overlay-content h3 {
    font-size: 1.5em;
    margin: 40px 0 10px 0;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.overlay-content p {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 15px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}

.bed-icon {
    display: inline-block;
    vertical-align: middle;
    margin-right: 8px;
    margin-bottom: 2px;
    height: 1.2em;
}

/* Reservation overlay center alignment */
#reservation-overlay .overlay-content h1,
#reservation-overlay .overlay-content h2,
#reservation-overlay .overlay-content p {
    text-align: center;
}

/* Footer styles */
.footer-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1999;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-top: 1px solid #fff;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    height: 100%;
}

.footer-left {
    text-align: left;
    color: #fff;
    font-size: 0.8em;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.footer-brand {
    font-weight: bold;
    margin-bottom: 2px;
}

.footer-address {
    margin-bottom: 2px;
}

.footer-contact {
    margin-bottom: 2px;
}

.footer-contact img,
.footer-address img,
.footer-email img {
    height: 0.8em;
    vertical-align: middle;
    margin-right: 4px;
}

.footer-email {
    margin-bottom: 0;
}

.footer-menu {
    flex: 1;
    display: flex;
    justify-content: center;
    gap: 20px;
    align-items: center;
}

.footer-menu a {
    color: #fff;
    text-decoration: none;
    font-size: 1.1em;
    font-weight: 500;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
    transition: color 0.3s ease;
}

.footer-menu a:hover {
    color: #f0f0f0;
}

.footer-right {
    text-align: right;
    color: #fff;
    font-size: 0.9em;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.footer-link {
    color: #fff;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #f0f0f0;
}

.small-icon {
    display: inline-block;
    vertical-align: middle;
    margin-right: 8px;
    margin-bottom: 2px;
    height: 1.1em;
}

/* Pricing table styles */
.price-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0 20px 0;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.price-table thead {
    background: rgba(255, 255, 255, 0.2);
}

.price-table th {
    padding: 15px 10px;
    text-align: left;
    font-weight: bold;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
    font-size: 1em;
}

.price-table td {
    padding: 12px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 0.95em;
}

.price-table tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.05);
}

.storno-list {
    list-style-type: none;
    padding: 0;
    margin: 15px 0;
}

.storno-list li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 0.95em;
}

.storno-list li:last-child {
    border-bottom: none;
}



.vr-link {
    color: #fff;
    text-decoration: underline;
    transition: color 0.3s ease;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}

.vr-link:hover {
    color: #f0f0f0;
    text-decoration: underline;
}

.close-overlay {
    display: none;
}

/* Gallery Styles */
.gallery-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.thumbnail-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-bottom: 20px;
}

.gallery-thumb {
    width: 150px;
    height: 100px;
    object-fit: cover;
    cursor: pointer;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}

.gallery-thumb:hover {
    transform: scale(1.1);
}

#fullscreen-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1005;
    cursor: pointer;
}

#fullscreen-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.8);
}

/* Room card styles */
.rooms-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 20px;
}

.room-card {
    display: flex;
    flex-direction: column;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    width: 28%;
    min-width: 250px;
    max-width: 300px;
}

.room-card h3 {
    text-align: center;
    margin: 10px 0;
    padding: 10px;
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}

.room-photo {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

.room-photo img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    cursor: pointer;
    border-radius: 10px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.room-photo img:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 25px rgba(0,0,0,0.5);
}

.room-info {
    padding: 15px;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
}

.room-info p {
    font-size: 1.1em;
    line-height: 1.6;
    margin: 5px 0;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
}

#room-fullscreen-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1005;
    cursor: pointer;
}

#room-fullscreen-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.8);
}

.close-gallery {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 2em;
    color: #fff;
    cursor: pointer;
    z-index: 1001;
    transition: color 0.3s ease;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.close-gallery:hover {
    color: #f0f0f0;
}

.overlay-content::-webkit-scrollbar {
    display: none;
}

.overlay-content {
    scrollbar-width: none; /* For Firefox */
    -ms-overflow-style: none; /* For Internet Explorer and Edge */
}

.hidden {
    display: none !important;
}

/* Prevent horizontal scroll */
html, body {
    overflow-x: hidden; /* Prevent horizontal scrolling */
    width: 100%;
    max-width: 100%;
}

/* Responsive */
@media (max-width: 768px) {
    .main-menu {
        height: 70px;
        padding: 0 6px;
        width: 100vw; /* Full viewport width */
        box-sizing: border-box;
    }

    .logo {
        height: 70px;
        margin-right: 8px;
    }

    .menu-container {
        gap: 4px; /* Very small gaps */
        flex: 1;
        justify-content: space-around; /* Distribute evenly */
        flex-wrap: nowrap; /* Prevent wrapping */
        overflow: hidden; /* Hide overflow */
    }

    .menu-container a {
        font-size: 0.8em; /* Very small font */
        padding: 4px 3px; /* Minimal padding */
        white-space: nowrap;
        flex-shrink: 1; /* Allow shrinking */
        min-width: 0; /* Allow text to truncate */
    }

    .overlay {
        width: 100vw; /* Ensure overlays cover full width */
        position: fixed;
        left: 0;
        right: 0;
    }

    .overlay-content {
        top: 90px;
        padding: 10px; /* Reduced padding */
        margin: 0 4px; /* Much smaller margin */
        width: calc(100vw - 8px); /* Match container constraints */
        box-sizing: border-box;
        overflow-x: hidden; /* Prevent horizontal scrolling */
    }

    .overlay-content h1 {
        font-size: 2em;
        margin-bottom: 15px; /* Reduced margin */
    }

    .overlay-content h2 {
        font-size: 1.4em; /* Smaller h2 */
        margin: 25px 0 8px 0; /* Reduced margins */
    }

    .overlay-content p {
        font-size: 1em; /* Standard font size */
        line-height: 1.5; /* Better line height for mobile */
        margin-bottom: 12px; /* Reduced paragraph margin */
    }

    /* Make table responsive */
    .price-table {
        font-size: 0.9em; /* Smaller table font */
        width: 100%;
        table-layout: fixed; /* Force table to fit */
    }

    .price-table th,
    .price-table td {
        padding: 8px 4px; /* Much smaller padding */
        word-wrap: break-word; /* Allow word wrapping */
    }

    /* Footer responsive */
    .footer-bar {
        height: 120px;
    }

    .footer-content {
        flex-direction: column;
        padding: 5px 10px;
    }

    .footer-left {
        text-align: center;
        width: 100%;
        margin-bottom: 5px;
    }

    .footer-menu {
        width: 100%;
        flex-wrap: wrap;
        gap: 8px;
        margin-bottom: 5px;
    }

    .footer-menu a {
        font-size: 0.9em;
    }

    .footer-right {
        text-align: center;
        width: 100%;
    }

    .footer-right div {
        font-size: 0.8em;
    }
}

@media (max-width: 480px) {
    .main-menu {
        height: 65px;
        padding: 0 5px;
    }

    .logo {
        height: 60px;
        margin-right: 5px;
    }

    .menu-container {
        gap: 3px;
    }

    .menu-container a {
        font-size: 0.75em; /* Ultra small font */
        padding: 3px 2px;
    }

    .overlay-content {
        top: 80px;
        padding: 10px;
        margin: 0 5px;
        width: calc(100vw - 10px);
    }
}
