/* ══════════════════════════════════════
   Booking Page – Private Lesson Calendars
   ══════════════════════════════════════ */

/* ── Page header ── */
.pt-booking-header {
    margin-bottom: 28px;
}

.pt-booking-header h2 {
    margin-bottom: 8px;
}

.pt-booking-header p {
    color: #555;
    font-size: 14px;
    margin: 2px 0;
    line-height: 1.6;
}

.pt-booking-disclaimer {
    font-size: 12px;
    color: #999;
    font-style: italic;
    margin-top: 6px;
}

.pt-booking-content {
    max-width: 90%;
}

/* ── View tabs (List / Calendar) ── */
.pt-view-tabs {
    display: flex;
    gap: 4px;
    margin: -12px 0 24px;
    border-bottom: 1px solid #e5e5e5;
}

.pt-view-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Work Sans', sans-serif;
    color: #666;
    text-decoration: none;
    border: none;
    background: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s;
}

.pt-view-tab:hover {
    color: #333;
}

.pt-view-tab--active {
    color: var(--green);
    border-bottom-color: var(--green);
    cursor: default;
}

.pt-view-tab i {
    font-size: 13px;
}

/* ── Layout: sidebar + cards ── */
.pt-layout {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

/* ── Mobile filter trigger ── */
.pt-filter-trigger-bar {
    display: none;
}

.pt-filter-trigger {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Work Sans', sans-serif;
    border: 1px solid #d0d0d0;
    border-radius: 20px;
    background: #fff;
    color: #333;
    cursor: pointer;
    transition: border-color 0.15s;
}

.pt-filter-trigger:hover {
    border-color: #999;
}

.pt-filter-trigger i {
    font-size: 12px;
    color: #666;
}

/* ── Filter overlay (mobile backdrop) ── */
.pt-filter-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 99;
}

.pt-filter-overlay--visible {
    display: block;
}

/* ── Sidebar ── */
.pt-sidebar {
    width: 220px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: sticky;
    top: 80px;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
    z-index: 10;
}

.pt-sidebar__header {
    display: none;
}

.pt-sidebar__section {
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
    z-index: 1;
}

.pt-sidebar__label {
    font-size: 11px;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.pt-sidebar__actions {
    padding-top: 4px;
    position: relative;
    z-index: 1;
}

/* ── Reset button ── */
.pt-reset-btn {
    background: none;
    border: none;
    color: #999;
    font-size: 12px;
    font-weight: 500;
    font-family: 'Work Sans', sans-serif;
    cursor: pointer;
    padding: 0;
    transition: color 0.15s;
}

.pt-reset-btn:hover {
    color: #555;
}

/* ── Full-width dropdown (sidebar) ── */
.pt-dropdown--full {
    width: 100%;
    min-width: 0;
    border-radius: 8px;
}

/* ── Day checkbox dropdown ── */
.pt-day-dropdown {
    position: relative;
    min-width: 150px;
}

.pt-day-dropdown__selected {
    padding: 7px 30px 7px 12px;
    border: 1px solid #d0d0d0;
    border-radius: 20px;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    font-size: 13px;
    font-family: 'Work Sans', sans-serif;
    transition: border-color 0.15s;
    user-select: none;
}

.pt-day-dropdown__selected:hover {
    border-color: #999;
}

.pt-day-dropdown--open .pt-day-dropdown__selected {
    border-color: var(--green);
}

.pt-sidebar__section--dropdown-open {
    z-index: 1001 !important;
}

.pt-day-dropdown__text {
    color: #333;
}

.pt-day-dropdown__arrow {
    font-size: 10px;
    color: #666;
    position: absolute;
    right: 12px;
    pointer-events: none;
}

.pt-day-dropdown__options {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    min-width: 180px;
    background: #fff;
    border: 1px solid #d0d0d0;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 1000;
    padding: 6px 0;
    max-height: 300px;
    overflow-y: auto;
}

.pt-day-dropdown--open .pt-day-dropdown__options {
    display: block;
}

.pt-day-dropdown__option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    cursor: pointer;
    font-size: 13px;
    font-family: 'Work Sans', sans-serif;
    color: #333;
    transition: background 0.1s;
    margin: 0;
}

.pt-day-dropdown__option:hover {
    background: #f5f5f5;
}

.pt-day-dropdown__option input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border: 1.5px solid #ccc;
    border-radius: 3px;
    cursor: pointer;
    flex-shrink: 0;
    position: relative;
    background: #fff;
    transition: all 0.15s;
}

.pt-day-dropdown__option input[type="checkbox"]:checked {
    background: var(--green);
    border-color: var(--green);
}

.pt-day-dropdown__option input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 4.5px;
    top: 1px;
    width: 5px;
    height: 9px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.pt-day-dropdown__option span {
    line-height: 1;
}

.pt-day-dropdown__only {
    margin-left: auto;
    font-size: 11px;
    color: var(--green);
    font-weight: 500;
    opacity: 0;
    transition: opacity 0.1s;
    cursor: pointer;
}

.pt-day-dropdown__option:hover .pt-day-dropdown__only {
    opacity: 1;
}

.pt-day-dropdown__option--all {
    font-weight: 600;
    border-bottom: 1px solid #e8e8e8;
    padding-bottom: 8px;
    margin-bottom: 2px;
}

/* ── Time-of-day toggle switches ── */
.pt-checkbox-pills {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pt-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.pt-toggle input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.pt-toggle__switch {
    position: relative;
    width: 36px;
    height: 20px;
    background: #ccc;
    border-radius: 10px;
    flex-shrink: 0;
    transition: background 0.2s;
}

.pt-toggle__switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.pt-toggle input:checked + .pt-toggle__switch {
    background: var(--toggle-color, var(--green));
}

.pt-toggle input:checked + .pt-toggle__switch::after {
    transform: translateX(16px);
}

.pt-toggle__label {
    font-size: 13px;
    font-family: 'Work Sans', sans-serif;
    font-weight: 500;
    color: #555;
    display: flex;
    align-items: center;
    gap: 5px;
}

.pt-toggle__label i {
    font-size: 12px;
    color: var(--toggle-color, #999);
}

/* ── Dropdown filters (Location, Coach) ── */

.pt-dropdown {
    font-size: 13px;
    font-family: 'Work Sans', sans-serif;
    padding: 7px 30px 7px 12px;
    border-radius: 20px;
    min-width: 150px;
    cursor: pointer;
    appearance: none;
    -moz-appearance: none;
    -webkit-appearance: none;
    border: 1px solid #d0d0d0;
    background-color: #fff;
    background-repeat: no-repeat;
    background-size: 10px 10px;
    background-position: center right 10px;
    background-image: url("data:image/svg+xml,%3Csvg fill='%23666' height='800px' width='800px' viewBox='0 0 330 330' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M325.607,79.393c-5.857-5.857-15.355-5.858-21.213,0.001l-139.39,139.393L25.607,79.393 c-5.857-5.857-15.355-5.858-21.213,0.001c-5.858,5.858-5.858,15.355,0,21.213l150.004,150c2.813,2.813,6.628,4.393,10.606,4.393 s7.794-1.581,10.606-4.394l149.996-150C331.465,94.749,331.465,85.251,325.607,79.393z'/%3E%3C/svg%3E");
    transition: border-color 0.15s;
}

.pt-dropdown:focus {
    outline: none;
    border-color: var(--green);
}

/* ── Section / layout ── */
.pt-section {
    display: flex;
    flex-direction: column;
}

.pt-calendars-wrapper {
    flex: 1;
    width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.pt-calendars {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

/* ── Calendar card ── */
.pt-cta {
    position: relative;
    display: flex;
    align-items: stretch;
    font-size: 14px;
    color: #333;
    width: 100%;
    margin: 0;
    padding: 0;
    background-color: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    overflow: hidden;
    box-sizing: border-box;
}

.pt-cta:hover {
    border-color: #ccc;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
}

/* ── Card: color stripe (time-of-day indicator) ── */
.pt-card-tod-stripe {
    width: 5px;
    flex-shrink: 0;
}

/* ── Card: left section (coach info) ── */
.pt-card-left {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    min-width: 240px;
    max-width: 300px;
    flex-shrink: 0;
    border-right: 1px solid #f0f0f0;
}

.pt-card-left img {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.pt-card-coach-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.pt-card-coach-name-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.pt-card-coach-name {
    font-weight: 600;
    font-size: 16px;
    color: #222;
    text-align: left;
}

.pt-coach-name-link,
.pt-coach-headshot-link {
    cursor: pointer;
}

.pt-card-meta {
    display: flex;
    flex-direction: column;
    gap: 1px;
    text-align: left;
}

.pt-card-schedule {
    font-size: 13px;
    font-weight: 600;
    text-align: left;
}

.pt-card-facility {
    font-size: 13px;
    color: #666;
    text-align: left;
}

a.pt-card-facility {
    text-decoration: none;
    color: #2a7ae2;
}

a.pt-card-facility:hover {
    text-decoration: underline;
    color: #1a5bb5;
}

.pt-card-price {
    font-size: 13px;
    font-weight: 600;
    color: #2e7d32;
}

.pt-card-facility i {
    margin-right: 2px;
    font-size: 12px;
}

.pt-card-languages {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    margin-top: 2px;
}

.pt-card-languages span {
    font-size: 11px;
    color: #666;
    background: #f5f5f5;
    padding: 1px 8px;
    border-radius: 4px;
}

/* ── Card: center section (availability) ── */
.pt-card-center {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 16px 20px;
    flex: 1;
    min-width: 0;
}

/* ── Available slot chips ── */
.pt-available-slots {
    margin: 0;
    padding: 0;
}

.pt-slot-chip__label {
    font-size: 11px;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.pt-slot-chips {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    max-height: 68px;
    overflow: hidden;
}

.pt-slot-chips--expanded {
    max-height: none;
}

.pt-slot-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #fafafa;
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 6px 10px;
    min-width: 0;
    transition: border-color 0.15s;
}

.pt-cta:hover .pt-slot-chip {
    border-color: #ccc;
}

.pt-slot-chip--clickable {
    cursor: pointer;
}

.pt-slot-chip--clickable:hover {
    border-color: var(--green);
    background: #f0f9f0;
}

.pt-slot-chip__weekday {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--green);
    letter-spacing: 0.3px;
}

.pt-slot-chip__month {
    font-size: 14px;
    font-weight: 700;
    color: #222;
    line-height: 1.3;
}

.pt-slot-chip__time {
    font-size: 10px;
    color: #888;
    white-space: nowrap;
}

.pt-card-disclaimer {
    font-size: 13px;
    color: #999;
    font-style: italic;
    margin-top: 8px;
}

/* ── Card: right section (CTA) ── */
.pt-card-right {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    flex-shrink: 0;
}

.pt-card-right .pt-group-classes-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: var(--green);
    color: #fff;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Work Sans', sans-serif;
    white-space: nowrap;
    transition: background-color 0.15s;
    border: none;
    cursor: pointer;
}

.pt-card-right .pt-group-classes-cta:hover {
    background-color: #4a9e4a;
}

/* ── About coach button ── */
.pt-about-coach-btn {
    background: none;
    border: none;
    color: var(--green);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    padding: 0;
    font-family: 'Work Sans', sans-serif;
    text-decoration: none;
    text-align: left;
    white-space: nowrap;
}

.pt-about-coach-btn:hover {
    text-decoration: underline;
}

/* ── Loading spinner ── */
.pt-loading {
    display: flex;
    justify-content: center;
    padding: 40px 0;
}

.pt-loading__spinner {
    width: 28px;
    height: 28px;
    border: 3px solid #e8e8e8;
    border-top-color: var(--green);
    border-radius: 50%;
    animation: pt-spin 0.6s linear infinite;
}

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

/* ── No results ── */
.pt-no-results {
    text-align: center;
    padding: 40px 20px;
    color: #888;
    font-size: 15px;
    border: 1px dashed #ddd;
    border-radius: 10px;
}

/* ── Hide utility ── */
.pt-hide {
    display: none !important;
}

/* ── Legacy ── */
.pt-fire-callout { display: none; }
.pt-button { display: none; }

/* ══════════════════════════════════════
   Responsive
   ══════════════════════════════════════ */
/* ── Expand / collapse slots ── */
.pt-slot-expand,
.pt-slot-collapse {
    background: none;
    border: none;
    font-size: 12px;
    font-weight: 600;
    font-family: 'Work Sans', sans-serif;
    color: var(--green);
    cursor: pointer;
    padding: 6px 0 0;
    transition: color 0.15s;
}

.pt-slot-expand:hover,
.pt-slot-collapse:hover {
    text-decoration: underline;
}

.pt-slot-book-more {
    display: block;
    font-size: 12px;
    color: #999;
    font-style: italic;
    padding: 6px 0 0;
}

/* ── Apply Filters button (hidden on desktop) ── */
.pt-apply-filters-btn {
    display: none;
}

.pt-slots-disclaimer {
    font-size: 14px;
    color: #999;
    margin-top: 8px;
}

@media screen and (max-width: 900px) {
    .pt-slot-chips:not(.pt-slot-chips--expanded) .pt-slot-chip:nth-child(n+5) {
        display: none;
    }

    .pt-cta {
        flex-direction: column;
    }

    .pt-card-tod-stripe {
        width: 100%;
        height: 4px;
    }

    .pt-card-left {
        border-right: none;
        border-bottom: 1px solid #f0f0f0;
        min-width: 0;
        max-width: none;
        padding: 14px 16px;
    }

    .pt-card-center {
        padding: 12px 16px;
        overflow: hidden;
    }

    .pt-card-right {
        padding: 0 16px 14px;
        justify-content: center;
    }

    .pt-card-right .pt-group-classes-cta {
        width: 100%;
        justify-content: center;
    }

    .pt-slot-chips {
        gap: 6px;
        max-width: 100%;
    }

    .pt-slot-chip {
        padding: 5px 8px;
    }

    .pt-checkbox-pills {
        gap: 6px;
    }

    .pt-booking-content {
        max-width: 100%;
        margin: 0;
        padding: 0 12px;
        box-sizing: border-box;
        overflow-x: clip;
    }

    /* Sidebar becomes slide-in modal */
    .pt-layout {
        flex-direction: column;
        gap: 0;
        min-width: 0;
        max-width: 100%;
    }

    .pt-section {
        min-width: 0;
        max-width: 100%;
    }

    .pt-calendars-wrapper {
        min-width: 0;
        max-width: 100%;
    }

    .pt-filter-trigger-bar {
        display: flex;
        justify-content: center;
        position: sticky;
        top: 0;
        z-index: 4;
        background: #fff;
        padding: 12px 0;
        margin-bottom: 6px;
        border-bottom: 1px solid #e8e8e8;
    }

    .pt-filter-trigger {
        display: inline-flex;
        background: var(--green);
        color: #fff;
        border: none;
        border-radius: 30px;
        padding: 12px 28px;
        font-size: 16px;
        font-weight: 600;
    }

    .pt-filter-trigger i {
        color: #fff;
    }

    .pt-filter-trigger:hover {
        border-color: transparent;
        background: #4ea64e;
    }

    .pt-sidebar {
        display: none;
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: 280px;
        background: #fff;
        z-index: 100;
        padding: 20px;
        overflow-y: auto;
        box-shadow: -4px 0 16px rgba(0,0,0,0.1);
        transform: translateX(100%);
        transition: transform 0.25s ease;
    }

    .pt-sidebar--open {
        display: flex;
        transform: translateX(0);
    }

    .pt-sidebar__header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 8px;
    }

    .pt-sidebar__title {
        font-size: 16px;
        font-weight: 700;
        color: #222;
    }

    .pt-sidebar__close {
        background: none;
        border: none;
        font-size: 18px;
        color: #999;
        cursor: pointer;
        padding: 4px;
    }

    .pt-sidebar__close:hover {
        color: #333;
    }

    .pt-day-dropdown {
        min-width: 0;
        width: 100%;
    }

    .pt-day-dropdown__only {
        opacity: 1;
    }

    .pt-dropdown--full {
        border-radius: 8px;
    }

    .pt-apply-filters-btn {
        display: block;
        width: 100%;
        padding: 12px;
        background: var(--green);
        color: #fff;
        border: none;
        border-radius: 8px;
        font-size: 14px;
        font-weight: 600;
        font-family: 'Work Sans', sans-serif;
        cursor: pointer;
        margin-top: 12px;
    }
}

@media screen and (max-width: 640px) {
    .pt-slot-chips:not(.pt-slot-chips--expanded) .pt-slot-chip:nth-child(n+4) {
        display: none;
    }
}

@media screen and (max-width: 480px) {
    .pt-slot-chips:not(.pt-slot-chips--expanded) .pt-slot-chip:nth-child(n+3) {
        display: none;
    }

    .pt-card-left img {
        width: 56px;
        height: 56px;
    }

    .pt-card-coach-name {
        font-size: 14px;
    }
}
