*, *::before, *::after {
    box-sizing: border-box;
}

.bc-availability-wrapper {
    font-family: 'Inter', sans-serif;
    width: 100%;
}

.bc-availability-filter {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    flex-wrap: wrap;
}

.bc-filter-select {
    padding: 10px 15px;
    background-color: #3b3941;
    color: #e3e2dd;
    border: 1px solid #4b4a53;
    font-size: 14px;
    outline: none;
    cursor: pointer;
    border-radius: 4px;
    font-family: inherit;
    flex: 1;
    min-width: 200px;
}

.bc-filter-select:focus {
    border-color: #808c99;
}

#bc-availability-root {
    transition: opacity 0.3s ease;
}

.bc-calendar-layout {
    display: flex;
    color: #e3e2dd;
    margin: 0 auto;
    max-width: 1200px;
}

.bc-sidebar {
    flex: 0 0 280px;
    background-color: #3b3941;
    z-index: 2;
    position: sticky;
    left: 0;
}

.bc-sidebar-header {
    height: 80px;
    background-color: #808c99;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bc-current-year {
    color: #2b2b2b;
    font-size: 13px;
    letter-spacing: 1px;
    font-weight: 500;
}

.bc-sidebar-body {
    padding-top: 20px;
    background-color: #3b3941;
}

.bc-properties-title {
    font-family: 'Crimson Pro', serif;
    font-size: 22px;
    font-style: italic;
    letter-spacing: 1px;
    padding: 0 20px 25px 20px;
    color: #ffffff;
}

.bc-property-name {
    height: 60px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    font-size: 12px;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #37363d;
    background: #3c3b42;
}

.bc-timeline-container {
    flex: 1;
    overflow-x: auto;
    overflow-y: hidden;
    position: relative;
    background-color: #3c3b42;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    user-select: none;
    -webkit-user-select: none;
}

/* Hide scrollbar for cleaner look */
.bc-timeline-container::-webkit-scrollbar {
    display: none;
}
.bc-timeline-container {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.bc-timeline-track {
    display: flex;
}

.bc-month-block {
    display: flex;
    flex-direction: column;
    scroll-snap-align: start;
}

.bc-month-header {
    height: 80px;
    background-color: #808c99;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #2b2b2b;
}

.bc-month-title {
    text-align: center;
    font-size: 13px;
    letter-spacing: 1px;
    margin-bottom: 12px;
    font-weight: 500;
}

.bc-month-days {
    display: flex;
}

.bc-day-col {
    width: 110px;
    text-align: center;
    font-size: 16px;
    border-right: 1px solid rgba(0,0,0,0.1);
}

.bc-month-matrix {
    padding-top: 20px;
    display: flex;
    flex-direction: column;
}

.bc-properties-spacer {
    height: 47px;
}

.bc-matrix-row {
    display: flex;
    height: 60px;
    border-bottom: 1px solid #37363d;
}

.bc-matrix-cell {
    width: 110px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    border-right: 1px solid #37363d;
    position: relative;
    cursor: default;
}

.bc-matrix-cell.status-price {
    cursor: pointer;
}

/* Tooltip Styles */
.bc-tooltip {
    display: none;
    position: absolute;
    bottom: calc(100% + 5px);
    left: 50%;
    transform: translateX(-50%);
    background-color: #0b0b0b;
    color: #e3e2dd;
    padding: 12px 15px;
    border-radius: 4px;
    font-size: 12px;
    line-height: 1.6;
    text-align: center;
    z-index: 1000;
    min-width: 180px;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    pointer-events: none;
}

.bc-tt-arrow {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: #0b0b0b transparent transparent transparent;
}

.bc-tt-title {
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 5px;
    letter-spacing: 0.5px;
    color: #ffffff;
}

.bc-tt-line {
    font-size: 12px;
    color: #cccccc;
}

/* Hover triggering for desktop */
@media (hover: hover) {
    .bc-matrix-cell.status-price:hover .bc-tooltip,
    .bc-st-status.st-price:hover .bc-tooltip {
        display: block;
    }
}

/* Touch triggering via JS class */
.bc-matrix-cell.status-price.active-tt .bc-tooltip,
.bc-st-status.st-price.active-tt .bc-tooltip {
    display: block;
}

.status-sold {
    color: #c5a5ab;
}

.status-price {
    color: #ffffff;
}

.status-hold {
    color: #e5b871;
}

.bc-availability-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #e3e2dd;
    font-size: 13px;
    padding: 30px 20px;
}

.bc-availability-footer p {
    margin-bottom: 25px;
    color: #8c8c93;
    text-align: center;
}

.bc-navigation {
    display: flex;
    gap: 10px;
}

.bc-btn {
    background-color: #37363d;
    border: 1px solid #4b4a53;
    color: #e3e2dd;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.bc-btn:hover {
    background-color: #4b4a53;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .bc-sidebar {
        flex: 0 0 160px;
    }
    .bc-properties-title {
        font-size: 16px;
    }
    .bc-day-col, .bc-matrix-cell {
        width: 80px;
        font-size: 13px;
    }
    .bc-navigation {
        display: none; /* Mobile users swipe naturally */
    }
}

/* --- SINGLE PROPERTY TABLE --- */
.bc-single-table-wrapper {
    font-family: 'Inter', sans-serif;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.bc-st-table-container {
    background-color: #3c3b42;
    border: 1px solid #37363d;
    overflow: hidden; /* Hide physical scroll since we use JS transform */
    width: 100%;
}

.bc-st-table-container::-webkit-scrollbar {
    display: none;
}

.bc-single-table {
    display: flex;
    flex-direction: row;
    width: 100%;
    transition: transform 0.4s ease-in-out;
}

.bc-st-slide {
    width: 100%;
    flex: 0 0 100%;
    display: flex;
    flex-direction: column;
}

.bc-st-row {
    display: flex;
    border-bottom: 1px solid #2f2e35;
}

.bc-st-row:last-child {
    border-bottom: none;
}

.bc-st-col-month {
    width: 200px;
    flex-shrink: 0;
    padding: 30px 20px;
    color: #e3e2dd;
    font-size: 13px;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    border-right: 1px solid #2f2e35;
}

.bc-st-col-week {
    flex: 1 1 0;
    width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 25px 5px;
    border-right: 1px solid #2f2e35;
    color: #e3e2dd;
}

.bc-st-col-week:last-child {
    border-right: none;
}

.bc-st-col-week.bc-st-empty {
    color: #6a6a72;
}

.bc-st-day {
    margin-bottom: 20px;
}

.bc-day-num {
    position: relative;
    display: inline-block;
    padding-bottom: 5px;
    font-size: 18px;
}

.bc-day-num::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20%;
    width: 60%;
    height: 1px;
    background-color: #e3e2dd;
}

.bc-st-status {
    font-size: 14px;
    letter-spacing: 0.5px;
    position: relative;
    width: 100%;
    text-align: center;
}

.bc-st-status.st-sold {
    color: #c5a5ab;
}

.bc-st-status.st-price {
    color: #ffffff;
    cursor: pointer;
}

.bc-st-status.st-hold {
    color: #e5b871;
}

.bc-dash {
    font-size: 18px;
}

/* Single Table Mobile Responsiveness */
@media (max-width: 768px) {
    .bc-st-col-month {
        width: 85px;
        padding: 15px 5px;
        font-size: 10px;
        line-height: 1.4;
    }
    .bc-st-col-week {
        padding: 15px 2px;
    }
    .bc-day-num {
        font-size: 13px;
        padding-bottom: 2px;
    }
    .bc-day-num::after {
        left: 10%;
        width: 80%;
    }
    .bc-st-status {
        font-size: 11px;
    }
    .bc-dash {
        font-size: 12px;
    }
    /* Show arrows explicitly for the carousel */
    .bc-single-table-wrapper .bc-navigation {
        display: flex;
        justify-content: center;
        width: 100%;
        margin-top: 15px;
        align-items: center;
    }
    .bc-single-table-wrapper .bc-availability-footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* --- FOOTER CONTROLS & SWITCHER --- */
.bc-footer-controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    width: 100%;
}

.bc-st-switcher {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

.bc-st-switcher-btn {
    background-color: #2f2e35;
    border: 1px solid #4b4a53;
    color: #e3e2dd;
    padding: 12px 25px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    min-width: 140px;
    border-radius: 2px;
}

.bc-st-switcher-btn:hover {
    background-color: #3b3a41;
    border-color: #6a6a72;
}

.bc-st-switcher-btn.active {
    background-color: #3b3a41;
    border-color: #e3e2dd;
    color: #ffffff;
    box-shadow: inset 0 0 5px rgba(255,255,255,0.05);
}

@media (max-width: 768px) {
    .bc-st-switcher {
        gap: 8px;
    }
    .bc-st-switcher-btn {
        padding: 8px 15px;
        font-size: 12px;
        min-width: 100px;
    }
    .bc-footer-controls {
        gap: 15px;
    }
}
