/**
 * Booking Template - Custom Styles
 *
 * Stage 2 - Custom styles for booking/accommodation website
 * Author: Kreator System
 * Version: 1.0
 */

/* ==================================
   Language Switcher - Z-Index Fix
   ================================== */

.module-multilanguage .mw-dropdown-content,
.module-multilanguage-change-language .mw-dropdown-content,
#switch_language_ul {
    z-index: 9999 !important;
}

.module-multilanguage,
.module-multilanguage-change-language {
    position: relative;
    z-index: 1050 !important;
}

/* ==================================
   Home Page - Hero Section
   ================================== */

.hero-booking {
    position: relative;
    min-height: 600px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-booking .hero-overlay {
    position: relative;
    text-align: center;
    color: #fff;
    z-index: 2;
    padding: 2rem;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 1rem;
    backdrop-filter: blur(5px);
}

.hero-booking h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
}

.hero-booking p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.3);
}

/* ==================================
   Home Page - Amenities/Features Section
   ================================== */

.amenities-section .amenity-icon {
    font-size: 3rem;
    color: #0d6efd;
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.amenities-section .amenity-card:hover .amenity-icon {
    transform: scale(1.1) rotate(5deg);
}

.amenities-section h4 {
    font-weight: 600;
    margin-top: 1rem;
    color: #212529;
}

/* ==================================
   Home Page - Featured Rooms Section
   ================================== */

.featured-rooms-section {
    background: #f8f9fa;
}

.featured-rooms-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: #212529;
}

/* ==================================
   Home Page - Testimonials Section
   ================================== */

.testimonials-section .testimonial-card {
    background: #fff;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
}

.testimonials-section .testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.testimonials-section .stars {
    color: #ffc107;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.testimonials-section .testimonial-text {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #495057;
    font-style: italic;
    margin-bottom: 1.5rem;
}

.testimonials-section .testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.testimonials-section .testimonial-author img {
    width: 50px;
    height: 50px;
    object-fit: cover;
}

.testimonials-section .testimonial-author strong {
    display: block;
    color: #212529;
    font-weight: 600;
}

.testimonials-section .testimonial-author small {
    display: block;
    color: #6c757d;
}

/* ==================================
   Home Page - Location Section
   ================================== */

.location-section {
    background: #f8f9fa;
}

.location-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: #212529;
}

.location-section #map {
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* ==================================
   Home Page - Gallery Section
   ================================== */

.gallery-section .gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.gallery-section .gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.gallery-section .gallery-item:hover {
    transform: scale(1.03);
}

.gallery-section .gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

/* ==================================
   Room Single Page Styles
   ================================== */

.room-single-page .room-title {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.room-single-page .room-price-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 4px solid #0d6efd;
}

.room-single-page .room-quick-facts {
    background: #fff;
}

.room-single-page .fact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.5rem 0;
}

.room-single-page .fact-item svg {
    flex-shrink: 0;
    color: #0d6efd;
}

.room-single-page .amenities-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.room-single-page .amenities-list .badge {
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
}

.room-single-page .checkin-checkout-info {
    background: #f8f9fa;
}

/* ==================================
   Room Listing Page Styles
   ================================== */

.room-listing-page .filters-sidebar .card {
    border: 1px solid #dee2e6;
    margin-bottom: 1.5rem;
}

.room-listing-page .filters-sidebar .card-title {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 1rem;
    color: #212529;
}

.room-listing-page .form-check {
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
}

.room-listing-page .form-check-input:checked {
    background-color: #0d6efd;
    border-color: #0d6efd;
}

/* ==================================
   Room Card Component
   ================================== */

.room-card {
    transition: all 0.3s ease;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    overflow: hidden;
}

.room-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15) !important;
}

.room-card .room-card-image {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.room-card .card-img-top {
    transition: transform 0.4s ease;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.room-card:hover .card-img-top {
    transform: scale(1.08);
}

.room-card .price-badge {
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.95) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.room-card .card-title {
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.4;
}

.room-card .card-title a {
    color: #212529;
    text-decoration: none;
    transition: color 0.2s ease;
}

.room-card .card-title a:hover {
    color: #0d6efd;
}

.room-card .room-quick-info {
    font-size: 0.875rem;
    color: #6c757d;
}

.room-card .room-quick-info svg {
    opacity: 0.7;
}

.room-card .btn-outline-primary {
    border-width: 2px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.room-card .btn-outline-primary:hover {
    transform: translateX(4px);
}

/* ==================================
   Booking Confirmation Page
   ================================== */

.booking-confirmation-page .success-icon svg {
    animation: successBounce 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes successBounce {
    0% {
        transform: scale(0) rotate(-45deg);
        opacity: 0;
    }
    50% {
        transform: scale(1.1) rotate(5deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

.booking-confirmation-page .card {
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    border: 1px solid #e9ecef;
}

.booking-confirmation-page .card-header {
    border-bottom: 2px solid rgba(255,255,255,0.2);
}

.booking-confirmation-page .room-image-placeholder {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 0.5rem;
}

/* ==================================
   Booking Calendar Module
   ================================== */

.module-booking-calendar .card {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    border: none;
}

.module-booking-calendar .card-header {
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 100%);
    border: none;
}

.module-booking-calendar .form-label {
    font-weight: 500;
    color: #495057;
    margin-bottom: 0.5rem;
}

.module-booking-calendar input[type="date"],
.module-booking-calendar select {
    border: 2px solid #e9ecef;
    border-radius: 0.375rem;
    padding: 0.625rem 0.75rem;
    transition: border-color 0.2s ease;
}

.module-booking-calendar input[type="date"]:focus,
.module-booking-calendar select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

.module-booking-calendar .price-breakdown {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-left: 4px solid #0d6efd;
}

.module-booking-calendar .btn-primary {
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.module-booking-calendar .btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.3);
}

/* ==================================
   Responsive Adjustments
   ================================== */

@media (max-width: 991.98px) {
    .room-listing-page .filters-sidebar {
        margin-top: 2rem;
    }

    .room-single-page .room-info-wrapper {
        margin-top: 2rem;
    }
}

@media (max-width: 767.98px) {
    .room-card .room-card-image {
        height: 200px;
    }

    .room-single-page .room-title {
        font-size: 1.5rem;
    }

    .booking-confirmation-page .success-icon svg {
        height: 60px;
        width: 60px;
    }
}

@media (max-width: 575.98px) {
    .room-card .card-img-top {
        height: 180px;
    }

    .room-single-page .next-previous-content {
        float: none !important;
        margin-top: 1rem;
    }
}

/* ==================================
   Mobile Room Tiles - Full Width
   ================================== */

@media (max-width: 767.98px) {
    .container-fluid {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    .row.justify-content-between {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .row.justify-content-between > .col-12.col-lg-9,
    .row.justify-content-between > .col-12.col-lg-3 {
        padding-left: 0 !important;
        padding-right: 0 !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    .row.shop-products {
        margin-left: -5px !important;
        margin-right: -5px !important;
    }

    .row.shop-products > [class*="col-"] {
        padding-left: 5px !important;
        padding-right: 5px !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    .mw-online-shop,
    .mw-online-shop-skin-1 {
        margin-left: 0;
        margin-right: 0;
    }

    .mw-online-shop .row,
    .mw-online-shop-skin-1 .row {
        margin-left: -5px !important;
        margin-right: -5px !important;
    }

    .mw-online-shop > .col-12,
    .mw-online-shop > .col-lg-9,
    .mw-online-shop-skin-1 > .col-12 {
        padding-left: 5px !important;
        padding-right: 5px !important;
    }

    .mw-online-shop [class*="col-"],
    .mw-online-shop-skin-1 [class*="col-"] {
        padding-left: 5px !important;
        padding-right: 5px !important;
    }

    .mw-online-shop [class*="col-"] .product,
    .mw-online-shop-skin-1-product .product,
    .shop-products .product {
        width: 100%;
    }

    .mw-online-shop-skin-1-product {
        flex: 0 0 100% !important;
        max-width: 100% !important;
    }

    .mw-online-shop-skin-1-product .product {
        border-radius: 15px;
    }

    .mw-online-shop-skin-1-product .background-image-holder {
        border-radius: 15px;
    }
}

/* Room listing page - mobile adjustments */
@media (max-width: 767.98px) {
    /* Room listing page - full width */
    .room-listing-page {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .room-listing-page > .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .room-listing-page .col-12.col-lg-9,
    .room-listing-page .col-12.col-lg-3 {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* Fix product cards alignment - override mx-auto and col-sm-10 */
    .room-listing-page .shop-products > [class*="col-"] {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .room-listing-page .shop-products {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .room-listing-page .module-shop-products {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

/* Room details page - mobile adjustments */
@media (max-width: 767.98px) {
    html, body {
        overflow-x: hidden;
    }

    .container-fluid.mw-m-t-30 {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .container-fluid.mw-m-t-30 > .row.justify-content-center {
        justify-content: flex-start !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        width: 100% !important;
    }

    .room-holder {
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .room-holder > .col-12.col-lg-7,
    .room-holder > .col-12.col-lg-5 {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .shop-inner-gallery.row {
        margin: 0 !important;
        width: 100% !important;
    }

    .shop-inner-big-image {
        padding: 0 !important;
        width: 100% !important;
    }

    .shop-inner-big-image img {
        width: 100% !important;
        max-width: 100% !important;
    }

    .shop-inner-gallery-thumbnails {
        padding: 12px !important;
        width: 100% !important;
    }

    .room-info-wrapper {
        padding: 12px !important;
    }

    .room-details-section.container {
        max-width: 100% !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .room-details-section .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .room-details-section .col-lg-6,
    .room-details-section .col-12 {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .room-details-section .card {
        margin-bottom: 1rem;
    }

    /* Fix similar rooms section */
    .room-single-page .container {
        max-width: 100% !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .room-single-page .container .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .room-single-page .container [class*="col-"] {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* Services page - full width */
    .container.py-5:has(.service-booking-module),
    .service-booking-module {
        max-width: 100% !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .service-booking-grid.row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .service-booking-grid > [class*="col-"] {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .service-booking-filters {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

/* ==================================
   Homepage Sections - Mobile Full Width
   ================================== */

@media (max-width: 767.98px) {
    /* All section containers on homepage */
    .section > .container,
    .section .container,
    section > .container,
    section .container {
        max-width: 100% !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .section .row,
    section .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .section [class*="col-"],
    section [class*="col-"] {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* Blog posts grid */
    .module-posts .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .module-posts [class*="col-"] {
        flex: 0 0 100% !important;
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* PhotoSwipe lightbox - full width on mobile */
    .pswp {
        --pswp-root-padding-left: 0px !important;
        --pswp-root-padding-right: 0px !important;
    }

    .pswp__container {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .pswp__item {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .pswp__img {
        object-fit: contain !important;
    }

    /* Only limit width when NOT zoomed - allow zoom to work properly */
    .pswp:not(.pswp--zoomed-in) .pswp__img {
        max-width: 100vw !important;
    }

    .pswp--has-thumbnails .pswp__container {
        padding-bottom: 90px !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .pswp-thumbnails {
        padding: 8px 10px !important;
    }

    .pswp-thumbnail {
        width: 60px !important;
        height: 45px !important;
    }
}

/* ==================================
   Amenities Page - Mobile Full Width
   ================================== */

@media (max-width: 767.98px) {
    /* Amenities page container */
    .amenities-page .container {
        max-width: 100% !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    /* Amenities grid row */
    .amenities-page .row.g-4 {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .amenities-page .row.g-4 > [class*="col-"] {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    /* Category boxes full width */
    .amenities-page .category-box {
        margin-bottom: 1rem;
    }

    /* Skin amenities layout container */
    .mw-layout-container.container {
        max-width: 100% !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    /* Amenities grid within skin */
    .amenities-grid {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

/* ==================================
   CTA Section - Override Orange Background
   ================================== */

section.section.bg-primary#cta,
section.bg-primary#cta,
#cta.bg-primary {
    background-color: #264653 !important;
}

/* ==================================
   Article/Blog Cards - Mobile Padding
   ================================== */

@media (max-width: 767.98px) {
    /* Article hero section - auto height to fit content */
    .article-hero {
        margin-top: 0 !important;
        padding-top: 70px !important;
        padding-bottom: 30px !important;
        height: auto !important;
        min-height: unset !important;
    }

    /* Make header transparent on mobile */
    #mw-header-background,
    .header-background {
        background: transparent !important;
        background-color: transparent !important;
    }

    .article-hero .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
        padding-top: 20px !important;
    }

    .article-hero h1 {
        font-size: 1.3rem !important;
        line-height: 1.2 !important;
        margin-top: 0 !important;
        margin-bottom: 10px !important;
    }

    .article-hero p {
        font-size: 0.85rem !important;
        line-height: 1.4 !important;
    }

    /* Main content container padding */
    .main-content .container,
    .edit.main-content .container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }

    /* Article cards - full width with proper margins */
    .article-card {
        margin-left: 0 !important;
        margin-right: 0 !important;
        border-radius: 12px !important;
    }

    /* Article card image - full width on mobile */
    .article-card .col-md-5 {
        border-radius: 12px 12px 0 0 !important;
    }

    .article-card .article-card-image {
        border-radius: 12px 12px 0 0 !important;
    }

    /* Article card content padding */
    .article-card .col-md-7 {
        padding: 20px !important;
    }

    /* Row containing article cards */
    .main-content .row.justify-content-center {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .main-content .col-lg-10 {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

/* ==================================
   Utility Classes
   ================================== */

.text-booking-primary {
    color: #0d6efd !important;
}

.bg-booking-light {
    background-color: #f8f9fa !important;
}

.border-booking {
    border: 2px solid #0d6efd !important;
}

/* Loading States */
.loading-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Focus States for Accessibility */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .booking-confirmation-page .btn,
    .room-single-page .next-previous-content,
    .module-booking-calendar {
        display: none !important;
    }
}
