/* Booking Loading Spinner */
@keyframes fp-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.fp-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid #e3f2fd;
    border-top: 3px solid #2196f3;
    border-radius: 50%;
    animation: fp-spin 1s linear infinite;
}

#booking-processing-indicator {
    display: none;
    margin-top: 15px;
    padding: 15px;
    background: #f0f7ff;
    border: 2px solid #2196f3;
    border-radius: 8px;
    text-align: center;
    max-width: 700px;
}

/* Slot Tabs */
.fp-slot-tabs {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.fp-slot-tabs button {
    flex: 1;
    padding: 12px;
    border: 1px solid #ddd;
    background: #f9f9f9;
    cursor: pointer;
    font-weight: bold;
}

.fp-slot-tabs button.active {
    background: #0073aa;
    color: #fff;
}

/* Slot Period Containers */
.fp-slot-period {
    margin: 20px auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
}

/* Mobile: One card per line on small screens - matches responsive wrapper breakpoint */
@media screen and (max-width: 1023px) {
    .fp-slot-period {
        grid-template-columns: 1fr !important;
        gap: 12px;
    }
    
    /* Ensure containers are visible on mobile */
    #availability-container {
        display: block !important;
        visibility: visible !important;
        width: 100% !important;
        min-height: auto !important;
        height: auto !important;
        overflow: visible !important;
        position: relative !important;
    }
    
    #slot-wrapper {
        display: block !important;
        visibility: visible !important;
        width: 100% !important;
        min-height: auto !important;
        height: auto !important;
        overflow: visible !important;
        position: relative !important;
    }
    
    .fp-slot-period {
        /* Don't force display: grid !important - allow JavaScript to control visibility */
        visibility: visible !important;
        width: 100% !important;
        min-height: auto !important;
        height: auto !important;
        overflow: visible !important;
        position: relative !important;
    }
    
    .fp-slot-card {
        width: 100% !important;
        box-sizing: border-box !important;
        display: block !important;
        visibility: visible !important;
        min-height: auto !important;
        height: auto !important;
    }
    
    /* Ensure mobile booking card doesn't collapse */
    .fp-mobile-booking-card {
        display: block !important;
        visibility: visible !important;
        width: 100% !important;
        min-height: auto !important;
        height: auto !important;
        overflow: visible !important;
    }
    
    .fp-mobile-booking-card #availability-container {
        display: block !important;
        visibility: visible !important;
        width: 100% !important;
    }
}
.fp-slot-closed {
    opacity: 0.5;
    pointer-events: none;
    background: #f6f6f6;
}

/* Slot Cards */
.fp-slot-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    padding: 15px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.fp-slot-card button {
    display: block;
    width: 100%;
    margin: 5px 0;
    padding: 8px;
    font-weight: bold;
    border: none;
    border-radius: 4px;
    background: #0073aa;
    color: white;
    cursor: pointer;
    transition: background 0.2s;
}

.fp-slot-card button:hover {
    background: #005f87;
}

/* Conflict Modal Table */
.conflict-table {
    width: 100%;
    border-collapse: collapse;
}

.conflict-table th, .conflict-table td {
    border: 1px solid #ccc;
    padding: 8px;
    text-align: center;
}

.conflict-table th {
    background: #f0f0f0;
}

/* Wizard Steps */
.wizard-step {
    margin-top: 20px;
}

.wizard-step h3 {
    margin-bottom: 15px;
}

input[type="text"], input[type="email"], input[type="tel"], input[type="date"], input[type="time"], select, input[type="number"] {
    width: 100%;
    padding: 8px;
    margin: 5px 0 15px 0;
    border: 1px solid #ccc;
    border-radius: 4px;
}
/* Cleaner wizard inputs */
.wizard-step input[type="text"],
.wizard-step input[type="email"],
.wizard-step input[type="tel"],
.wizard-step input[type="date"],
.wizard-step input[type="time"],
.wizard-step input[type="number"],
.wizard-step select {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

/* Recurring section width fix */
#recurring-options input[type="number"] {
    width: 70px !important;
}

.facilitypro-facility-public-page {
    max-width: 1000px;
    margin: 36px auto 30px auto;
    padding: 32px 24px 44px 24px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}

/* Flex hero top block */
.facilitypro-hero-flex {
    display: flex;
    align-items: flex-start;
    gap: 36px;
    margin-bottom: 22px;
}
.facilitypro-hero-image img {
    width: 260px;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 3px 16px rgba(0,0,0,0.10);
}
.facilitypro-hero-details {
    flex: 1 1 0%;
}
.facilitypro-title {
    font-size: 2.2em;
    font-weight: 800;
    margin-bottom: 12px;
    color: #222;
}
.facilitypro-meta p {
    margin: 0 0 10px 0;
    color: #34405e;
    font-size: 1.1em;
}
.facilitypro-partials {
    margin-bottom: 10px;
}
.facilitypro-partial-badge {
    display: inline-block;
    background: #0073aa;
    color: #fff;
    border-radius: 6px;
    padding: 4px 11px;
    margin-right: 7px;
    font-size: 0.99em;
    margin-top: 5px;
}
.facilitypro-description {
    font-size: 1.07em;
    color: #333;
    background: #f9fafd;
    border-radius: 6px;
    padding: 12px 13px 10px 13px;
    margin-top: 8px;
}

@media (max-width: 820px) {
    .facilitypro-hero-flex {
        flex-direction: column;
        align-items: stretch;
    }
}
.facilitypro-extras-list {
    margin-top: 13px;
    background: #f7fafb;
    padding: 12px 13px 8px 13px;
    border-radius: 6px;
    font-size: 1.04em;
}
.facilitypro-extras-list ul {
    list-style: none;
    margin: 7px 0 0 0;
    padding: 0;
}
.facilitypro-extras-list li {
    margin-bottom: 7px;
    display: flex;
    align-items: center;
}
.facilitypro-extra-name {
    flex: 1;
    font-weight: 500;
    color: #213158;
}
.facilitypro-extra-price {
    background: #0073aa;
    color: #fff;
    padding: 2px 10px 2px 10px;
    border-radius: 5px;
    font-size: 0.98em;
    margin-left: 12px;
}

/* Inline Booking Form Container - replaces modal styling */
#inline-booking-form > div {
    background: #fff;
    border-radius: 16px;
    padding: 25px 25px 22px 25px;
    max-width: 600px;
    margin: 20px auto;
    box-shadow: 0 4px 28px rgba(0,0,0,0.15);
    position: relative;
}

/* Close button style */
#closeInlineForm {
    position: absolute;
    top: 10px;
    right: 16px;
    font-size: 2em;
    color: #bbb;
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
}
