:root {
    --tr-soft: #fff7f8;
    --tr-border: rgba(31, 46, 78, .12);
    --tr-shadow: 0 20px 55px rgba(0, 12, 33, .12);
}

body {
    background: #fff;
}

.backtickets {
    padding-left: 1rem;
}

.flashdisplay {
    position: fixed;
    z-index: 999999999;
    top: 200px;
    right: 24px;
    width: 50%;
    transition: opacity .35s ease, transform .35s ease;
}

.flashdisplay.flash-hide {
    opacity: 0;
    transform: translateY(-12px);
    pointer-events: none;
}

.flash-alert {
    position: relative;
    overflow: hidden;
    border: 0;
    padding: 1rem 1rem .9rem;
}

.flash-timer-bar {
    position: absolute;
    left: 0;
    bottom: 0;
    height: 4px;
    width: 100%;
    background: rgba(0, 0, 0, .18);
    animation: flashTimer 5s linear forwards;
}

@keyframes flashTimer {
    from {
        width: 100%;
    }

    to {
        width: 0%;
    }
}

@media (max-width: 575.98px) {
    .flashdisplay {
        top: 86px;
        left: 12px;
        right: 12px;
        width: auto;
    }
}

.toy-hero {
    position: relative;
    overflow: hidden;
    min-height: 690px;
    display: flex;
    align-items: center;
    background:
        radial-gradient(circle at 85% 20%, rgba(234,0,30,.24), transparent 30%),
        linear-gradient(115deg, rgba(0,12,33,.94), rgba(31,46,78,.82)),
        url("../img/listing-placeholder.webp") center/cover no-repeat;
}

.toy-hero::after {
    content: "";
    position: absolute;
    inset: auto -10% -25% -10%;
    height: 260px;
    background: #fff;
    transform: rotate(-3deg);
    transform-origin: center;
}

.toy-hero .container {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    color: #fff;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.24);
    border-radius: 999px;
    padding: .55rem 1rem;
    margin-bottom: 1.2rem;
}

.search-panel {
    background: var(--bs-secondary);
    border-radius: 18px;
    padding: 2rem;
    box-shadow: var(--tr-shadow);
    border: 1px solid rgba(255,255,255,.12);
}

.search-panel .input-group-text {
    border: 0;
    background: #fff;
    color: var(--bs-secondary);
}

.search-panel .form-control,
.search-panel .form-select {
    min-height: 52px;
}

.stat-strip {
    background: #fff;
    border-radius: 18px;
    box-shadow: var(--tr-shadow);
    margin-top: -80px;
    position: relative;
    z-index: 4;
}

.stat-strip strong {
    display: block;
    font-size: 2rem;
    color: var(--bs-dark);
    line-height: 1;
}

.market-card,
.listing-card,
.auth-card,
.dashboard-card {
    border: 1px solid var(--tr-border);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(0, 12, 33, .06);
}

.market-card {
    transition: .3s ease;
}

.market-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--tr-shadow);
    border-color: rgba(234,0,30,.25);
}

.market-icon {
    width: 72px;
    height: 72px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 67% 33% 29% 71% / 39% 46% 54% 61%;
    background: var(--bs-primary);
    color: #fff;
    font-size: 1.6rem;
    animation: icon-animat 5s 1s infinite alternate;
}

.listing-img {
    height: 220px;
    object-fit: cover;
    background: var(--bs-light);
}

.price-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    background: #fff;
    color: var(--bs-primary);
    font-weight: 800;
    padding: .55rem 1rem;
    box-shadow: 0 8px 24px rgba(0,12,33,.08);
}

.auth-shell {
    min-height: calc(100vh - 150px);
    background: linear-gradient(135deg, #fff, var(--tr-soft));
}

.auth-side {
    border-radius: 22px;
    background: linear-gradient(135deg, var(--bs-secondary), var(--bs-dark));
    color: #fff;
    min-height: 100%;
}

.form-help {
    font-size: .9rem;
    color: #7b8494;
}

.empty-state {
    border: 2px dashed var(--tr-border);
    border-radius: 18px;
    padding: 3rem 1rem;
    text-align: center;
    background: #fff;
}

@media (max-width: 991px) {
    .toy-hero {
        min-height: auto;
        padding: 70px 0 120px;
    }
    .search-panel {
        padding: 1.2rem;
    }
    .stat-strip {
        margin-top: -50px;
    }
}

.location-strip {
    background: #fff;
    border-top: 1px solid rgba(0, 12, 33, 0.08);
    border-bottom: 1px solid rgba(0, 12, 33, 0.08);
    position: relative;
    z-index: 20;
}

.location-strip .badge {
    font-weight: 600;
}

.search-panel .form-text {
    font-size: 0.78rem;
}

.btn-outline-light:hover {
    color: var(--bs-dark) !important;
}

.listing-card .small {
    line-height: 1.45;
}

/* Owner/listing/booking workflow */
.wizard-section-heading {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--tr-border);
}

.wizard-section-heading span {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--bs-primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    flex: 0 0 46px;
}

.wizard-section-heading p {
    margin-bottom: 0;
}

.weekday-picker {
    display: flex;
    flex-wrap: wrap;
    gap: .65rem;
}

.weekday-picker label {
    margin: 0;
}

.weekday-picker input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.weekday-picker span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 56px;
    padding: .65rem .9rem;
    border-radius: 999px;
    border: 1px solid var(--tr-border);
    background: #fff;
    color: var(--bs-secondary);
    font-weight: 700;
    cursor: pointer;
}

.weekday-picker input:checked + span {
    background: var(--bs-primary);
    border-color: var(--bs-primary);
    color: #fff;
}

.owner-table th {
    background: #f8f9fa;
    color: var(--bs-dark);
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.owner-table td,
.owner-table th {
    padding: 1rem;
}

.owner-thumb {
    width: 78px;
    height: 62px;
    border-radius: 12px;
    object-fit: cover;
    background: var(--bs-light);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .45rem .75rem;
    border-radius: 999px;
    font-size: .8rem;
    font-weight: 800;
    text-transform: capitalize;
    background: #e9ecef;
    color: var(--bs-dark);
}

.status-active,
.status-confirmed,
.status-completed {
    background: rgba(25, 135, 84, .12);
    color: #157347;
}

.status-pending,
.status-approved,
.status-awaiting_payment {
    background: rgba(255, 193, 7, .18);
    color: #8a6500;
}

.status-paused,
.status-draft,
.status-cancelled,
.status-declined,
.status-expired {
    background: rgba(108, 117, 125, .15);
    color: #495057;
}

.booking-tabs .nav-link {
    border-radius: 999px;
    font-weight: 700;
}

.message-thread {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message-bubble {
    max-width: 82%;
    padding: 1rem;
    border-radius: 18px;
    background: var(--bs-light);
    border: 1px solid var(--tr-border);
}

.message-bubble.mine {
    align-self: flex-end;
    background: rgba(234, 0, 30, .08);
    border-color: rgba(234, 0, 30, .18);
}

.message-bubble.theirs {
    align-self: flex-start;
}

.message-bubble.system {
    align-self: center;
    max-width: 100%;
    background: rgba(31, 46, 78, .08);
    font-size: .9rem;
}

.message-meta {
    font-size: .78rem;
    color: #6c757d;
    margin-bottom: .4rem;
    font-weight: 700;
}

.review-item {
    padding: 1rem 0;
    border-bottom: 1px solid var(--tr-border);
}

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

@media (max-width: 767px) {
    .owner-table td,
    .owner-table th {
        white-space: nowrap;
    }

    .message-bubble {
        max-width: 100%;
    }
}

.inbox-thread-row {
    transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.inbox-thread-row.has-unread {
    background: aliceblue;
    border-left: 4px solid var(--bs-primary);
}

.inbox-thread-row.has-unread:hover {
    background: #d6e7f5;
}

.inbox-thread-row.has-unread h5 {
    font-weight: 900;
    color: #1f2e4e;
}

.inbox-thread-row.has-unread [data-thread-last-body] {
    color: #1f2e4e !important;
    font-weight: 600;
}

.profile-avatar {
    width: 128px;
    height: 128px;
    border-radius: 999px;
    overflow: hidden;
    background: var(--bs-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 12px 30px rgba(0, 12, 33, .12);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-avatar span {
    color: #fff;
    font-size: 3rem;
    font-weight: 800;
}

.profile-edit-preview {
    display: block;
    width: 140px;
    height: 140px;
    border-radius: 999px;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 10px 25px rgba(0, 12, 33, .12);
}

.profile-completion {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: .45rem .85rem;
    background: #fde6e9;
    color: var(--bs-primary);
    font-weight: 700;
    font-size: .85rem;
}

.mini-stat {
    border: 1px solid var(--tr-border);
    border-radius: 16px;
    padding: 1rem;
    background: #fff;
}

.mini-stat strong {
    display: block;
    font-size: 1.6rem;
    color: var(--bs-dark);
}

.mini-stat span {
    color: #6e7684;
    font-size: .9rem;
}

.owner-mini-card {
    background: #f8f9fb;
    border: 1px solid rgba(31, 46, 78, .08);
    border-radius: 18px;
    padding: 1rem;
}

.owner-avatar-link {
    flex: 0 0 auto;
}

.owner-avatar {
    width: 58px;
    height: 58px;
    border-radius: 999px;
    object-fit: cover;
    background: #fff;
    border: 2px solid rgba(31, 46, 78, .12);
}

.owner-profile-link {
    text-decoration: none;
}

.owner-profile-link:hover {
    color: var(--bs-primary) !important;
}

.owner-rating {
    font-size: .95rem;
}

.notification-bell-button {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(31, 46, 78, .12);
    background: #f8f9fb;
    color: var(--bs-primary);
}

.notification-bell-button:hover,
.notification-bell-button:focus {
    background: #f8f9fb;
    color: var(--bs-primary);
}

.notification-count-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--bs-primary);
    color: #fff;
    font-size: 11px;
    line-height: 20px;
    font-weight: 700;
    text-align: center;
    box-shadow: 0 0 0 3px #fff;
}

.notification-dropdown-header {
    padding: 16px 18px;
    border-bottom: 1px solid rgba(31, 46, 78, .08);
    background: #fff;
}

.notification-list {
    max-height: 430px;
    overflow-y: auto;
    padding: 10px;
}

.notification-item {
    display: block;
    padding: 14px 15px;
    margin-bottom: 10px;
    border: 1px solid rgba(31, 46, 78, .08);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(31, 46, 78, .06);
    color: inherit;
    text-decoration: none;
    transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}

a.notification-item:hover {
    color: inherit;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(31, 46, 78, .1);
}

.notification-item.unread {
    background: aliceblue;
    border-color: rgba(13, 110, 253, .18);
}

a.notification-item.unread:hover {
    background: #d6e7f5;
}

.notification-item:last-child {
    margin-bottom: 0;
}

.notification-item-title {
    color: #1f2e4e;
    font-size: .92rem;
    font-weight: 800;
    line-height: 1.3;
}

.notification-item-body {
    color: #6c757d;
    font-size: .82rem;
    line-height: 1.45;
    margin-top: 4px;
}

.notification-time {
    margin-top: 8px;
    font-size: 11px;
    color: #8a93a3;
}

.notification-empty {
    padding: 32px 18px;
    color: #8a93a3;
    text-align: center;
    background: #fff;
}

.notification-dropdown-menu {
    width: 390px;
    max-width: calc(100vw - 24px);
    border: 0;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(31, 46, 78, .22);
    overflow: hidden;
    background: #f5f7fb;
}

.user-dropdown-wrap .dropdown-menu {
    min-width: 220px;
}

.header-account-actions {
    flex-shrink: 0;
}

.user-dropdown-menu {
    max-height: calc(100vh - 130px);
    overflow-y: auto;
    overflow-x: hidden;
}

@media (max-width: 991.98px) {
    .header-account-actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch !important;
        gap: .75rem !important;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(31, 46, 78, .08);
    }

    .header-account-actions .dropdown {
        width: 100%;
    }

    .header-account-actions .user-menu-button {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: 46px;
    }

    .user-dropdown-wrap .dropdown-menu {
        position: static !important;
        transform: none !important;
        width: 100% !important;
        min-width: 100% !important;
        max-height: 55vh;
        overflow-y: auto;
        overflow-x: hidden;
        margin-top: .5rem !important;
        border: 1px solid rgba(31, 46, 78, .08);
        border-radius: 16px;
        box-shadow: 0 12px 28px rgba(31, 46, 78, .12);
    }

    #navbarCollapse {
        max-height: calc(100vh - 90px);
        overflow-y: auto;
        overflow-x: hidden;
        padding-bottom: 1rem;
    }

    .user-dropdown-wrap .dropdown-item {
        padding: .85rem 1rem;
    }

    .notification-dropdown-wrap {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    .notification-bell-button {
        width: 100%;
        height: 46px;
        border-radius: 999px !important;
        gap: .5rem;
    }

    .notification-bell-button::after {
        content: "Notifications";
        font-weight: 700;
        font-family: inherit;
    }

    .notification-count-badge {
        top: -6px;
        right: 8px;
    }

    .notification-dropdown-menu {
        position: static !important;
        transform: none !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-top: .5rem !important;
        border-radius: 18px;
        box-shadow: 0 12px 28px rgba(31, 46, 78, .12);
    }

    .notification-list {
        max-height: 50vh;
        overflow-y: auto;
        padding: 10px;
    }

    .notification-item {
        padding: 13px 14px;
        border-radius: 14px;
    }
}

/* Better footer */
.tr-footer {
    background:
        radial-gradient(circle at 12% 20%, rgba(234, 0, 30, .18), transparent 28%),
        linear-gradient(135deg, #000c21, #1f2e4e);
    color: rgba(255, 255, 255, .72);
    overflow: hidden;
}

.tr-footer-top {
    padding: 4.5rem 0 2.5rem;
}

.tr-footer-brand,
.tr-footer-card {
    background: rgba(255, 255, 255, .055);
    border: 1px solid rgba(255, 255, 255, .11);
    border-radius: 24px;
    padding: 1.5rem;
    box-shadow: 0 20px 55px rgba(0, 12, 33, .25);
}

.tr-footer-logo {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    color: #fff;
    font-size: 1.55rem;
    font-weight: 900;
    text-decoration: none;
    margin-bottom: 1rem;
}

.tr-footer-logo:hover {
    color: #fff;
}

.tr-footer-logo img {
    width: 54px;
    height: 54px;
    object-fit: contain;
}

.tr-footer-lead {
    color: rgba(255, 255, 255, .86);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.tr-footer-note {
    color: rgba(255, 255, 255, .58);
    font-size: .86rem;
    line-height: 1.55;
}

.tr-footer-trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .65rem;
    margin-bottom: 1.25rem;
}

.tr-footer-trust-item {
    min-height: 82px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: .45rem;
    text-align: center;
    padding: .85rem .5rem;
}

.tr-footer-trust-item i {
    color: var(--bs-primary);
    font-size: 1.2rem;
}

.tr-footer-trust-item span {
    color: rgba(255, 255, 255, .82);
    font-size: .78rem;
    font-weight: 700;
    line-height: 1.2;
}

.tr-footer-card h5 {
    color: #fff;
    font-weight: 900;
    margin-bottom: 1.15rem;
}

.tr-footer-card a {
    display: flex;
    align-items: center;
    gap: .65rem;
    color: rgba(255, 255, 255, .72);
    text-decoration: none;
    padding: .55rem 0;
    line-height: 1.35;
    transition: .2s ease;
}

.tr-footer-card a i {
    width: 20px;
    color: var(--bs-primary);
    text-align: center;
}

.tr-footer-card a:hover {
    color: #fff;
    transform: translateX(4px);
}

.tr-footer-cta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.25rem;
    padding: 1.4rem 1.5rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .12);
}

.tr-footer-cta h5 {
    color: #fff;
    font-weight: 900;
}

.tr-footer-cta p {
    color: rgba(255, 255, 255, .68);
}

.tr-footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .1);
    background: rgba(0, 0, 0, .16);
    padding: 1.15rem 0;
}

.tr-footer-copy {
    color: rgba(255, 255, 255, .62);
    font-size: .9rem;
}

.tr-footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: .85rem;
}

.tr-footer-legal a {
    color: rgba(255, 255, 255, .62);
    text-decoration: none;
    font-size: .9rem;
}

.tr-footer-legal a:hover {
    color: #fff;
}

@media (max-width: 991.98px) {
    .tr-footer-top {
        padding: 3rem 0 2rem;
    }

    .tr-footer-cta {
        flex-direction: column;
        align-items: flex-start;
    }

    .tr-footer-trust-grid {
        grid-template-columns: 1fr;
    }

    .tr-footer-trust-item {
        min-height: auto;
        flex-direction: row;
        justify-content: flex-start;
        text-align: left;
    }
}

@media (max-width: 575.98px) {
    .tr-footer-brand,
    .tr-footer-card {
        border-radius: 18px;
        padding: 1.2rem;
    }

    .tr-footer-logo {
        font-size: 1.3rem;
    }

    .tr-footer-logo img {
        width: 46px;
        height: 46px;
    }

    .tr-footer-bottom .d-flex {
        justify-content: center !important;
        text-align: center;
    }

    .tr-footer-legal {
        justify-content: center;
    }
}

.tr-booking-calendar {
    border: 1px solid #e8edf5;
    border-radius: 18px;
    padding: 12px;
    background: #fff;
    overflow: hidden;
    max-width: 100%;
}

.tr-selected-dates {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.tr-selected-dates > div {
    border: 1px solid #e8edf5;
    border-radius: 14px;
    padding: 10px 12px;
    background: #f8fafd;
    min-width: 0;
}

.tr-selected-dates strong {
    display: block;
    color: #1f2e4e;
    font-size: 13px;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tr-calendar-panel {
    display: none;
    max-width: 100%;
}

.tr-calendar-panel.is-active {
    display: block;
}

.tr-calendar-month {
    max-width: 100%;
    overflow: hidden;
}

.tr-calendar-month-title {
    text-align: center;
    font-weight: 800;
    color: #1f2e4e;
    margin-bottom: 10px;
}

.tr-calendar-weekdays,
.tr-calendar-days {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 4px;
    width: 100%;
    max-width: 100%;
}

.tr-calendar-weekdays {
    margin-bottom: 6px;
}

.tr-calendar-weekdays div {
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    color: #8b94a5;
    min-width: 0;
}

.tr-calendar-day {
    width: 100%;
    min-width: 0;
    min-height: 46px;
    border: 1px solid #e8edf5;
    border-radius: 10px;
    background: #ffffff;
    color: #1f2e4e;
    padding: 5px 2px;
    text-align: center;
    position: relative;
    transition: .18s ease;
    overflow: hidden;
}

.tr-calendar-day.is-available:hover {
    border-color: var(--bs-primary);
    box-shadow: 0 6px 16px rgba(234, 0, 30, .12);
    transform: translateY(-1px);
}

.tr-calendar-day-number {
    display: block;
    font-weight: 800;
    font-size: 13px;
    line-height: 1.1;
}

.tr-calendar-day-price {
    display: block;
    font-size: 8px;
    color: #6e7684;
    margin-top: 3px;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tr-calendar-day-note {
    display: block;
    font-size: 8px;
    color: #9aa3b2;
    margin-top: 3px;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tr-calendar-day.is-past,
.tr-calendar-day.is-unavailable {
    color: #a5adba;
    background: #f5f7fb;
    cursor: not-allowed;
    opacity: .78;
}

.tr-calendar-day.is-unavailable::after,
.tr-calendar-day.is-past::after {
    content: "";
    position: absolute;
    left: 12%;
    right: 12%;
    top: 50%;
    height: 2px;
    background: rgba(31, 46, 78, .35);
    transform: rotate(-18deg);
}

.tr-calendar-day.is-selected {
    background: var(--bs-primary);
    border-color: var(--bs-primary);
    color: #ffffff;
}

.tr-calendar-day.is-selected .tr-calendar-day-price {
    color: rgba(255, 255, 255, .85);
}

.tr-calendar-day.is-in-range {
    background: rgba(234, 0, 30, .08);
    border-color: rgba(234, 0, 30, .25);
}

.tr-calendar-blank {
    border: 0;
    background: transparent;
    pointer-events: none;
}

.tr-calendar-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 11px;
    color: #6e7684;
}

.tr-legend-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    display: inline-block;
    margin-right: 4px;
}

.tr-legend-dot.available {
    background: #ffffff;
    border: 1px solid #d7deea;
}

.tr-legend-dot.booked {
    background: #d9dee8;
}

.tr-legend-dot.selected {
    background: var(--bs-primary);
}

@media (max-width: 1199.98px) {
    .tr-calendar-day-price,
    .tr-calendar-day-note {
        display: none;
    }

    .tr-calendar-day {
        min-height: 42px;
    }
}

@media (max-width: 575.98px) {
    .tr-booking-calendar {
        padding: 10px;
    }

    .tr-calendar-weekdays,
    .tr-calendar-days {
        gap: 3px;
    }

    .tr-calendar-day {
        min-height: 40px;
        border-radius: 8px;
        padding: 4px 1px;
    }

    .tr-calendar-day-number {
        font-size: 12px;
    }
}

.owner-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.owner-action-form {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    margin: 0;
}

.owner-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 34px;
    white-space: nowrap;
}

@media (max-width: 767.98px) {
    .owner-action-btn {
        width: 36px;
        height: 36px;
        padding-left: 0 !important;
        padding-right: 0 !important;
        border-radius: 999px !important;
    }

    .owner-action-btn .action-label {
        display: none;
    }
}

.owner-calendar-shell {
    border: 1px solid #e8edf5;
    border-radius: 20px;
    background: #fff;
    overflow: hidden;
}

.owner-calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    background: #f8fafd;
    border-bottom: 1px solid #e8edf5;
}

.owner-calendar-weekdays div {
    padding: 14px 10px;
    font-weight: 800;
    text-align: center;
    color: #1f2e4e;
    font-size: 13px;
}

.owner-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.owner-calendar-day {
    min-height: 150px;
    border-right: 1px solid #e8edf5;
    border-bottom: 1px solid #e8edf5;
    padding: 10px;
    background: #fff;
    min-width: 0;
}

.owner-calendar-day:nth-child(7n) {
    border-right: 0;
}

.owner-calendar-date-number {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #1f2e4e;
    margin-bottom: 8px;
}

.owner-calendar-day.is-muted {
    background: #fbfcfe;
}

.owner-calendar-day.is-muted .owner-calendar-date-number {
    color: #a8b1c0;
}

.owner-calendar-day.is-today .owner-calendar-date-number {
    background: var(--bs-primary);
    color: #fff;
}

.owner-calendar-events {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.owner-calendar-event {
    display: block;
    border-radius: 10px;
    padding: 7px 8px;
    font-size: 12px;
    line-height: 1.25;
    overflow: hidden;
    text-decoration: none;
}

.owner-calendar-event strong {
    display: block;
    color: inherit;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.owner-calendar-event span {
    display: block;
    opacity: .82;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.owner-calendar-event.is-booking {
    background: rgba(234, 0, 30, .09);
    color: #9f0015;
    border: 1px solid rgba(234, 0, 30, .18);
}

.owner-calendar-event.is-booking:hover {
    background: rgba(234, 0, 30, .15);
    color: #850012;
}

.owner-calendar-event.is-blackout {
    background: #edf1f7;
    color: #1f2e4e;
    border: 1px solid #dce3ee;
}

.owner-calendar-event.is-blackout:hover {
    background: #e3e9f2;
    color: #1f2e4e;
}

@media (max-width: 991.98px) {
    .owner-calendar-shell {
        overflow-x: auto;
    }

    .owner-calendar-weekdays,
    .owner-calendar-grid {
        min-width: 850px;
    }

    .owner-calendar-day {
        min-height: 130px;
    }
}

@media (max-width: 575.98px) {
    .owner-calendar-weekdays,
    .owner-calendar-grid {
        min-width: 760px;
    }

    .owner-calendar-day {
        min-height: 120px;
        padding: 8px;
    }

    .owner-calendar-event {
        font-size: 11px;
        padding: 6px;
    }
}

.tax-settings-box {
    border: 1px solid #e8edf5;
    border-radius: 18px;
    padding: 18px;
    background: #f8fafd;
}

.tax-settings-box h5 {
    font-weight: 800;
    color: #1f2e4e;
}

.request-delivery-box {
    border: 1px solid #e8edf5;
    border-radius: 18px;
    padding: 16px;
    background: #f8fafd;
}

.listing-photo-preview {
    width: 100%;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--tr-border);
    background: #f8fafd;
}

.listing-photo-preview img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
}

.listing-photo-empty,
.listing-gallery-empty {
    border: 2px dashed var(--tr-border);
    border-radius: 18px;
    background: #f8fafd;
    min-height: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #8b94a5;
    gap: 8px;
}

.listing-photo-empty i,
.listing-gallery-empty i {
    font-size: 2rem;
    color: var(--bs-primary);
    opacity: .65;
}

.listing-gallery-manage {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.listing-gallery-item {
    position: relative;
    display: block;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--tr-border);
    background: #f8fafd;
    cursor: pointer;
}

.listing-gallery-item img {
    width: 100%;
    height: 118px;
    object-fit: cover;
    display: block;
}

.listing-gallery-delete,
.gallery-delete-check {
    position: absolute;
    left: 8px;
    right: 8px;
    bottom: 8px;
    border-radius: 999px;
    background: rgba(0, 12, 33, .78);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.listing-gallery-delete input,
.gallery-delete-check input {
    margin: 0;
}

@media (max-width: 575.98px) {
    .listing-gallery-manage {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .listing-photo-preview img,
    .listing-gallery-item img {
        height: 130px;
    }
}
.listing-public-gallery {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.listing-gallery-thumb {
    display: block;
    width: 100%;
    border: 2px solid transparent;
    border-radius: 14px;
    overflow: hidden;
    background: #f8fafd;
    padding: 0;
    cursor: pointer;
}

.listing-gallery-thumb img {
    width: 100%;
    height: 105px;
    object-fit: cover;
    display: block;
}

.listing-gallery-thumb:hover,
.listing-gallery-thumb.is-active {
    border-color: var(--bs-primary);
}

.listing-main-image {
    max-height: 520px;
    object-fit: cover;
    background: #f8fafd;
}

.rental-type-picker {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.rental-type-picker label {
    border: 1px solid #e8edf5;
    border-radius: 18px;
    padding: 14px;
    background: #fff;
    cursor: pointer;
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.rental-type-picker label:hover {
    border-color: var(--bs-primary);
    box-shadow: 0 10px 26px rgba(234, 0, 30, .08);
}

.rental-type-picker strong {
    display: block;
    color: #1f2e4e;
}

.rental-type-picker small {
    color: #6e7684;
}

@media (max-width: 575.98px) {
    .rental-type-picker {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .listing-public-gallery {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .listing-gallery-thumb img {
        height: 82px;
    }
}
/*----------------------------------------------------------------*/
.gallery-uploader {
    border: 1px solid #e8edf5;
    border-radius: 18px;
    padding: 16px;
    background: #f8fafd;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.gallery-tile {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #e8edf5;
    background: #fff;
    min-height: 125px;
}

.gallery-tile img {
    width: 100%;
    height: 125px;
    object-fit: cover;
    display: block;
}

.gallery-delete-check {
    cursor: pointer;
}

.gallery-tile-actions {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    gap: 5px;
}

.gallery-mini-btn {
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .92);
    color: #1f2e4e;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
}

.gallery-mini-btn:hover {
    background: var(--bs-primary);
    color: #fff;
}

.gallery-empty-message {
    border: 2px dashed #dce3ee;
    border-radius: 18px;
    min-height: 150px;
    background: #fff;
    color: #8b94a5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    padding: 18px;
}

.gallery-empty-message i {
    font-size: 2rem;
    color: var(--bs-primary);
    opacity: .65;
}

.gallery-upload-drop {
    border: 2px dashed #dce3ee;
    border-radius: 18px;
    background: #fff;
    padding: 18px;
    text-align: center;
}

.gallery-upload-drop.is-dragover {
    border-color: var(--bs-primary);
    background: rgba(234, 0, 30, .04);
}

.gallery-tile.is-marked-delete {
    opacity: .45;
}

.gallery-tile.is-marked-delete::after {
    content: "Will delete";
    position: absolute;
    inset: 0;
    background: rgba(0, 12, 33, .45);
    color: #fff;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

@media (max-width: 575.98px) {
    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gallery-tile img {
        height: 115px;
    }
}
/*----------------------------------------------------------------*/
.request-summary-card {
    background: #fff;
    border: 1px solid #e8edf5;
    border-radius: 24px;
    box-shadow: 0 18px 50px rgba(31, 46, 78, .08);
    overflow: hidden;
}

.request-summary-header {
    padding: 24px 24px 18px;
    border-bottom: 1px solid #eef2f7;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
}

.request-summary-header h3 {
    font-weight: 800;
    color: #1f2e4e;
}

.request-summary-location {
    color: #6e7684;
    font-size: 14px;
}

.request-summary-section {
    padding: 22px 24px;
    border-bottom: 1px solid #eef2f7;
}

.request-summary-section h5,
.request-flow-box h5 {
    font-weight: 800;
    color: #1f2e4e;
    margin-bottom: 14px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 9px 0;
    color: #6e7684;
}

.summary-row span {
    min-width: 0;
}

.summary-row span small {
    display: block;
    color: #9aa3b2;
    font-size: 12px;
    margin-top: 2px;
}

.summary-row strong {
    color: #1f2e4e;
    text-align: right;
    white-space: nowrap;
}

.summary-divider {
    height: 1px;
    background: #e8edf5;
    margin: 10px 0;
}

.summary-total {
    font-size: 16px;
}

.summary-total strong {
    font-size: 18px;
}

.summary-note {
    margin-top: 8px;
    padding: 12px 14px;
    border-radius: 14px;
    background: #f8fafd;
    color: #6e7684;
    font-size: 13px;
    line-height: 1.45;
}

.request-platform-box {
    margin: 18px 24px;
    padding: 18px;
    border-radius: 18px;
    background: rgba(234, 0, 30, .06);
    border: 1px solid rgba(234, 0, 30, .16);
}

.request-platform-box > div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
    margin-bottom: 8px;
}

.request-platform-box span {
    font-weight: 800;
    color: #1f2e4e;
}

.request-platform-box strong {
    color: var(--bs-primary);
    font-size: 20px;
    white-space: nowrap;
}

.request-platform-box p {
    margin: 0;
    color: #6e7684;
    font-size: 13px;
    line-height: 1.45;
}

.request-platform-box.is-muted {
    background: #f8fafd;
    border-color: #e8edf5;
}

.request-platform-box.is-muted strong {
    color: #6e7684;
    font-size: 13px;
}

.request-flow-box {
    padding: 4px 24px 24px;
}

.request-flow-step,
.request-flow-stepp {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 12px;
}

.request-flow-step span,
.request-flow-stepp span {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    flex: 0 0 auto;
}

.request-flow-step span {
    background: #f2f4f8;
    color: #1f2e4e;
}

.request-flow-stepp span {
    background: #ea001e;
    color: #ffffff;
}

.request-flow-step p,
.request-flow-stepp p {
    margin: 3px 0 0;
    color: #6e7684;
    font-size: 13px;
    line-height: 1.4;
}

@media (max-width: 991.98px) {
    .request-summary-card {
        position: static !important;
    }
}

@media (max-width: 575.98px) {
    .request-summary-header,
    .request-summary-section,
    .request-flow-box {
        padding-left: 18px;
        padding-right: 18px;
    }

    .request-platform-box {
        margin-left: 18px;
        margin-right: 18px;
    }

    .summary-row {
        gap: 12px;
    }

    .summary-row strong {
        font-size: 14px;
    }
}

@media (min-width: 992px) {
    .booking-actions-card {
        position: sticky;
        top: 110px;
    }

}

.booking-mobile-action-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1040;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .97);
    border-top: 1px solid #e8edf5;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, .08);
}

.booking-mobile-action-inner {
    display: flex;
    gap: 8px;
    max-width: 540px;
    margin: 0 auto;
}

@media (max-width: 991.98px) {
    body {
        padding-bottom: 84px;
    }
    .back-to-top{
        bottom: 65px !important;
    }
}
