/* style.css - Hotel Deal Styles */
body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #333;
    line-height: 1.6;
}

/* iOS-compatible fixed background fix */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('images/background.webp');
    background-size: cover;
    background-position: center;
    z-index: -1;
    will-change: transform;
}

#app {
    max-width: 1200px;
    margin: 40px auto;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    overflow: hidden;
    position: relative;
}

/* Language Switcher */
.lang-switcher {
    position: fixed;
    top: 25px;
    right: 25px;
    z-index: 10000; /* Extremely high z-index to stay above everything */
}

#lang-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 12px 24px;
    min-width: 70px;
    min-height: 48px; /* Slightly larger for even easier tapping */
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(0,123,255,0.3);
    transition: all 0.3s ease;
    font-size: 1.1rem;
    border: 2px solid white;
    touch-action: manipulation;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent; /* Remove the grey highlight on iOS */
}

@media (max-width: 768px) {
    .lang-switcher {
        top: 15px;
        right: 15px;
    }
    #lang-btn {
        padding: 8px 20px;
        font-size: 1rem;
    }
}

#lang-btn:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(0,123,255,0.4);
}

#lang-btn:active {
    transform: translateY(0);
}

header {
    padding: 40px 20px;
    background-color: transparent;
    text-align: center;
}

header h1 {
    margin: 0;
    font-size: 2.5rem;
    color: #1a1a1a;
    text-transform: capitalize;
    letter-spacing: 1px;
}

.header-history {
    max-width: 800px;
    margin: 20px auto 0;
    font-size: 1.1rem;
    color: #555;
    line-height: 1.6;
    padding: 0 20px;
}

main {
    padding: 0 20px;
}

/* Hero Section */
.hero-section {
    margin-bottom: 60px;
    display: flex;
    flex-direction: column;
}

.main-image-container {
    border-radius: 20px 20px 0 0;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.main-image-container img {
    width: 100%;
    height: auto;
    display: block;
}

/* Draggable Sliders */
.gallery-section {
    margin-bottom: 60px;
    text-align: center;
}

.gallery-section h2 {
    font-size: 2rem;
    margin-bottom: 25px;
}

.slider-wrapper {
    overflow: hidden;
    cursor: grab;
    user-select: none;
    padding: 20px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}

.hero-section .slider-wrapper {
    border-radius: 0 0 20px 20px;
    border-top: 1px solid #eee;
}

.slider {
    display: flex;
    gap: 15px;
}

/* Gallery Modal Styles */
.gallery-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 20000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
}

.gallery-modal-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    overflow-x: auto;
    cursor: grab;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.gallery-modal-content::-webkit-scrollbar {
    display: none;
}

.gallery-modal-content img {
    height: 90vh; /* Increased from 80vh */
    width: auto;
    max-width: 100vw; /* Use full width */
    margin: 0; /* Remove margin for seamless snapping */
    object-fit: contain;
    scroll-snap-align: center;
    pointer-events: none;
    user-select: none;
    flex-shrink: 0; /* Ensure images don't shrink */
}

.gallery-modal.active .gallery-modal-content {
    cursor: grabbing;
}

.gallery-close {
    position: absolute;
    top: 30px;
    right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    z-index: 20001;
    text-shadow: 0 0 10px rgba(0,0,0,0.5);
}

.slider img {
    height: 220px;
    width: 330px;
    object-fit: cover;
    border-radius: 12px;
    pointer-events: auto; /* Enable clicking */
    transition: transform 0.2s ease;
    cursor: pointer;
}

.slider img:hover {
    transform: scale(1.05);
}

.slider-wrapper.active {
    cursor: grabbing;
}

/* Deals Section */
.deals-section {
    margin-bottom: 80px;
}

.deals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.deal-box {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    position: relative;
    padding-bottom: 60px;
}

.see-more {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    font-weight: bold;
    color: #007bff;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.deal-box:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
}

.deal-box:hover .see-more {
    opacity: 1;
}

.deal-box.highlight {
    background: #007bff;
    color: #fff;
    border-color: #007bff;
}

.deal-box.highlight .see-more {
    color: #fff;
}

.deal-box h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.deal-box .price {
    font-size: 1.25rem;
    font-weight: bold;
    margin-bottom: 25px;
    opacity: 0.9;
}

.deal-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
}

.deal-box ul li {
    padding: 10px 0;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.deal-box.highlight ul li {
    border-bottom-color: rgba(255,255,255,0.1);
}

.deal-box ul li:last-child {
    border-bottom: none;
}

.deal-box ul li::before {
    content: "✓";
    color: #28a745;
    margin-right: 15px;
    font-weight: bold;
}

.deal-box.highlight ul li::before {
    color: #fff;
}

/* Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #fff;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    box-sizing: border-box;
    border-radius: 25px;
    position: relative;
    padding: 60px;
    overflow-y: auto;
    box-shadow: 0 25px 50px rgba(0,0,0,0.3);
    animation: modalSlideUp 0.4s ease-out;
}

@keyframes modalSlideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close-btn {
    position: absolute;
    top: 25px;
    right: 30px;
    font-size: 35px;
    cursor: pointer;
    color: #888;
    transition: color 0.2s;
}

.close-btn:hover {
    color: #333;
}

#modal-body h2 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #1a1a1a;
}

#modal-body .modal-price {
    font-size: 1.5rem;
    color: #007bff;
    font-weight: bold;
    margin-bottom: 30px;
}

#modal-body .full-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

#modal-body ul {
    list-style: none;
    padding: 0;
}

#modal-body li {
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    font-size: 1.1rem;
}

#modal-body li::before {
    content: "✓";
    color: #28a745;
    margin-right: 15px;
    font-weight: bold;
}

#modal-body .booking-info {
    background: #e7f3ff;
    padding: 35px;
    border-radius: 20px;
    border: 1px solid #cce4ff;
    text-align: center;
}

#modal-body .booking-info h3 {
    color: #007bff;
    margin-top: 0;
}

/* Chef Section */
.chef-section {
    margin-bottom: 80px;
}

.chef-card {
    display: flex;
    background: #f1f3f5;
    border-radius: 20px;
    overflow: hidden;
    align-items: center;
}

.chef-image {
    flex: 1;
    max-width: 400px;
}

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

.chef-info {
    flex: 1.5;
    padding: 60px;
}

.chef-info h2 {
    margin-top: 0;
    font-size: 2rem;
    margin-bottom: 20px;
}

.chef-quote {
    font-style: italic;
    color: #666;
    margin-top: 20px;
    border-left: 4px solid #007bff;
    padding-left: 20px;
}

/* Footer Styles */
footer {
    padding: 30px 20px;
    background-color: #fff;
    border-top: 1px solid #eee;
    text-align: center;
    color: #888;
    font-size: 0.9rem;
}

/* Room Info Section */
.room-info-section {
    margin-bottom: 60px;
    text-align: center;
}

.room-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.feature-item {
    background: #fff;
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid #eee;
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-item .icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
    display: block;
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Android Emoji", "Twemoji Mozilla", sans-serif;
    line-height: 1;
}

.feature-item p {
    margin: 0;
    font-weight: bold;
    color: #444;
}

/* Map Section */
.map-section {
    margin-bottom: 80px;
    text-align: center;
}

.map-container {
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    border: 1px solid #eee;
}

/* FAQ Section */
.faq-section {
    margin-bottom: 80px;
    text-align: center;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.faq-item {
    background: #fff;
    border-radius: 15px;
    margin-bottom: 15px;
    border: 1px solid #eee;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-question {
    padding: 20px 25px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    font-size: 1.1rem;
}

.faq-question:hover {
    background: #f8f9fa;
}

.faq-answer {
    padding: 0 25px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease-out;
    background: #fff;
    color: #666;
}

.faq-item.active {
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    border-color: #007bff;
}

.faq-item.active .faq-answer {
    padding-bottom: 20px;
    max-height: 200px; /* Adjust based on content */
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
    color: #007bff;
}

.faq-icon {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
    color: #888;
}

@media (max-width: 768px) {
    .room-features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .faq-question {
        font-size: 1rem;
    }
}

/* Tablets (iPad, Android Tablets) */
@media (max-width: 1024px) {
    header h1 {
        font-size: 2.2rem;
    }
    
    .modal-content {
        width: 95%;
        padding: 40px;
    }
    
    .slider img {
        height: 180px;
        width: 280px;
    }
}

/* Large Phones & Small Tablets */
@media (max-width: 768px) {
    header {
        padding: 30px 15px;
    }

    header h1 {
        font-size: 1.8rem;
    }

    main {
        padding: 0 15px;
    }

    .hero-section {
        margin-bottom: 40px;
    }

    .deals-grid {
        grid-template-columns: 1fr; /* Stack deals vertically */
        gap: 20px;
    }

    .chef-card {
        flex-direction: column;
        text-align: center;
    }

    .chef-image {
        max-width: 100%;
        height: 300px;
    }

    .chef-info {
        padding: 30px 20px;
    }

    .chef-quote {
        border-left: none;
        border-top: 3px solid #007bff;
        padding-left: 0;
        padding-top: 15px;
    }

    #modal-body h2 {
        font-size: 1.8rem;
    }

    #modal-body .full-details {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .slider img {
        height: 160px;
        width: 240px;
    }
}

/* Small Phones (iPhone SE, Small Androids) */
@media (max-width: 480px) {
    header h1 {
        font-size: 1.5rem;
    }

    .deal-box {
        padding: 30px 20px;
    }

    .deal-box h3 {
        font-size: 1.3rem;
    }

    .modal-content {
        padding: 30px 20px;
        height: 90%;
        border-radius: 15px;
    }

    .close-btn {
        top: 15px;
        right: 20px;
    }

    .slider img {
        height: 140px;
        width: 210px;
    }
    
    .gallery-section h2 {
        font-size: 1.5rem;
    }
}
