/* =========================================================
   MMS — Classes Booking
   Modernized stylesheet (brand: orange + dark)
   ========================================================= */

:root {
    --brand-orange: #FF6B1A;
    --brand-orange-light: #FF8A3D;
    --brand-orange-dark: #E04E00;
    --brand-orange-soft: #FFF1E6;

    --primary-orange: #FF6B1A; /* legacy alias */
    --primary-green: #16A34A;
    --primary-red: #DC2626;

    --ink-900: #0F172A;
    --ink-800: #1E293B;
    --ink-700: #334155;
    --ink-600: #475569;
    --ink-500: #64748B;
    --ink-400: #94A3B8;
    --ink-300: #CBD5E1;
    --ink-200: #E2E8F0;
    --ink-100: #F1F5F9;
    --ink-50:  #F8FAFC;

    --text-dark: var(--ink-900);
    --text-light: var(--ink-500);
    --border-color: var(--ink-200);
    --default-line: var(--ink-200);

    --surface: #FFFFFF;
    --surface-muted: var(--ink-50);

    --radius-xs: 6px;
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-pill: 999px;

    --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08), 0 2px 4px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 12px 28px rgba(15, 23, 42, 0.12), 0 4px 8px rgba(15, 23, 42, 0.06);
    --shadow-brand: 0 10px 24px rgba(255, 107, 26, 0.28);

    --gradient-brand: linear-gradient(135deg, #FF8A3D 0%, #FF6B1A 50%, #E04E00 100%);
    --gradient-dark: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);

    --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 320ms cubic-bezier(0.4, 0, 0.2, 1);

    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* ---------- Base / Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font-sans);
    color: var(--text-dark);
    background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
    min-height: 100vh;
    touch-action: auto;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; }

/* Allow pan/pinch but kill 300ms tap delay on interactive elements */
.card,
.breadcrumb span,
.btn-sm,
.fixed-footer-button,
.progress-step,
.image-container {
    touch-action: manipulation;
}

/* ---------- Navbar ---------- */
.navbar {
    box-shadow: var(--shadow-sm);
    padding: 0.75rem 1.25rem;
    background: var(--surface) !important;
    position: sticky;
    top: 0;
    z-index: 1030;
    border-bottom: 1px solid var(--ink-100);
}

.navbar .navbar-brand img {
    max-height: 48px;
    width: auto;
    transition: transform var(--transition-base);
}

.navbar .navbar-brand:hover img { transform: scale(1.03); }

/* ---------- Breadcrumb (step path) ---------- */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 16px 0;
    padding: 12px 16px;
    background: var(--surface);
    border: 1px solid var(--ink-100);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    font-size: clamp(13px, 1.5vw, 15px);
}

/* Push "My Bookings" button to the right on desktop */
.breadcrumb .bookings-button {
    margin-left: auto !important;
    margin-right: 0 !important;
    padding: 8px 18px;
    white-space: nowrap;
}

.breadcrumb .bookings-button strong {
    margin: 0 !important;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.breadcrumb span {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    background: var(--gradient-brand);
    color: #FFFFFF;
    padding: 6px 14px;
    border-radius: var(--radius-pill);
    font-weight: 600;
    letter-spacing: 0.2px;
    border: 1px solid transparent;
    transition: transform var(--transition-base),
                box-shadow var(--transition-base),
                background var(--transition-base),
                color var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.breadcrumb span:hover {
    transform: translateY(-1px);
    background: var(--brand-orange-soft);
    color: var(--brand-orange-dark);
    border-color: var(--brand-orange);
    box-shadow: var(--shadow-md);
    text-decoration: none;
}

/* ---------- Cards (parent / branch / venue / class tiles) ---------- */
.card {
    cursor: pointer;
    transition: transform var(--transition-base),
                box-shadow var(--transition-base),
                border-color var(--transition-base);
    border: 1px solid var(--ink-100);
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.card:hover {
    transform: translateY(-4px);
    border-color: var(--brand-orange);
    box-shadow: var(--shadow-lg);
}

.card .card-img-top,
.card img {
    transition: transform var(--transition-slow);
}

.card:hover .card-img-top,
.card:hover img:not(.amenity-icon) {
    transform: scale(1.04);
}

.card .card-body { padding: 1rem 1.25rem; }

.card .card-title {
    font-weight: 700;
    color: var(--ink-900);
    letter-spacing: -0.2px;
}

.card .card-text { color: var(--ink-600); }

.hide { display: none; }

.back-btn {
    margin: 10px 0;
    cursor: pointer;
    color: var(--brand-orange);
    font-weight: 600;
}

.back-btn:hover { color: var(--brand-orange-dark); }

/* ---------- Loader Group (Image Navigation) ---------- */
.loader-group {
    display: flex;
    gap: clamp(8px, 2vw, 18px);
    padding: clamp(12px, 3vw, 24px);
    justify-content: center;
    flex-wrap: wrap;
    background: var(--surface);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    margin: 1rem auto;
    max-width: 1100px;
}

.image-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    cursor: pointer;
    position: relative;
    padding: 8px 12px 18px;
    border-radius: var(--radius-sm);
    transition: background-color var(--transition-base),
                transform var(--transition-base);
    flex-basis: auto;
}

.image-container:hover {
    background: var(--brand-orange-soft);
    transform: translateY(-2px);
}

.image-container img {
    display: block;
    border-radius: 50%;
    object-fit: cover;
    width: 50px;
    height: 50px;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-base);
}

.image-container:hover img { transform: scale(1.08); }

.image-name {
    position: sticky;
    bottom: 5px;
    margin-top: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    transition: color var(--transition-base);
}

.image-container:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 12px;
    right: 12px;
    height: 3px;
    border-radius: var(--radius-pill);
    background-color: var(--default-line);
    transition: background-color var(--transition-base);
}

.image-container.active .image-name {
    color: var(--brand-orange);
    font-weight: 700;
}

.image-container.active:after {
    background: var(--gradient-brand);
}

/* ---------- Offers (amenities row) ---------- */
#offers {
    background: var(--surface);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.5rem;
    box-shadow: var(--shadow-sm);
    margin: 1rem 0;
}

#offers h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ink-900);
    margin-bottom: 1rem;
}

.amenity-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 15px;
    padding: 10px;
    border-radius: var(--radius-sm);
    transition: background-color var(--transition-base),
                transform var(--transition-base);
}

.amenity-item:hover {
    background: var(--brand-orange-soft);
    transform: translateY(-2px);
}

.amenity-text {
    color: var(--ink-600);
    font-weight: 500;
    font-size: 0.85rem;
    margin-top: 6px;
}

.amenity-icon { width: 30px; height: 30px; object-fit: contain; }

/* ---------- Duration circle ---------- */
.duration-circle {
    background: var(--gradient-brand);
    color: #fff;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
    margin: 0 10px;
    box-shadow: var(--shadow-sm);
}

/* ---------- Buttons ---------- */
.btn-sm {
    background: var(--gradient-brand);
    cursor: pointer;
    font-family: inherit;
    text-align: center;
    color: #FFFFFF;
    border: none;
    border-radius: var(--radius-sm);
    padding: 6px 14px;
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-base),
                box-shadow var(--transition-base),
                filter var(--transition-base);
}

.btn-sm:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-brand);
    color: #FFFFFF;
    filter: brightness(1.05);
}

.btn-sm:active { transform: translateY(0); }

.btn.rounded-lg { border-radius: var(--radius-sm) !important; }

/* Primary action buttons inside the modal footer (orange) */
.modal-footer .btn[style*="background-color: #ffa500"],
.modal-footer .btn[style*="background-color:#ffa500"] {
    background: var(--gradient-brand) !important;
    color: #FFFFFF !important;
    border: none !important;
    box-shadow: var(--shadow-sm);
    font-weight: 600;
    transition: transform var(--transition-base),
                box-shadow var(--transition-base),
                filter var(--transition-base);
}

.modal-footer .btn[style*="background-color: #ffa500"]:hover,
.modal-footer .btn[style*="background-color:#ffa500"]:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-brand);
    filter: brightness(1.05);
}

.modal-footer .btn-secondary {
    background: var(--surface);
    color: var(--ink-700);
    border: 1px solid var(--ink-200);
    font-weight: 500;
    transition: background-color var(--transition-base),
                border-color var(--transition-base),
                color var(--transition-base);
}

.modal-footer .btn-secondary:hover {
    background: var(--ink-100);
    border-color: var(--ink-300);
    color: var(--ink-900);
}

/* Invalid btn-group (e.g., dropdowns) */
.btn.is-invalid {
    border-color: var(--primary-red) !important;
    background-image: none;
}

.btn-group + .invalid-feedback {
    display: block;
    margin-top: 0.25rem;
}

/* ---------- Progress Steps (arrow chevrons) ---------- */
.progress-step {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px 10px 30px;
    position: relative;
    background-color: var(--ink-800);
    color: #FFFFFF;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.2px;
    text-align: center;
    cursor: pointer;
    min-width: 150px;
    transition: background-color var(--transition-base),
                color var(--transition-base);
}

.progress-step::after {
    content: '';
    position: absolute;
    right: -14px;
    width: 0;
    height: 0;
    border-top: 20px solid transparent;
    border-bottom: 20px solid transparent;
    border-left: 15px solid var(--ink-800);
    z-index: 2;
    transition: border-left-color var(--transition-base);
}

.progress-step::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 0;
    border-top: 20px solid transparent;
    border-bottom: 20px solid transparent;
    border-left: 15px solid #FFFFFF;
    z-index: 1;
}

.progress-step:first-child {
    border-top-left-radius: 6px;
    border-bottom-left-radius: 6px;
}

.progress-step:last-child {
    margin-right: 0;
    border-top-right-radius: 6px;
    border-bottom-right-radius: 6px;
    padding-right: 20px;
}

.progress-step:last-child::after { content: none; }

/* Active step — brand orange */
.progress-step.active {
    background-color: var(--brand-orange-dark);
    color: #FFFFFF;
}

.progress-step.active::after { border-left-color: var(--brand-orange-dark); }

/* Next step — lighter orange */
.progress-step.next {
    background-color: var(--brand-orange);
    color: #FFFFFF;
}

.progress-step.next::after { border-left-color: var(--brand-orange); }

/* Inactive step — dark */
.progress-step.inactive {
    background-color: var(--ink-900);
    color: var(--ink-400);
}

.progress-step.inactive::after { border-left-color: var(--ink-900); }

/* ---------- Fixed Footer Button ---------- */
.fixed-footer-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    left: 20px;
    z-index: 1000;
    padding: 12px 24px;
    background: var(--gradient-brand);
    color: #FFFFFF;
    border: none;
    border-radius: var(--radius-pill);
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    box-shadow: var(--shadow-brand);
    max-width: calc(100% - 40px);
    text-align: center;
    transition: transform var(--transition-base),
                box-shadow var(--transition-base),
                filter var(--transition-base);
}

.fixed-footer-button:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
}

@media (min-width: 768px) {
    .fixed-footer-button {
        bottom: 32px;
        right: 32px;
        left: auto;
        padding: 14px 30px;
        font-size: 16px;
        width: auto;
    }
}

/* ---------- Invoice / Form Sections ---------- */
.invoice-card {
    background: var(--surface);
    border: 1px solid var(--ink-100);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.invoice-body, .invoice-footer { padding: 18px; }

.section-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.item-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--ink-100);
}

.item-row:last-child { border-bottom: none; }

.item-name { color: var(--text-dark); }
.item-price { font-weight: 600; color: var(--text-dark); }

.totals-section {
    border-top: 2px solid var(--border-color);
    padding-top: 16px;
    margin-top: 16px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.subtotal-label, .subtotal-value {
    color: var(--text-light);
    font-size: 1rem;
}

.final-total-row {
    padding-top: 12px;
    border-top: 1px dashed var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.total-label {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark);
}

.total-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-green);
}

/* ---------- Modal ---------- */
.modal-dialog.modal-xl { max-width: 90%; }

.modal-content {
    border: none;
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow-lg);
    /* Note: do NOT set overflow:hidden here — it clips Bootstrap
       dropdowns whose popper positioning extends past the modal edge. */
}

.modal-body {
    /* Allow dropdown menus to overflow the body */
    overflow: visible;
}

.modal-header {
    background: var(--surface);
    border-bottom: 1px solid var(--ink-100);
    padding: 1.1rem 1.5rem;
    border-top-left-radius: var(--radius-lg);
    border-top-right-radius: var(--radius-lg);
}

.modal-title {
    font-weight: 700;
    color: var(--ink-900);
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    letter-spacing: -0.3px;
}

.modal-body { padding: 1.5rem; }

.modal-footer {
    background: var(--surface-muted);
    border-top: 1px solid var(--ink-100);
    padding: 1rem 1.25rem;
    gap: 0.5rem;
    border-bottom-left-radius: var(--radius-lg);
    border-bottom-right-radius: var(--radius-lg);
}

/* ---------- Forms ---------- */
#informationForm .form-label,
#validationForm .form-label {
    font-weight: 600;
    color: var(--ink-800);
    font-size: 0.875rem;
    margin-bottom: 0.35rem;
}

#validationForm .form-control,
#validationForm .form-select {
    border-radius: var(--radius-sm);
    border: 1px solid var(--ink-200);
    padding: 0.55rem 0.85rem;
    font-size: 0.95rem;
    transition: border-color var(--transition-base),
                box-shadow var(--transition-base);
}

#validationForm .form-control:focus,
#validationForm .form-select:focus {
    border-color: var(--brand-orange);
    box-shadow: 0 0 0 3px rgba(255, 107, 26, 0.18);
    outline: none;
}

#validationForm .form-control.is-valid {
    border-color: var(--primary-green);
}

#validationForm .form-control.is-invalid {
    border-color: var(--primary-red);
}

#validationForm .form-check-input:checked {
    background-color: var(--brand-orange);
    border-color: var(--brand-orange);
}

#validationForm .form-check-input:focus {
    border-color: var(--brand-orange);
    box-shadow: 0 0 0 3px rgba(255, 107, 26, 0.18);
}

/* Form table polish */
#informationForm table.table td {
    font-size: 0.9rem;
    padding: 6px 0;
    vertical-align: middle;
    border-top: none;
    border-bottom: 1px solid var(--ink-100);
}

#informationForm table.table tr:last-child td { border-bottom: none; }

#informationForm table.table tr td:first-child {
    width: 35%;
    font-weight: 500 !important;
    color: var(--ink-600);
}

#informationForm h5 {
    margin-top: 20px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ink-900);
}

/* ---------- Dropdown menus (e.g., Identification Type) ---------- */
.dropdown-menu {
    border: 1px solid var(--ink-200);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    padding: 6px;
    z-index: 1080; /* above modal-content stacking */
}

.dropdown-menu .dropdown-item {
    border-radius: var(--radius-xs);
    padding: 8px 12px;
    font-size: 0.9rem;
    color: var(--ink-800);
    transition: background-color var(--transition-base), color var(--transition-base);
}

.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:focus {
    background: var(--brand-orange-soft);
    color: var(--brand-orange-dark);
}

.dropdown-menu .dropdown-item.active,
.dropdown-menu .dropdown-item:active {
    background: var(--gradient-brand);
    color: #FFFFFF;
}

#selected-type {
    border-radius: var(--radius-sm);
    border-color: var(--ink-200);
    color: var(--ink-700);
    font-weight: 500;
}

#selected-type:hover {
    border-color: var(--brand-orange);
    color: var(--brand-orange-dark);
}

/* ---------- Calendar container ---------- */
#calendarContainer table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 16px 0;
    font-family: inherit;
    min-width: 300px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

#calendarContainer th,
#calendarContainer td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--ink-100);
    text-align: left;
    background: var(--surface);
}

#calendarContainer th {
    background-color: var(--ink-50);
    font-weight: 700;
    color: var(--ink-700);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

#calendarContainer tr:last-child td { border-bottom: none; }

/* ---------- Bookings Button (legacy) ---------- */
.bookings-button {
    background: var(--gradient-brand);
    color: #FFFFFF;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    padding: 8px 18px;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-base),
                box-shadow var(--transition-base),
                filter var(--transition-base);
}

.bookings-button:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-brand);
    filter: brightness(1.05);
}

/* ---------- Image Zoom Modal ---------- */
#imageZoomModal .modal-content {
    background: transparent;
    border: none;
    box-shadow: none;
}

#imagemodal img {
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    background: var(--surface);
    padding: 6px;
}

#zoomedImagebtn {
    background: var(--surface);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    opacity: 0.95;
}

/* ---------- Animations ---------- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

#parentClasses .card,
#branches .card,
#venues .card,
#classes .card {
    animation: fadeInUp 320ms cubic-bezier(0.4, 0, 0.2, 1) both;
}

/* =========================================================
   Responsive — tablets / phones
   ========================================================= */

/* Tablets */
@media (max-width: 991.98px) {
    .progress-step { min-width: 120px; font-size: 0.85rem; padding: 9px 18px 9px 24px; }
    .progress-step::after,
    .progress-step::before { border-top-width: 19px; border-bottom-width: 19px; }
    .navbar .navbar-brand img { max-height: 40px; }
}

/* Phones */
@media (max-width: 767.98px) {
    .breadcrumb {
        padding: 10px 12px;
        gap: 8px;
        margin-bottom: 24px !important;
        counter-reset: step;
    }
    .breadcrumb span { padding: 5px 10px; font-size: 12px; }

    .navbar .navbar-brand img { max-height: 36px; }

    /* Convert chevron progress steps to compact numbered pills */
    .breadcrumb .progress-step {
        min-width: 0;
        flex: 0 1 auto;
        padding: 7px 14px 7px 10px;
        font-size: 0.78rem;
        font-weight: 600;
        border-radius: var(--radius-pill);
        counter-increment: step;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        line-height: 1.2;
    }

    /* Drop the chevron arrowheads */
    .breadcrumb .progress-step::after { content: none; }

    /* Repurpose ::before as a numbered chip prefix */
    .breadcrumb .progress-step::before {
        content: counter(step);
        position: static;
        width: 20px;
        height: 20px;
        border: none;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.28);
        color: inherit;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: 0.7rem;
        font-weight: 700;
        flex-shrink: 0;
    }

    /* Inactive variant: lighter chip on dark pill */
    .breadcrumb .progress-step.inactive::before {
        background: rgba(255, 255, 255, 0.12);
        color: var(--ink-300);
    }

    /* "My Bookings" — break to its own full-width row below the steps */
    .breadcrumb .bookings-button {
        flex: 1 1 100%;
        width: 100%;
        margin: 6px 0 0 !important;
        padding: 10px 18px;
        text-align: center;
        order: 99;
    }

    .modal-dialog.modal-xl { max-width: 100%; margin: 0; }
    .modal-content { border-radius: 0 !important; min-height: 100vh; }
    .modal-body { padding: 1rem; }
    .modal-footer { flex-wrap: wrap; }
    .modal-footer .btn { flex: 1 1 auto; min-width: 120px; }

    .loader-group { padding: 12px; gap: 8px; border-radius: var(--radius-sm); }
    .image-container { padding: 6px 8px 14px; }
    .image-container img { width: 44px; height: 44px; }
    .image-name { font-size: 12px; }

    /* Calendar — switch to stacked cards on phones */
    #calendarContainer thead { display: none; }

    #calendarContainer table,
    #calendarContainer tbody,
    #calendarContainer tr,
    #calendarContainer td {
        display: block;
        width: 100%;
    }

    #calendarContainer tr {
        margin-bottom: 12px;
        border: 1px solid var(--ink-200);
        border-radius: var(--radius-sm);
        overflow: hidden;
        box-shadow: var(--shadow-sm);
    }

    #calendarContainer td {
        text-align: right;
        padding-left: 50%;
        position: relative;
        border: none;
        border-bottom: 1px solid var(--ink-100);
    }

    #calendarContainer td::before {
        content: attr(data-label);
        position: absolute;
        left: 12px;
        width: 45%;
        font-weight: 600;
        color: var(--ink-700);
        text-align: left;
    }
}

/* Very small phones */
@media (max-width: 575.98px) {
    .invoice-card { margin: 8px; border-radius: var(--radius-sm); }
    .invoice-body, .invoice-footer { padding: 14px; }
    .total-label { font-size: 1.05rem; }
    .total-value { font-size: 1.3rem; }
    .image-container { margin: 0 4px; }

    #offers .d-flex { flex-wrap: wrap; justify-content: center; }
    .amenity-item { margin: 8px; }

    /* Tighter pill sizing for tiny screens so all 4 steps fit on one row */
    .breadcrumb .progress-step {
        padding: 6px 10px 6px 8px;
        font-size: 0.72rem;
        gap: 5px;
    }
    .breadcrumb .progress-step::before {
        width: 18px;
        height: 18px;
        font-size: 0.65rem;
    }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
