/* ====================================================
   Villa Details Booking — villa-details-booking.css
   ==================================================== */

.vdb-section {
    font-family: "Neue Hass Display", sans-serif;
}

/* ---------- Step 1 Header ---------- */
.vdb-step1-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.vdb-title {
    font-size: 28px;
    font-weight: 400;
    color: #1a1a1a;
    margin: 0 0 8px !important;
    font-family: "EB Garamond", serif;
}

.vdb-subtitle {
    font-size: 14px;
    color: #888;
    margin: 0;
}

.vdb-step1-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
    flex-wrap: wrap;
}

.vdb-min-nights {
    text-align: right;
}

.vdb-min-nights__title {
    display: block;
    font-size: 14px;
    color: #1a1a1a;
    font-weight: 500;
}

.vdb-min-nights__sub {
    display: block;
    font-size: 12px;
    color: #999;
    margin-top: 2px;
}

/* ---------- Date Display Fields ---------- */
.vdb-date-fields {
    display: flex;
    gap: 12px;
}

.vdb-date-field {
    border: 1px solid #d0d0d0;
    padding: 8px 36px 8px 14px;
    min-width: 140px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.vdb-date-label {
    display: block;
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 4px;
}

.vdb-date-value {
    font-size: 14px;
    color: #1a1a1a;
    font-weight: 500;
}

.vdb-date-icon {
    position: absolute;
    right: 10px;
    bottom: 10px;
    color: #bbb;
    display: flex;
    align-items: center;
}

/* ---------- Inline Calendar Mount ---------- */
.vdb-cal {
    display: none;
}

#vdb-calendar-mount {
    min-height: 60px;
    display: flex;
    justify-content: flex-end;
}

#vdb-calendar-mount .daterangepicker {
    display: grid !important;
    position: relative !important;
    left: auto !important;
    right: 0 !important;
    top: initial !important;
    transform: none !important;
    grid-template-columns: 1fr 1fr !important;
    bottom: initial !important;
    width: auto !important;
    margin-left: auto !important;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    box-shadow: none !important;
    margin-top: 0 !important;
}

#vdb-calendar-mount .daterangepicker::before,
#vdb-calendar-mount .daterangepicker::after {
    display: none !important;
}

#vdb-calendar-mount .drp-calendar {
    width: 100% !important;
    max-width: 100% !important;
}

#vdb-calendar-mount .daterangepicker .ranges {
    display: none;
}

#vdb-calendar-mount .drp-buttons {
    display: none !important;
}

/* ---------- Legend ---------- */
.vdb-legend {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 16px 0 8px;
}

.vdb-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #666;
}

.vdb-legend-box {
    width: 24px;
    height: 24px;
    border-radius: 3px;
}

.vdb-legend-box--past   { background: #ebe9e9; }
.vdb-legend-box--today  { background: #c1c1c1; }
.vdb-legend-box--booked { background: #30503D; }

/* ---------- Step Navigation ---------- */
.vdb-step-nav {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
}

.vdb-step-nav--two {
    justify-content: space-between;
    align-items: center;
}

.vdb-btn {
    padding: 12px 32px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: background 0.15s;
    font-family: "Neue Hass Display", sans-serif;
    border-radius: 0 !important;
}

.vdb-btn--continue {
    background: #2d4a3e;
    color: #fff;
}

.vdb-btn--continue:hover {
    background: #1f3329;
}

.vdb-btn--continue:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.vdb-btn--back {
    background: none;
    color: #555;
    border: 1px solid #d0d0d0 !important;
    padding: 12px 24px;
}

.vdb-btn--back:hover {
    background: #f8f8f8;
}

/* ---------- Step 2 ---------- */
.vdb-step2-summary {
    margin-bottom: 16px;
    color: #888;
    font-size: 14px;
}

.vdb-section-block {
    margin-bottom: 32px;
}

.vdb-block-title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid #f0f0f0;
}

.vdb-event-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 8px;
}

.vdb-event-item {
    border: 1px solid #e0e0e0;
    padding: 14px 16px;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.vdb-event-item:hover {
    background: #f8f8f8;
}

.vdb-event-item.is-selected {
    border-color: #2d4a3e;
    background: #f0f6f4;
}

.vdb-event-title {
    font-size: 14px;
    font-weight: 600;
    color: #1a1a1a;
}

.vdb-event-desc {
    font-size: 12px;
    color: #999;
}

.vdb-guests-list {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.vdb-guests-list .bbar-guest-row {
    padding: 14px 20px;
    border-bottom: 1px solid #f4f4f4;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.vdb-guests-list .bbar-guest-row:last-child {
    border-bottom: none;
}

/* ---------- Step 3 Summary Strip ---------- */
.vdb-summary-strip {
    display: flex;
    gap: 24px;
    padding: 16px 20px;
    background: #f9f9f9;
    border: 1px solid #e8e8e8;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.vdb-sum-item {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.vdb-sum-label {
    font-size: 11px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.vdb-sum-val {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
}

.vdb-success {
    padding: 20px;
    background: #edf7f2;
    border-radius: 4px;
    color: #2d6a4f;
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 20px;
    text-align: center;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .vdb-step1-header {
        flex-direction: column;
    }

    .vdb-step1-meta {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }

    .vdb-min-nights {
        text-align: left;
    }

    .vdb-date-fields {
        width: 100%;
    }

    .vdb-date-field {
        flex: 1;
    }

    #vdb-calendar-mount .daterangepicker {
        grid-template-columns: 1fr !important;
    }

    .vdb-event-list {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .vdb-event-list {
        grid-template-columns: 1fr;
    }

    .vdb-summary-strip {
        flex-direction: column;
        gap: 12px;
    }
}
