
/* =========================================================
   RESERVAS - REDISEÑO
   Archivo separado para la vista userpanel.reservations
========================================================= */

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

.ah-reservations-page,
.ah-reservations-page * {
    box-sizing: border-box;
}

.ah-reservations-page {
    min-height: 100vh;
    padding: 58px 24px 70px;
}

.ah-reservations-shell {
    width: min(1420px, 100%);
    margin: 0 auto;
}

/* =============================
   TÍTULO
============================= */

.ah-reservations-title {
    margin-bottom: 54px;
}

.ah-reservations-title h1 {
    margin: 0;
    font-size: 40px;
    line-height: 0.95;
    font-weight: 500;
    color: #000;
    letter-spacing: 1px;
}

/* =============================
   PANEL GENERAL
============================= */

.ah-reservations-panel {
    background: #fff;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

.ah-reservations-panel__head {
    margin-bottom: 26px;
}

.ah-reservations-panel__head h2 {
    margin: 0 0 18px;
    font-size: 28px;
    font-weight: 900;
    color: #000;
}

/* =============================
   FILTROS NUEVOS AISLADOS
   No usan clases del template ni chosen
============================= */

.ah-reservations-panel__head {
    margin-bottom: 28px;
    background: #fff;
    padding: 0 0 4px;
    position: relative;
    z-index: 2;
}

.ah-reservations-panel__head h2 {
    margin: 0 0 20px;
    font-size: 30px;
    font-weight: 900;
    color: #000;
}

.ah-resv-filterbar {
    width: 100%;
    min-height: 86px;
    background: #fff;
    padding: 18px 22px;
    margin: 0;

    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;

    overflow: visible;
    position: relative;
    z-index: 20;
}

.ah-resv-filter {
    position: relative;
    height: 56px;
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    min-width: 0;
}

.ah-resv-filter--search {
    width: 250px;
}

.ah-resv-filter--select {
    width: 250px;
}

.ah-resv-filter--date {
    width: 250px;
    padding: 0 20px;
    border: 1px solid #e2e2e2;
    border-radius: 999px;
    background: #fff;
    color: #4a4a4a;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    justify-content: space-between;
    user-select: none;
}

.ah-resv-filter--date i {
    color: #f71942;
    font-size: 14px;
}

.ah-resv-filter input,
.ah-resv-filter select {
    width: 100%;
    height: 55px;
    border: 1px solid #e1e1e1;
    outline: none;
    font-size: 15px;
    font-weight: 700;
    color: #555;
    background: #fff;
    margin-top: 15px;
}

.ah-resv-filter input {
    padding: 0 48px 0 18px;
}

.ah-resv-filter select {
    appearance: none;
    -webkit-appearance: none;
    padding: 0 48px 0 20px;
    background: #fff;
    border-color: transparent;
    cursor: pointer;
    border: 1px solid #e1e1e1;
}

.ah-resv-filter input:focus,
.ah-resv-filter select:focus,
.ah-resv-filter--date:hover {
    border-color: rgba(247, 25, 66, .35);
    box-shadow: 0 10px 22px rgba(247, 25, 66, .10);
}

.ah-resv-filter--search button {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    color: #f71942;
    font-size: 17px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.ah-resv-select-icon {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 14px;
    pointer-events: none;
}

.ah-resv-clear-ranges {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    border: none;
    background: #f71942;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(247, 25, 66, .25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ah-resv-autocomplete,
.ah-resv-filter .autocomplete-dropdown {
    position: absolute;
    z-index: 9999;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 16px 30px rgba(0, 0, 0, .14);
    overflow: hidden;
    display: none;
}

.autocomplete-item {
    padding: 11px 15px;
    font-size: 13px;
    font-weight: 700;
    color: #333;
    cursor: pointer;
}

.autocomplete-item:hover,
.autocomplete-item.no-results {
    background: #f6f6f6;
}

/* =============================
   CALENDARIO DEL FILTRO
   Centrado y sin tomar estilos de otras vistas
============================= */

.daterangepicker.ah-reservations-date-picker {
    z-index: 999999 !important;
    position: absolute !important;
    left: 50% !important;
    right: auto !important;
    width: min(760px, calc(100vw - 32px)) !important;
    max-width: calc(100vw - 32px) !important;
    min-width: 0 !important;
    transform: translateX(-50%) !important;
    border: none !important;
    border-radius: 18px !important;
    padding: 0 !important;
    overflow: hidden !important;
    box-shadow: 0 18px 45px rgba(0, 0, 0, .18) !important;
    background: #fff !important;
}

.daterangepicker.ah-reservations-date-picker.opensleft::before,
.daterangepicker.ah-reservations-date-picker.opensleft::after,
.daterangepicker.ah-reservations-date-picker.opensright::before,
.daterangepicker.ah-reservations-date-picker.opensright::after,
.daterangepicker.ah-reservations-date-picker.openscenter::before,
.daterangepicker.ah-reservations-date-picker.openscenter::after {
    display: none !important;
}

.daterangepicker.ah-reservations-date-picker .ranges {
    width: 170px !important;
    margin: 0 !important;
    padding: 18px 0 !important;
    background: #fff !important;
    border-right: 1px solid #ededed !important;
}

.daterangepicker.ah-reservations-date-picker .ranges ul {
    width: 100% !important;
}

.daterangepicker.ah-reservations-date-picker .ranges li {
    padding: 9px 16px !important;
    color: #555 !important;
    font-size: 14px !important;
    border-radius: 0 !important;
    font-weight: 600 !important;
}

.daterangepicker.ah-reservations-date-picker .ranges li:hover,
.daterangepicker.ah-reservations-date-picker .ranges li.active {
    background: #f71942 !important;
    color: #fff !important;
}

.daterangepicker.ah-reservations-date-picker .drp-calendar.left,
.daterangepicker.ah-reservations-date-picker .drp-calendar.right {
    width: calc((100% - 170px) / 2) !important;
    max-width: none !important;
    padding: 18px 14px !important;
}

.daterangepicker.ah-reservations-date-picker .calendar-table,
.daterangepicker.ah-reservations-date-picker .calendar-table table {
    width: 100% !important;
}

.daterangepicker.ah-reservations-date-picker .calendar-table th,
.daterangepicker.ah-reservations-date-picker .calendar-table td {
    width: 36px !important;
    height: 34px !important;
    min-width: 32px !important;
    font-size: 14px !important;
    border-radius: 7px !important;
}

.daterangepicker.ah-reservations-date-picker td.active,
.daterangepicker.ah-reservations-date-picker td.active:hover {
    background: #f71942 !important;
    color: #fff !important;
}

.daterangepicker.ah-reservations-date-picker td.in-range {
    background: rgba(247, 25, 66, .10) !important;
    color: #f71942 !important;
}

.daterangepicker.ah-reservations-date-picker .drp-buttons {
    clear: both !important;
    border-top: 1px solid #ededed !important;
    padding: 12px 16px !important;
}

/* =============================
   LISTA DE RESERVAS
============================= */

.ah-reservations-list {
    display: grid;
    gap: 14px;
}

.ah-reservation-card {
    background: #fff;
    border-radius: 14px;
    padding: 30px 28px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .14);

    display: grid;
    grid-template-columns: 220px minmax(0, 1fr) 255px;
    gap: 30px;
    align-items: stretch;
}

.ah-reservation-media {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ah-reservation-media img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.ah-contact-btn {
    width: 130px;
    min-height: 38px;
    align-self: center;
    border-radius: 999px;
    background: #f3f3f3;
    color: #666 !important;
    text-decoration: none !important;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    font-size: 14px;
    font-weight: 700;
    transition: .2s ease;
}

.ah-contact-btn:hover {
    background: #e8e8e8;
    color: #111 !important;
}

.ah-reservation-info {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ah-reservation-title-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.ah-reservation-title-row h3 {
    margin: 0;
    max-width: 380px;
    font-size: 24px;
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #000;
}

.ah-reservation-title-row h3 a {
    color: inherit;
    text-decoration: none;
}

.ah-reservation-badges {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 4px;
}

.ah-status-pill,
.ah-payment-pill {
    border: none;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 12px;
    line-height: 1;
    font-weight: 900;
    color: #fff;
    white-space: nowrap;
}

.ah-status-pill {
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
}

.ah-status-pill:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, .16);
}

.ah-status-pill.is-requested {
    background: #3767ff;
}

.ah-status-pill.is-approved,
.ah-status-pill.is-paid,
.ah-status-pill.is-progress {
    background: #46b72a;
}

.ah-status-pill.is-canceled {
    background: #d70d16;
}

.ah-status-pill.is-expired {
    background: #777;
}

.ah-payment-pill.is-unpaid {
    background: #f71942;
}

.ah-payment-pill.is-paid {
    background: #1aae2b;
}

.ah-reservation-details {
    display: grid;
    gap: 10px;
}

.ah-reservation-details div {
    display: flex;
    gap: 6px;
    align-items: baseline;
    flex-wrap: wrap;
    font-size: 14px;
    letter-spacing: .9px;
    color: #000;
    text-transform: uppercase;
}

.ah-reservation-details strong {
    font-weight: 900;
}

.ah-reservation-details span {
    font-weight: 500;
}

/* =============================
   STATUS INLINE
============================= */

.ah-reservation-status-inline {
    margin-top: 2px;
}

.ah-inline-status {
    border: none;
    background: transparent;
    padding: 0 0 0 26px;
    position: relative;
    text-align: left;
    cursor: pointer;
    color: #000;
    max-width: 520px;
}

.ah-inline-status > span {
    position: absolute;
    left: 0;
    top: 2px;
    width: 12px;
    height: 12px;
    background: #3767ff;
    border-radius: 50%;
}

.ah-inline-status.is-canceled > span {
    background: #d70d16;
}

.ah-inline-status.is-expired > span {
    background: #777;
}

.ah-inline-status strong {
    display: block;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .7px;
    margin-bottom: 2px;
}

.ah-inline-status small {
    display: block;
    font-size: 10px;
    line-height: 1.2;
    color: #222;
    text-transform: uppercase;
}

.ah-inline-status em {
    display: block;
    margin-top: 2px;
    font-size: 10px;
    color: #222;
    font-style: normal;
}

/* =============================
   PRECIO Y ACCIONES
============================= */

.ah-reservation-payment {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.ah-payment-total {
    text-align: center;
    min-width: 190px;
}

.ah-payment-total strong {
    display: block;
    font-size: 36px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: 4px;
    color: #000;
}

.ah-payment-total span {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    line-height: 1;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    color: #000;
}

.ah-payment-total small {
    display: block;
    margin-top: 8px;
    font-size: 11px;
    font-weight: 800;
    color: #666;
}

.ah-reservation-actions {
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
}

.ah-action-btn {
    min-width: 120px;
    min-height: 44px;
    border: none;
    border-radius: 999px;

    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;

    padding: 0 18px;
    color: #fff !important;
    text-decoration: none !important;

    font-size: 14px;
    font-weight: 900;
    cursor: pointer;

    box-shadow: 0 8px 16px rgba(0, 0, 0, .18);
    transition: .2s ease;
}

.ah-action-btn:hover {
    transform: translateY(-2px);
    color: #fff !important;
}

.ah-action-pay {
    background: #0aaa18;
}

.ah-action-pay:hover {
    background: #078f13;
}

.ah-action-cancel {
    background: #d70d16;
}

.ah-action-cancel:hover {
    background: #b80d14;
}

.ah-empty-reservations {
    padding: 36px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
}

.ah-empty-reservations h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 900;
}

/* =============================
   STATUS MODAL
============================= */

body.ah-modal-open {
    overflow: hidden;
}

.ah-status-modal {
    position: fixed;
    inset: 0;
    z-index: 9999999;
    background: rgba(0, 0, 0, .45);
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 92px 16px 24px;
    margin-top: 30px;
}

.ah-status-modal.is-open {
    display: flex;
}

.ah-status-modal__dialog {
    position: relative;
    width: min(620px, 100%);
    max-height: calc(100vh - 125px);

    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;

    background: #fff;
    border-radius: 16px;
    padding: 26px 28px 28px;
    box-shadow: 0 22px 60px rgba(0, 0, 0, .28);
}

.ah-status-modal__close {
    position: absolute;
    top: 10px;
    right: 14px;
    border: none;
    background: transparent;
    color: #111;
    font-size: 50px;
    line-height: 1;
    cursor: pointer;
}

.ah-status-modal__head {
    margin-bottom: 22px;
    padding-right: 28px;
}

.ah-status-modal__head h3 {
    margin: 0 0 6px;
    font-size: 20px;
    font-weight: 900;
    color: #111;
}

.ah-status-modal__head p {
    margin: 0;
    font-size: 12px;
    color: #666;
    font-weight: 700;
}

.ah-status-modal__body {
    padding-right: 4px;
}

/* Tracking reutilizable */

.reservation-tracking {
    margin-top: 12px;
}

.tracking-list {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
    display: flex;
    flex-direction: column;
}

.tracking-item {
    display: flex;
    gap: 12px;
    position: relative;
    padding-bottom: 18px;
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity .3s ease, transform .3s ease;
}

.tracking-item.show {
    opacity: 1;
    transform: translateX(0);
}

.tracking-item:last-child {
    padding-bottom: 0;
}

.tracking-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-top: 4px;
    background: #d0d0d0;
    position: relative;
    flex: 0 0 12px;
    transform: scale(.9);
    transition: background .25s ease, transform .3s ease;
}

.tracking-item.show .tracking-dot {
    transform: scale(1);
}

.tracking-item:before {
    content: "";
    position: absolute;
    left: 5px;
    top: 16px;
    width: 2px;
    height: calc(100% - 16px);
    background: #e0e0e0;
}

.tracking-item:after {
    content: "";
    position: absolute;
    left: 5px;
    top: 16px;
    width: 2px;
    height: 0;
    background: #2ecc71;
    transition: height .45s ease;
}

.tracking-item.done.show:after {
    height: calc(100% - 16px);
}

.tracking-item:last-child:before,
.tracking-item:last-child:after {
    display: none;
}

.tracking-item.done .tracking-dot {
    background: #2ecc71;
}

.tracking-item.active .tracking-dot {
    background: #4c78fb;
}

.tracking-item.pending .tracking-dot {
    background: #d0d0d0;
}

.tracking-content {
    line-height: 1.2;
    padding-left: 8px;
}

.tracking-content b {
    font-size: 14px;
    color: #666;
}

.tracking-content .text-muted {
    color: #8b8b8b;
    font-size: 12px;
}

.tracking-header {
    padding: 14px 16px;
    border-radius: 10px;
}

.tracking-canceled {
    background: #ffe5e5;
    border: 1px solid #ffb3b3;
}

.tracking-expired {
    background: #f2f2f2;
    border: 1px solid #d9d9d9;
}

/* =============================
   POPUPS EXISTENTES
============================= */

#small-dialog-2,
#small-dialog {
    max-width: 560px;
}

#small-dialog-2 input[type="text"],
#small-dialog-2 input[type="file"],
#small-dialog textarea {
    width: 100%;
}

/* =============================
   DATE RANGE
============================= */

.daterangepicker {
    z-index: 999999 !important;
}

.calendar-animated {
    transition: opacity .2s ease, transform .2s ease;
}

.calendar-visible {
    opacity: 1;
    transform: translateY(0);
}

.calendar-hidden {
    opacity: 0;
    transform: translateY(8px);
}

/* =============================
   RESPONSIVE
============================= */

@media (max-width: 1300px) {
    .ah-reservation-card {
        grid-template-columns: 190px minmax(0, 1fr) 230px;
        gap: 24px;
    }

    .ah-reservation-title-row {
        flex-direction: column;
        gap: 10px;
    }

    .ah-reservation-title-row h3 {
        max-width: none;
    }

    .ah-payment-total strong {
        font-size: 32px;
    }
}

@media (max-width: 1100px) {
    .ah-reservation-card {
        grid-template-columns: 170px minmax(0, 1fr);
    }

    .ah-reservation-payment {
        grid-column: 1 / -1;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .ah-payment-total {
        text-align: left;
    }

    .ah-reservation-actions {
        width: auto;
    }
}

@media (max-width: 850px) {
    .ah-reservations-page {
        padding: 38px 14px 55px;
    }

    .ah-reservations-title {
        margin-bottom: 34px;
    }

    .ah-reservations-panel__head h2 {
        font-size: 24px;
    }

    .ah-reservations-filters,
    .booking-requests-filter.ah-reservations-filters {
        border-radius: 18px;
        padding: 14px;
    }

    .ah-filter-search,
    .ah-filter-select,
    .ah-filter-date {
        width: 100%;
        min-width: 100%;
    }

    .ah-reservation-card {
        grid-template-columns: 1fr;
        padding: 18px;
        gap: 18px;
    }

    .ah-reservation-media img {
        height: 220px;
    }

    .ah-contact-btn {
        align-self: flex-start;
    }

    .ah-reservation-title-row h3 {
        font-size: 22px;
    }

    .ah-reservation-payment {
        flex-direction: column;
        align-items: stretch;
    }

    .ah-payment-total {
        text-align: left;
    }

    .ah-reservation-actions {
        width: 100%;
        justify-content: flex-start;
        flex-wrap: wrap;
    }

    .ah-action-btn {
        min-width: 132px;
    }

    .ah-status-modal {
        padding-top: 78px;
    }

    .ah-status-modal__dialog {
        max-height: calc(100vh - 96px);
        padding: 22px 20px;
    }
}

@media (max-width: 520px) {
    .ah-reservations-title h1 {
        font-size: 42px;
        letter-spacing: 2px;
    }

    .ah-reservation-media img {
        height: 180px;
    }

    .ah-reservation-details div {
        font-size: 12px;
    }

    .ah-reservation-actions {
        flex-direction: row;
        gap: 10px;
    }

    .ah-action-btn {
        min-width: 0;
        flex: 1;
        padding: 0 12px;
        font-size: 13px;
    }

    .ah-payment-total strong {
        font-size: 30px;
    }

    .ah-status-modal {
        padding-top: 66px;
    }

    .tracking-content b {
        font-size: 14px;
    }

    .tracking-content .text-muted {
        font-size: 12px;
    }
}

/* =========================================================
   RESPONSIVE FINAL FILTROS + DATEPICKER
========================================================= */

@media (max-width: 980px) {
    .ah-resv-filterbar {
        gap: 12px;
    }

    .ah-resv-filter--search,
    .ah-resv-filter--select,
    .ah-resv-filter--date {
        width: calc(50% - 6px);
    }

    .daterangepicker.ah-reservations-date-picker {
        width: calc(100vw - 24px) !important;
        max-width: calc(100vw - 24px) !important;
    }
}

@media (max-width: 760px) {
    .ah-resv-filterbar {
        border-radius: 20px;
        padding: 14px;
        flex-direction: column;
        align-items: stretch;
    }

    .ah-resv-filter--search,
    .ah-resv-filter--select,
    .ah-resv-filter--date,
    .ah-resv-filter {
        width: 100%;
        min-width: 100%;
    }

    .clear-ranges-div {
        width: 100%;
    }

    .ah-resv-clear-ranges {
        width: 100%;
        border-radius: 999px;
    }

    .daterangepicker.ah-reservations-date-picker {
        left: 12px !important;
        right: 12px !important;
        width: auto !important;
        max-width: none !important;
        transform: none !important;
        border-radius: 16px !important;
    }

    .daterangepicker.ah-reservations-date-picker .ranges {
        width: 100% !important;
        float: none !important;
        border-right: none !important;
        border-bottom: 1px solid #ededed !important;
        padding: 8px !important;
    }

    .daterangepicker.ah-reservations-date-picker .ranges ul {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 6px !important;
    }

    .daterangepicker.ah-reservations-date-picker .ranges li {
        border-radius: 10px !important;
        text-align: center !important;
        padding: 8px 10px !important;
        font-size: 12px !important;
    }

    .daterangepicker.ah-reservations-date-picker .drp-calendar.left,
    .daterangepicker.ah-reservations-date-picker .drp-calendar.right {
        float: none !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px !important;
    }
}


/* =========================================================
   DESGLOSE DEL PRECIO + SPINNER CANCELAR
========================================================= */

.ah-payment-total-trigger {
    width: 100%;
    border: none;
    background: transparent;
    padding: 0;
    margin: 0;
    text-align: center;
    cursor: pointer;
    color: inherit;
    font: inherit;
    border-radius: 14px;
    transition: transform .18s ease, background .18s ease;
}

.ah-payment-total-trigger:hover {
    transform: translateY(-1px);
    background: rgba(0, 0, 0, .035);
}

.ah-action-btn.is-loading {
    pointer-events: none;
    opacity: .78;
    cursor: wait;
}

.ah-action-btn.is-loading i,
.ah-action-btn.is-loading span {
    display: none;
}

.ah-action-btn.is-loading::after {
    content: "";
    width: 18px;
    height: 18px;
    border: 2px solid currentColor;
    border-top-color: transparent;
    border-radius: 50%;
    display: inline-block;
    animation: ah-reservation-spin .7s linear infinite;
}

@keyframes ah-reservation-spin {
    to {
        transform: rotate(360deg);
    }
}

.ah-price-breakdown-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(0, 0, 0, .38);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 22px;
}

.ah-price-breakdown-modal.is-open {
    display: flex;
}

.ah-price-breakdown-modal__dialog {
    width: min(720px, calc(100vw - 28px));
    max-height: calc(100vh - 44px);
    overflow-y: auto;
    background: #fff;
    border-radius: 28px;
    padding: 34px 40px 36px;
    box-shadow: 0 22px 60px rgba(0, 0, 0, .24);
}

.ah-price-breakdown-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 34px;
}

.ah-price-breakdown-modal__head h3 {
    margin: 0;
    font-size: 28px;
    font-weight: 900;
    color: #111;
}

.ah-price-breakdown-modal__close {
    width: 40px;
    height: 40px;
    border: none;
    background: transparent;
    color: #111;
    font-size: 42px;
    line-height: 1;
    cursor: pointer;
}

.ah-price-breakdown-modal__body {
    display: grid;
    gap: 22px;
}

.ah-price-breakdown-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
    color: #111;
    font-size: 27px;
    line-height: 1.2;
    font-weight: 900;
}

.ah-price-breakdown-line span {
    min-width: 0;
}

.ah-price-breakdown-line strong {
    white-space: nowrap;
    font-weight: 900;
    color: #111;
}

.ah-price-breakdown-divider {
    height: 1px;
    background: #d8d1db;
    margin: 18px 0 0;
}

.ah-price-breakdown-line--total strong {
    color: #149325;
}

@media (max-width: 767px) {
    .ah-price-breakdown-modal__dialog {
        padding: 26px 22px 28px;
        border-radius: 22px;
    }

    .ah-price-breakdown-modal__head h3 {
        font-size: 22px;
    }

    .ah-price-breakdown-line {
        font-size: 18px;
        gap: 12px;
    }
}

@media (max-width: 520px) {
    .ah-price-breakdown-line {
        flex-direction: column;
        align-items: flex-start;
    }

    .ah-price-breakdown-line strong {
        white-space: normal;
    }
}


/* =========================================================
   HOST RESERVATIONS EXTRA
========================================================= */
.ah-action-approve {
    background: #10a819;
    color: #fff !important;
    border: none;
}
.ah-action-approve:hover {
    background: #0d9015;
    color: #fff !important;
    transform: translateY(-2px);
}
.ah-action-pending {
    background: #f2f2f2;
    color: #333 !important;
    border: 1px solid #dedede;
}
.ah-action-pending:hover {
    background: #fff;
    border-color: #cd1218;
    color: #cd1218 !important;
}
.ah-reservation-host-status {
    margin-top: 12px;
}
.ah-reservation-host-status label {
    display: block;
    margin-bottom: 7px;
    color: #555;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .7px;
}
.ah-host-status-select-wrap {
    position: relative;
    width: 100%;
    max-width: 230px;
}
.ah-host-status-select-wrap::after {
    content: "\f107";
    font-family: FontAwesome;
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    pointer-events: none;
    color: #777;
    font-size: 13px;
}
.ah-host-status-select {
    width: 100%;
    min-height: 40px;
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid #dedede;
    border-radius: 999px;
    background: #fff;
    color: #222;
    padding: 0 38px 0 16px;
    font-size: 13px;
    font-weight: 800;
    outline: none;
    cursor: pointer;
}
.ah-host-status-select:disabled,
.ah-host-status-select.is-disabled {
    background: #f2f2f2;
    color: #8a8a8a;
    cursor: not-allowed;
}
.ah-resv-filter--search .autocomplete-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 16px;
    box-shadow: 0 14px 28px rgba(0,0,0,.12);
    z-index: 50;
    overflow: hidden;
}
.ah-resv-filter--search .autocomplete-item {
    padding: 11px 14px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}
.ah-resv-filter--search .autocomplete-item:hover {
    background: #f6f6f6;
    color: #cd1218;
}
.ah-reservation-actions .ah-action-btn {
    white-space: nowrap;
}
.ah-reservation-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 12px;
}
.ah-action-btn.is-loading {
    pointer-events: none;
    opacity: .8;
}
.ah-action-btn.is-loading i {
    display: none;
}
.ah-action-btn.is-loading::before {
    content: "";
    width: 15px;
    height: 15px;
    border-radius: 50%;
    border: 2px solid currentColor;
    border-top-color: transparent;
    display: inline-block;
    animation: ah-resv-spin .7s linear infinite;
}
@keyframes ah-resv-spin {
    to { transform: rotate(360deg); }
}
@media (max-width: 1199px) {
    .ah-reservation-host-status {
        margin-top: 10px;
    }
    .ah-host-status-select-wrap {
        max-width: 100%;
    }
}


.ah-reservations-pagination {
    margin-top: 28px;
    display: flex;
    justify-content: center;
}

.ah-reservations-pagination nav {
    display: flex;
    justify-content: center;
    width: 100%;
}

.ah-reservations-pagination .pagination {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    list-style: none;
}

.ah-reservations-pagination .page-item .page-link,
.ah-reservations-pagination .page-item span {
    min-width: 38px;
    height: 38px;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #333;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all .2s ease;
}

.ah-reservations-pagination .page-item .page-link:hover {
    background: var(--theme-main-color);
    border-color: var(--theme-main-color);
    color: #fff;
}

.ah-reservations-pagination .page-item.active .page-link,
.ah-reservations-pagination .page-item.active span {
    background: var(--theme-main-color);
    border-color: var(--theme-main-color);
    color: #fff;
}

.ah-reservations-pagination .page-item.disabled span {
    opacity: .45;
    cursor: not-allowed;
}
