:root {
    --primary-color: #f3722c;
    /* Vibrant orange */
    /* Vibrant red from image notes */
    --secondary-color: #00102E;
    --text-color: #00102E;
    --light-text: #fff;
    --bg-light: #f8f9fa;
    --bg-dark: #111;
    --border-color: #ddd;
    --font-main: 'Outfit', sans-serif;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--text-color);
    overflow-x: hidden;
    padding-top: 82px;
    /* Header height offset */
}

/* Header */
header {
    background: #00102E;
    color: #fff;
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

.menu-toggle {
    display: none;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 40px;
}

.logo span {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 20px;
}

nav a {
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    transition: color 0.3s;
}

nav a:hover {
    color: var(--primary-color);
}

/* Hero Section / Main Slideshow */
.hero {
    height: 80vh;
    position: relative;
    overflow: hidden;
    background: #000;
}

.hero-thumbnails {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    padding: 10px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 5px;
    z-index: 10;
}

.hero-thumbnails img {
    width: 80px;
    height: 50px;
    object-fit: cover;
    cursor: pointer;
    opacity: 0.7;
    transition: all 0.3s;
    border: 1px solid transparent;
}

.hero-thumbnails img:hover,
.hero-thumbnails img.active {
    opacity: 1;
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.slideshow-container {
    height: 100%;
    width: 100%;
}

.slide {
    display: none;
    height: 100%;
    width: 100%;
    position: relative;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
}

.slide-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    width: 80%;
}

.slide-content h1 {
    font-size: 4rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
}

/* ABOUT Section */
#about {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('img/gallery1.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #fff;
    text-align: center;
}

#about h2 {
    border-color: #fff;
    color: #fff;
}

.about-text {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 2;
}

.about-text p {
    margin-bottom: 2rem;
}

/* Section Common Styling */
section {
    padding: 80px 10%;
}

.section-title {
    text-align: center;
    margin-bottom: 50px;
}

.section-title h2 {
    font-size: 2.2rem;
    display: inline-block;
    padding: 15px 60px;
    border: 2px solid var(--secondary-color);
    position: relative;
    text-transform: uppercase;
}

/* Stay Section */
#stay {
    background: var(--bg-light);
    text-align: center;
}

.check-info {
    display: flex;
    justify-content: center;
    gap: 100px;
    margin-bottom: 30px;
}

.check-item h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #666;
}

.time {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stay-sub-container {
    display: flex;
    justify-content: center;
    gap: 80px;
    margin-top: 50px;
    text-align: left;
}

.stay-sub-item h4 {
    font-size: 1.2rem;
    color: var(--secondary-color);
    margin-bottom: 15px;
    border-bottom: 1px solid var(--secondary-color);
    padding-bottom: 5px;
}

.stay-sub-item ul {
    list-style: none;
}

.stay-sub-item li {
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.free-tag {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.8rem;
    margin-left: 5px;
}

.stay-note {
    font-weight: 500;
    color: #777;
    margin-top: 20px;
}

/* Room Section */
#room {
    background: #fff;
}

.room-block {
    margin-bottom: 80px;
}

.room-header {
    text-align: center;
    margin-bottom: 30px;
}

.room-header h3 {
    font-size: 1.8rem;
    color: var(--secondary-color);
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 10px;
}

.room-header h3::before,
.room-header h3::after {
    content: '';
    display: block;
    width: 25px;
    height: 2px;
    background: var(--primary-color);
}

.room-header p {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.1em;
}

.room-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.room-gallery {
    position: relative;
    background: #eee;
}

.room-gallery>img:first-child {
    width: 100%;
    height: 480px;
    object-fit: cover;
    border-radius: 5px;
}

.lounge-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.lounge-grid img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 5px;
}

.thumbnail-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
    padding: 10px;
    background: rgba(0, 16, 46, 0.8);
    border-radius: 5px;
    justify-content: flex-start;
}

.thumbnail-bar img {
    flex: 0 0 calc(20% - 10px);
    min-width: 60px;
    height: 60px;
    object-fit: cover;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
    border: 1px solid transparent;
    border-radius: 3px;
}

.thumbnail-bar img:hover,
.thumbnail-bar img.active {
    opacity: 1;
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.room-info table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.room-info th,
.room-info td {
    border: 1px solid #ccc;
    padding: 10px;
    text-align: center;
    font-size: 0.8rem;
}

.room-info th {
    background: #f0f0f0;
}

.price-note {
    font-size: 0.8rem;
    color: var(--primary-color);
    margin-top: 10px;
}

/* Wet Areas Carousel */
.wet-carousel-container {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 30px;
    position: relative;
    padding: 10px 0;
    scrollbar-width: none;
}

.wet-carousel-container::-webkit-scrollbar {
    display: none;
}

.wet-carousel-track {
    display: flex;
    gap: 15px;
}

.wet-carousel-item {
    flex: 0 0 calc(33.333% - 10px);
    scroll-snap-align: start;
    scroll-snap-stop: always;
    height: 320px;
    position: relative;
}

.wet-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 16, 46, 0.7);
    color: #fff;
    padding: 10px;
    font-size: 0.8rem;
    text-align: center;
    border-bottom-left-radius: 5px;
    border-bottom-right-radius: 5px;
}

.wet-carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
}

.wet-areas-info {
    text-align: center;
}

.wet-areas-info p {
    margin-bottom: 15px;
    font-size: 1rem;
    color: var(--secondary-color) !important;
    /* Unify color */
}

/* Access Section */
#access {
    background: var(--bg-light);
    padding-left: 0;
    padding-right: 0;
}

#access .section-title,
#access .access-details {
    padding-left: 10%;
    padding-right: 10%;
}

.access-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 50px;
    width: 100%;
}

.access-details {
    flex: 1;
}

.map-container {
    width: 100%;
    height: 600px;
    background: #eee;
    display: flex;
    justify-content: center;
    align-items: center;
    border-top: 1px solid var(--primary-color);
    border-bottom: 1px solid var(--primary-color);
    overflow: hidden;
}

.map-container iframe {
    filter: grayscale(100%) contrast(1.1) brightness(1.1);
    transition: all 0.5s ease;
}

.map-container:hover iframe {
    filter: grayscale(0%);
}

.address-box {
    margin-bottom: 30px;
    text-align: center;
}

.address-box h4 {
    color: var(--secondary-color);
    margin-bottom: 5px;
}

.contact-info {
    margin-top: 30px;
}

.contact-info p {
    margin-bottom: 10px;
}

/* Town Guide & Link */
#town-link {
    background: #fff;
    text-align: center;
}

/* Town Map */
#town-map {
    background: #fff;
    padding-bottom: 20px;
}

.map-image-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.map-image-container img {
    width: 100%;
    height: auto;
}

.town-guide-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    list-style: none;
    max-width: 1000px;
    margin: 0 auto 50px;
    padding: 0 20px;
}

.town-guide-list li {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.town-guide-list li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 25px 15px;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: var(--secondary-color);
    font-size: 1.1rem;
    font-weight: 600;
}

.town-guide-list li i {
    font-size: 1.8rem;
    color: var(--primary-color);
}

.town-guide-list li:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: var(--primary-color);
}

.town-guide-list li::before {
    display: none;
}

.link-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 30px;
}

.link-btn {
    background: #444;
    color: #fff;
    padding: 12px 25px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.link-btn:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(230, 57, 70, 0.3);
}

/* Footer */
footer {
    background: var(--secondary-color);
    color: #fff;
    padding: 50px 0;
    text-align: center;
}

.social-icons {
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    gap: 30px;
}

.social-icons a {
    color: #fff;
    font-size: 2rem;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: var(--primary-color);
}

.copyright {
    font-size: 0.8rem;
    color: #888;
}

/* Utility */
.fade {
    animation-name: fade;
    animation-duration: 1.5s;
}

@keyframes fade {
    0% {
        opacity: 0;
        clip-path: inset(0 100% 0 0);
        transform: scale(1.05);
        /* Slight zoom in effect */
    }

    100% {
        opacity: 1;
        clip-path: inset(0 0 0 0);
        transform: scale(1);
    }
}

.slide.fade {
    animation: fade 1.8s cubic-bezier(0.19, 1, 0.22, 1);
}

.slide-content h1 {
    animation: textSlideIn 1.5s cubic-bezier(0.19, 1, 0.22, 1) both;
    animation-delay: 0.3s;
}

@keyframes textSlideIn {
    0% {
        opacity: 0;
        transform: translateX(-50px);
    }

    100% {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 768px) {

    .room-layout,
    .access-content {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .check-info {
        flex-direction: column;
        gap: 20px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    text-decoration: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    color: #fff;
}

/* Lightbox */
#lightboxModal {
    display: none;
    position: fixed;
    z-index: 4000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    cursor: zoom-out;
    align-items: center;
    justify-content: center;
}

#lightboxModal.active {
    display: flex;
}

#lightboxModal img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    cursor: default;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2.5rem;
    color: #fff;
    cursor: pointer;
    transition: color 0.3s;
    z-index: 4001;
    line-height: 1;
}

.lightbox-close:hover {
    color: var(--primary-color);
}

.room-gallery > img:first-child,
.wet-carousel-item img,
.lounge-grid img {
    cursor: zoom-in;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 16, 46, 0.8);
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 40px;
    border-radius: 15px;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
    text-align: center;
}

.modal-content h3 {
    color: var(--secondary-color);
    margin-bottom: 30px;
    font-size: 1.5rem;
}

.restaurant-list {
    list-style: none;
    padding: 0;
    text-align: left;
}

.restaurant-list li {
    border-bottom: 1px solid #eee;
}

.restaurant-list li a {
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: var(--secondary-color);
    font-weight: 500;
    text-decoration: none;
    transition: background 0.3s;
    width: 100%;
}

.restaurant-list li a:hover {
    background: #fdf2f0;
}

.restaurant-list li i {
    color: var(--primary-color);
    width: 20px;
    text-align: center;
}

.restaurant-list li:last-child {
    border-bottom: none;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.5rem;
    color: #888;
    cursor: pointer;
    transition: color 0.3s;
}

.close-btn:hover {
    color: var(--primary-color);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    section {
        padding: 60px 5%;
    }

    #access .section-title,
    #access .access-details {
        padding-left: 5%;
        padding-right: 5%;
    }
}

@media (max-width: 768px) {
    body {
        padding-top: 70px;
        /* Mobile header height offset */
    }

    /* Header & Nav */
    header {
        padding: 10px 20px;
    }

    nav {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--secondary-color);
        transition: 0.3s ease-in-out;
        z-index: 999;
    }

    nav.active {
        left: 0;
    }

    nav ul {
        flex-direction: column;
        padding-top: 40px;
        align-items: center;
        gap: 20px;
    }

    nav a {
        font-size: 1.5rem;
    }

    .menu-toggle {
        display: block;
        color: #fff;
        font-size: 1.8rem;
        cursor: pointer;
    }

    /* Hero */
    .hero {
        height: 60vh;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-thumbnails {
        width: 90%;
        overflow-x: auto;
        justify-content: flex-start;
        bottom: 10px;
    }

    .hero-thumbnails img {
        width: 60px;
        height: 40px;
        flex: 0 0 auto;
    }

    /* Stay */
    .stay-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* Room */
    .room-layout {
        grid-template-columns: 1fr !important;
        gap: 30px;
    }

    #room-kon-layout,
    #room-tonari-layout {
        display: flex;
        flex-direction: column-reverse;
    }

    .room-gallery>img:first-child {
        height: 300px;
    }

    .room-header h3 {
        font-size: 1.5rem;
    }

    .thumbnail-bar img {
        flex: 0 0 calc(25% - 8px);
    }

    .lounge-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-behavior: smooth;
        gap: 15px;
        padding: 5px 5% 15px;
        /* Side padding to match content */
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .lounge-grid::-webkit-scrollbar {
        display: none;
    }

    .lounge-grid img {
        flex: 0 0 95%;
        scroll-snap-align: start;
        scroll-snap-stop: always;
        height: 250px;
    }

    /* Access */
    .access-content {
        gap: 30px;
    }

    .map-container {
        height: 400px;
    }

    .wet-carousel-container {
        padding: 10px 5%;
    }

    .wet-carousel-item {
        flex: 0 0 95%;
        height: 250px;
    }

    /* Town Guide */
    .town-guide-list {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    /* Section Title */
    .section-title h2 {
        font-size: 1.6rem;
        padding: 10px 30px;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 50vh;
    }

    .hero h1 {
        font-size: 1.3rem;
    }

    .link-buttons {
        gap: 10px;
    }

    .link-btn {
        width: 100%;
        text-align: center;
    }
}