/* KlikRoom Public Styles - Mobile First */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&display=swap');

:root {
    --primary: #15A1DB;
    --secondary: #124559;
    --orange: #F08719;
    --slate-0: #FFFFFF;
    --slate-50: #F8FAFC;
    --slate-100: #F1F5F9;
    --slate-200: #E2E8F0;
    --slate-300: #CAD5E2;
    --slate-400: #90A1B9;
    --slate-500: #62748E;
    --slate-600: #45556C;
    --max-width: 390px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'DM Sans', sans-serif;
    background-color: var(--slate-100);
    color: var(--slate-600);
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
}

/* App Container - Full width on mobile, centered on desktop */
.app-container {
    width: 100%;
    margin: 0 auto;
    min-height: 100vh;
    min-height: 100dvh;
    background-color: var(--slate-0);
    position: relative;
}

@media (min-width: 481px) {
    .app-container {
        max-width: var(--max-width);
    }
}

/* Main Content Wrapper - For full height pages */
.main-content {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
}

/* Top Section - Groups carousel and navbar - Fixed */
.top-section {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 100;
    background: var(--slate-0);
}

@media (min-width: 481px) {
    .top-section {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        max-width: var(--max-width);
    }
}

/* Spacer to push content below fixed header */
.top-section-spacer {
    height: 420px; /* carousel 235px + navbar ~185px */
    flex-shrink: 0;
}

/* Carousel Section - At the very top */
.carousel-section {
    width: 100%;
    position: relative;
}

.carousel-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.carousel-container::-webkit-scrollbar {
    display: none;
}

.carousel-slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
    position: relative;
    height: 235px;
    overflow: hidden;
}

.carousel-slide img,
.carousel-slide video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.carousel-placeholder {
    width: 100%;
    height: 235px;
    background: linear-gradient(110deg, var(--primary) 6%, #0B5675 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--slate-50);
    padding: 22px 9px;
}

.carousel-placeholder i {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.carousel-indicators-custom {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 4px;
}

.carousel-dot {
    width: 16px;
    height: 4px;
    background: var(--slate-300);
    border-radius: 2px;
    transition: all 0.3s;
    cursor: pointer;
}

.carousel-dot.active {
    background: var(--primary);
    width: 24px;
}

/* Top Navbar - Search Card */
.top-navbar {
    background: var(--slate-0);
    padding: 16px 0;
    box-shadow: 0px 4px 16px 0px rgba(98, 116, 142, 0.24);
    border-radius: 0 0 8px 8px;
}

.navbar-logo {
    display: flex;
    justify-content: center;
    padding: 0 24px 8px;
}

.navbar-logo img {
    height: 40px;
    object-fit: contain;
}

.search-form {
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Button Styles */
.btn-outline-light {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding: 0 10px;
    border: 1px solid var(--slate-500);
    border-radius: 6px;
    background: transparent;
    color: var(--slate-500);
    font-size: 14px;
    font-weight: 400;
    font-family: 'DM Sans', sans-serif;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
}

.btn-outline-light:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outline-light.disabled {
    border-color: var(--slate-300);
    color: var(--slate-300);
    pointer-events: none;
}

.btn-outline-light i {
    font-size: 20px;
}

.date-label {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    background: var(--slate-0);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    color: var(--slate-300);
}

.date-label i {
    font-size: 16px;
}

.date-label.active {
    color: var(--slate-500);
}

.date-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.date-input-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding: 0 10px;
    border: 1px solid var(--slate-300);
    border-radius: 6px;
    background: transparent;
    color: var(--slate-300);
    font-size: 14px;
    font-weight: 400;
    font-family: 'DM Sans', sans-serif;
    flex: 1;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.date-input-btn.active {
    border-color: var(--slate-300);
    color: var(--slate-500);
}

.date-input-btn input[type="date"] {
    opacity: 0;
    position: absolute;
    width: 1px;
    height: 1px;
}

.date-arrow {
    color: var(--slate-300);
}

.date-arrow.active {
    color: var(--slate-500);
}

.btn-primary {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding: 0 10px;
    background: var(--primary);
    border: none;
    border-radius: 6px;
    color: var(--slate-50);
    font-size: 14px;
    font-weight: 500;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn-primary:hover {
    background: #1291c7;
    color: var(--slate-50);
}

.btn-primary.disabled {
    background: var(--slate-200);
    color: var(--slate-50);
    pointer-events: none;
}

/* Footer CTA Section */
.footer-cta {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    padding: 0;
    padding-top: 36px;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    width: 100%;
}

.footer-logo {
    width: 144px;
    height: auto;
    object-fit: contain;
}

.footer-text-section {
    text-align: center;
    padding: 0 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.footer-tagline {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--orange);
    text-align: center;
    margin: 0;
    white-space: pre-line;
}

.footer-description {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.43;
    color: var(--primary);
    text-align: center;
    margin: 0;
    max-width: 310px;
}

/* Contact Us Section */
.contact-section {
    width: 100%;
    background: var(--secondary);
    padding: 16px 0 32px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.contact-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--slate-50);
    text-align: center;
    margin: 0;
}

.social-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    padding: 4px 0;
}

.social-link {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--slate-50);
    text-decoration: none;
    font-size: 20px;
    transition: all 0.2s;
}

.social-link:hover {
    color: var(--primary);
    transform: scale(1.1);
}

/* Hotel Detail Page */
.hotel-page {
    background: white;
}

.hotel-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 24px;
    justify-content: space-between;
    padding: 24px 24px 0 24px;
}

.hotel-content-upper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
    width: 100%;
}

.hotel-logo-section {
    display: flex;
    justify-content: center;
}

.hotel-logo-large {
    width: 145px;
    height: 160px;
    object-fit: contain;
    background: var(--slate-0);
    border-radius: 8px;
}

.hotel-logo-placeholder {
    width: 145px;
    height: 160px;
    background: var(--slate-0);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hotel-logo-placeholder i {
    font-size: 48px;
    color: var(--slate-300);
}

.hotel-description {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.43;
    color: var(--slate-600);
    text-align: left;
    padding: 0 0;
    margin: 0 auto;
    text-align: justify;
    white-space: pre-line;
}

/* Rooms & Gallery Sections */
.section-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.section-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.section-title {
    font-size: 20px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--secondary);
    text-align: center;
    margin: 0;
}

.section-scroll {
    display: flex;
    overflow-x: auto;
    gap: 16px;
    padding: 0 24px 12px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--slate-300) var(--slate-100);
}

.section-scroll::-webkit-scrollbar {
    height: 6px;
}

.section-scroll::-webkit-scrollbar-track {
    background: var(--slate-100);
    border-radius: 3px;
}

.section-scroll::-webkit-scrollbar-thumb {
    background: var(--slate-300);
    border-radius: 3px;
}

.section-scroll::-webkit-scrollbar-thumb:hover {
    background: var(--slate-400);
}

/* Room/Gallery Card */
.item-card {
    flex: 0 0 320px;
    scroll-snap-align: start;
    background: var(--slate-0);
    border-radius: 8px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border: 1px solid var(--slate-300);
}

.item-card-image {
    width: 100%;
    height: 304px;
    border-radius: 4px;
    object-fit: cover;
}

.item-card-image-placeholder {
    width: 100%;
    height: 304px;
    border-radius: 4px;
    background: var(--slate-100);
    display: flex;
    align-items: center;
    justify-content: center;
}

.item-card-image-placeholder i {
    font-size: 48px;
    color: var(--slate-300);
}

.item-card-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.item-card-title {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    color: var(--secondary);
    margin: 0;
}

.item-card-subtitle {
    font-size: 14px;
    font-weight: 400;
    line-height: 1.43;
    color: var(--slate-600);
    margin: 0;
    white-space: pre-line;
}

/* CTA Button */
.cta-button-container {
    width: 100%;
    padding-bottom: 48px;
    margin-top: 80px;
}

.btn-cta {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 32px;
    background: var(--primary);
    border: none;
    border-radius: 6px;
    color: var(--slate-50);
    font-size: 14px;
    font-weight: 500;
    font-family: 'DM Sans', sans-serif;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    width: 100%;
}

.btn-cta:hover {
    background: #1291c7;
    color: var(--slate-50);
}

/* Back Link Button */
.btn-back-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--slate-500);
    text-decoration: none;
    background: transparent;
}

.btn-back-link:hover {
    color: var(--primary);
}

.btn-back-link i {
    font-size: 16px;
}

.btn-back-link.bottom {
    display: flex;
    justify-content: center;
    padding: 16px;
    margin-bottom: 24px;
}

/* Hidden date inputs */
.hidden-date-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}

/* Desktop Enhancements */
@media (min-width: 481px) {
    body {
        background: var(--slate-100);
    }

    .app-container {
        margin: 0 auto;
    }
}

@media (min-width: 768px) {
    body {
        padding: 0;
    }
}

/* ===== OVERLAY COMPONENTS ===== */

/* Backdrop Overlay */
.overlay-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(18, 69, 89, 0.6);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.overlay-backdrop.show {
    opacity: 1;
    visibility: visible;
}

/* ===== HOTEL DROPDOWN - Bottom Sheet Overlay ===== */
.hotel-dropdown-wrapper {
    position: static;
}

.hotel-dropdown-wrapper .btn-outline-light i {
    font-size: 14px;
}

/* Black overlay background */
.hotel-dropdown-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.hotel-dropdown-overlay.show {
    opacity: 1;
    visibility: visible;
}

/* Bottom sheet menu */
.hotel-dropdown-menu {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    transform: translateY(100%);
    width: 100%;
    background: var(--slate-0);
    border-radius: 16px 16px 0 0;
    box-shadow: 0px -4px 24px rgba(18, 69, 89, 0.2);
    z-index: 1001;
    max-height: 70vh;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

@media (min-width: 481px) {
    .hotel-dropdown-menu {
        left: 50%;
        right: auto;
        transform: translateX(-50%) translateY(100%);
        max-width: var(--max-width);
    }
}

.hotel-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

@media (min-width: 481px) {
    .hotel-dropdown-menu.show {
        transform: translateX(-50%) translateY(0);
    }
}

/* Bottom sheet header */
.hotel-dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid var(--slate-200);
    position: sticky;
    top: 0;
    background: var(--slate-0);
    border-radius: 16px 16px 0 0;
}

.hotel-dropdown-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--slate-600);
    margin: 0;
}

.hotel-dropdown-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--slate-500);
    font-size: 20px;
    border-radius: 50%;
    transition: background 0.2s;
}

.hotel-dropdown-close:hover {
    background: var(--slate-100);
}

/* Hotel list items */
.hotel-dropdown-list {
    padding: 8px 0 24px;
}

.hotel-dropdown-item {
    height: 48px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: background 0.2s;
    font-size: 14px;
    font-weight: 500;
    color: var(--slate-600);
    border-bottom: 1px solid var(--slate-100);
}

.hotel-dropdown-item:last-child {
    border-bottom: none;
}

.hotel-dropdown-item:hover {
    background: var(--slate-50);
}

.hotel-dropdown-item.selected {
    background: var(--slate-100);
    color: var(--primary);
    font-weight: 600;
}

.hotel-dropdown-item.selected::after {
    content: '\F272';
    font-family: 'bootstrap-icons';
    margin-left: auto;
    color: var(--primary);
}

/* ===== CALENDAR DATE PICKER ===== */
.calendar-wrapper {
    position: relative;
}

.calendar-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%) scale(0.95);
    background: var(--slate-0);
    border-radius: 12px;
    box-shadow: 0px 8px 24px rgba(18, 69, 89, 0.2);
    z-index: 1001;
    width: 280px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
}

.calendar-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) scale(1);
}

.calendar-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 12px 8px;
}

.calendar-nav-btn {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--slate-100);
    border: none;
    border-radius: 50%;
    color: var(--slate-500);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.calendar-nav-btn:hover {
    background: var(--primary);
    color: var(--slate-0);
}

.calendar-month-year {
    font-size: 14px;
    font-weight: 600;
    color: var(--secondary);
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    padding: 4px 8px;
    gap: 2px;
}

.calendar-weekday {
    text-align: center;
    font-size: 11px;
    font-weight: 500;
    color: var(--slate-400);
    padding: 4px 0;
}

.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    padding: 0 8px 8px;
    gap: 2px;
}

.calendar-day {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 500;
    color: var(--slate-600);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    background: transparent;
}

.calendar-day:hover:not(.disabled):not(.empty) {
    background: var(--slate-100);
}

.calendar-day.today {
    border: 1px solid var(--primary);
}

.calendar-day.selected {
    background: var(--primary);
    color: var(--slate-0);
}

.calendar-day.disabled {
    color: var(--slate-300);
    cursor: not-allowed;
}

.calendar-day.empty {
    cursor: default;
}
