: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;
}

.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%;
    }
}

.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;
    }
}