/* ==========================================================================
   AtemLiebe Booking — Squarespace-Inspired Style
   ========================================================================== */

/* --------------------------------------------------------------------------
   Bootstrap Variable Overrides
   -------------------------------------------------------------------------- */
:root {
    --bs-primary: #0056b3;
    --bs-primary-rgb: 0, 86, 179;
    --bs-success: #28a745;
    --bs-success-rgb: 40, 167, 69;
    --bs-warning: #ffc107;
    --bs-danger: #dc3545;
    --bs-info: #17a2b8;
    --bs-secondary: #6c757d;
    --bs-body-font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    --bs-body-color: #222;
    --bs-border-color: #e0e0e0;
    --bs-border-radius: 4px;
    --bs-border-radius-sm: 4px;
    --bs-border-radius-lg: 4px;
    --bs-link-color: #0056b3;
    --bs-link-hover-color: #003d80;
}

/* --------------------------------------------------------------------------
   App CSS Variables / Design Tokens
   -------------------------------------------------------------------------- */
:root {
    --color-text: #222;
    --color-text-dark: #111;
    --color-text-light: #888;
    --color-bg: #fff;
    --color-border: #e0e0e0;
    --color-shadow: rgba(0, 0, 0, .07);
    --color-shadow-sm: rgba(0, 0, 0, .03);
    --color-shadow-md: rgba(0, 0, 0, .1);
    --color-accent: #0056b3;
    --color-success: #28a745;
    --color-warning: #ffc107;
    --color-danger: #dc3545;
    --color-info: #17a2b8;
    --color-secondary: #6c757d;
    --max-width: 900px;
    --transition-fast: .2s ease;
    --transition-normal: .3s ease;
    --transition-slow: .4s ease;
    --letter-spacing: .01em;

    /* Legacy aliases kept for compatibility */
    --color-primary: var(--color-accent);
    --color-primary-dark: #003d80;
    --color-primary-light: var(--color-success);
    --color-secondary-dark: #5a6268;
    --color-text-primary: var(--color-text);
    --color-text-secondary: var(--color-text-light);
    --color-text-muted: var(--color-text-light);
    --color-bg-light: var(--color-bg);
    --shadow-card: 0 2px 16px var(--color-shadow);
    --shadow-hover: 0 4px 20px var(--color-shadow-md);
    --radius-sm: 4px;
    --radius-md: 4px;
    --radius-pill: 20px;
}

/* --------------------------------------------------------------------------
   Base Styles
   -------------------------------------------------------------------------- */
html,
body {
    margin: 0;
    padding: 0;
    background: var(--color-bg);
    color: var(--color-text);
    font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    box-sizing: border-box;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

button,
a {
    touch-action: manipulation;
}

/* The dark background class is kept for compatibility — now white */
.dark-green-bg {
    background: var(--color-bg);
    min-height: 100vh;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
header {
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    padding: 0 0 2.5rem 0;
    margin-top: 2.5rem;
}

.header-content {
    max-width: var(--max-width);
    width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.header-left h2 {
    font-size: 1.7rem;
    margin: 0;
    font-weight: 400;
    color: #000;
}

.header-left h2.h2-second {
    font-size: medium;
    color: #888;
    font-weight: 500;
    margin-bottom: 0;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

nav ul li a {
    text-decoration: none;
    color: var(--color-text-light);
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    transition: color var(--transition-fast);
}

nav ul li a.active {
    color: #000;
    font-weight: 500;
    cursor: default;
    pointer-events: none;
}

nav ul li a:hover {
    color: #000;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
footer {
    background: var(--color-bg);
    border-top: 1px solid var(--color-border);
    padding: 3.5rem 0;
    color: var(--color-text);
    text-align: left;
    font-size: 1rem;
}

.footer-content {
    max-width: var(--max-width);
    width: 100%;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .8rem;
}

.footer-buttons {
    display: flex;
    gap: .8rem;
    align-items: center;
}

.footer-email {
    color: #000;
    font-weight: 500;
    margin: 0;
    display: flex;
    align-items: center;
    gap: .5rem;
    text-decoration: none;
}

.footer-email svg {
    flex-shrink: 0;
    vertical-align: middle;
}

/* --------------------------------------------------------------------------
   Main Page Layout
   -------------------------------------------------------------------------- */
.main-container {
    max-width: var(--max-width);
    width: 100%;
    margin: 0 auto;
    padding: 3.5rem 1rem;
    min-height: 40vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* --------------------------------------------------------------------------
   Container & Layout
   -------------------------------------------------------------------------- */
.admin-container {
    max-width: 1200px;
    margin: 2.5rem auto;
    padding: 0 1.25rem;
}

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */
.content-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: 0 2px 16px var(--color-shadow);
    margin-bottom: 1.5rem;
}

.content-card h3,
.content-card h5 {
    color: var(--color-text-dark);
    font-weight: 600;
    margin-bottom: 1rem;
}

/* --------------------------------------------------------------------------
   Admin Header
   -------------------------------------------------------------------------- */
.admin-header {
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 2rem;
    margin-bottom: 2rem;
    background: transparent;
}

.admin-header h1 {
    color: var(--color-text-dark);
    font-weight: 600;
    margin-bottom: .25rem;
    font-size: 1.6rem;
}

.admin-header p {
    color: var(--color-text-light);
    margin: 0;
    font-size: .95rem;
}

.badge-admin {
    display: inline-block;
    background: var(--color-text);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: var(--radius-pill);
    margin-left: 10px;
    vertical-align: middle;
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn-primary-custom,
.btn-add {
    background: var(--color-accent);
    color: #fff;
    border: none;
    padding: .55rem .9rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    transition: var(--transition-slow);
    cursor: pointer;
    font-family: inherit;
    font-size: .9rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    line-height: 1.15;
    text-align: center;
    white-space: normal;
}

.btn-primary-custom:hover,
.btn-add:hover {
    background: #004399;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 86, 179, .25);
}

.btn-logout {
    background: #e9ecef;
    border: none;
    color: var(--color-text);
    padding: .5rem 1.2rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition-fast);
    font-size: .9rem;
    display: inline-block;
}

.btn-logout:hover {
    background: #dee2e6;
    color: var(--color-text);
}

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */
.form-label {
    color: var(--color-text);
    font-weight: 500;
    margin-bottom: .4rem;
    font-size: .95rem;
    letter-spacing: var(--letter-spacing);
}

.form-control,
.form-select {
    font-family: inherit;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: .75rem 1rem;
    font-size: 1rem;
    background: #f7f7f7;
    color: var(--color-text);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
    box-shadow: 0 1px 6px var(--color-shadow-sm);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--color-accent);
    box-shadow: 0 2px 12px var(--color-shadow);
    background: #fff;
    outline: none;
}

.form-control::placeholder {
    color: #aaa;
}

.admin-time-picker {
    display: grid;
    grid-template-columns: minmax(82px, .85fr) minmax(132px, 1.15fr);
    gap: .35rem;
    align-items: center;
}

.admin-time-wheel {
    display: grid;
    grid-template-columns: minmax(54px, 1fr) auto minmax(54px, 1fr);
    gap: .2rem;
    align-items: center;
}

.admin-time-separator {
    color: var(--color-text-light);
    font-weight: 700;
    line-height: 1;
}

.yoga-color-picker {
    display: flex;
    align-items: center;
    gap: .55rem;
    flex-wrap: wrap;
}

.yoga-color-custom {
    width: 42px;
    height: 34px;
    padding: .15rem;
}

.yoga-color-swatches {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(96px, max-content));
    gap: .35rem;
    align-items: center;
}

.yoga-color-family {
    display: flex;
    align-items: center;
    gap: .18rem;
    padding: .12rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: #fff;
}

.yoga-color-swatch {
    width: 28px;
    height: 28px;
    border: 2px solid #fff;
    border-radius: var(--radius-sm);
    background: var(--swatch-color);
    box-shadow: 0 0 0 1px var(--color-border);
    cursor: pointer;
    transition: transform .12s, box-shadow .12s;
}

.yoga-color-swatch:hover {
    transform: translateY(-1px);
}

.yoga-color-swatch[aria-pressed="true"] {
    box-shadow: 0 0 0 2px var(--color-accent);
}

.yoga-course-color-dot {
    display: inline-block;
    width: .9rem;
    height: .9rem;
    border-radius: 50%;
    background: var(--course-color);
    box-shadow: 0 0 0 1px #fff, 0 0 0 2px var(--color-border);
    vertical-align: -.1rem;
}

.yoga-course-summary {
    display: flex;
    align-items: center;
    gap: .45rem;
    min-width: 0;
    flex-wrap: wrap;
}

.yoga-course-summary-name {
    margin-right: .15rem;
    min-width: min(220px, 100%);
    overflow-wrap: anywhere;
}

.yoga-course-detail-bar {
    display: flex;
    align-items: stretch;
    gap: .5rem;
    flex-wrap: wrap;
    padding: .6rem 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.yoga-course-detail-item {
    min-width: 130px;
    padding-right: .75rem;
}

.yoga-course-detail-item:not(:last-child) {
    border-right: 1px solid var(--color-border);
}

@media (max-width: 575.98px) {
    .yoga-course-detail-item {
        flex: 1 1 140px;
        padding-right: 0;
    }

    .yoga-course-detail-item:not(:last-child) {
        border-right: 0;
    }
}

/* Input group styling */
.input-group-text {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
}

/* --------------------------------------------------------------------------
   Tables
   -------------------------------------------------------------------------- */
.table th {
    color: var(--color-text);
    font-weight: 600;
    border-bottom: 2px solid var(--color-border);
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.table td {
    color: var(--color-text);
    vertical-align: middle;
}

.table .text-muted {
    color: var(--color-text-light) !important;
}

/* --------------------------------------------------------------------------
   Modals
   -------------------------------------------------------------------------- */
.modal-header {
    border-bottom: 1px solid var(--color-border);
}

.modal-title {
    color: var(--color-primary);
    font-weight: 700;
}

.modal-footer {
    border-top: 1px solid var(--color-border);
}

/* --------------------------------------------------------------------------
   Navigation Tabs (for admin sections)
   -------------------------------------------------------------------------- */
.nav-tabs-admin {
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 1.5rem;
}

.nav-tabs-admin .nav-link {
    color: var(--color-text-light);
    font-weight: 500;
    padding: .65rem 1.1rem;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    transition: var(--transition-fast);
    font-size: .9rem;
}

.nav-tabs-admin .nav-link:hover {
    color: var(--color-text);
    background: transparent;
    border-color: transparent;
}

.nav-tabs-admin .nav-link.active {
    color: var(--color-accent);
    background: transparent;
    border-color: transparent transparent var(--color-accent) transparent;
    font-weight: 600;
}

/* --------------------------------------------------------------------------
   Empty State
   -------------------------------------------------------------------------- */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--color-text-muted);
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

/* --------------------------------------------------------------------------
   Badges & Status
   -------------------------------------------------------------------------- */
.badge-status {
    padding: .3rem .7rem;
    font-weight: 600;
    border-radius: var(--radius-pill);
    font-size: .8rem;
}

.badge-active {
    background: #d4edda;
    color: #155724;
}

.badge-inactive {
    background: #e9ecef;
    color: #6c757d;
}

/* New (un-seen) booking row in the admin overview */
.booking-row-new>td {
    background: rgba(253, 230, 138, .35) !important;
}

/* --------------------------------------------------------------------------
   Utility Classes
   -------------------------------------------------------------------------- */
.text-primary-custom {
    color: var(--color-accent) !important;
}

.bg-primary-custom {
    background-color: var(--color-accent) !important;
}

.section-divider {
    height: 1px;
    background: var(--color-border);
    margin: 2rem 0;
}

/* Actions column styling */
.actions-column {
    white-space: nowrap;
}

/* --------------------------------------------------------------------------
   Booking Page
   -------------------------------------------------------------------------- */
.booking-container {
    max-width: var(--max-width);
    margin: 2.5rem auto;
    padding: 0 1.25rem;
}

.booking-header {
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 2rem;
    margin-bottom: 1.5rem;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

.booking-header h1 {
    color: var(--color-text-dark);
    font-weight: 400;
    font-size: 1.7rem;
    margin-bottom: .35rem;
}

.booking-header p {
    color: var(--color-text-light);
    margin: 0;
    font-size: .95rem;
}

.booking-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: 0 2px 16px var(--color-shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--transition-normal);
}

.booking-card:hover {
    box-shadow: 0 4px 20px var(--color-shadow-md);
    transform: translateY(-2px);
}

.booking-card-header {
    background: var(--color-accent);
    color: #fff;
    padding: 1.5rem;
}

.booking-card-header h4 {
    font-weight: 600;
    margin-bottom: .25rem;
}

.booking-card-header p {
    opacity: .85;
    font-size: .95rem;
    margin: 0;
}

.booking-card-body {
    padding: 1.5rem;
    flex: 1;
}

.booking-card-footer {
    padding: 1rem 1.5rem 1.5rem;
}

.booking-section-title {
    color: var(--color-text);
    font-weight: 600;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: .75rem;
    padding-bottom: .5rem;
    border-bottom: 1px solid var(--color-border);
}

.booking-date-item {
    padding: .65rem .9rem;
    background: #f9f9f9;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    margin-bottom: .4rem;
    font-size: .9rem;
}

/* --------------------------------------------------------------------------
   Booking Wizard
   -------------------------------------------------------------------------- */
.wizard-progress {
    padding: 1.25rem 1.5rem;
    margin-bottom: 0;
}

.wizard-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.wizard-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    position: relative;
    min-width: 80px;
}

.wizard-step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f9f9f9;
    border: 2px solid var(--color-border);
    color: var(--color-text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition-normal);
}

.wizard-step.active .wizard-step-number {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: #fff;
    box-shadow: 0 0 0 4px rgba(0, 86, 179, .1);
}

.wizard-step.completed .wizard-step-number {
    background: var(--color-success);
    border-color: var(--color-success);
    color: #fff;
}

.wizard-step-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-text-light);
    transition: var(--transition-normal);
}

.wizard-step.active .wizard-step-label {
    color: var(--color-accent);
    font-weight: 600;
}

.wizard-step.completed .wizard-step-label {
    color: var(--color-success);
    font-weight: 600;
}

.wizard-step-line {
    flex: 1;
    height: 2px;
    background: var(--color-border);
    min-width: 40px;
    max-width: 120px;
    margin: 0 8px;
    margin-bottom: 22px;
    border-radius: 1px;
    transition: var(--transition-normal);
}

.wizard-step-line.completed {
    background: var(--color-success);
}

/* Wizard panes */
.wizard-pane {
    display: none;
}

.wizard-pane.active {
    display: block;
    animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Room selection cards */
.room-select-card {
    display: block;
    cursor: pointer;
    margin: 0;
}

.room-select-card input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.room-select-inner {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 1rem;
    transition: var(--transition-fast);
    background: #fff;
}

.room-select-card:hover .room-select-inner {
    border-color: var(--color-accent);
    box-shadow: 0 2px 8px var(--color-shadow);
}

.room-select-card input:checked~.room-select-inner {
    border-color: var(--color-accent);
    background: rgba(0, 86, 179, .03);
    box-shadow: 0 2px 8px rgba(0, 86, 179, .12);
}

.room-check-indicator {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    flex-shrink: 0;
}

.room-check-indicator i {
    display: none;
    color: #fff;
    font-size: 0.9rem;
}

.room-select-card input:checked~.room-select-inner .room-check-indicator {
    background: var(--color-accent);
    border-color: var(--color-accent);
}

.room-select-card input:checked~.room-select-inner .room-check-indicator i {
    display: block;
}

.room-price {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--color-accent);
}

.room-disabled {
    opacity: 0.4;
    pointer-events: none;
}

/* Room overflow / invalid quantity */
.room-select-card.room-overflow {
    border-color: #dc3545 !important;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, .25) !important;
}

.room-overflow-msg {
    font-weight: 600;
}

/* Booking-mode radio cards (admin retreat modals) */
.booking-mode-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .75rem;
}

.booking-mode-card {
    display: block;
    margin: 0;
    cursor: pointer;
}

.booking-mode-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.booking-mode-inner {
    display: flex;
    flex-direction: column;
    gap: .35rem;
    height: 100%;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: .85rem;
    background: var(--color-bg);
    transition: var(--transition-fast);
}

.booking-mode-card:hover .booking-mode-inner {
    border-color: var(--color-accent);
    box-shadow: 0 2px 8px var(--color-shadow);
}

.booking-mode-card input:checked~.booking-mode-inner {
    border-color: var(--color-accent);
    background: rgba(0, 86, 179, .03);
    box-shadow: 0 2px 8px rgba(0, 86, 179, .12);
}

.booking-mode-card input:focus-visible~.booking-mode-inner {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

.booking-mode-head {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.booking-mode-head i {
    font-size: 1.25rem;
    color: var(--color-accent);
}

.booking-mode-desc {
    font-size: .82rem;
    color: var(--color-text-light);
}

@media (max-width: 575.98px) {
    .booking-mode-cards {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   YMH category chooser, yoga cards, massage slot grid
   ========================================================================== */

.ymh-category-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 6px;
    padding: 1.5rem .75rem;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: border-color .15s, transform .15s, box-shadow .15s;
}

.ymh-category-card:hover:not(:disabled) {
    border-color: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px var(--color-shadow);
}

.ymh-category-card:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.ymh-category-card i {
    font-size: 2rem;
    color: var(--color-accent);
}

.ymh-category-card strong {
    font-size: 1rem;
}

/* Yoga date selection cards */
.yoga-date-card {
    display: block;
    padding: .75rem 1rem;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: border-color .15s, background .15s;
}

.yoga-date-card input[type="radio"],
.yoga-date-card input[type="checkbox"] {
    display: none;
}

.yoga-date-card:hover {
    border-color: var(--color-accent);
}

.yoga-date-card input:checked+.yoga-date-inner,
.yoga-date-card:has(input:checked) {
    border-color: var(--color-accent);
    background: rgba(0, 86, 179, .03);
}

/* ==================== Yoga weekly plan ==================== */
.yoga-week-plan {
    margin-top: .5rem;
}

/* Smooth week-to-week navigation: while a new week is being fetched, dim the
   still-visible previous week instead of blanking the container (which used
   to cause a jarring flash of the loading spinner between two renders). */
.yoga-week-plan.yoga-week-loading {
    opacity: .45;
    transition: opacity var(--transition-fast);
    pointer-events: none;
}

.yoga-week-plan .yoga-week-grid {
    transition: opacity var(--transition-fast);
}

/* On wider screens the yoga week view breaks out of the narrow reading
   column and centres itself, so the day columns get more room (like a
   classic weekly class schedule). */
@media (min-width: 992px) {

    #ymhYoga>.content-card {
        width: min(94vw, 1180px);
        position: relative;
        left: 50%;
        transform: translateX(-50%);
    }
}

.yoga-week-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    margin-bottom: .75rem;
    flex-wrap: wrap;
}

.yoga-week-title {
    font-weight: 700;
    font-size: .95rem;
    color: var(--color-text);
    text-align: center;
    flex: 1 1 auto;
}

.yoga-week-header-actions {
    display: flex;
    align-items: center;
    gap: .4rem;
}

.yoga-week-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: .4rem;
}

.yoga-week-col {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.yoga-week-col-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: .25rem 0;
    border-bottom: 2px solid var(--color-border);
    margin-bottom: .4rem;
}

.yoga-week-col-today .yoga-week-col-head {
    border-bottom-color: var(--color-accent);
}

.yoga-week-dow {
    font-weight: 600;
    font-size: .65rem;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: .04em;
}

.yoga-week-date {
    font-weight: 700;
    font-size: .95rem;
    color: var(--color-text);
}

.yoga-week-col-today .yoga-week-date {
    color: var(--color-accent);
}

.yoga-week-col-body {
    display: flex;
    flex-direction: column;
    gap: .35rem;
}

.yoga-week-col-past {
    opacity: .5;
}

.yoga-week-empty {
    text-align: center;
    font-size: .65rem;
    color: var(--color-text-light);
    padding: .5rem .15rem;
    border: 1px dashed var(--color-border);
    border-radius: var(--radius-sm);
}

/* Week course card — filled with the admin-selected course colour */
.yoga-week-card {
    --course-color: var(--color-accent);
    padding: 0;
    position: relative;
    outline: none;
    border: 1px solid var(--course-color);
    background: var(--course-color);
    color: #fff;
    transition: transform .12s, box-shadow .12s, filter .12s;
}

.yoga-week-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--color-shadow-md);
    filter: brightness(1.06);
}

.yoga-week-card-inner {
    display: flex;
    flex-direction: column;
    gap: .1rem;
    padding: .5rem .55rem;
}

.yoga-week-card .yoga-week-check {
    position: absolute;
    top: .35rem;
    right: .35rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    color: var(--course-color);
    display: none;
    align-items: center;
    justify-content: center;
    font-size: .68rem;
    font-weight: 700;
}

/* Selected state: keep the fill, add a clear white ring + check */
.yoga-week-card.selected,
.yoga-week-card:has(input:checked) {
    background: var(--course-color);
    filter: brightness(.92);
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--course-color);
}

.yoga-week-card.selected .yoga-week-check {
    display: flex;
}

.yoga-week-card:focus-visible {
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--course-color);
}

.yoga-week-topline {
    font-weight: 700;
    font-size: .65rem;
    letter-spacing: .01em;
    opacity: .9;
}

.yoga-week-name {
    font-weight: 700;
    font-size: .75rem;
    line-height: 1.25;
    margin-top: .15rem;
}

.yoga-week-price {
    font-weight: 600;
    font-size: .68rem;
    margin-top: .1rem;
    opacity: .92;
}

.yoga-week-seats {
    display: inline-block;
    align-self: flex-start;
    margin-top: .2rem;
    padding: .05rem .3rem;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, .25);
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .01em;
}

.yoga-week-desc {
    font-size: .65rem;
    margin-top: .1rem;
}

.yoga-week-desc summary {
    cursor: pointer;
    color: #fff;
    text-decoration: underline;
    font-size: .63rem;
}

.yoga-week-desc-body {
    margin-top: .2rem;
    color: rgba(255, 255, 255, .9);
    font-size: .63rem;
}

/* Person selector: revealed only once the card is selected */
.yoga-week-person {
    display: none;
    align-items: center;
    gap: .35rem;
    margin-top: .4rem;
    padding-top: .4rem;
    border-top: 1px solid rgba(255, 255, 255, .3);
}

.yoga-week-card.selected .yoga-week-person {
    display: flex;
}

.yoga-week-person .form-label {
    margin: 0;
    color: #fff;
    font-size: .65rem;
    font-weight: 600;
}

.yoga-week-person .yoga-person-count {
    width: 48px;
    max-width: 48px;
    padding: .1rem .25rem;
    font-size: .72rem;
    text-align: center;
}

/* Mobile: vertical agenda, no horizontal calendar scrolling */
@media (max-width: 767.98px) {
    .yoga-week-header {
        align-items: stretch;
        gap: .5rem;
    }

    .yoga-week-title {
        order: -1;
        flex: 1 0 100%;
        text-align: left;
        font-size: 1rem;
    }

    .yoga-week-header-actions {
        margin-left: auto;
    }

    .yoga-week-grid {
        display: flex;
        flex-direction: column;
        gap: .75rem;
        overflow-x: visible;
        max-width: 100%;
        padding-bottom: 0;
    }

    .yoga-week-col {
        min-width: 0;
        border: 1px solid var(--color-border);
        border-radius: var(--radius-sm);
        background: #fff;
        overflow: hidden;
    }

    .yoga-week-grid:not(.yoga-week-grid-empty) .yoga-week-col:not(:has(.yoga-week-card)) {
        display: none;
    }

    .yoga-week-grid.yoga-week-grid-empty .yoga-week-col {
        display: none;
    }

    .yoga-week-grid.yoga-week-grid-empty::after {
        content: "Keine Kurse in dieser Woche";
        display: block;
        padding: .75rem;
        border: 1px dashed var(--color-border);
        border-radius: var(--radius-sm);
        color: var(--color-text-light);
        font-size: .85rem;
        text-align: center;
    }

    .yoga-week-col-head {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: .55rem .65rem;
        border-bottom: 1px solid var(--color-border);
        margin-bottom: 0;
        background: #f7f7f7;
    }

    .yoga-week-col-today .yoga-week-col-head {
        border-bottom-color: var(--color-border);
        border-left: 3px solid var(--color-accent);
        background: rgba(0, 86, 179, .06);
        padding-left: .55rem;
    }

    .yoga-week-dow {
        font-size: .74rem;
        letter-spacing: .02em;
    }

    .yoga-week-date {
        font-size: .9rem;
    }

    .yoga-week-col-body {
        gap: .5rem;
        padding: .55rem;
    }

    .yoga-week-card {
        width: 100%;
    }

    .yoga-week-card:hover {
        transform: none;
    }

    .yoga-week-card-inner {
        gap: .16rem;
        padding: .7rem .75rem;
    }

    .yoga-week-topline {
        font-size: .72rem;
    }

    .yoga-week-name {
        font-size: .9rem;
        overflow-wrap: anywhere;
    }

    .yoga-week-price {
        font-size: .76rem;
    }

    .yoga-week-desc,
    .yoga-week-desc summary,
    .yoga-week-desc-body {
        font-size: .72rem;
    }

    .yoga-week-person {
        justify-content: space-between;
    }

    .yoga-week-person .yoga-person-count {
        width: 64px;
        max-width: 64px;
        min-height: 32px;
    }
}

/* Massage option cards (duration + price) */
.massage-option-card {
    display: block;
    padding: .75rem 1rem;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-align: center;
    transition: border-color .15s, background .15s;
}

.massage-option-card input {
    display: none;
}

.massage-option-card:hover {
    border-color: var(--color-accent);
}

.massage-option-card:has(input:checked) {
    border-color: var(--color-accent);
    background: rgba(0, 86, 179, .03);
}

/* Massage slot grid */
.slot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: .5rem;
}

.slot-btn {
    padding: .5rem .4rem;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: .9rem;
    cursor: pointer;
    transition: border-color .12s, background .12s, color .12s;
}

.slot-btn:hover:not(:disabled) {
    border-color: var(--color-accent);
}

.slot-btn.selected {
    background: var(--color-accent);
    color: #fff;
    border-color: var(--color-accent);
}

.slot-btn.slot-booked,
.slot-btn:disabled {
    background: #f4f4f4;
    color: #aaa;
    cursor: not-allowed;
    text-decoration: line-through;
}

/* Selection bar */
.selection-bar {
    position: sticky;
    bottom: 1.25rem;
    z-index: 100;
    border: 1px solid var(--color-accent) !important;
    background: var(--color-bg);
    animation: fadeInUp 0.2s ease;
}

/* Overview */
.overview-retreat-name h6 {
    margin-bottom: 6px;
}

.overview-total-row td {
    border-top: 2px solid var(--color-border);
    font-size: 1.1rem;
    padding-top: .75rem;
}

/* Payment */
.payment-summary {
    background: var(--color-accent);
    color: #fff;
    border-radius: var(--radius-sm);
    padding: 1.25rem 1.5rem;
}

.payment-total {
    font-size: 1.5rem;
    font-weight: 700;
}

.payment-placeholder {
    border: 2px dashed var(--color-border);
    border-radius: var(--radius-sm);
    padding: 1rem;
}

/* Confirmation */
.confirmation-icon {
    font-size: 4rem;
    color: var(--color-success);
    line-height: 1;
}

.confirmation-summary {
    display: inline-block;
}

/* Payment method cards */
.payment-method-card {
    display: block;
    cursor: pointer;
    margin: 0;
}

.payment-method-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.payment-method-inner {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    padding: 1.25rem 1rem;
    text-align: center;
    transition: var(--transition-fast);
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.payment-method-inner i {
    font-size: 1.8rem;
    color: var(--color-text-light);
    transition: var(--transition-fast);
}

.payment-method-inner strong {
    font-size: 0.95rem;
}

.payment-method-inner small {
    font-size: 0.8rem;
}

.payment-method-card:hover .payment-method-inner {
    border-color: var(--color-accent);
    box-shadow: 0 2px 8px var(--color-shadow);
}

.payment-method-card input:checked~.payment-method-inner {
    border-color: var(--color-accent);
    background: rgba(0, 86, 179, .03);
    box-shadow: 0 2px 8px rgba(0, 86, 179, .12);
}

.payment-method-card input:checked~.payment-method-inner i {
    color: var(--color-accent);
}

/* --------------------------------------------------------------------------
   Yoga-Karten (unit cards) — public product cards + confirmation code block
   -------------------------------------------------------------------------- */
.yoga-card-product {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    flex: 1 1 auto;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-card);
    padding: 1.25rem;
    transition: var(--transition-fast);
}

.yoga-card-product:hover {
    box-shadow: var(--shadow-hover);
}

.yoga-card-product-name {
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--color-text);
    min-height: 1.3em;
}

/* Reserve the same vertical space for every card's description — whether
   it is short, long, or entirely empty — so everything below (meta, Gültig
   für, price, button) starts at the same height across a row of cards.
   Longer text is clamped to 2 lines rather than growing the card further. */
.yoga-card-product-desc {
    color: var(--color-text-light);
    font-size: 0.85rem;
    line-height: 1.3;
    margin: 0;
    min-height: calc(1.3em * 2);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.yoga-card-product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.8rem;
    color: var(--color-text-light);
    min-height: 1.3em;
}

.yoga-card-product-scope {
    font-size: 0.85rem;
    color: var(--color-text);
    min-height: 1.3em;
}

/* Price + button always form a single unit pinned to the bottom of the
   card, so both line up across a row regardless of how much text sits
   above them. */
.yoga-card-product-footer {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-top: 4px;
}

.yoga-card-product-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--color-accent);
}

.yoga-card-code-display {
    display: inline-block;
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: 3px;
    background: var(--color-bg);
    border: 1px dashed var(--color-accent);
    border-radius: var(--radius-sm);
    padding: 10px 18px;
    color: var(--color-accent);
    margin: 10px 0;
}

.yoga-card-confirmation {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-card);
    padding: 1.25rem;
    text-align: center;
}

/* --------------------------------------------------------------------------
   Responsive Adjustments
   -------------------------------------------------------------------------- */
@media (max-width: 1000px) {

    .booking-container,
    .admin-container {
        padding: 0 1rem;
    }
}

@media (max-width: 768px) {

    .booking-container,
    .admin-container {
        margin: 1.5rem auto;
        padding: 0 1rem;
    }

    .booking-header,
    .admin-header,
    .content-card {
        padding: 1.25rem;
    }

    .btn-add {
        padding: .5rem 1rem;
        font-size: .9rem;
    }

    .table-responsive {
        font-size: 14px;
    }
}

@media (max-width: 576px) {

    .admin-header .d-flex,
    .booking-header .d-flex {
        flex-direction: column;
        gap: 1rem;
    }

    .nav-tabs-admin .nav-link {
        padding: .5rem .65rem;
        font-size: .8rem;
    }

    .wizard-progress {
        padding: 1rem 0.75rem;
    }

    .wizard-step {
        min-width: 0;
        flex: 1 1 0;
        overflow: hidden;
    }

    .wizard-step-number {
        width: 32px;
        height: 32px;
        font-size: 0.85rem;
    }

    .wizard-step-label {
        font-size: 0.7rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }

    .wizard-step-line {
        flex: 0 0 12px;
        min-width: 8px;
        max-width: 12px;
        margin: 0 2px;
        margin-bottom: 22px;
    }

    .selection-bar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        border-radius: 0;
        margin: 0;
    }

    .content-card {
        padding: 1rem;
    }
}

@media (max-width: 331px) {
    .wizard-step:not(.active) {
        display: none;
    }

    .wizard-step-line {
        display: none;
    }
}

@media (max-width: 700px) {

    header,
    footer {
        padding: 1.5rem 0;
    }

    .header-content,
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: .5rem;
        padding: 0 1rem;
    }

    nav ul {
        gap: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    nav ul li a {
        font-size: .75rem;
    }

    .main-container {
        padding: 2rem 1rem;
        min-height: 30vh;
    }

    .footer-content {
        align-items: center;
    }
}

/* ==========================================================================
   Housing Calendar Picker
   ========================================================================== */

.housing-calendar {
    user-select: none;
}

.housing-calendar .cal-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: .75rem;
}

.housing-calendar .cal-nav button {
    background: none;
    border: 1px solid var(--color-border);
    border-radius: 4px;
    width: 32px;
    height: 32px;
    cursor: pointer;
    font-size: 1rem;
    color: var(--color-text);
    transition: background var(--transition-fast);
}

.housing-calendar .cal-nav button:hover {
    background: var(--color-border);
}

.housing-calendar .cal-nav .cal-month-label {
    font-weight: 600;
    font-size: .9rem;
    text-align: center;
    flex: 1;
}

.housing-calendar .cal-months {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 600px) {
    .housing-calendar .cal-months {
        grid-template-columns: 1fr;
    }
}

.housing-calendar .cal-month-title {
    font-weight: 600;
    font-size: .85rem;
    text-align: center;
    margin-bottom: .5rem;
    color: var(--color-text);
}

.housing-calendar .cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.housing-calendar .cal-weekday {
    text-align: center;
    font-size: .7rem;
    font-weight: 600;
    color: var(--color-text-light);
    padding: 4px 0;
}

.housing-calendar .cal-day {
    text-align: center;
    padding: 6px 2px;
    font-size: .8rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background var(--transition-fast), color var(--transition-fast);
    position: relative;
}

.housing-calendar .cal-day:hover:not(.cal-blocked):not(.cal-past):not(.cal-empty):not(.cal-out-of-window) {
    background: #e8f0fb;
    color: var(--color-accent);
}

.housing-calendar .cal-day.cal-empty {
    cursor: default;
}

.housing-calendar .cal-day.cal-past {
    color: #ccc;
    cursor: not-allowed;
}

.housing-calendar .cal-day.cal-out-of-window {
    color: #d0d0d0;
    cursor: not-allowed;
    background: #fafafa;
}

.housing-calendar .cal-day.cal-blocked {
    color: #ccc;
    cursor: not-allowed;
    text-decoration: line-through;
    background: #f8f8f8;
}

.housing-calendar .cal-day.cal-today {
    font-weight: 700;
    border: 1px solid var(--color-accent);
}

.housing-calendar .cal-day.cal-range-start,
.housing-calendar .cal-day.cal-range-end {
    background: var(--color-accent);
    color: #fff;
    font-weight: 600;
    border-radius: 4px;
}

.housing-calendar .cal-day.cal-in-range {
    background: #d0e4f7;
    border-radius: 0;
    color: var(--color-text);
}

.housing-calendar .cal-day.cal-range-start {
    border-radius: 4px 0 0 4px;
}

.housing-calendar .cal-day.cal-range-end {
    border-radius: 0 4px 4px 0;
}

.housing-calendar .cal-day.cal-range-start.cal-range-end {
    border-radius: 4px;
}

.housing-calendar .cal-loading {
    text-align: center;
    color: var(--color-text-light);
    padding: 1.5rem 0;
    font-size: .85rem;
}

/* ==================== DayEventsCalendar ==================== */
.day-events-calendar {
    background: #fff;
    border-radius: .5rem;
    padding: 1rem;
}

.day-events-calendar .de-loading {
    text-align: center;
    padding: 2rem 0;
    color: var(--color-text-light);
}

.day-events-calendar .de-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: .75rem;
    gap: .5rem;
}

.day-events-calendar .de-range-label {
    font-weight: 600;
}

.day-events-calendar .de-months {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}

.day-events-calendar .de-month-title {
    text-align: center;
    font-weight: 600;
    margin-bottom: .5rem;
    font-size: .95rem;
}

.day-events-calendar .de-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.day-events-calendar .de-weekday {
    text-align: center;
    font-size: .75rem;
    color: var(--color-text-light);
    padding: .25rem 0;
    font-weight: 600;
}

.day-events-calendar .de-day {
    position: relative;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: .35rem;
    font-size: .85rem;
    cursor: default;
    user-select: none;
}

.day-events-calendar .de-day .de-num {
    line-height: 1;
}

.day-events-calendar .de-day.de-empty {
    background: transparent;
}

.day-events-calendar .de-day.de-past,
.day-events-calendar .de-day.de-no-events {
    color: #c5c5c5;
    background: transparent;
}

.day-events-calendar .de-day.de-disabled {
    cursor: not-allowed;
}

.day-events-calendar .de-day.de-today {
    outline: 1px solid var(--color-primary, #6c757d);
}

.day-events-calendar .de-day.de-has-events {
    background: #e7f5ff;
    color: #1971c2;
    cursor: pointer;
    font-weight: 600;
}

.day-events-calendar .de-day.de-has-events:hover {
    background: #d0ebff;
}

.day-events-calendar .de-day.de-selected {
    background: var(--color-primary, #1971c2);
    color: #fff;
}

.day-events-calendar .de-badge {
    position: absolute;
    top: 2px;
    right: 4px;
    background: #fa5252;
    color: #fff;
    border-radius: 999px;
    font-size: .65rem;
    padding: 0 .35rem;
    line-height: 1.2;
    min-width: 1.1rem;
    text-align: center;
}

.day-events-calendar .de-dot {
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 5px;
    background: #fa5252;
    border-radius: 50%;
}

/* ==================== Powered-by MihalTEC Badge ==================== */
.powered-by-badge {
    position: fixed;
    bottom: 16px;
    right: 16px;
    z-index: 1050;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .4rem .65rem;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid var(--bs-border-color, #e0e0e0);
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    font-size: .75rem;
    color: #555;
    text-decoration: none;
    transition: box-shadow .15s ease, transform .15s ease;
}

.powered-by-badge:hover {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
    transform: translateY(-1px);
    color: #222;
    text-decoration: none;
}

.powered-by-badge img {
    height: 18px;
    width: auto;
    display: block;
}

.powered-by-badge .powered-by-label {
    font-weight: 500;
    white-space: nowrap;
}

@media (max-width: 480px) {
    .powered-by-badge .powered-by-label {
        display: none;
    }

    .powered-by-badge {
        padding: .35rem;
    }
}

/* Inline placement (used on booking page – sits below the booking container) */
.powered-by-wrap {
    display: flex;
    justify-content: flex-end;
    padding: .75rem 0 1.25rem;
}

.powered-by-badge--inline {
    position: static;
    box-shadow: none;
}

.powered-by-badge--inline:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Inline placement (used on booking page – sits below the booking container) */
.powered-by-wrap {
    display: flex;
    justify-content: flex-end;
    padding: .75rem 0 1.25rem;
}

.powered-by-badge--inline {
    position: static;
    box-shadow: none;
}

.powered-by-badge--inline:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}