/* Coast Booking Calendar – Plugin Styles */

.cbc-wrapper {
    font-family: 'Montserrat', Helvetica, Arial, sans-serif;
    max-width: 100%;
    overflow-x: auto;
}

/* ── Navigation ── */
.cbc-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 12px;
}

.cbc-nav-arrow {
    font-size: 18px;
    color: #424242;
    text-decoration: none;
    padding: 4px 10px;
    border-radius: 4px;
    transition: background 0.2s;
}
.cbc-nav-arrow:hover { background: #f0f0f0; }

.cbc-month-label {
    font-size: 22px;
    font-weight: 700;
    color: #424242;
}

/* ── Selectors ── */
.cbc-selectors {
    margin-bottom: 14px;
    text-align: center;
}
.cbc-selectors select {
    display: inline-block;
    max-width: 160px;
    height: 38px;
    margin-right: 10px;
    margin-bottom: 8px;
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 14px;
}
.cbc-selectors .cbc-go-btn {
    display: inline-block;
    height: 38px;
    margin-bottom: 8px;
    padding: 0 18px;
    background: #fff;
    color: #0079AC;
    border: 1px solid #0079AC;
    border-radius: 4px;
    box-sizing: border-box;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 36px;
    vertical-align: top;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.cbc-selectors .cbc-go-btn:hover {
    background: #0079AC;
    border-color: #0079AC;
    color: #fff;
}
.cbc-selectors .cbc-go-btn:focus-visible {
    outline: 2px solid #0079AC;
    outline-offset: 2px;
}
.cbc-selectors .cbc-go-btn:focus:not(:focus-visible) {
    outline: none;
}

/* ── Table Wrapper ── */
.cbc-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* ── Calendar Table ── */
.cbc-calendar {
    width: 100%;
    border-collapse: collapse;
    min-width: 560px;
}

.cbc-day-head {
    background: #f5f5f5;
    border: 1px solid #ccc;
    padding: 8px 4px;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    color: #555;
}

.cbc-day-np {
    background-color: #424242;
    border: 1px solid #555;
    min-height: 80px;
}

.cbc-day {
    border: 1px solid #ccc;
    vertical-align: top;
    min-height: 80px;
    width: 14.28%;
    transition: background 0.15s;
}
.cbc-day:hover:not(.cbc-day-unavailable) {
    background: #f9f9f9;
}

.cbc-day-unavailable {
    cursor: not-allowed !important;
    background: repeating-linear-gradient(
        45deg,
        #f0f0f0,
        #f0f0f0 5px,
        #dddddd 5px,
        #dddddd 10px
    ) !important;
}

/* ── Day Number ── */
.cbc-day-number {
    padding: 4px 6px;
    font-size: 13px;
    font-weight: 600;
    color: #333;
}
.cbc-day-number-today {
    background: #424242;
    color: #fff;
    display: inline-block;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    line-height: 24px;
    text-align: center;
    padding: 0;
    margin: 4px 6px;
}

/* ── Availability Status ── */
.cbc-availability-status {
    padding: 4px 6px 6px;
    font-size: 12px;
    line-height: 1.4;
}
.cbc-available   { color: #2a7a2a; font-weight: 600; }
.cbc-unavailable { color: #cc0000; font-weight: 600; }
.cbc-phone       { color: #2a7a2a; font-size: 11px; }

/* ── Loading ── */
.cbc-loading {
    display: none;
    text-align: center;
    padding: 12px;
    font-size: 13px;
    color: #888;
}

/* Booking request form */
.cbc-booking-form {
    margin-top: 24px;
    padding: 20px;
    border: 1px solid #d8d8d8;
    background: #fff;
}
.cbc-booking-form h3 {
    margin: 0 0 16px;
    font-size: 20px;
    color: #424242;
}
.cbc-booking-form label {
    display: block;
    margin-bottom: 14px;
    font-size: 13px;
    font-weight: 700;
    color: #424242;
}
.cbc-booking-form input,
.cbc-booking-form select,
.cbc-booking-form textarea {
    width: 100%;
    margin-top: 6px;
    padding: 9px 10px;
    border: 1px solid #cfcfcf;
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 400;
    color: #222;
    box-sizing: border-box;
}
.cbc-booking-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 16px;
}
.cbc-submit-btn {
    display: inline-block;
    padding: 10px 24px;
    background: #0085ad;
    color: #fff;
    border: 0;
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    cursor: pointer;
}
.cbc-submit-btn:hover { background: #006f91; }
.cbc-booking-message {
    margin-bottom: 14px;
    padding: 10px 12px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
}
.cbc-booking-success {
    border: 1px solid #b7dfbf;
    background: #eef9f0;
    color: #1f6b2b;
}
.cbc-booking-error {
    border: 1px solid #efb4b4;
    background: #fff1f1;
    color: #9b1c1c;
}

/* ── Responsive ── */
@media (max-width: 640px) {
    .cbc-month-label  { font-size: 17px; }
    .cbc-day-head     { font-size: 10px; padding: 5px 2px; }
    .cbc-day-number   { font-size: 11px; }
    .cbc-availability-status { font-size: 10px; }
    .cbc-phone        { font-size: 10px; }
    .cbc-booking-grid { grid-template-columns: 1fr; }
    .cbc-booking-form { padding: 16px; }
}
