﻿/* Booking Page Styles - LINE Theme with Bootstrap */

/* Custom LINE Background */
body {
    background: linear-gradient(135deg, #06C755 0%, #00B900 100%);
    min-height: 100vh;
}

/* Cursor Utilities */
.cursor-pointer {
    cursor: pointer !important;
}

/* LINE-specific overrides */
.line-badge {
    background: linear-gradient(135deg, #06C755 0%, #00B900 100%);
    color: white;
}

.line-btn-primary {
    background: linear-gradient(135deg, #06C755 0%, #00B900 100%);
    border: none;
    color: white;
    box-shadow: 0 4px 15px rgba(6, 199, 85, 0.4);
    transition: all 0.3s ease;
}

.line-btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #00B900 0%, #009900 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(6, 199, 85, 0.5);
    color: white;
}

.line-btn-primary:disabled {
    background: #cbd5e0 !important;
    color: #a0aec0 !important;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
    opacity: 0.6;
}

.line-highlight {
    background: linear-gradient(135deg, #e6f9f0 0%, #d4f4e5 100%);
}

.line-text {
    color: #06C755 !important;
}

.line-border {
    border-color: #06C755 !important;
}

/* Progress Steps Customization */
.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #a0aec0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s ease;
    z-index: 2;
    position: relative;
}

.step.active .step-circle {
    background: linear-gradient(135deg, #06C755 0%, #00B900 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(6, 199, 85, 0.4);
    transform: scale(1.1);
}

.step.completed .step-circle {
    background: #06C755;
    color: white;
}

.step.completed .step-circle::after {
  
    position: absolute;
 display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
 height: 100%;
}

.step-line {
    height: 3px;
    background: #e2e8f0;
    flex: 1;
    margin: 0 -8px;
    margin-bottom: 20px;
  transition: background 0.3s ease;
    position: relative;
}

.step-line.completed {
    background: #06C755;
}

.step.completed + .step-line {
    background: #06C755;
}

.step-label {
 font-size: 11px;
    color: #718096;
    margin-top: 8px;
    font-weight: 600;
    text-align: center;
  transition: color 0.3s ease;
}

.step.active .step-label {
    color: #06C755;
    font-weight: 700;
}

.step.completed .step-label {
    color: #06C755;
}

/* Guest Option Cards */
.guest-option-card {
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid #e2e8f0;
    background: white;
}

.guest-option-card:hover {
    border-color: #06C755 !important;
    background: #f0fdf4 !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(6, 199, 85, 0.2);
}

.guest-option-card.selected {
    border-color: #06C755 !important;
    background: linear-gradient(135deg, #e6f9f0 0%, #d4f4e5 100%) !important;
    box-shadow: 0 4px 12px rgba(6, 199, 85, 0.3);
}

/* Room Gallery Custom Styles */
.room-gallery-container {
    position: relative;
    width: 100%;
    padding-bottom: 50px; /* เพิ่มพื้นที่สำหรับ dots */
}

.room-gallery {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: 16px;
    padding: 8px 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    margin: 0 -15px;
}

.room-gallery::-webkit-scrollbar {
    display: none;
}

.room-slide {
    padding: 0 15px;
    outline: none;
}

.room-gallery-card {
    margin: 10px 0;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    border:none;
}

.room-gallery-card .card-body {
    position: relative;
    z-index: 10;
}

.room-image {
    width: 100%;
    height: 220px;
    background-size: cover;
    background-position: center;
    position: relative;
    border-radius: 12px 12px 0 0;
}

.room-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(6, 199, 85, 0.9);
 backdrop-filter: blur(10px);
    color: white;
    padding: 8px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

/* Slick Carousel Custom Styles */
.slick-prev,
.slick-next {
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.7) !important;
    backdrop-filter: blur(8px);
    border: 2px solid rgba(226, 232, 240, 0.5) !important;
    border-radius: 50%;
    z-index: 5 !important;
    transition: all 0.3s ease;
    font-size: 28px;
    font-weight: 700;
    color: rgba(45, 55, 72, 0.7);
}

.slick-prev:hover,
.slick-next:hover {
    background: rgba(6, 199, 85, 0.9) !important;
    border-color: rgba(6, 199, 85, 0.8) !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(6, 199, 85, 0.3);
}

.slick-prev:before,
.slick-next:before {
    content: '';
    display: none;
}

.slick-prev {
    left: 10px;
}

.slick-next {
    right: 10px;
}

/* Slick Dots - Make them visible */
.slick-dots {
    position: absolute !important;
 bottom: 0px !important;
    left: 50% !important;
transform: translateX(-50%) !important;
    width: auto !important;
    z-index: 15 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.slick-dots li {
    margin: 0 5px;
    width: auto;
    height: auto;
}

.slick-dots li button {
    padding: 5px;
    width: auto;
    height: auto;
}

.slick-dots li button:before {
    font-size: 12px;
    color: #cbd5e0;
    opacity: 1;
    transition: all 0.3s ease;
    width: 10px;
    height: 10px;
}

.slick-dots li.slick-active button:before {
    color: #06C755;
  opacity: 1;
    font-size: 14px;
}

.slick-dots li:hover button:before {
    color: #a0aec0;
}

/* Fix Slick track z-index */
.slick-track {
    z-index: 1 !important;
    display: flex !important;
    align-items: stretch !important;
}

.slick-slide {
    z-index: 1 !important;
    outline: none;
    height: auto !important;
}

.slick-slide.slick-active {
    z-index: 2 !important;
}

.slick-slide > div {
    height: 100%;
}

.slick-slide .room-slide {
    height: 100%;
}

.slick-slide .room-gallery-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Remove old gallery navigation styles */
.gallery-nav,
.gallery-dot {
    display: none;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .room-gallery-container {
        padding-bottom: 55px; /* เพิ่มพื้นที่บน mobile */
    }

    .slick-prev,
    .slick-next {
    display: none !important;
    }

    .slick-dots {
        bottom: 5px !important;
    }
}

@media (min-width: 769px) {
    .room-gallery-container {
        padding-bottom: 60px;
    }
}

/* Loading States */
.liff-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #06C755 0%, #00B900 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease;
}

.liff-loading-overlay.fade-out {
    opacity: 0;
    pointer-events: none;
}

.liff-loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.page-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9998;
}

.page-loading-overlay.active {
    display: flex;
}

.page-loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #e2e8f0;
    border-top-color: #06C755;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Loading Spinner Animation */
@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.flatpickr-months .flatpickr-month{
    background:none;
}

.flatpickr-calendar {
    width: 100% !important;
    max-width: 100% !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
    background: white !important;
    margin: 0 !important;
    border-radius: 12px !important;
    border: 1px solid #e2e8f0 !important;
}
    .flatpickr-calendar.arrowTop:before {
        bottom:0;
        content:none;
    }
    .flatpickr-calendar:before, .flatpickr-calendar:after {
        content: none;
    }
    .flatpickr-months {
        background: linear-gradient(135deg, #06C755 0%, #00B900 100%) !important;
        border-radius: 12px 12px 0 0 !important;
        padding: 18px 0 !important;
    }

.flatpickr-current-month {
    color: white !important;
    font-weight: 700 !important;
    font-size: 22px !important;
    padding: 10px 0 !important;
}

.flatpickr-monthDropdown-months {
    font-size: 20px !important;
    font-weight: 700 !important;
    color: white !important;
    background: transparent !important;
    border: none !important;
    cursor: pointer !important;
}

.flatpickr-monthDropdown-months:hover {
    background: rgba(255, 255, 255, 0.1) !important;
}

.numInputWrapper {
    font-size: 20px !important;
}

.numInputWrapper input {
    color: white !important;
    background: transparent !important;
}

.flatpickr-months .flatpickr-prev-month,
.flatpickr-months .flatpickr-next-month {
    fill: white !important;
    padding: 16px !important;
    width: 50px !important;
    height: 50px !important;
    cursor: pointer !important;
}

.flatpickr-months .flatpickr-prev-month:hover,
.flatpickr-months .flatpickr-next-month:hover {
    background: rgba(255, 255, 255, 0.1) !important;
}

.flatpickr-months .flatpickr-prev-month:hover svg,
.flatpickr-months .flatpickr-next-month:hover svg {
    fill: rgba(255,255,255,0.9) !important;
}

.flatpickr-weekdays {
    padding: 16px 0 !important;
    background: white !important;
    border-left: 1px solid rgba(72, 72, 72, 0.2);
    border-right: 1px solid rgba(72, 72, 72, 0.2);
}

.flatpickr-weekday {
    color: #06C755 !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    background: white !important;
}

.flatpickr-days {
    width: 100% !important;
    background: white !important;
}

.dayContainer {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    padding: 10px !important;
    justify-content: center !important;
    background: white !important;
}

.flatpickr-day {
    height: 58px !important;
    line-height: 58px !important;
    max-width: 58px !important;
    flex: 1 0 14.2857% !important;
    color: #2d3748 !important;
    border-radius: 12px !important;
    margin: 3px !important;
    font-size: 20px !important;
    font-weight: 600 !important;
    border: 2px solid transparent !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

.flatpickr-day.today {
    border-color: #06C755 !important;
    background: #e6f9f0 !important;
    color: #06C755 !important;
    font-weight: 700 !important;
}

.flatpickr-day.flatpickr-disabled, 
.flatpickr-day.flatpickr-disabled:hover {
    cursor: not-allowed !important;
    color: rgba(72, 72, 72, 0.1) !important;
    background: transparent !important;
    transform: none !important;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
    background: linear-gradient(135deg, #06C755 0%, #00B900 100%) !important;
    border-color: #06C755 !important;
    color: white !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 12px rgba(6, 199, 85, 0.4) !important;
    transform: scale(1.05) !important;
}

.flatpickr-day.inRange {
    background: #e6f9f0 !important;
    border-color: #b3e8cd !important;
    color: #06C755 !important;
    box-shadow: none !important;
}

.flatpickr-day:hover:not(.flatpickr-disabled):not(.selected):not(.startRange):not(.endRange) {
    background: #d4f4e5 !important;
    border-color: #00B900 !important;
    transform: scale(1.05) !important;
}

.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay {
    color: #cbd5e0 !important;
}

.flatpickr-day.prevMonthDay:not(.flatpickr-disabled):hover,
.flatpickr-day.nextMonthDay:not(.flatpickr-disabled):hover {
    color: #718096 !important;
}

/* Responsive adjustments for Flatpickr */
@media (max-width: 375px) {
    .flatpickr-current-month {
        font-size: 18px !important;
    }

    .flatpickr-weekday {
   font-size: 14px !important;
    }

    .dayContainer {
      padding: 6px !important;
    }

    .flatpickr-day {
        height: 48px !important;
        line-height: 48px !important;
        max-width: 48px !important;
     font-size: 17px !important;
   margin: 2px !important;
  }

    .flatpickr-months .flatpickr-prev-month,
    .flatpickr-months .flatpickr-next-month {
        width: 44px !important;
        height: 44px !important;
    }

    .room-image {
        height: 180px;
 }

    /* Hide Gallery Navigation on Small Mobile - Use Swipe */
    .gallery-nav {
        display: none !important;
    }

    /* Make dots more prominent on mobile */
    .gallery-dot {
        width: 12px;
        height: 12px;
    }

    .gallery-dot.active {
     width: 36px;
    }

    /* Select Room Button - Mobile */
    .btn-select-room {
 padding: 10px 20px !important;
   font-size: 14px !important;
    }

    /* Selected Room Item - Mobile */
    .selected-room-item {
        flex-direction: column;
        align-items: flex-start !important;
      gap: 12px;
    }

    .selected-room-item .btn-remove-room {
        width: 100%;
        justify-content: center;
    }
}

@media (min-width: 376px) and (max-width: 768px) {
    .flatpickr-day {
        height: 50px !important;
 line-height: 50px !important;
        max-width: 50px !important;
        font-size: 21px !important;
    }

    .flatpickr-current-month {
font-size: 24px !important;
    }

    .flatpickr-weekday {
        font-size: 17px !important;
    }

    .room-image {
  height: 200px;
    }

  /* Show but keep subtle on tablet */
    .gallery-nav {
        width: 40px;
        height: 40px;
  opacity: 0.3;
    }

    .gallery-nav:hover {
 opacity: 1;
    }

    .gallery-nav span {
    font-size: 24px;
  }
}

/* Desktop - Show navigation clearly */
@media (min-width: 769px) {
    .gallery-nav {
        width: 48px;
        height: 48px;
  opacity: 0.6;
  }

    .gallery-nav:hover {
        opacity: 1;
    }

    .gallery-nav span {
        font-size: 30px;
 }

    .btn-select-room {
        font-size: 16px !important;
        padding: 14px 28px !important;
 }

    /* Show dots less prominent on desktop */
    .gallery-dot {
     width: 8px;
        height: 8px;
    }

    .gallery-dot.active {
        width: 28px;
    }
}

/* Touch device detection - hide nav buttons */
@media (hover: none) and (pointer: coarse) {
    .gallery-nav {
      display: none !important;
    }
}

/* Button Select Room - Enhanced Design */
.btn-select-room {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    padding: 12px 24px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    border-radius: 12px !important;
    background: linear-gradient(135deg, #06C755 0%, #00B900 100%) !important;
    border: none !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(6, 199, 85, 0.3);
    position: relative;
    overflow: hidden;
 pointer-events: auto !important;
    z-index: 100 !important;
}

.btn-select-room::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease-out, height 0.6s ease-out, opacity 0.6s ease-out;
    opacity: 0;
    pointer-events: none;
  z-index: 0;
}

.btn-select-room:active::before {
    width: 400px;
    height: 400px;
    opacity: 1;
    transition: width 0s, height 0s, opacity 0s;
}

.btn-select-room > * {
    position: relative;
    z-index: 1;
    pointer-events: none;
}

.btn-select-room:hover:not(:active) {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(6, 199, 85, 0.5), 0 4px 12px rgba(6, 199, 85, 0.3);
    background: linear-gradient(135deg, #00B900 0%, #009900 100%) !important;
}

.btn-select-room:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 2px 8px rgba(6, 199, 85, 0.3);
}

/* Add pulse animation on click */
@keyframes pulse-button {
    0% {
        box-shadow: 0 4px 15px rgba(6, 199, 85, 0.3);
    }
    50% {
        box-shadow: 0 4px 15px rgba(6, 199, 85, 0.3), 0 0 0 10px rgba(6, 199, 85, 0);
    }
    100% {
        box-shadow: 0 4px 15px rgba(6, 199, 85, 0.3), 0 0 0 0 rgba(6, 199, 85, 0);
    }
}

.btn-select-room.btn-clicked {
    animation: pulse-button 0.6s ease-out;
}

/* Add icon to select button */
.btn-select-room .check-icon {
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-select-room:hover .check-icon {
    opacity: 1;
 transform: scale(1);
}

/* Room card price section enhancement */
.room-price-section {
    background: linear-gradient(to bottom, transparent, #f8f9fa);
    margin: 0 -16px -16px -16px;
    padding: 20px 16px 16px 16px !important;
    border-radius: 0 0 12px 12px;
}

/* Remove Room Button */
.btn-remove-room {
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 13px !important;
    font-weight: 600 !important;
}

.btn-remove-room:hover {
    transform: scale(1.05);
    background: #dc3545 !important;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

.btn-remove-room:active {
    transform: scale(0.95);
}

/* Selected Room Item */
.selected-room-item {
    transition: all 0.3s ease;
    animation: slideInRight 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-color: #e2e8f0 !important;
}

.selected-room-item:hover {
    border-color: #06C755 !important;
    box-shadow: 0 4px 12px rgba(6, 199, 85, 0.15);
    transform: translateX(4px);
}

@keyframes slideInRight {
    from {
        opacity: 0;
   transform: translateX(-20px);
    }
    to {
     opacity: 1;
        transform: translateX(0);
    }
}