/* iGuide Booking Frontend Styles */

.iguide-booking-container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    min-height: 100vh;
    padding: 20px;
}

/* Flatpickr Custom Styles */
.flatpickr-calendar {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    font-family: inherit;
}

.flatpickr-day {
    color: #1a1a1a;
}

.flatpickr-day:hover {
    background: #4a9eff;
    color: #fff;
    border-color: #4a9eff;
}

.flatpickr-day.selected {
    background: #4a9eff;
    color: #fff;
    border-color: #4a9eff;
}

.flatpickr-day.startRange,
.flatpickr-day.endRange {
    background: #4a9eff;
    color: #fff;
    border-color: #4a9eff;
}

.flatpickr-day.inRange {
    background: #4a9eff !important;
    color: #fff !important;
    border-color: #4a9eff !important;
}

/* More specific selectors for range mode */
.flatpickr-calendar.rangeMode .flatpickr-day.inRange {
    background: #4a9eff !important;
    color: #fff !important;
    border-color: #4a9eff !important;
}

.flatpickr-calendar.rangeMode .flatpickr-day:not(.startRange):not(.endRange):not(.flatpickr-disabled).inRange {
    background: #4a9eff !important;
    color: #fff !important;
    border-color: #4a9eff !important;
}

/* Calendar container specific overrides */
.iguide-calendar-container .flatpickr-calendar.rangeMode .flatpickr-day.inRange {
    background: #4a9eff !important;
    color: #fff !important;
    border-color: #4a9eff !important;
}

.iguide-calendar-container .flatpickr-calendar .flatpickr-day.inRange {
    background: #4a9eff !important;
    color: #fff !important;
    border-color: #4a9eff !important;
}

/* Ensure in-range dates between start and end are blue */
.flatpickr-day.inRange:not(.startRange):not(.endRange) {
    background: #4a9eff !important;
    color: #fff !important;
    border-color: #4a9eff !important;
}

.flatpickr-day.today {
    border-color: #4a9eff;
}

.flatpickr-day.today:hover {
    background: #4a9eff;
    color: #fff;
}

.flatpickr-day.flatpickr-disabled {
    color: #ccc;
}

.flatpickr-months .flatpickr-month {
    color: #1a1a1a;
}

.flatpickr-weekdays {
    background: #f8f9fa;
}

.flatpickr-weekday {
    color: #666;
    font-weight: 500;
}

.iguide-booking-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    gap: 20px;
    min-height: 600px;
    position: relative;
}

/* Language Switcher */
.iguide-language-switcher {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 100;
}

.iguide-language-select {
    padding: 6px 20px 6px 8px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    background: #fff;
    font-size: 12px;
    font-weight: 500;
    color: #1a1a1a;
    cursor: pointer;
    transition: all 0.3s;
    appearance: none;
    width: 50px;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%231a1a1a' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 6px center;
}

.iguide-language-select option {
    color: #1a1a1a;
    background: #fff;
}

/* Custom Guide Select with Thumbnails */
.iguide-custom-select-wrapper {
    position: relative;
}

.iguide-guide-select {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 100%;
    height: 100%;
}

.iguide-custom-select {
    position: relative;
    width: 100%;
}

.iguide-custom-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    min-height: 44px;
}

.iguide-custom-select-trigger:hover {
    border-color: #4a9eff;
}

.iguide-custom-select-trigger.active {
    border-color: #4a9eff;
    box-shadow: 0 0 0 3px rgba(74, 158, 255, 0.1);
}

.iguide-custom-select-value {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    color: #1a1a1a;
}

.iguide-custom-select-value img,
.iguide-custom-select-value .iguide-guide-thumbnail {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
    max-width: 32px;
    max-height: 32px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    flex-shrink: 0;
    display: block;
}

.iguide-custom-select-value span {
    flex: 1;
}

.iguide-custom-select-arrow {
    color: #666;
    transition: transform 0.3s;
    margin-left: 10px;
}

.iguide-custom-select.active .iguide-custom-select-arrow {
    transform: rotate(180deg);
}

.iguide-custom-select-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    margin-top: 4px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.iguide-custom-select.active .iguide-custom-select-options {
    display: block;
}

/* Expand container when dropdown is active to prevent overlap */
.iguide-custom-select-wrapper:has(.iguide-custom-select.active),
.iguide-form-group:has(.iguide-custom-select.active) {
    margin-bottom: 320px; /* Space for dropdown (max-height 300px + margin) */
    transition: margin-bottom 0.2s ease;
}

/* Fallback for browsers that don't support :has() */
.iguide-custom-select-wrapper.dropdown-active,
.iguide-form-group.dropdown-active {
    margin-bottom: 320px;
    transition: margin-bottom 0.2s ease;
}

.iguide-custom-select-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid #f0f0f0;
}

.iguide-custom-select-option:last-child {
    border-bottom: none;
}

.iguide-custom-select-option:hover {
    background: #f5f5f5;
}

.iguide-custom-select-option.selected {
    background: #e8f4ff;
}

.iguide-guide-thumbnail {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    max-width: 40px;
    max-height: 40px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center;
    flex-shrink: 0;
    display: block;
    overflow: hidden;
}

.iguide-guide-thumbnail-placeholder {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    max-width: 40px;
    max-height: 40px;
    border-radius: 50%;
    background: #e0e0e0;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.iguide-guide-thumbnail-placeholder::after {
    content: '👤';
    font-size: 20px;
}

.iguide-guide-name {
    color: #1a1a1a;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.iguide-guide-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.4;
}

.iguide-guide-badge-popular {
    background-color: #ff6b6b;
    color: #fff;
}

.iguide-guide-badge-exclusive {
    background-color: #ffd93d;
    color: #1a1a1a;
}

.iguide-guide-badge-new {
    background-color: #4ecdc4;
    color: #fff;
}

.iguide-language-select:hover {
    border-color: #4a9eff;
}

.iguide-language-select:focus {
    outline: none;
    border-color: #4a9eff;
}

/* Sidebar */
.iguide-sidebar {
    width: 300px;
    background: #294744;
    border-radius: 12px;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    color: #fff;
    position: relative;
    transition: width 0.3s ease, padding 0.3s ease;
}

.iguide-sidebar.collapsed {
    width: 80px;
    padding: 20px 10px;
}

.iguide-steps {
    flex: 1;
}

.iguide-step {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    cursor: pointer;
    transition: opacity 0.3s;
}

.iguide-sidebar.collapsed .iguide-step {
    justify-content: center;
    padding: 12px 0;
    gap: 0;
}

.iguide-step:not(.active) {
    opacity: 0.6;
}

.iguide-step-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
}

.iguide-sidebar.collapsed .iguide-step-icon {
    width: 32px;
    height: 32px;
}

.iguide-step.active .iguide-step-icon {
    color: #4a9eff;
}

.iguide-step-content {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.iguide-sidebar.collapsed .iguide-step-content {
    display: none;
}

.iguide-step-title {
    font-weight: 500;
    font-size: 14px;
}

.iguide-step-indicator {
    width: 24px;
    height: 24px;
}

.iguide-step-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    display: block;
}

.iguide-step.active .iguide-step-circle {
    background: #4a9eff;
    border-color: #4a9eff;
}

.iguide-contact {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.iguide-sidebar.collapsed .iguide-contact {
    display: none;
}

.iguide-contact h3 {
    font-size: 16px;
    margin-bottom: 15px;
    color: #fff;
}

.iguide-contact p {
    margin: 8px 0;
    font-size: 14px;
}

.iguide-contact a {
    color: #fff;
    text-decoration: none;
}

.iguide-contact a:hover {
    text-decoration: underline;
}

.iguide-collapse-menu {
    margin-top: auto;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    padding: 10px 15px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
    transition: background 0.3s;
}

.iguide-sidebar.collapsed .iguide-collapse-menu {
    padding: 10px;
    justify-content: center;
}

.iguide-sidebar.collapsed .iguide-collapse-menu span {
    display: none;
}

.iguide-sidebar.collapsed .iguide-collapse-menu svg {
    transform: rotate(180deg);
}

.iguide-collapse-menu:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Main Content */
.iguide-main-content {
    flex: 1;
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.iguide-form-container {
    max-width: 600px;
}

.iguide-form-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.iguide-form-group {
    margin-bottom: 18px;
}

.iguide-form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 0;
}

.iguide-form-row .iguide-form-group {
    margin-bottom: 18px;
}

.iguide-form-col {
    flex: 1;
    min-width: 0;
}

.iguide-form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

.iguide-form-group label.iguide-required::after {
    content: ' *';
    color: #e74c3c;
}

.iguide-input,
.iguide-select,
.iguide-textarea {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: border-color 0.3s;
    font-family: inherit;
    background-color: #fff;
    color: #1a1a1a !important;
}

.iguide-input::placeholder,
.iguide-textarea::placeholder {
    color: #999 !important;
}

.iguide-input:focus,
.iguide-textarea:focus {
    color: #1a1a1a !important;
}

.iguide-date-input {
    cursor: pointer;
    color: #1a1a1a !important;
}

.iguide-date-input::placeholder {
    color: #999;
}

.iguide-date-input:focus::placeholder {
    color: #ccc;
}

/* Ensure Flatpickr input text is always visible */
.iguide-date-input.flatpickr-input,
input.iguide-date-input.flatpickr-input,
.iguide-date-input[readonly] {
    color: #1a1a1a !important;
    background-color: #fff !important;
}

.iguide-date-input.flatpickr-input:focus,
input.iguide-date-input.flatpickr-input:focus {
    color: #1a1a1a !important;
}

.iguide-input:focus,
.iguide-select:focus,
.iguide-textarea:focus {
    outline: none;
    border-color: #4a9eff;
}

.iguide-select {
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L6 6L11 1' stroke='%231a1a1a' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    padding-right: 40px;
    appearance: none;
    cursor: pointer;
    color: #1a1a1a;
}

.iguide-select option {
    background-color: #fff;
    color: #1a1a1a;
    padding: 10px;
}

.iguide-select option:checked {
    background-color: #4a9eff;
    color: #fff;
}

.iguide-select option:hover {
    background-color: #f0f0f0;
}

.iguide-select:invalid {
    color: #999;
}

.iguide-select:valid {
    color: #1a1a1a;
}

.iguide-textarea {
    resize: vertical;
}

.iguide-price-summary {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin: 18px 0;
}

.iguide-summary-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

.iguide-summary-item:last-child {
    border-bottom: none;
}

.iguide-summary-item.iguide-total {
    font-weight: 600;
    font-size: 18px;
    padding-top: 15px;
    margin-top: 10px;
    border-top: 2px solid #e0e0e0;
}

.iguide-form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 20px;
}

.iguide-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
}

.iguide-btn-primary {
    background: #4a9eff;
    color: #fff;
}

.iguide-btn-primary:hover:not(:disabled) {
    background: #3a8eef;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(74, 158, 255, 0.3);
}

.iguide-btn-secondary {
    background: #e0e0e0;
    color: #333;
}

.iguide-btn-secondary:hover {
    background: #d0d0d0;
}

.iguide-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.iguide-btn.loading {
    position: relative;
    pointer-events: none;
}

.iguide-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: iguide-spin 0.6s linear infinite;
    vertical-align: middle;
    margin-right: 8px;
}

@keyframes iguide-spin {
    to { transform: rotate(360deg); }
}

.iguide-step-panel {
    display: none;
}

.iguide-step-panel.active {
    display: block;
}

/* Payment Section */
.iguide-payment-section {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #e0e0e0;
}

.iguide-payment-section h3 {
    margin-bottom: 15px;
    font-size: 18px;
}

.iguide-payment-methods {
    display: flex;
    gap: 20px;
    margin-bottom: 18px;
}

.iguide-payment-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 12px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s;
}

.iguide-payment-option:hover {
    border-color: #4a9eff;
}

.iguide-payment-option input[type="radio"] {
    margin: 0;
}

.iguide-payment-option input[type="radio"]:checked + span {
    color: #4a9eff;
    font-weight: 500;
}

.iguide-payment-form {
    margin-top: 20px;
}

#stripe-card-element {
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
}

#stripe-card-errors {
    color: #e74c3c;
    margin-top: 10px;
    font-size: 14px;
}

.iguide-bank-details {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
}

.iguide-bank-details h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: #1a1a1a;
}

.iguide-bank-details p {
    margin: 10px 0;
    font-size: 15px;
    color: #333;
    line-height: 1.6;
}

.iguide-bank-details p strong {
    color: #1a1a1a;
    font-weight: 600;
    min-width: 120px;
    display: inline-block;
}

.iguide-bank-note {
    margin-top: 15px !important;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
    color: #666 !important;
    font-style: italic;
    font-size: 14px !important;
}

.iguide-cash-info {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
}

.iguide-cash-info p {
    margin: 0;
    font-size: 15px;
    color: #333;
    line-height: 1.6;
}

/* Success Panel */
.iguide-success-panel {
    text-align: center;
    padding: 60px 20px;
}

.iguide-success-content {
    max-width: 500px;
    margin: 0 auto;
}

.iguide-success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: #4a9eff;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    margin: 0 auto 30px;
}

.iguide-success-content h2 {
    font-size: 28px;
    margin-bottom: 15px;
    color: #1a1a1a;
}

.iguide-success-content p {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
}

.iguide-booking-details {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: left;
}

/* Booking Drawer */
.iguide-booking-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.4s;
}

.iguide-booking-drawer.active {
    visibility: visible;
    opacity: 1;
}

.iguide-drawer-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.iguide-booking-drawer.active .iguide-drawer-overlay {
    opacity: 1;
}

.iguide-drawer-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 450px;
    height: 100%;
    background: #fff;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.iguide-booking-drawer.active .iguide-drawer-content {
    transform: translateX(0);
}

.iguide-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 30px;
    border-bottom: 2px solid #e0e0e0;
    background: #fff;
    flex-shrink: 0;
}

.iguide-drawer-title {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
}

.iguide-drawer-close {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: #666;
    transition: color 0.3s, transform 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.iguide-drawer-close:hover {
    color: #1a1a1a;
    background: #f0f0f0;
    transform: rotate(90deg);
}

.iguide-drawer-close svg {
    width: 24px;
    height: 24px;
}

.iguide-drawer-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    position: relative;
}

.iguide-drawer-content-inner {
    padding: 0;
}

.iguide-drawer-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.iguide-drawer-loading .iguide-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #4a9eff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.iguide-drawer-loading p {
    color: #666;
    font-size: 16px;
    margin: 0;
}

/* Adjust booking form in drawer - Mobile version */
.iguide-booking-drawer .iguide-booking-container {
    padding: 0;
    margin: 0;
    height: 100%;
}

.iguide-booking-drawer .iguide-booking-wrapper {
    flex-direction: column;
    height: 100%;
}

.iguide-booking-drawer .iguide-sidebar {
    display: none; /* Hide sidebar in drawer */
}

.iguide-booking-drawer .iguide-main-content {
    width: 100%;
    padding: 15px 20px;
    max-width: 100%;
    overflow-y: auto;
    box-sizing: border-box;
}

.iguide-booking-drawer .iguide-form-container {
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

.iguide-booking-drawer .iguide-language-switcher {
    position: absolute;
    top: 15px;
    right: 60px;
    z-index: 10;
}

/* Mobile-optimized form in drawer */
.iguide-booking-drawer .iguide-form-container {
    max-width: 100%;
    width: 100%;
}

.iguide-booking-drawer .iguide-form-group {
    margin-bottom: 15px;
    width: 100%;
}

.iguide-booking-drawer .iguide-form-row {
    flex-direction: column;
    gap: 0;
    width: 100%;
}

.iguide-booking-drawer .iguide-form-col {
    width: 100% !important;
    flex: 0 0 100% !important;
    max-width: 100% !important;
}

/* Ensure all form inputs are 100% width in drawer */
.iguide-booking-drawer .iguide-input,
.iguide-booking-drawer .iguide-select,
.iguide-booking-drawer .iguide-textarea,
.iguide-booking-drawer .iguide-date-input {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
}

.iguide-booking-drawer .iguide-payment-methods {
    flex-direction: column;
    gap: 12px;
}

.iguide-booking-drawer .iguide-payment-option {
    width: 100%;
}

.iguide-booking-drawer .iguide-form-actions {
    flex-direction: column;
    gap: 10px;
}

.iguide-booking-drawer .iguide-btn {
    width: 100%;
}

/* Ensure Flatpickr calendar appears correctly in drawer */
.iguide-booking-drawer .flatpickr-calendar {
    z-index: 1000000 !important;
    position: fixed !important;
}

/* Fix Flatpickr positioning in drawer */
.iguide-booking-drawer .flatpickr-calendar.arrowTop:before {
    border-bottom-color: #fff;
}

.iguide-booking-drawer .flatpickr-calendar.arrowTop:after {
    border-bottom-color: #fff;
}

/* Ensure date inputs work in drawer */
.iguide-booking-drawer .iguide-date-input {
    cursor: pointer;
    background-color: #fff;
}

/* Prevent body scroll when drawer is open */
body.iguide-drawer-open {
    overflow: hidden;
}

/* Booking Drawer Trigger Button */
.iguide-booking-drawer-trigger {
    display: inline-block;
    background-color: #5a6463;
    color: #fff;
    font-family: "Tenor Sans", Sans-serif;
    font-size: 16px;
    font-weight: 400;
    border-radius: 2px;
    padding: 12px 50px;
    transition: all 0.3s;
    text-align: center;
    border: none;
    cursor: pointer;
}

.iguide-booking-drawer-trigger:hover {
    background-color: #4A5755;
    color: #fff;
}

.iguide-booking-drawer-trigger:active {
    transform: translateY(1px);
}

/* Responsive drawer */
@media (max-width: 768px) {
    .iguide-drawer-content {
        max-width: 100%;
    }
    
    .iguide-drawer-header {
        padding: 12px 15px;
    }
    
    .iguide-drawer-title {
        font-size: 18px;
    }
    
    .iguide-booking-drawer .iguide-main-content {
        padding: 12px 15px;
    }
    
    .iguide-booking-drawer .iguide-language-switcher {
        right: 50px;
        top: 12px;
    }
    
    .iguide-drawer-close {
        width: 36px;
        height: 36px;
    }
    
    .iguide-drawer-close svg {
        width: 20px;
        height: 20px;
    }
    
    /* Force all form fields to 100% width on mobile */
    .iguide-booking-drawer .iguide-form-group {
        width: 100% !important;
        margin-right: 0 !important;
        margin-left: 0 !important;
    }
    
    .iguide-booking-drawer .iguide-form-row {
        flex-direction: column !important;
        width: 100% !important;
    }
    
    .iguide-booking-drawer .iguide-form-col {
        width: 100% !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
        margin-bottom: 15px;
    }
    
    .iguide-booking-drawer .iguide-form-col:last-child {
        margin-bottom: 0;
    }
    
    .iguide-booking-drawer .iguide-input,
    .iguide-booking-drawer .iguide-select,
    .iguide-booking-drawer .iguide-textarea,
    .iguide-booking-drawer .iguide-date-input,
    .iguide-booking-drawer .iguide-custom-select-wrapper {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box;
    }
}

/* Guide Availability Calendar */
.iguide-availability-calendar {
    margin: 20px 0;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.iguide-calendar-title {
    margin: 0 0 20px 0;
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
}

.iguide-calendar-container {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.iguide-calendar {
    width: 100%;
}

/* Support for multiple months side by side */
.iguide-calendar-container .flatpickr-calendar {
    margin: 0 10px 20px 10px;
    position: relative;
    z-index: 1;
}

/* Ensure all months in multi-month view are clickable */
.iguide-calendar-container .flatpickr-calendar .flatpickr-day {
    pointer-events: auto !important;
    cursor: pointer;
    position: relative;
    z-index: 2;
}

.iguide-calendar-container .flatpickr-calendar .flatpickr-day.flatpickr-disabled {
    pointer-events: none;
    cursor: not-allowed;
}

/* Ensure the calendar wrapper doesn't block clicks */
.iguide-calendar-container .flatpickr-wrapper {
    pointer-events: auto;
    position: relative;
}

/* Make sure month containers are clickable */
.iguide-calendar-container .flatpickr-months {
    pointer-events: auto;
}

.iguide-calendar-container .flatpickr-month {
    pointer-events: auto;
}

/* Responsive: show only 1 month on mobile */
@media (max-width: 768px) {
    .iguide-calendar-container {
        flex-direction: column;
        align-items: center;
    }
    
    .iguide-calendar-container .flatpickr-calendar {
        margin: 0 0 20px 0;
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* Hide extra months within the calendar on mobile - show only the first month */
    .iguide-calendar-container .flatpickr-calendar .flatpickr-months .flatpickr-month:not(:first-child) {
        display: none !important;
    }
    
    /* Ensure calendar fits properly on mobile screen */
    .iguide-availability-calendar {
        padding: 15px;
    }
}

.iguide-calendar-legend {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.iguide-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
}

.iguide-legend-color {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    display: inline-block;
}

.iguide-legend-color.available {
    background-color: #4a9eff;
}

.iguide-legend-color.unavailable {
    background-color: #e74c3c;
}

.iguide-calendar-selection {
    margin-top: 20px;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 5px;
}

.iguide-calendar-booking-btn {
    width: 100%;
    padding: 12px 20px;
    background: #4a9eff;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.iguide-calendar-booking-btn:hover {
    background: #3a8eef;
}

.iguide-selected-dates {
    margin-bottom: 15px;
    min-height: 30px;
    line-height: 1.6;
}

.iguide-unavailable-note {
    font-size: 12px;
    color: #e74c3c;
    margin-top: 5px;
}

/* Flatpickr unavailable date styling */
.flatpickr-day.flatpickr-disabled {
    background-color: #fee;
    color: #c33;
    cursor: not-allowed;
}

.flatpickr-day.flatpickr-disabled:hover {
    background-color: #fee;
}

/* Booking Button */
.iguide-booking-button {
    display: inline-block;
    background-color: #5a6463;
    color: #fff;
    font-family: "Tenor Sans", Sans-serif;
    font-size: 16px;
    font-weight: 400;
    border-radius: 2px 2px 2px 2px;
    padding: 12px 50px 12px 50px;
    transition: all 0.3s;
    text-align: center;
}

.iguide-booking-button:hover {
    background-color: #4A5755;
    color: #fff;
    text-decoration: none;
}

.iguide-booking-button:active {
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .iguide-booking-wrapper {
        flex-direction: column;
    }
    
    .iguide-sidebar {
        width: 100%;
    }
    
    .iguide-main-content {
        padding: 20px;
    }
    
    .iguide-form-actions {
        flex-direction: column;
    }
    
    .iguide-btn {
        width: 100%;
    }
    
    .iguide-form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .iguide-form-col {
        width: 100%;
    }
    
    .iguide-payment-methods {
        flex-direction: column;
        gap: 12px;
    }
    
    .iguide-payment-option {
        width: 100%;
    }
}

