/* Stuttgart Room Booking – Styles */
* { box-sizing: border-box; }
body { margin: 0; background: #fff; }

/* ── Page wrap – 5% gutter, left aligned ── */
.srb-page-wrap {
    font-family: Arial, sans-serif;
    font-size: 25px;
    font-weight: 400;
    color: #000;
    padding: 40px 5% 80px;
}

/* ── Back link ── */
.srb-back {
    display: inline-block;
    margin-bottom: 20px;
    color: #000;
    text-decoration: none;
    font-size: 25px;
    font-weight: 400;
    font-family: Arial, sans-serif;
    background: #e8e8e8;
    border-radius: 999px;
    padding: 3px 16px;
    transition: background 0.2s ease, color 0.2s ease;
    transform-origin: center center;
}
@media (hover: hover) {
    .srb-back:hover { background: #ffff00; color: #0000ff; }
}
.srb-back.srb-stretch {
    animation: srb-elastic 0.6s cubic-bezier(0.36,0.07,0.19,0.97) infinite;
}

/* ── Title / sub ── */
.srb-page-title {
    font-size: 25px;
    font-weight: 400;
    font-family: Arial, sans-serif;
    color: #000;
    margin: 0 0 4px;
}
.srb-page-sub {
    font-size: 25px;
    font-weight: 400;
    font-family: Arial, sans-serif;
    color: #000;
    margin: 0 0 24px;
}

/* ── Accordion: matches Lay theme Tuesday style ── */
.srb-gender-section { margin-bottom: 0; }

.srb-gender-title {
    font-family: Arial, sans-serif;
    font-size: 25px;
    font-weight: 400;
    color: #000;
    margin: 0;
    padding: 6px 0;
    border-bottom: 1px solid #dee2e6;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    user-select: none;
}
/* Title text centered between chevron and right edge */
.srb-gender-title span {
    flex: 1;
}
/* Chevron — same as Lay theme ∨ */
.srb-gender-title::before {
    content: '';
    display: inline-block;
    width: 25px;
    height: 25px;
    flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='25' height='25' viewBox='0 0 25 25' fill='none' stroke='currentColor' stroke-width='1' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='18.75%2C9.375 12.5%2C15.625 6.25%2C9.375'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 25px 25px;
    transition: transform 0.25s ease;
}
.srb-gender-section.srb-collapsed .srb-gender-title::before {
    transform: rotate(-90deg);
}

/* ── Accordion content ── */
.srb-rooms-grid {
    overflow: visible;
    max-height: 9999px;
    opacity: 1;
    transition: max-height 0.35s ease, opacity 0.25s ease;
    padding-left: 0;
}
.srb-gender-section.srb-collapsed .srb-rooms-grid {
    max-height: 0;
    opacity: 0;
    pointer-events: none;
    overflow: hidden;
}

/* ── Room card ── */
.srb-room {
    border-bottom: 1px solid #dee2e6;
    padding: 6px 0;
}
.srb-room-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 4px;
}
.srb-room-name {
    font-family: Arial, sans-serif;
    font-size: 25px;
    font-weight: 400;
    color: #000;
}
.srb-room-count {
    font-family: Arial, sans-serif;
    font-size: 25px;
    font-weight: 400;
    color: #000;
}

/* ── Slots ── */
.srb-slots { display: flex; flex-direction: column; gap: 2px; padding-left: 10px; }
.srb-slot {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 1px 0;
    overflow: visible;
    /* Give button room to stretch right without clipping */
    padding-right: 0;
    margin-right: -5%;
    padding-right: 5%;
}
.srb-slot-num {
    font-family: Arial, sans-serif;
    font-size: 25px;
    font-weight: 400;
    color: #000;
    min-width: 52px;
    flex-shrink: 0;
}
.srb-slot-name {
    font-family: Arial, sans-serif;
    font-size: 25px;
    font-weight: 400;
    color: #000;
    flex: 1;
}

/* ── Input ── */
.srb-book-form { display: flex; flex: 1; gap: 8px; align-items: center; min-width: 0; }
.srb-input {
    flex: 1;
    min-width: 0;
    border: none;
    padding: 2px 0;
    font-family: Arial, sans-serif;
    font-size: 25px;
    font-weight: 400;
    color: #000;
    outline: none;
    background: transparent;
    text-align: left;
}
.srb-input::placeholder { color: #bbb; }

/* ── Book button — grey pill ── */
.srb-btn-book {
    background: #e8e8e8;
    color: #000;
    border: none;
    border-radius: 999px;
    padding: 3px 16px;
    font-family: Arial, sans-serif;
    font-size: 25px;
    font-weight: 400;
    cursor: pointer;
    white-space: nowrap;
    display: inline-block;
    transform-origin: center center;
    transition: background 0.2s ease, color 0.2s ease;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}
.srb-btn-book:disabled { opacity: .3; cursor: not-allowed; }

/* Stretch animation on hover — desktop only */
.srb-btn-book.srb-stretch {
    animation: srb-elastic 0.6s cubic-bezier(0.36,0.07,0.19,0.97) infinite;
}
@keyframes srb-elastic {
    0%   { transform: scaleX(1);    }
    30%  { transform: scaleX(1.3);  }
    60%  { transform: scaleX(0.92); }
    80%  { transform: scaleX(1.08); }
    100% { transform: scaleX(1);    }
}
/* Yellow + blue on hover — desktop only */
@media (hover: hover) {
    .srb-btn-book:hover { background: #ffff00; color: #0000ff; }
}

/* ── Cancel button ── */
.srb-btn-cancel {
    background: #e8e8e8;
    border: none;
    color: #000;
    font-size: 25px;
    font-weight: 400;
    cursor: pointer;
    padding: 3px 12px;
    border-radius: 999px;
    transition: background 0.2s ease, color 0.2s ease;
    margin-left: auto;
    font-family: Arial, sans-serif;
    display: inline-block;
    transform-origin: center center;
    flex-shrink: 0;
}
@media (hover: hover) {
    .srb-btn-cancel:hover { background: #ffff00; color: #0000ff; }
}

/* ── Toast ── */
.srb-toast {
    position: fixed; bottom: 24px; left: 50%;
    transform: translateX(-50%) translateY(16px);
    background: #e8e8e8; color: #000;
    padding: 10px 24px; border-radius: 999px;
    font-family: Arial, sans-serif; font-size: 25px; font-weight: 400;
    pointer-events: none; opacity: 0;
    transition: opacity .25s, transform .25s;
    z-index: 9999; max-width: 90vw; text-align: center;
}
.srb-toast.srb-toast--show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── Slide-up animation ── */
.srb-animate { opacity: 0; transform: translateY(40px); }
.srb-animate.srb-in { animation: srb-slide-up 0.5s cubic-bezier(0.22,1,0.36,1) forwards; }
@keyframes srb-slide-up {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Mobile: 16px, no hover effects ── */
@media (max-width: 768px) {
    .srb-toast { font-size: 16px !important; }
    .srb-page-wrap,
    .srb-back, .srb-page-title, .srb-page-sub,
    .srb-gender-title, .srb-room-name, .srb-room-count,
    .srb-slot-num, .srb-slot-name, .srb-input,
    .srb-btn-book, .srb-btn-cancel { font-size: 16px !important; }
    .srb-btn-book {
        background: #e8e8e8 !important;
        color: #000 !important;
        animation: none !important;
        transform: scaleX(1) !important;
    }
}

/* Cancel + Back stretch */
.srb-btn-cancel.srb-stretch {
    animation: srb-elastic 0.6s cubic-bezier(0.36,0.07,0.19,0.97) infinite;
}
