

/* =========================================================
   MODALS
========================================================= */

.modal-overlay,
.qr-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(54, 32, 22, 0.42);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.24s ease, visibility 0.24s ease;
}

.modal-overlay.open,
.qr-modal.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.modal-card,
.qr-card {
    position: relative;
    z-index: 100000;
    transform: translateY(14px) scale(0.96);
    opacity: 0;
    transition:
        transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
        opacity 0.22s ease;
}

.modal-overlay.open .modal-card,
.qr-modal.open .qr-card {
    transform: translateY(0) scale(1);
    opacity: 1;
}

#owner-add-booking-modal,
#paid-modal {
    z-index: 99999;
}

#owner-add-booking-modal .modal-card {
    width: min(96vw, 980px);
    height: auto;
    max-height: 92vh;
    overflow-y: auto;
    padding: clamp(20px, 4vw, 36px);
    text-align: center;
}

#owner-add-booking-modal .modal-card h2 {
    width: 100%;
    padding: 0 44px;
    text-align: center;
    line-height: 1;
}

#owner-selected-slot-text {
    display: block;
    width: 100%;
    margin: 0.35rem auto 1.5rem;
    padding: 0 44px;
    text-align: center;
    font-weight: 800;
    line-height: 1.25;
    color: #7a4f3f;
}

#owner-add-booking-modal form {
    text-align: left;
}

#owner-add-booking-modal button[type="submit"] {
    background: #3a2b27;
    color: #fff;
    margin-top: 10px;
}

#owner-add-booking-modal button[type="submit"]:hover {
    background: #5a4037;
}

.paid-modal-card,
.paid-modal-card h2,
.paid-modal-card p,
.paid-modal-card label {
    text-align: center;
}

.paid-modal-card input {
    text-align: center;
}

.paid-modal-card #save-paid-button,
#save-paid-button {
    width: auto;
    min-width: 140px;
    height: 44px;
    padding: 0 28px;
    border: 0;
    border-radius: 999px;
    background: #4f7d5a;
    color: white;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 16px auto 0;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);
}

.paid-modal-card #save-paid-button:hover {
    transform: translateY(-1px);
}


/* =========================================================
   HOLIDAY CONTROLS + HOLIDAY MODAL
========================================================= */

.add-holiday-from-day,
.delete-holiday-from-day {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 22px;
    height: 22px;
    border: 0;
    border-radius: 999px;
    color: #7a3f22;
    font-size: 1rem;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
    opacity: 0;
    transform: scale(0.88);
    transition: 0.2s ease;
}

.add-holiday-from-day {
    background: rgba(138, 75, 42, 0.12);
}

.delete-holiday-from-day {
    width: 24px;
    height: 24px;
    background: #8a2f20;
    color: #ffffff;
}

.owner-day-header:hover .add-holiday-from-day,
.owner-day-header:focus-within .add-holiday-from-day,
.owner-day-header:hover .delete-holiday-from-day,
.owner-day-header:focus-within .delete-holiday-from-day {
    opacity: 1;
    transform: scale(1);
}

.add-holiday-from-day:hover {
    background: #8a4b2a;
    color: #ffffff;
}

.delete-holiday-from-day:hover {
    background: #5f1f16;
}

.delete-owner-holiday-form {
    position: absolute;
    top: 6px;
    right: 6px;
    margin: 0;
    z-index: 8;
}

.view-owner-holidays-btn,
.owner-holiday-modal-card button[type="submit"] {
    border: 0;
    border-radius: 999px;
    background: #8a4b2a;
    color: #ffffff;
    padding: 9px 14px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(80, 42, 22, 0.12);
}

.view-owner-holidays-btn:hover {
    background: #6f3a20;
}

.owner-holiday-modal-card {
    max-width: 460px;
}

.owner-holiday-modal-card input,
.owner-holiday-modal-card textarea {
    width: 100%;
}

.owner-holiday-modal-card button[type="submit"] {
    padding: 10px 16px;
}

.owner-holiday-modal-card input[readonly] {
    background: #f1e6dd;
    color: #7a3f22;
    cursor: not-allowed;
}

#owner-holiday-selected-text {
    text-align: center;
    font-weight: 800;
    color: #7a3f22;
}

.holiday-modal-list {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid rgba(138, 75, 42, 0.2);
}

.holiday-modal-list.standalone {
    margin-top: 8px;
    padding-top: 0;
    border-top: 0;
    max-height: 55vh;
    overflow-y: auto;
    padding-right: 6px;
}

.holiday-modal-list h3 {
    margin: 0 0 10px;
    color: #7a3f22;
    font-size: 1rem;
}

.holiday-modal-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-top: 1px solid rgba(138, 75, 42, 0.12);
}

.holiday-modal-item:first-of-type {
    border-top: 0;
}

.holiday-modal-item strong,
.holiday-modal-item span {
    display: block;
}

.holiday-modal-item span {
    font-size: 0.82rem;
    color: #7a3f22;
}

.holiday-modal-item button {
    border: 0;
    border-radius: 999px;
    background: #5f4c3e;
    color: #ffffff;
    padding: 7px 11px;
    font-size: 0.78rem;
    font-weight: 800;
    cursor: pointer;
}