﻿#booking-app.busy {
    opacity: .55;
    pointer-events: none;
}

.card-rounded {
    border-radius: 1rem;
}

.rb-steps {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: .5rem;
}

.rb-step {
    text-align: center;
    padding: .5rem .75rem;
    border-radius: .75rem;
    background: #f3f6fb;
    color: #4d5b76;
    font-weight: 600;
    font-size: .9rem;
    border: 1px solid #e7ecf5;
}

    .rb-step.active {
        background: #0d6efd;
        color: #fff;
        border-color: #0d6efd;
    }

    .rb-step.done {
        background: #d1e7dd;
        color: #0f5132;
        border-color: #badbcc;
    }

.rb-summary {
    top: 1rem;
}

.rb-summary-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: .25rem;
}

.rb-summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: .75rem;
}

    .rb-summary-total .label {
        color: #6c757d;
    }

    .rb-summary-total .value {
        font-size: 1.35rem;
        font-weight: 800;
    }

.rb-tier {
    cursor: pointer;
    transition: transform .06s ease;
    border: 1px solid #e9ecef;
}

    .rb-tier:hover {
        transform: translateY(-2px);
    }

    .rb-tier.selected {
        outline: 2px solid #0d6efd;
    }

@media (max-width: 992px) {
    .rb-steps {
        grid-template-columns: repeat(2,1fr);
    }
}

.flatpickr-calendar {
    z-index: 9999 !important;
}

/* Full-bleed map inside modal */
#mapPicker {
    position: relative;
    width: 100%;
    height: calc(100vh - 140px); /* header+footer space */
}

.rb-map-search {
    position: absolute;
    z-index: 1000;
    top: .75rem;
    left: .75rem;
    right: .75rem;
    max-width: 520px;
    background: rgba(255,255,255,.9);
    padding: .5rem;
    border-radius: .5rem;
    box-shadow: 0 2px 12px rgba(0,0,0,.12);
}

.leaflet-container a {
    color: inherit;
}

/* Better inputs group spacing for map buttons */
.input-group > .btn {
    min-width: 3rem;
}


/* keep search at top-left, zoom moved to bottom-right via JS */
.rb-map-search {
    position: absolute;
    z-index: 1000;
    top: .75rem;
    left: .75rem;
    right: auto;
    width: min(520px, 90vw);
}

/* Suggestions dropdown under search */
.rb-search-results {
    position: absolute;
    top: 2.6rem; /* just below the input-group */
    left: 0;
    right: 0;
    max-height: 260px;
    overflow: auto;
    background: #fff;
    border-radius: .5rem;
    box-shadow: 0 6px 18px rgba(0,0,0,.12);
    z-index: 1100;
    display: none; /* toggled via JS */
}

    .rb-search-results.show {
        display: block;
    }

    .rb-search-results .list-group-item {
        cursor: pointer;
        padding: .5rem .75rem;
    }

        .rb-search-results .list-group-item:hover {
            background: #f5f7fb;
        }
/* Summary grid for better long-address layout */
.rb-summary-grid {
    display: grid;
    grid-template-columns: 92px 1fr; /* label | value */
    column-gap: .5rem;
    row-gap: .35rem;
    align-items: start;
}

    .rb-summary-grid .label {
        color: #6c757d;
        white-space: nowrap;
    }

    .rb-summary-grid .value {
        min-width: 0; /* allow line-clamp to work within grid */
    }

/* 2-line clamp with ellipsis */
.rb-ellipsis-2 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    line-height: 1.25rem;
    max-height: calc(1.25rem * 2);
    word-break: break-word;
}

/* Tweak at larger widths */
@media (min-width: 992px) {
    .rb-summary-grid {
        grid-template-columns: 118px 1fr;
    }
}


/* detail header badge spacing handled by Bootstrap */

/* reuse grid from summary */
.rb-summary-grid {
    display: grid;
    grid-template-columns: 118px 1fr;
    column-gap: .5rem;
    row-gap: .35rem;
    align-items: start;
}

    .rb-summary-grid .label {
        color: #6c757d;
        white-space: nowrap;
    }

    .rb-summary-grid .value {
        min-width: 0;
    }

.rb-ellipsis-2 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    line-height: 1.25rem;
    max-height: 2.5rem;
    word-break: break-word;
}

/* sticky right column */
@media (min-width: 992px) {
    .rb-summary.sticky-top {
        top: 1rem;
    }
}

/* Over main page & modal */
.pac-container {
    z-index: 2000 !important;
}

.modal-open .pac-container {
    z-index: 2000 !important;
}

