/* Side Drawer Component Styles */

.side-drawer-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 99999 !important;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}

.side-drawer-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.side-drawer,
.side-drawer-2 {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    width: 500px !important;
    height: 100% !important;
    background-color: #ffffff;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    border-radius: 16px 0 0 16px;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    max-width: 90vw;
    box-sizing: border-box;
}

.side-drawer-overlay.active .side-drawer {
    transform: translateX(0);
}

/* Header Section */
.side-drawer-header {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #e5e7eb;
    background-color: #ffffff;
    min-height: 40px;
    position: relative;
}

.side-drawer-back-btn {
    background: none;
    border: none;
    padding: 8px;
    margin-right: 16px;
    cursor: pointer;
    border-radius: 8px;
    color: #6b7280;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
}

.side-drawer-back-btn:hover {
    background-color: #f3f4f6;
    color: #374151;
}

.side-drawer-back-btn:active {
    transform: scale(0.95);
}

.side-drawer-title {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
    margin: 0;
    flex: 1;
    text-align: left;
    padding-right: 56px; /* Compensate for back button width */
    line-height: 1.2;
}

/* Content Section */
.side-drawer-content {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    overflow-x: hidden;
    background-color: #ffffff;
    box-sizing: border-box;
}

/* Custom scrollbar for content */
.side-drawer-content::-webkit-scrollbar {
    width: 6px;
}

.side-drawer-content::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 3px;
}

.side-drawer-content::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}

.side-drawer-content::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .side-drawer {
        width: 100%;
        max-width: 100vw;
        border-radius: 0;
        box-shadow: none;
    }
    
    .side-drawer-header {
        padding: 16px 20px;
        min-height: 70px;
    }
    
    .side-drawer-title {
        font-size: 18px;
        padding-right: 48px;
    }
    
    .side-drawer-content {
        padding: 20px;
    }
    
    .side-drawer-back-btn {
        min-width: 36px;
        height: 36px;
        margin-right: 12px;
    }
}

@media (max-width: 480px) {
    .side-drawer-header {
        padding: 12px 16px;
        min-height: 60px;
    }
    
    .side-drawer-title {
        font-size: 16px;
        padding-right: 44px;
    }
    
    .side-drawer-content {
        padding: 16px;
    }
    
    .side-drawer-back-btn {
        min-width: 32px;
        height: 32px;
        margin-right: 8px;
    }
}

/* Animation enhancements */
.side-drawer-overlay {
    backdrop-filter: blur(2px);
}

.side-drawer-header {
    backdrop-filter: blur(10px);
}

/* Focus styles for accessibility */
.side-drawer-back-btn:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Smooth transitions for dynamic content */
.side-drawer-content > * {
    animation: fadeInUp 0.4s ease-out;
}

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

/* ========================================
   BOOKING PEOPLE SELECTION COMPONENT STYLES
   ======================================== */

/* Remove default content padding for booking component */
.side-drawer-content:has(#booking-people-selection-content),
.side-drawer-content:has(#activity-package-selection-content),
.side-drawer-content:has(#package-details-content) {
    padding: 0;
}

/* Booking Attraction Styles */
#booking-people-selection-content .booking-attraction,
#activity-package-selection-content .booking-attraction {
    width: 100%;
    height: fit-content;
    display: flex;
    flex-direction: column;
    padding: 15px;
    box-sizing: border-box;
    font-size: 14px;
    border-bottom: none;
}

#booking-people-selection-content .booking-attraction .booking-attraction-body,
#activity-package-selection-content .booking-attraction .booking-attraction-body {
    width: 100%;
    height: fit-content;
    display: flex;
    flex-direction: row;
    border-bottom: none;
    padding-bottom: 10px;
}

#booking-people-selection-content .booking-attraction .booking-attraction-image,
#activity-package-selection-content .booking-attraction .booking-attraction-image {
    width: 70px;
    height: 70px;
    min-width: 70px;
    background-color: #eaeaea;
    border-radius: 8px;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

#booking-people-selection-content .booking-attraction .booking-attraction-content,
#activity-package-selection-content .booking-attraction .booking-attraction-content {
    width: 100%;
    height: fit-content;
    display: flex;
    flex-direction: column;
    padding-left: 10px;
    box-sizing: border-box;
    min-width: 0;
}

#booking-people-selection-content .booking-attraction .booking-attraction-row,
#activity-package-selection-content .booking-attraction .booking-attraction-row {
    width: 100%;
    height: fit-content;
    display: flex;
    flex-direction: row;
    margin-bottom: 5px;
}

#booking-people-selection-content .booking-attraction .booking-attraction-categories,
#activity-package-selection-content .booking-attraction .booking-attraction-categories {
    font-size: 12px;
    color: #BEBBB8;
}

#booking-people-selection-content .booking-attraction .booking-attraction-rate,
#activity-package-selection-content .booking-attraction .booking-attraction-rate {
    width: fit-content;
    height: fit-content;
    display: flex;
    flex-direction: row;
    align-items: center;
    font-size: 11px;
    margin: auto 0 auto auto;
    color: #889596;
}

#booking-people-selection-content .booking-attraction .booking-attraction-rate img,
#activity-package-selection-content .booking-attraction .booking-attraction-rate img {
    width: 10px;
    height: 10px;
    margin-right: 3px;
}

#booking-people-selection-content .booking-attraction .booking-attraction-rate .booking-attraction-rate-value,
#activity-package-selection-content .booking-attraction .booking-attraction-rate .booking-attraction-rate-value {
    width: fit-content;
    height: 14px;
}

#booking-people-selection-content .booking-attraction .booking-attraction-title,
#activity-package-selection-content .booking-attraction .booking-attraction-title {
    font-size: 14px;
    font-weight: 600;
    color: #132D2F;
    font-family: 'poppins', sans-serif;
    overflow-wrap: anywhere;
}

#booking-people-selection-content .booking-attraction .booking-attraction-offer,
#activity-package-selection-content .booking-attraction .booking-attraction-offer {
    width: fit-content;
    height: fit-content;
    background-color: #F2F3F3;
    border-radius: 5px;
    font-size: 11px;
    padding: 2px 5px;
    color: #132D2FB2;
}

#booking-people-selection-content .booking-attraction .booking-attraction-footer,
#activity-package-selection-content .booking-attraction .booking-attraction-footer {
    width: 100%;
    height: fit-content;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px 12px;
    font-size: 12px;
    padding: 5px 0;
    color: #132D2F;
}

#booking-people-selection-content .booking-attraction .booking-attraction-date,
#booking-people-selection-content .booking-attraction .booking-attraction-time,
#activity-package-selection-content .booking-attraction .booking-attraction-date,
#activity-package-selection-content .booking-attraction .booking-attraction-time {
    width: fit-content;
    height: fit-content;
    margin-inline-end: 10px;
}

#booking-people-selection-content .booking-attraction .booking-attraction-time,
#activity-package-selection-content .booking-attraction .booking-attraction-time {
    margin: 0;
}

/* People Selection Styles */
#booking-people-selection-content .booking-people-select-container {
    width: 100%;
    height: fit-content;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 15px;
    box-sizing: border-box;
    font-size: 14px;
}

#booking-people-selection-content .booking-people-select-item-col {
    width: fit-content;
    height: fit-content;
    display: flex;
    flex-direction: column;
}

.booking-people-select-item-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none; 
}

.booking-people-limit-hint {
    font-size: 11px;
    color: #889596;
    min-height: 16px;
}

#booking-people-selection-content .booking-people-select-container .booking-people-select-item-col:last-child {
    margin: auto 0 auto auto;
}

#booking-people-selection-content .booking-people-select-item-row {
    width: fit-content;
    height: fit-content;
    display: flex;
    flex-direction: row;
    align-items: center;
}

#booking-people-selection-content .booking-people-select-age {
    font-size: 11px;
    color: var(--color-text-priority-3, #6b7280);
    margin-left: 5px;
}

#booking-people-selection-content .booking-people-select-price {
    color: var(--color-primary, #FD8559);
}

#booking-people-selection-content .booking-people-select-item-btns {
    width: fit-content;
    height: fit-content;
    display: flex;
    flex-direction: row;
    border: 1px solid #E7E9E9;
    border-radius: 15px;
    padding: 8px;
}

#booking-people-selection-content .booking-people-select-item-btn {
    width: 20px;
    height: 20px;
    min-width: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: #fd855980;
    border-radius: 100px;
    color: #FD8559;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

#booking-people-selection-content .booking-people-select-item-btn:hover {
    background-color: #FD8559;
    color: white;
}

#booking-people-selection-content .booking-people-select-item-count {
    width: fit-content;
    height: fit-content;
    margin: 0 20px;
    min-width: 20px;
    align-items: center;
    text-align: center;
}

#booking-people-selection-content .direct-booking-date-picker {
    width: 100%;
    max-width: none;
    padding: 15px;
    box-sizing: border-box;
    border-top: 1px solid #E7E9E9;
    border-radius: 0;
    box-shadow: none;
    font-family: 'Inter', sans-serif;
}

#booking-people-selection-content .direct-booking-date-picker .date-picker-card-title {
    font-weight: 700;
    margin-bottom: 8px;
}

#booking-people-selection-content .direct-booking-date-picker .date-inputs {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

#booking-people-selection-content .direct-booking-date-picker .input-box {
    flex: 1;
    padding: 4px;
    border: 1px solid #E7E9E9;
    border-radius: 10px;
    text-align: center;
    color: var(--color-secondary);
    font-weight: 600;
}

#booking-people-selection-content .direct-booking-date-picker .input-box.active {
    border-color: var(--color-secondary);
    background: #f0f9ff;
}

#booking-people-selection-content .direct-booking-date-picker .flatpickr-calendar {
    width: 100%;
    box-shadow: none !important;
}

#booking-people-selection-content .direct-booking-date-picker .flatpickr-rContainer,
#booking-people-selection-content .direct-booking-date-picker .flatpickr-days,
#booking-people-selection-content .direct-booking-date-picker .dayContainer {
    width: 100%;
    max-width: none;
    min-width: 0;
}

#booking-people-selection-content .direct-booking-date-picker .flatpickr-day.selected {
    background: var(--color-secondary) !important;
    border-color: var(--color-secondary) !important;
}

/* Total Section */
#booking-people-selection-content #booking-people-select-total {
    width: 100%;
    height: fit-content;
    display: flex;
    flex-direction: row;
    margin-top: 10px;
    padding: 15px;
    box-sizing: border-box;
    border-top: 1px solid #E7E9E9;
    font-size: 14px;
}

#booking-people-selection-content #booking-people-select-total #booking-people-select-total-value {
    margin: auto 0 auto auto;
    color: var(--color-primary, #FD8559);
    font-weight: 600;
}

/* Footer Section */
#booking-people-selection-content #booking-people-select-footer {
    width: 100%;
    height: fit-content;
    display: flex;
    flex-direction: column;
    padding: 15px;
    box-sizing: border-box;
    box-shadow: 0px 0px 13px -4px #818181;
    margin-top: auto;
}

#booking-people-selection-content #booking-people-select-price-includes {
    width: 100%;
    height: fit-content;
    display: flex;
    flex-direction: column;
    background-color: #ACACAC1A;
    border-radius: 8px;
    padding: 10px;
    box-sizing: border-box;
    font-size: 12px;
}

#booking-people-selection-content #booking-people-select-price-includes-label {
    color: var(--color-text-priority-1, #111827);
    font-weight: bold;
}

#booking-people-selection-content #booking-people-select-price-includes-value {
    font-size: 11px;
    color: var(--color-text-priority-3, #6b7280);
}

#booking-people-selection-content #booking-people-select-btn-save {
    width: 100%;
    height: fit-content;
    margin-top: 10px;
    background-color: var(--color-secondary, #4ECDC4);
    border: 1px solid var(--color-secondary, #4ECDC4);
    border-radius: 8px;
    padding: 12px;
    box-sizing: border-box;
    color: var(--color-white, #ffffff);
    cursor: pointer;
    font-family: 'poppins', sans-serif;
    font-size: 14px;
    font-weight: 500;
    transition: ease 0.3s all;
}

#booking-people-selection-content #booking-people-select-btn-save:hover {
    background-color: var(--color-white, #ffffff);
    color: var(--color-secondary, #4ECDC4);
    border: 1px solid var(--color-secondary, #4ECDC4);
}

/* Room Details Styles */
#room-details-content{
    width: 100%;
    height: 100%;
    animation: none;
}

#room-details-content > *{
    animation: fadeInUp 0.4s ease-out;
}

#room-details-content .side-drawer-carousel{
    width: 100%;
    height: 40%;
    min-height: 40%;
    background-color: #eaeaea;
    border-radius: 30px;
    margin-bottom: 16px;
}

#room-details-content .room-details-name{
    font-weight: bold;
    font-size: 16px;
    color: #132D2F;
}

#room-details-content .room-info{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 24px;
    font-size: 12px;
    color: #132D2F;
}

#room-details-content .room-info > div{
    display: flex;
    flex-direction: row;
    align-items: center;
    margin: 0 24px 8px 0;
    gap: 8px;
}

#room-details-content .cancellation-policy{
    width: 100%;
    height: fit-content;
    border-radius: 12px;
    padding: 8px;
    margin-top: 24px;
    background-color: #F5F4F4;
}

#room-details-content .cancellation-policy-title{
    font-weight: 500;
    font-size: 12px;
    color: #222222;
}

#room-details-content .cancellation-policy-item{
    list-style: disc;
    list-style-position: inside;
    font-size: 12px;
    color: #4E4E4E;
}

#room-details-content .room-details-footer{
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: fit-content;
    display: flex;
    flex-direction: column;
    padding: 12px 16px;
    background-color: #FFFFFF;
    border-top: 1px solid #E7E9E9;
    box-shadow: 0px -2px 4px 0px #0000001A;
    animation: none;
}

#room-details-content .room-details-taxes-title{
    font-weight: bold;
    font-size: 12px;
    color: #132D2F;
}

#room-details-content .room-details-tax{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

#room-details-content .room-details-tax .tax-sub-type{
    font-size: 12px;
    color: #132D2F;
}

#room-details-content .room-details-tax .tax-amount{
    font-weight: 600;
    font-size: 15px;
    color: #FD8559;
}

#room-details-content .room-details-price{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin: 6px 0;
    padding-top: 8px;
    border-top: 1px solid #E7E9E9;
}

#room-details-content .room-details-price-text{
    font-weight: 600;
    font-size: 14px;
    color: #132D2F;
}

#room-details-content .room-details-price-value{
    font-weight: 600;
    font-size: 16px;
    color: #FD8559;
}

/* Package Selection Styles */
#activity-package-selection-content .packages-section{
    padding: 15px;
}

#activity-package-selection-content .package-container{
    width: 100%;
    height: fit-content;
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    border: 1px solid #D9EEF3;
    padding: 12px;
    margin-bottom: 24px;
    cursor: pointer;
}

#activity-package-selection-content .package-container.selected{
    border-color: #42A8C3;
}

#activity-package-selection-content .package-container .package-name{
    width: 100%;
    height: fit-content;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    font-weight: bold;
    font-size: 14px;
    margin-bottom: 8px;
}

#activity-package-selection-content .package-container .package-radio-button{
    width: 16px;
    height: 16px;
    border: 1px solid #E7E9E9;
    border-radius: 50%;
    position: relative;
    display: inline-block;
    box-sizing: border-box;
}

#activity-package-selection-content .package-container .package-radio-button.selected{
    border-color: #42A8C3;
}

#activity-package-selection-content .package-container .package-radio-button.selected::after{
    content: "";
    width: 8px;
    height: 8px;
    background-color: #42A8C3;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#activity-package-selection-content .package-container .package-price{
    width: 100%;
    height: fit-content;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    margin-bottom: 24px;
}

#activity-package-selection-content .package-container .package-price-value{
    font-weight: bold;
    font-size: 15px;
    color: var(--color-primary);
}

#activity-package-selection-content .package-container .package-info{
    margin-bottom: 24px;
}

#activity-package-selection-content .package-container .package-info > div{
    display: flex;
    flex-direction: row;
    align-items: center;
    font-size: 14px;
    gap: 8px;
    margin-bottom: 8px;
}

#activity-package-selection-content .package-container .more-details-btn{
    width: 100%;
    height: fit-content;
    border: 1px solid #42A8C3;
    border-radius: 8px;
    padding: 8px 0;
    font-size: 14px;
    text-align: center;
    cursor: pointer;
    background-color: transparent;
    transition: ease 0.3s all;
}

#activity-package-selection-content .package-container .more-details-btn:hover{
    background-color: #D9EEF3;
}

#activity-package-selection-content .side-drawer-select-package-container{
    width: 100%;
    height: fit-content;
    padding: 12px 16px 16px;
    background-color: #FFFFFF;
    border-top: 1px solid #E7E9E9;
    box-shadow: 0px -2px 4px 0px #0000001A;
}

#activity-package-selection-content .side-drawer-select-package-btn{
    width: 100%;
    height: fit-content;
    border-radius: 8px;
    padding: 12px 0;
    background-color: var(--color-secondary);
    border: none;
    font-size: 16px;
    text-align: center;
    color: #FFFFFF;
    transition: ease 0.3s all;
    cursor: pointer;
}

#activity-package-selection-content .side-drawer-select-package-btn:hover{
    background-color: var(--color-secondary);
}

#activity-package-selection-content .side-drawer-select-package-btn:disabled{
    background-color: #E7E9E9;
    color: #9CA3AF;
    cursor: not-allowed;
}

#activity-package-selection-content .side-drawer-select-package-btn:disabled:hover{
    background-color: #E7E9E9;
    color: #9CA3AF;
}

/* Package Details Styles */
#package-details-content{
    padding: 16px;
}

#package-details-content .package-details-name{
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 8px;
}

#package-details-content .package-details-price-container{
    width: 100%;
    height: fit-content;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 12px;
    margin-bottom: 32px;
}

#package-details-content .package-details-price-value{
    font-weight: bold;
    font-size: 15px;
    color: #FD8559;
}

#package-details-content .package-details-info{
    margin-bottom: 32px;
}

#package-details-content .package-details-info > div{
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    font-size: 14px;
    gap: 8px;
    margin-bottom: 8px;
}

#package-details-content .section-info-list{
    width: 100%;
    height: fit-content;
    display: flex;
    flex-direction: row;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

#package-details-content .section-info-list-item{
    width: fit-content;
    max-width: 100%;
    height: fit-content;
    border-radius: 50px;
    padding: 8px 16px;
    background-color: #FFFFFF;
    border: 1px solid #E7E9E9;
    box-shadow: 0px 2px 4px 0px #00000040;
    font-size: 12px;
    text-align: center;
}

#package-details-content .section-info-list-item.selected{
    background-color: #ECF7F9;
    border: 1px solid #8ECBDB;
    color: #42A8C3;
}

#package-details-content .section-info-groups{
    display: none;
}

#package-details-content .section-info-groups.visible{
    display: block;
}

#package-details-content .section-info-group{
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

#package-details-content .section-info-group-name{
    font-weight: 500;
    font-size: 14px;
    text-transform: uppercase;
}

#package-details-content .section-info-group-item{
    display: flex;
    flex-direction: row;
    align-items: start;
    font-size: 14px;
    color: #425759;
    gap: 8px;
}

#package-details-content .section-info-group-item span{
    overflow-wrap: anywhere;
}

/* Mobile Responsiveness for Booking Component */
@media (max-width: 768px) {
    #booking-people-selection-content .booking-attraction {
        padding: 12px;
    }
    
    #booking-people-selection-content .booking-people-select-container {
        padding: 12px;
    }
    
    #booking-people-selection-content #booking-people-select-total {
        padding: 12px;
    }
    
    #booking-people-selection-content #booking-people-select-footer {
        padding: 12px;
    }
}

@media (max-width: 480px) {
    #booking-people-selection-content .booking-attraction .booking-attraction-image,
    #activity-package-selection-content .booking-attraction .booking-attraction-image {
        width: 60px;
        height: 60px;
        min-width: 60px;
    }
    
    #booking-people-selection-content .booking-attraction .booking-attraction-title,
    #activity-package-selection-content .booking-attraction .booking-attraction-title {
        font-size: 13px;
    }
    
    #booking-people-selection-content .booking-people-select-item-btn {
        width: 18px;
        height: 18px;
        min-width: 18px;
        font-size: 12px;
    }
    
    #booking-people-selection-content .booking-people-select-item-count {
        margin: 0 15px;
        min-width: 15px;
    }
}
