/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    -webkit-tap-highlight-color: transparent;
}

/* Body Styling */
body {
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
}

/*///////////////////////NAVBAR STUFF/////////////////////////////*/

.navbar {
    background-color: #0077cc;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between; /* space between logo and buttons */
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: white;
    text-decoration: none;
}

.logoImage {
    width: 200px;
    margin-top: -4px;
    margin-bottom: -14px;
}

/*Logo image phone adapted*/
@media only screen and (max-width: 600px) {
    .logoImage {
        width: 150px;
        margin-top: -10px;
        margin-bottom: -10px;
    }
}

.logo-link, .logo-link:hover, .logo-link:active, .logo-link:visited, .logo-link:link, .logo-link:target, .logo-link:focus {
    text-decoration: none;
    color: white;
}



/* HAMBURGER BUTTON */
.hamburger {
    font-size: 40px;
    color: white;
    cursor: pointer;
    user-select: none;
    line-height: 5px;
}

/* OVERLAY (click outside to close) */
#sideMenuOverlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    opacity: 0;
    pointer-events: none;
    transition: opacity .3s ease;
    z-index: 999;
}

/* SIDE MENU */
#sideMenu {
    position: fixed;
    top: 0;
    right: -60%;
    width: 60%;
    height: 100%;
    background-color: #ffffff;
    box-shadow: -3px 0 10px rgba(0,0,0,0.3);
    padding: 20px;
    transition: right .3s ease;
    z-index: 1000;

    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* CLOSE BUTTON */
.close-btn {
    color: #0077cc;
    font-size: 26px;
    background: none;
    border: none;
    cursor: pointer;
    float: right;
    width: 0;
}

.close-btn:hover {
    color: #004e86;
}


.side-menu-links {
    margin-top: 50px;
}


.inactivePage {
    color: #0077cc;
    display: block;
    font-size: 20px;
    font-weight: bold;
    padding: 5px 0 5px 15px;
    margin: 0 0 10px 10px;
    text-decoration: none;
    transition: transform 0.2s ease-in-out;
}

.inactivePage:hover {
    color: #004e86;
    transform: scale(1.1);
    transform: translateX(10px);
}



.activePage {
    color: #0077cc;
    filter: brightness(0.7);
    border-radius: 5px;
    display: block;
    font-size: 20px;
    font-weight: bold;
    padding: 5px 0 5px 15px;
    margin: 0 0 10px 10px;
    text-decoration: none;
    transition: transform 0.2s ease-in-out;
}



.side-menu-footer {
    margin-top: auto;
}

/* FOOTER LINKS AT BOTTOM */
.side-menu-footer a {
    display: block;
    font-size: 14px;
    padding: 5px 0;
    color: #666;
    text-decoration: none;
}

.side-menu-footer a:hover {
    color: #333;
}

/* WHEN MENU IS ACTIVE */
#sideMenu.active {
    right: 0;
}

#sideMenuOverlay.active {
    opacity: 1;
    pointer-events: auto;
}

/* Hide menu instantly before JS runs */
#sideMenu,
#sideMenuOverlay {
    transition: right 0.3s ease, opacity 0.3s ease;
}

body.menu-preload #sideMenu {
    right: -50% !important; /* hide instantly */
    transition: none !important; /* disable animation */
}

body.menu-preload #sideMenuOverlay {
    opacity: 0 !important;
    pointer-events: none !important;
    transition: none !important;
}

/* Desktop: Fixed-width menu */
@media (min-width: 700px) {
    #sideMenu {
        width: 350px;   /* pick any width you prefer */
        right: -350px;  /* hide completely off-screen */
    }

    #sideMenu.active {
        right: 0;
    }
}


/*///////////////////////NAVBAR STUFF END/////////////////////////////*/

/* Container */
.container {
    max-width: 500px;
    margin: 50px auto;
    padding: 30px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0px 15px 16px 2px rgb(0 0 0 / 31%);
}

h2 {
    margin-bottom: 20px;
    text-align: center;
    color: #0077cc;
    -webkit-user-select: none; /* Safari */        
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* IE10+/Edge */
    user-select: none; /* Standard */
}

.description {
    margin-bottom: 20px;
    text-align: center;
    color: #555;
    -webkit-user-select: none; /* Safari */        
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* IE10+/Edge */
    user-select: none; /* Standard */
}

/* Form Styling */
.bookingForm label {
    margin-bottom: 6px;
    font-weight: 500;
    color: #555;
    -webkit-user-select: none; /* Safari */        
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* IE10+/Edge */
    user-select: none; /* Standard */
}

.bookingForm input[type="text"],
.bookingForm input[type="tel"],
.bookingForm input[type="email"],
.bookingForm input[type="hidden"] {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: border 0.3s, box-shadow 0.3s;
    font-size: 1rem;
}

.bookingForm input:focus {
    border-color: #0077cc;
    box-shadow: 0 0 5px rgba(0, 119, 204, 0.3);
    outline: none;
}


/* Container alignment */
#newsletterCheckbox {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

/* Label as the visual checkbox container */
label[for="newsletterCheckbox"] {
    display: grid;
    grid-template-columns: 22px auto; /* fixed checkbox, flexible text */
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
    line-height: 16px;
    color: #333;
}

/* Custom checkbox square */
label[for="newsletterCheckbox"]::before {
    content: "";
    width: 22px;
    height: 22px;
    border: 2px solid #0077cc;
    border-radius: 4px;
    display: block;
    transition: 0.25s;
    box-sizing: border-box;
    line-height: 16px;
}

/* Checkmark when checked */
#newsletterCheckbox:checked + label::before {
    background-color: #0077cc;
    border-color: #0077cc;
    box-shadow: inset 0 0 0 3px white;
}

/* Hover effect */
label[for="newsletterCheckbox"]:hover::before {
    border-color: #005fa3;
    transition: 0.25s;
}


.cta-button {
    display: block;
    width: 60%;
    margin: 15px auto 15px;
    background-color: #0077cc;
    color: white;
    padding: 15px 25px;
    font-size: 1.3em;
    font-weight: 500;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    filter: drop-shadow(0px 12px rgb(6, 0, 56));
    transition: transform 0.2s, filter 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.cta-button:hover {
    background-color: #005fa3;
}

.cta-button:active {
    transform: translateY(12px);
    filter: drop-shadow(0px 0px rgb(6, 0, 56));
    -webkit-tap-highlight-color: transparent;
}


.gdprDisclaimer {
    margin-top: 25px;
    text-align: center;
    color: #8f8f8f;
    line-height: 15px;
    -webkit-user-select: none; /* Safari */        
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* IE10+/Edge */
    user-select: none; /* Standard */
}

#privacyPolicyLink:link {
    color: #0077cc;
    text-decoration: none;
}

#privacyPolicyLink:visited {
    color: #0077cc;
    text-decoration: none;
}

#privacyPolicyLink:hover {
    color: #004e86;
    text-decoration: underline;
}

#privacyPolicyLink:active {
    color: #004e86;
    text-decoration: underline;
}


/* Error Messages */
.error-message {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: -10px;
    margin-bottom: 10px;
    display: none;
}


/* Popup Notification */
#existingBooking {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #21d14ac4; /* green for success */
    color: #fff;
    padding: 15px 25px;
    border-radius: 8px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease-in-out;
    z-index: 1000;
}

/* Show popup */
#existingBooking.show {
    opacity: 1;
    pointer-events: auto;
}

/* --- FOOTER --- */
.footer {
    bottom: 0;
    position: relative;
    width: 100%;
    text-align: center;
    padding: 15px 0px;
    color: #555;
    font-size: 0.9em;
    -webkit-user-select: none; /* Safari */        
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* IE10+/Edge */
    user-select: none; /* Standard */
}

.footer p {
    margin: 2px 0px;
    padding: 0px 0px;
}

/* Responsive */
@media (max-width: 600px) {
    .container {
        margin: 20px 20px;
        padding: 20px;
    }
    .gdprDisclaimer {
        font-size: 1em;
    }
}
