/* ==========================================================================
   Kalendarz rezerwacji per specjalista – strona /umow-wizyte/
   Kompaktowy kalendarz + tagi usług + czytelny układ grafiku.
   ========================================================================== */

/* Wyszukiwarka i filtry */
.bt-search-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 16px 2px 28px;
}

.bt-search-meta .bt-hint {
    margin: 0;
    font-family: var(--font-serif);
    font-size: 14px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.bt-search-meta .bt-hint i {
    color: var(--secondary);
}

.bt-results-count {
    font-family: var(--font-sans);
    font-size: 12.5px;
    font-weight: 600;
    color: var(--secondary-dark);
    background: #eef7f3;
    border: 1px solid #d4ebdf;
    padding: 5px 14px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
}

/* Stan braku wyników po filtracji */
.bt-no-results {
    text-align: center;
    padding: 48px 24px;
    background: #ffffff;
    border: 2px dashed var(--border);
    border-radius: var(--radius-xl);
    margin: 20px 0;
}

.bt-no-results-icon {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #fdf5ea;
    color: #b7791f;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 14px;
}

.bt-no-results h3 {
    font-family: var(--font-sans);
    font-size: 19px;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 8px;
}

.bt-no-results p {
    font-family: var(--font-serif);
    font-size: 14px;
    color: var(--text-muted);
    margin: 0 0 18px;
}

.btn-reset-filters {
    display: inline-block;
    background: var(--primary);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 10px 22px;
    font-family: var(--font-sans);
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-reset-filters:hover {
    background: var(--primary-light);
    transform: translateY(-1px);
}

/* Karta specjalisty */
.bt-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.bt-card:hover {
    box-shadow: 0 14px 34px rgba(74, 68, 93, 0.1);
}

@media (max-width: 960px) {
    .bt-card {
        grid-template-columns: 1fr;
    }
}

.bt-info {
    padding: 32px 34px;
    border-right: 1px solid var(--border);
    background: #ffffff;
}

@media (max-width: 960px) {
    .bt-info {
        border-right: none;
        border-bottom: 1px solid var(--border);
        padding: 26px 24px;
    }
}

/* Prawa kolumna – sekcja rezerwacji */
.bt-booking {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 26px 28px;
    background: #fbfafc;
}

@media (max-width: 640px) {
    .bt-booking {
        padding: 20px 16px;
    }
}

/* Tagi / przyciski usług specjalisty (nad kalendarzem) */
.bt-services-bar {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg, 14px);
    padding: 13px 16px;
    box-shadow: 0 2px 8px rgba(74, 68, 93, 0.03);
}

.bt-services-label {
    display: flex;
    align-items: center;
    gap: 7px;
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: var(--secondary-dark, #4f6f63);
    margin-bottom: 9px;
}

.bt-services-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    align-items: center;
}

.bt-service-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 13px;
    border-radius: 999px;
    font-family: var(--font-sans);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    color: #2e594d;
    background: #eef6f2;
    border: 1px solid #d0e7dc;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
}

.bt-service-tag:hover {
    background: #e0f0e8;
    border-color: #b0d8c4;
    color: #1a4235;
    transform: translateY(-1px);
}

.bt-service-tag.active {
    background: var(--secondary-dark, #4f6f63) !important;
    color: #ffffff !important;
    border-color: var(--secondary-dark, #4f6f63) !important;
    box-shadow: 0 3px 10px rgba(79, 111, 99, 0.28);
    transform: translateY(-1px);
    font-weight: 700;
}

.bt-tag-price {
    font-size: 10.5px;
    font-weight: 700;
    padding: 1px 7px;
    border-radius: 10px;
    background: #d7ede1;
    color: #275244;
}

.bt-service-tag.active .bt-tag-price {
    background: rgba(255, 255, 255, 0.24);
    color: #ffffff;
}

.bt-services-phone-note {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 600;
    color: var(--secondary-dark);
    background: #fbf8f2;
    border: 1px solid #fae6d3;
    padding: 6px 12px;
    border-radius: 8px;
}

/* Układ: Kalendarz po lewej + Godziny po prawej */
.bt-schedule-row {
    display: grid;
    grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
    gap: 18px;
    align-items: stretch;
}

@media (max-width: 640px) {
    .bt-schedule-row {
        grid-template-columns: 1fr;
    }
}

/* Kontener mini-kalendarza */
.bt-cal-wrap {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg, 14px);
    padding: 14px;
    box-shadow: 0 2px 8px rgba(74, 68, 93, 0.03);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.bt-cal {
    min-width: 0;
}

.mini-cal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.mini-cal-month {
    font-family: var(--font-sans);
    font-size: 14.5px;
    font-weight: 700;
    color: var(--primary);
    text-transform: capitalize;
}

.calendar-nav-btn {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--cream);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 11px;
}

.calendar-nav-btn:hover:not([disabled]) {
    background: var(--primary);
    color: #ffffff;
    border-color: var(--primary);
}

.calendar-nav-btn[disabled] {
    opacity: 0.25;
    cursor: default;
    pointer-events: none;
}

.bt-booking .calendar-grid {
    gap: 3px;
}

.bt-booking .calendar-day-name {
    font-size: 10.5px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    padding: 3px 0 6px;
    text-align: center;
}

.bt-booking .calendar-day {
    aspect-ratio: auto;
    height: 31px;
    font-size: 12px;
    border-radius: 8px;
    color: #8c869c;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s;
}

.bt-booking .calendar-day.available {
    background: #eef7f3;
    color: var(--secondary-dark);
    font-weight: 700;
    border: 1px solid #d5ebe1;
    cursor: pointer;
}

.bt-booking .calendar-day.available:hover {
    background: var(--secondary);
    color: var(--white);
    border-color: var(--secondary);
    transform: scale(1.05);
}

.bt-booking .calendar-day.selected,
.bt-booking .calendar-day.selected:hover {
    background: var(--primary) !important;
    color: var(--white) !important;
    font-weight: 700;
    border-color: var(--primary) !important;
    box-shadow: 0 2px 8px rgba(74, 68, 93, 0.3);
    transform: scale(1.05);
}

.bt-booking .calendar-day.disabled {
    color: #cfcadb;
    background: transparent;
    cursor: not-allowed;
}

/* Plakietka statusu pod kalendarzem */
.bt-cal-status {
    margin-top: 12px;
    padding: 9px 11px;
    border-radius: 8px;
    font-family: var(--font-sans);
    font-size: 11.5px;
    line-height: 1.45;
    font-style: normal;
    background: #fdfaf6;
    border: 1px solid #fae8d8;
    color: #7c5e3d;
    display: none;
    align-items: flex-start;
    gap: 8px;
}

.bt-status-icon {
    flex-shrink: 0;
    margin-top: 2px;
    font-size: 13px;
    color: #b07842;
}

.bt-cal-status a {
    font-weight: 700;
    color: #8d4e1d;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Kontener wolnych godzin */
.bt-slots-wrap {
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg, 14px);
    padding: 16px;
    box-shadow: 0 2px 8px rgba(74, 68, 93, 0.03);
    display: flex;
    flex-direction: column;
    min-height: 240px;
}

.bt-slots {
    margin-top: 0;
    min-width: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Placeholder przed wyborem daty */
.bt-slots-placeholder {
    margin: auto 0;
    text-align: center;
    padding: 24px 12px;
}

.bt-placeholder-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #f0f7f4;
    color: var(--secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 19px;
    margin-bottom: 10px;
}

.bt-placeholder-title {
    font-family: var(--font-sans);
    font-size: 13.5px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 5px;
}

.bt-placeholder-text {
    font-family: var(--font-serif);
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0 auto;
    max-width: 220px;
}

/* Nagłówek wybranych godzin */
.bt-slots-head {
    display: flex;
    align-items: center;
    gap: 9px;
    padding-bottom: 10px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--border);
    color: var(--primary);
}

.bt-slots-head i {
    font-size: 14px;
    color: var(--secondary);
    flex-shrink: 0;
}

.bt-slots-head-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.bt-slots-head-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--text-muted);
}

.bt-slots-head-date {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    text-transform: capitalize;
}

/* Siatka slotów */
.bt-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(66px, 1fr));
    gap: 8px;
    max-height: 220px;
    overflow-y: auto;
    padding-right: 4px;
}

.bt-slots .slot-btn {
    padding: 9px 5px;
    border-radius: 8px;
    font-family: var(--font-sans);
    font-size: 12.5px;
    font-weight: 700;
    background: #f7faf9;
    border: 1.5px solid #d5ebe1;
    color: var(--secondary-dark);
    cursor: pointer;
    transition: all 0.2s;
}

.bt-slots .slot-btn:hover {
    background: var(--secondary);
    border-color: var(--secondary);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(104, 139, 126, 0.25);
}

.bt-slots .slot-btn.slot-btn-first {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #ffffff !important;
    font-weight: 800;
    box-shadow: 0 3px 10px rgba(30, 70, 70, 0.28);
}

.bt-slots .slot-btn.slot-btn-first:hover {
    background: var(--primary-light) !important;
    border-color: var(--primary-light) !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 5px 14px rgba(30, 70, 70, 0.38);
}

.bt-first-hour-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #eef8f4;
    color: var(--primary);
    border: 1px solid #bce4d6;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    margin-top: 3px;
    width: fit-content;
    font-weight: 600;
}

.bt-first-hour-badge i {
    color: var(--secondary);
    font-size: 10.5px;
}

.bt-first-hour-badge strong {
    font-weight: 800;
    color: var(--primary);
}

/* Stany ładowania i błędów w godzinach */
.bt-slots-loading,
.bt-slots-empty,
.bt-slots-error {
    margin: auto 0;
    text-align: center;
    padding: 24px 12px;
    font-size: 12.5px;
    line-height: 1.5;
    color: var(--text-muted);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.bt-slots-loading i {
    font-size: 20px;
    color: var(--secondary);
}

.bt-slots-empty i {
    font-size: 22px;
    color: #b7791f;
}

.bt-slots-error i {
    font-size: 22px;
    color: #c53030;
}

/* ==========================================================================
   Kalendarz na profilu specjalisty (/team/<slug>/)
   ========================================================================== */
.bt-card-profile {
    grid-template-columns: minmax(0, 1fr);
}

.bt-booking-profile {
    padding: 30px 32px;
}

.bt-booking-profile .bt-profile-booking-head {
    margin-bottom: 4px;
}

.bt-booking-profile .bt-profile-booking-head h3 {
    font-family: var(--font-sans);
    font-size: 22px;
    color: var(--primary);
    margin: 0 0 8px;
}

.bt-booking-profile .bt-profile-booking-head p {
    font-family: var(--font-serif);
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--text-muted);
    margin: 0;
}

@media (max-width: 640px) {
    .bt-booking-profile {
        padding: 24px 18px;
    }
}

/* ==========================================================================
   Modal rezerwacji: czytelny link w zgodzie RODO
   ========================================================================== */
.bt-modal .rodo-check a {
    color: var(--secondary-dark);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.bt-modal .rodo-check a:hover {
    color: var(--primary);
}
