/* Tour booking widget — calendar + enquiry form */

.tb-widget {
    position: sticky;
    top: calc(var(--header-height, 72px) + 16px);
    z-index: 5;
}

.tb-card {
    background: #fff;
    border: 1px solid #e2e8e4;
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(11, 48, 34, 0.08);
    overflow: hidden;
}

.tb-card-head {
    padding: 18px 18px 8px;
    background: linear-gradient(160deg, #0b3022 0%, #165a3d 100%);
    color: #fff;
}

.tb-card-head h3 {
    margin: 0 0 6px;
    font-family: var(--font-heading, Outfit, sans-serif);
    font-size: 1.15rem;
    font-weight: 700;
}

.tb-price {
    margin: 0 0 6px;
    font-size: 0.92rem;
    opacity: 0.95;
}

.tb-price strong {
    color: #f0c75e;
    font-size: 1.05rem;
}

.tb-sub {
    margin: 0;
    font-size: 0.82rem;
    opacity: 0.85;
    line-height: 1.4;
}

.tb-calendar {
    padding: 14px 16px 8px;
}

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

.tb-cal-title {
    font-family: var(--font-heading, Outfit, sans-serif);
    font-weight: 700;
    font-size: 0.95rem;
    color: #0b3022;
}

.tb-cal-nav {
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 8px;
    background: #f1f5f3;
    color: #0b3022;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.tb-cal-nav:hover {
    background: #dcefe4;
}

.tb-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    text-align: center;
}

.tb-cal-dow {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #64748b;
    padding-bottom: 4px;
}

.tb-day {
    aspect-ratio: 1;
    border: 0;
    border-radius: 50%;
    background: transparent;
    font-size: 0.8rem;
    font-weight: 600;
    color: #1e293b;
    cursor: default;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.tb-day.muted {
    color: #cbd5e1;
}

.tb-day.closed,
.tb-day.blocked {
    color: #d93025;
    font-weight: 700;
}

.tb-day.available {
    background: #dcf5e2;
    color: #137333;
    cursor: pointer;
}

.tb-day.available:hover {
    background: #34a853;
    color: #fff;
    transform: scale(1.06);
}

.tb-day.selected {
    background: #0b3022 !important;
    color: #fff !important;
    box-shadow: 0 0 0 2px #f0c75e;
}

.tb-cal-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 14px;
    justify-content: center;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
    font-size: 0.72rem;
    font-weight: 600;
    color: #475569;
}

.tb-cal-legend .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 4px;
    vertical-align: middle;
}

.tb-cal-legend .dot.available { background: #34a853; }
.tb-cal-legend .dot.closed { background: #d93025; }
.tb-cal-legend .dot.selected { background: #0b3022; }

.tb-form {
    padding: 8px 16px 18px;
}

.tb-field {
    margin-bottom: 10px;
}

.tb-field label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: #334155;
    margin-bottom: 4px;
}

.tb-field input,
.tb-field select,
.tb-field textarea {
    width: 100%;
    border: 1px solid #d6e0da;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 0.9rem;
    background: #fbfcfb;
    color: #0f172a;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.tb-field input:focus,
.tb-field select:focus,
.tb-field textarea:focus {
    border-color: #2f8f5b;
    box-shadow: 0 0 0 3px rgba(47, 143, 91, 0.15);
}

.tb-field textarea {
    resize: vertical;
    min-height: 72px;
}

.tb-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.tb-message {
    margin: 0 0 10px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.35;
}

.tb-message.ok {
    background: #e8f8ee;
    color: #137333;
    border: 1px solid #b7ebc6;
}

.tb-message.err {
    background: #fdecea;
    color: #b3261e;
    border: 1px solid #f5c2c0;
}

.tb-submit {
    width: 100%;
    border: 0;
    border-radius: 12px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #c9a227, #e0b83a);
    color: #1a1a1a;
    font-weight: 800;
    font-size: 0.95rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.15s ease, filter 0.15s ease;
}

.tb-submit:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

.tb-submit:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

.td-booking-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 22px;
    align-items: start;
}

@media (max-width: 980px) {
    .td-booking-layout {
        grid-template-columns: 1fr;
    }

    .tb-widget {
        position: static;
        order: -1;
    }
}
