/* --- RESET & BASE --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --primary: #25b99a;
    --primary-hover: #20a287;
    --dark: #222222;
    --gray: #717171;
    --light: #F7F7F7;
    --border: #DDDDDD;
    --white: #FFFFFF;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    --radius: 14px;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark);
    background: var(--white);
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --- NAV --- */
nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 0 32px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow);
}

.logo {
    font-size: 22px;
    font-weight: 500;
    color: var(--primary);
    letter-spacing: -0.5px;
    text-decoration: none;
}

.search-bar {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: 40px;
    padding: 8px 8px 8px 18px;
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: box-shadow 0.2s;
}

.search-bar:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.search-bar .divider {
    width: 1px;
    height: 22px;
    background: var(--border);
    margin: 0 6px;
}

.search-field {
    display: flex;
    flex-direction: column;
    padding: 0 8px;
}

.search-field label {
    font-size: 11px;
    font-weight: 500;
}

.search-field span {
    font-size: 12px;
    color: var(--gray);
}

.search-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--primary);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 6px;
    transition: background 0.2s, transform 0.15s;
}

.search-btn:hover {
    background: #20a287;
    transform: scale(1.07);
}

.search-btn svg {
    width: 15px;
    height: 15px;
    stroke: #fff;
    fill: none;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-btn {
    padding: 9px 16px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    background: none;
    cursor: pointer;
    transition: background 0.15s;
    font-family: inherit;
}

.nav-btn:hover {
    background: var(--light);
}

/* --- PROFILE MENU --- */
.profile-menu-container {
    position: relative;
}

.profile-menu-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 50px;
    background: var(--light);
    border: 1.5px solid var(--border);
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, transform 0.1s;
    font-family: inherit;
    color: var(--dark);
}

.profile-menu-btn:hover {
    background: #f0f0f0;
    border-color: var(--dark);
}

.profile-menu-btn:active {
    transform: scale(0.98);
}

.burger-icon {
    width: 16px;
    height: 16px;
    stroke-width: 2;
}

.profile-pic {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid var(--border);
}

.profile-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 8px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
    z-index: 1000;
}

.profile-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: block;
    padding: 12px 16px;
    color: var(--dark);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: background 0.15s, color 0.15s;
    border: none;
    background: none;
    cursor: pointer;
    text-align: left;
    width: 100%;
}

.dropdown-item:hover {
    background: var(--light);
    color: var(--primary);
}

.dropdown-item:first-child {
    border-radius: 12px 12px 0 0;
}

.dropdown-item:last-child {
    border-radius: 0 0 12px 12px;
}

.dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 4px 0;
}

/* --- TABS --- */
.tabs-bar {
    position: sticky;
    top: 70px;
    z-index: 90;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: center;
}

.tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    font-size: 15px;
    font-weight: 500;
    font-family: inherit;
    border: none;
    border-bottom: 3px solid transparent;
    background: none;
    cursor: pointer;
    color: var(--gray);
    transition: color 0.2s, border-color 0.2s, opacity 0.2s;
    margin-bottom: -1px;
    -webkit-tap-highlight-color: transparent;
}

.tab:hover {
    color: var(--dark);
}

.tab.active {
    color: var(--dark);
    border-bottom-color: var(--dark);
    /* text-decoration: underline; */
    text-underline-offset: 18px;
    text-decoration-thickness: 2px;
}

.tab-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    transition: filter 0.2s, opacity 0.2s;
}

.tab-icon-wrapper img {
    filter: grayscale(1) opacity(0.65);
    transition: filter 0.2s, opacity 0.2s;
}

.tab:hover .tab-icon-wrapper img {
    filter: grayscale(0.2) opacity(0.85);
}

.tab.active .tab-icon-wrapper img {
    filter: none;
    opacity: 1;
}

.tab.active .tab-icon-wrapper {
    filter: none;
    opacity: 1;
}

/* --- MAIN --- */
main {
    max-width: 1280px;
    margin: 0 auto;
    padding: 28px 32px 60px;
    flex: 1;
    width: 100%;
}

/* --- SECTION HEADER --- */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.section-title {
    font-size: 22px;
    font-weight: 500;
}

.show-all {
    font-size: 14px;
    font-weight: 500;
    text-decoration: underline;
    cursor: pointer;
    color: var(--dark);
    background: none;
    border: none;
    font-family: inherit;
}

.show-all:hover {
    color: var(--primary);
}

/* --- FILTER CHIPS --- */
.filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.chip {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 40px;
    border: 1.5px solid var(--border);
    background: var(--white);
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    color: var(--dark);
    transition: border-color 0.18s, background 0.18s, color 0.18s;
    white-space: nowrap;
}

.chip:hover {
    border-color: var(--dark);
}

.chip.active {
    background: var(--dark);
    color: var(--white);
    border-color: var(--dark);
}

.chip svg,
.chip ion-icon {
    width: 13px;
    height: 13px;
    font-size: 13px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* --- CARDS GRID --- */
.grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.card {
    border-radius: var(--radius);
    cursor: pointer;
    transition: transform 0.2s;
    min-width: 0; /* allow grid items to shrink below content width */
    overflow: hidden; /* clip overflowing text/content */
}

.card:hover {
    transform: translateY(-4px);
}

.card:active {
    transform: scale(0.98);
}

.card-media {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    aspect-ratio: 1;
    background: var(--light);
}

.card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s;
}

.card:hover .card-media img {
    transform: scale(1.05);
}

.badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--white);
    font-size: 11px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    color: var(--dark);
}

.heart-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    -webkit-tap-highlight-color: transparent;
}

.heart-btn svg,
.heart-btn ion-icon {
    width: 24px;
    height: 24px;
    font-size: 24px;
    color: white;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.5));
    transition: fill 0.2s, stroke 0.2s, color 0.2s;
}

.heart-btn.liked svg,
.heart-btn.liked ion-icon {
    fill: #ff385c;
    stroke: white;
    stroke-width: 32px;
    color: #ff385c;
}

.card-info {
    padding: 10px 2px 0;
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.card-name {
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
}

.card-stars {
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 13px;
    font-weight: 500;
    flex-shrink: 0;
    margin-left: 8px;
}

.card-stars svg,
.card-stars ion-icon {
    width: 12px;
    height: 12px;
    font-size: 12px;
    fill: var(--dark);
    color: var(--dark);
}

.card-sub {
    font-size: 13px;
    color: var(--gray);
    margin-top: 2px;
}

.card-price {
    font-size: 14px;
    font-weight: 500;
    margin-top: 4px;
}

/* --- EMPTY STATE --- */
.empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 56px 0;
    color: var(--gray);
    font-size: 15px;
    font-weight: 500;
}

/* --- COMING SOON --- */
.coming-soon-wrapper {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 40px 20px;
}

.coming-soon-video-container {
    width: 240px;
    height: 240px;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    position: relative;
}

.coming-soon-video {
    width: 114%;
    height: 114%;
    position: absolute;
    top: -7%;
    left: -7%;
    object-fit: cover;
}

.coming-soon-placeholder {
    text-align: center;
    color: var(--dark);
}

.coming-soon-placeholder h2 {
    font-size: 32px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--dark);
}

.coming-soon-placeholder p {
    font-size: 16px;
    font-weight: 500;
    color: var(--gray);
}

/* --- TOAST --- */
.toast {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%) translateY(12px);
    background: var(--dark);
    color: var(--white);
    padding: 12px 22px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s;
    white-space: nowrap;
    z-index: 999;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* --- FOOTER --- */
footer {
    border-top: 1px solid var(--border);
    background: var(--light);
    padding: 20px 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}

footer a {
    font-size: 13px;
    font-weight: 500;
    color: var(--dark);
    text-decoration: none;
    margin-right: 20px;
}

footer a:hover {
    text-decoration: underline;
}

footer span {
    font-size: 13px;
    font-weight: 500;
    color: var(--gray);
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    nav {
        padding: 0 16px;
        height: 60px;
        gap: 8px;
    }

    .logo {
        font-size: 18px;
    }

    nav.is-home .search-bar {
        display: none;
    }

    nav.not-home .search-bar {
        display: flex;
        flex: 1;
        margin: 0 8px;
        padding: 5px 5px 5px 12px;
        height: 38px;
        border-radius: 20px;
        border: 1px solid var(--border);
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
        background: var(--white);
        gap: 6px;
        align-items: center;
        justify-content: space-between;
    }

    nav.not-home .search-bar .divider,
    nav.not-home .search-bar .search-field:not(:first-child) {
        display: none !important;
    }

    nav.not-home .search-bar .search-field {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 6px;
    }

    nav.not-home .search-bar .search-field label {
        display: none !important;
    }

    nav.not-home .search-bar .search-field span {
        font-size: 12px;
        color: var(--dark);
        font-weight: 500;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 130px;
    }

    nav.not-home .search-bar .search-btn {
        width: 28px;
        height: 28px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: var(--primary);
    }

    nav.not-home .search-bar .search-btn svg {
        width: 13px;
        height: 13px;
        stroke: #fff;
    }

    nav.not-home .nav-right a {
        display: none !important;
    }

    .nav-btn {
        padding: 8px 12px;
        font-size: 12px;
    }

    .profile-menu-btn {
        padding: 4px 8px;
        gap: 5px;
    }

    .burger-icon {
        width: 15px;
        height: 15px;
    }

    .profile-pic {
        width: 23px;
        height: 23px;
    }

    .profile-dropdown {
        min-width: 180px;
    }

    .dropdown-item {
        padding: 10px 14px;
        font-size: 13px;
    }

    .tabs-bar {
        top: 60px;
        overflow-x: auto;
        overflow-y: hidden;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        justify-content: space-around !important;
    }

    .tabs-bar::-webkit-scrollbar {
        height: 4px;
    }

    .tabs-bar::-webkit-scrollbar-track {
        background: transparent;
    }

    .tabs-bar::-webkit-scrollbar-thumb {
        background: var(--border);
        border-radius: 2px;
    }

    .tab {
        padding: 12px 16px;
        font-size: 13px;
        flex-shrink: 0;
        gap: 4px;
    }

    .tab span {
        font-size: 12px;
    }

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

    main {
        padding: 16px;
    }

    .section-header {
        margin-bottom: 12px;
    }

    .section-title {
        font-size: 18px;
    }

    .filters {
        gap: 8px;
        margin-bottom: 16px;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 8px;
        scroll-behavior: smooth;
    }

    .filters::-webkit-scrollbar {
        height: 4px;
    }

    .filters::-webkit-scrollbar-track {
        background: transparent;
    }

    .filters::-webkit-scrollbar-thumb {
        background: var(--border);
        border-radius: 2px;
    }

    .chip {
        padding: 6px 14px;
        font-size: 12px;
        flex-shrink: 0;
        min-height: 34px;
        display: flex;
        align-items: center;
    }

    .card-media {
        aspect-ratio: 1;
    }

    .card-name {
        font-size: 13px;
    }

    .card-sub {
        font-size: 12px;
    }

    .card-price {
        font-size: 13px;
        font-weight: 500;
    }

    .card-stars {
        font-size: 12px;
    }

    .badge {
        font-size: 10px;
        padding: 3px 8px;
    }

    .heart-btn svg,
    .heart-btn ion-icon {
        width: 20px;
        height: 20px;
        font-size: 20px;
    }

    footer {
        padding: 16px;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    footer a {
        margin-right: 12px;
        font-size: 12px;
    }

    footer span {
        font-size: 12px;
    }

    .show-all {
        display: none;
    }

    .coming-soon-placeholder h2 {
        font-size: 28px;
    }

    .coming-soon-placeholder p {
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    nav {
        padding: 0 12px;
        height: 56px;
    }

    .logo {
        font-size: 16px;
    }

    .nav-right {
        gap: 4px;
    }

    .nav-btn {
        padding: 6px 10px;
        font-size: 11px;
        border-radius: 20px;
    }

    .profile-menu-btn {
        padding: 3px 7px;
        gap: 4px;
    }

    .burger-icon {
        width: 14px;
        height: 14px;
    }

    .profile-pic {
        width: 22px;
        height: 22px;
    }

    .profile-dropdown {
        min-width: 160px;
        margin-top: 6px;
    }

    .dropdown-item {
        padding: 10px 12px;
        font-size: 12px;
    }

    .tabs-bar {
        top: 56px;
        justify-content: space-around !important;
    }

    .tab {
        padding: 10px 12px;
        font-size: 12px;
    }

    .tab span {
        display: inline-block;
    }

    .tab svg {
        width: 18px;
        height: 18px;
    }

    .tab-icon-wrapper,
    .tab-icon-wrapper img,
    .tab-icon-wrapper>div {
        width: 18px !important;
        height: 18px !important;
    }

    main {
        padding: 12px;
        max-width: 100%;
    }

    .section-title {
        font-size: 16px;
        font-weight: 500;
    }

    .grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .filters {
        gap: 6px;
        margin-bottom: 12px;
        padding-bottom: 6px;
    }

    .chip {
        padding: 6px 12px;
        font-size: 11px;
        min-height: 32px;
    }

    .chip svg,
    .chip ion-icon {
        width: 11px;
        height: 11px;
        font-size: 11px;
    }

    .card {
        border-radius: 16px;
    }

    .card-media {
        border-radius: 16px;
    }

    .card-info {
        padding: 8px 0;
    }

    .card-name {
        font-size: 12px;
    }

    .card-sub {
        font-size: 11px;
        margin-top: 1px;
    }

    .card-price {
        font-size: 12px;
        margin-top: 2px;
    }

    .card-stars {
        font-size: 11px;
        margin-left: 4px;
    }

    .card-stars svg,
    .card-stars ion-icon {
        width: 10px;
        height: 10px;
        font-size: 10px;
    }

    .badge {
        top: 8px;
        left: 8px;
        font-size: 9px;
        padding: 2px 6px;
    }

    .heart-btn {
        top: 6px;
        right: 6px;
        padding: 2px;
    }

    .heart-btn svg,
    .heart-btn ion-icon {
        width: 18px;
        height: 18px;
        font-size: 18px;
    }

    .toast {
        bottom: 20px;
        padding: 10px 16px;
        font-size: 12px;
        border-radius: 8px;
    }

    footer {
        padding: 12px;
    }

    footer a {
        margin-right: 8px;
        font-size: 11px;
    }

    footer span {
        font-size: 11px;
    }

    .empty {
        padding: 40px 16px;
        font-size: 14px;
    }

    .coming-soon-placeholder h2 {
        font-size: 24px;
    }

    .coming-soon-placeholder p {
        font-size: 14px;
    }
}

@media (max-width: 360px) {
    .logo {
        font-size: 14px;
    }

    .section-title {
        font-size: 14px;
    }

    .grid {
        gap: 8px;
    }

    .card-name {
        font-size: 11px;
    }

    .card-sub {
        font-size: 10px;
    }

    .card-price {
        font-size: 11px;
    }

    main {
        padding: 8px;
    }
}

/* --- TOUCH OPTIMIZATIONS --- */
@media (hover: none) and (pointer: coarse) {
    .chip {
        min-height: 44px;
    }

    .nav-btn {
        min-height: 44px;
        min-width: 44px;
    }

    .tab {
        min-height: 44px;
    }

    .card {
        -webkit-user-select: none;
        user-select: none;
    }

    .heart-btn {
        min-width: 44px;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* --- IMAGE OPTIMIZATION --- */
.card-media img {
    image-rendering: -webkit-optimize-contrast;
    -webkit-font-smoothing: antialiased;
}

/* --- PREVENT ZOOM ON INPUT --- */
input,
select,
textarea {
    font-size: 16px;
}

/* --- SMOOTH SCROLLING --- */
html {
    scroll-behavior: smooth;
    -webkit-scroll-behavior: smooth;
}

/* --- PREVENT LAYOUT SHIFT --- */
.grid {
    contain: layout style;
}

.card {
    contain: layout style;
}

.back-nav-container {
    margin-bottom: 20px;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--gray);
    font-size: 14px;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.back-link:hover {
    color: var(--dark);
    text-decoration: underline;
}

.back-icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* =========================
   DETAIL HEADER
========================= */
.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 24px;
    gap: 24px;
}

.header-left {
    min-width: 0;
    flex: 1;
}

.detail-title {
    font-size: 26px;
    font-weight: 500;
    color: var(--dark);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.detail-title.mobile-only {
    display: none !important;
}

.header-metadata {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--gray);
    font-weight: 500;
}

.rating-badge {
    color: var(--dark);
    font-weight: 600;
}

.meta-dot {
    color: var(--border);
}

.reviews-link,
.location-link {
    text-decoration: underline;
    cursor: pointer;
    color: var(--dark);
}

.header-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
}

.action-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--dark);
    cursor: pointer;
    text-decoration: underline;
    transition: background 0.2s;
}

.action-btn:hover {
    background: var(--light);
}

.action-icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.heart-icon {
    fill: none;
    stroke: var(--dark);
    stroke-width: 2.5;
}

/* =========================
   AIRBNB-STYLE GALLERY
========================= */
.detail-gallery {
    margin-bottom: 28px;
    position: relative;
}

.gallery-track {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 190px 190px;
    gap: 8px;
    border-radius: 16px;
    overflow: hidden;
    width: 100%;
}

.gallery-item {
    overflow: hidden;
    position: relative;
    width: 100%;
    height: 100%;
    background: #eaeaea;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
}

.gallery-item:hover img {
    transform: scale(1.03);
}

.gallery-item.item-1 {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
    height: 388px;
}

.gallery-item.item-2 {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
}

.gallery-item.item-3 {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
}

.gallery-item.item-4 {
    grid-column: 3 / 4;
    grid-row: 1 / 2;
}

.gallery-item.item-5 {
    grid-column: 3 / 4;
    grid-row: 2 / 3;
}

.gallery-track.single-image {
    grid-template-columns: 1fr;
    grid-template-rows: 388px;
}

.gallery-track.single-image .gallery-item.item-1 {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    height: 388px;
}

.gallery-track.two-images {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 388px;
}

.gallery-track.two-images .gallery-item.item-1 {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    height: 388px;
}

.gallery-track.two-images .gallery-item.item-2 {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    height: 388px;
}

.gallery-placeholder-item {
    background: #f1f1f1;
    width: 100%;
    height: 100%;
}

.gallery-pagination {
    display: none;
}

.gallery-counter {
    display: none;
}

@media (max-width: 768px) {
    .detail-gallery {
        margin: 0 -16px 20px -16px;
    }

    .gallery-track {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        gap: 0;
        grid-template-columns: none;
        grid-template-rows: none;
        border-radius: 0;
        height: 280px;
        scrollbar-width: none;
    }

    .gallery-track::-webkit-scrollbar {
        display: none;
    }

    .gallery-item {
        flex: 0 0 100%;
        scroll-snap-align: center;
        height: 280px;
    }

    .gallery-item.item-1,
    .gallery-item.item-2,
    .gallery-item.item-3,
    .gallery-item.item-4,
    .gallery-item.item-5 {
        grid-column: auto;
        grid-row: auto;
        height: 280px;
    }

    .gallery-pagination {
        position: absolute;
        bottom: 14px;
        left: 50%;
        transform: translateX(-50%);
        display: flex;
        gap: 6px;
        z-index: 5;
    }

    .gallery-pagination span {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.5);
        transition: all 0.2s ease;
    }

    .gallery-pagination span.active {
        width: 18px;
        border-radius: 10px;
        background: #fff;
    }
}

/* =========================
   CONTENT SPLIT GRID
========================= */
.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) 380px;
    gap: 48px;
    align-items: start;
    margin-bottom: 48px;
}

.content-left {
    min-width: 0;
}

.content-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 24px 0;
}

.detail-subtitle {
    font-size: 20px;
    font-weight: 500;
    color: var(--dark);
    margin-bottom: 16px;
    letter-spacing: -0.3px;
}

/* =========================
   HOST INFO HEADER
========================= */
.host-header-sec {
    display: flex;
    /* justify-content: space-between; */
    align-items: center;
}

.host-title {
    font-size: 22px;
    font-weight: 500;
    color: var(--dark);
    margin-bottom: 4px;
    letter-spacing: -0.3px;
}

.host-sub {
    font-size: 14px;
    color: var(--gray);
    font-weight: 500;
}

.host-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    box-shadow: var(--shadow);
}

/* =========================
   SPECIFICATIONS SECTION
========================= */
.specifications-section {
    margin: 28px 0;
}

.spec-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 16px;
}

.spec-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.spec-grid-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.spec-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: #f1f3f6;
    border-radius: 12px;
    color: #4b5563;
    flex-shrink: 0;
}

.spec-icon {
    font-size: 20px;
}

.spec-details {
    display: flex;
    flex-direction: column;
}

.spec-label {
    font-size: 11px;
    color: #9ca3af;
    margin-bottom: 2px;
}

.spec-value {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
}

/* =========================
   DESCRIPTION
========================= */
.description-pill-wrapper {
    display: flex;
    margin-bottom: 16px;
}

.description-pill-btn {
    background: #0B132B;
    color: #ffffff;
    padding: 8px 24px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    display: inline-block;
}

.listing-description {
    font-size: 15px;
    color: #4b4b4b;
    line-height: 1.7;
    white-space: pre-line;
}

.show-more-btn {
    display: none;
    width: 100%;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #1e293b;
    padding: 12px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    margin-top: 16px;
    transition: background 0.2s;
}

.show-more-btn:hover {
    background: #f8fafc;
}

/* =========================
   AMENITIES GRID
========================= */
.amenities-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.amenity-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: var(--dark);
    font-weight: 500;
}

.amenity-item ion-icon {
    font-size: 20px;
    color: #4b5563;
    flex-shrink: 0;
}

/* =========================
   MAP SECTION
========================= */
.map-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.map-location {
    font-size: 14px;
    color: var(--gray);
    font-weight: 500;
}

.leaflet-map-container {
    width: 100%;
    height: 280px;
    border-radius: 16px !important;
    border: 1px solid var(--border);
    z-index: 1;
    overflow: hidden;
}

.report-listing-wrapper {
    margin-top: 16px;
    display: flex;
}

.report-listing-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #ef4444;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: opacity 0.2s;
}

.report-listing-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.report-listing-link ion-icon {
    font-size: 16px;
}

/* =========================
   REVIEWS SECTION
========================= */
.reviews-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.reviews-rating-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 8px;
    background: #f8fafc;
    padding: 24px;
    border-radius: 16px;
    border: 1px solid var(--border);
}

.overall-rating-label {
    font-size: 14px;
    color: #4b5563;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.overall-rating-stars {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
}

.review-star-icon {
    font-size: 32px;
    color: #f59e0b;
}

.overall-rating-count {
    font-size: 13px;
    color: #6b7280;
    font-weight: 500;
}

.rating-breakdown-container {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 16px;
}

.breakdown-item {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 14px;
    color: var(--dark);
    font-weight: 500;
}

.breakdown-label {
    width: 110px;
    flex-shrink: 0;
    color: #4b5563;
    font-weight: 600;
}

.progress-bar-container {
    flex: 1;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: #f59e0b;
    border-radius: 4px;
}

.breakdown-score {
    font-weight: 600;
    width: 20px;
    text-align: right;
    color: #1f2937;
}

.no-reviews-text {
    text-align: center;
    color: #9ca3af;
    font-size: 14px;
    margin-top: 24px;
    font-weight: 500;
}

.reviews-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px 40px;
    margin-top: 16px;
}

.review-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.review-user-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f1f1f1;
    color: var(--dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    border: 1px solid var(--border);
}

.review-user-info {
    display: flex;
    flex-direction: column;
}

.review-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--dark);
}

.review-date {
    font-size: 12px;
    color: var(--gray);
}

.review-text {
    font-size: 14px;
    color: #4b4b4b;
    line-height: 1.5;
}

/* =========================
   BOOKING CARD (DESKTOP)
========================= */
.booking-sidebar {
    position: sticky;
    top: 100px;
    z-index: 10;
}

.booking-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.03);
}

.booking-price-header {
    margin-bottom: 24px;
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.booking-price-amount {
    font-size: 24px;
    font-weight: 600;
    color: var(--dark);
}

.booking-price-unit {
    font-size: 15px;
    color: var(--gray);
    font-weight: 500;
}

.booking-dates-container {
    display: flex;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
}

.date-field-half {
    flex: 1;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative;
}

.date-field-half.border-left {
    border-left: 1px solid var(--border);
}

.field-label {
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--dark);
    letter-spacing: 0.5px;
}

.date-input-field {
    border: none;
    outline: none;
    width: 100%;
    font-size: 13px;
    font-weight: 500;
    background: transparent;
    padding: 0;
    height: 24px;
    color: var(--dark);
}

.booking-field-full {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 20px;
}

.select-input-field {
    border: none;
    outline: none;
    width: 100%;
    font-size: 13px;
    font-weight: 500;
    background: transparent;
    padding: 0;
    height: 24px;
    color: var(--dark);
}

.reserve-btn {
    width: 100%;
    height: 48px;
    border: none;
    border-radius: 12px;
    background: var(--primary);
    color: var(--white);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.reserve-btn:hover {
    background: var(--primary-hover);
    transform: scale(1.05);
}

.reserve-btn:active {
    transform: scale(0.98);
}

.booking-note {
    font-size: 12px;
    color: var(--gray);
    text-align: center;
    margin-top: 12px;
    margin-bottom: 0;
    font-weight: 500;
}

/* =========================
   PRICE BREAKDOWN PANEL
========================= */
.price-breakdown-wrapper {
    display: none;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    animation: slideDownFade 0.25s ease-out forwards;
}

.price-breakdown-wrapper.show {
    display: flex;
}

.breakdown-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #4b4b4b;
    font-weight: 500;
}

.breakdown-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 4px 0;
}

.breakdown-row.total-row {
    font-weight: 600;
    color: var(--dark);
    font-size: 15px;
}

@keyframes slideDownFade {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================
   MOBILE RESPONSIVE
========================= */
.mobile-reserve-bar {
    display: none;
}

.mobile-floating-reserve-btn {
    display: none;
}


@media (max-width: 992px) {
    .content-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .booking-sidebar {
        display: none;
    }

    main {
        padding-bottom: 80px;
    }

    .mobile-reserve-bar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(12px);
        border-top: 1px solid var(--border);
        padding: 12px 24px calc(12px + env(safe-area-inset-bottom));
        display: flex;
        justify-content: space-between;
        align-items: center;
        z-index: 100;
        box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.03);
    }

    .mobile-price {
        display: flex;
        flex-direction: column;
        line-height: 1.3;
    }

    .mobile-price strong {
        font-size: 18px;
        font-weight: 600;
        color: var(--dark);
    }

    .mobile-price span {
        font-size: 12px;
        color: var(--gray);
        font-weight: 500;
    }

    .mobile-reserve-btn {
        background: var(--primary);
        color: #fff;
        border: none;
        padding: 12px 24px;
        border-radius: 12px;
        font-size: 14px;
        font-weight: 500;
        cursor: pointer;
        transition: transform 0.1s;
    }

    .mobile-reserve-btn:hover {
        transform: scale(1.05);
    }

    .mobile-reserve-btn:active {
        transform: scale(0.98);
    }
}

@media (max-width: 768px) {

    .rating-breakdown-grid,
    .reviews-grid,
    .amenities-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

/* =========================
   MOBILE OFFCANVAS SHEET
========================= */
.booking-offcanvas {
    position: fixed;
    inset: 0;
    z-index: 20000;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.booking-offcanvas.show {
    pointer-events: auto;
}

.booking-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    opacity: 0;
    transition: opacity 0.25s ease;
    z-index: 2001;
}

.booking-offcanvas.show .booking-overlay {
    opacity: 1;
}

.booking-sheet {
    position: relative;
    background: #fff;
    border-radius: 20px 20px 0 0;
    max-height: 85vh;
    overflow-y: auto;
    transform: translateY(100%);
    transition: transform 0.28s cubic-bezier(0.22, 0.61, 0.36, 1);
    z-index: 2002;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.12);
    padding-bottom: calc(16px + env(safe-area-inset-bottom));
}

.booking-offcanvas.show .booking-sheet {
    transform: translateY(0);
}

.booking-handle {
    width: 36px;
    height: 4px;
    background: #dddddd;
    border-radius: 2px;
    margin: 10px auto 6px;
}

.booking-sheet-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 16px 20px 8px;
}

.booking-sheet-price {
    font-size: 22px;
    font-weight: 600;
    color: var(--dark);
}

.booking-sheet-price span {
    font-size: 14px;
    color: var(--gray);
    font-weight: 500;
}

.booking-sheet-sub {
    font-size: 12px;
    color: var(--gray);
    margin-top: 2px;
    font-weight: 500;
}

.booking-close-btn {
    border: none;
    background: #f1f1f1;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    color: var(--dark);
}

.booking-sheet-body {
    padding: 16px 20px;
}

.booking-sheet-footer {
    padding: 8px 20px 16px;
    background: #ffffff !important;
    position: sticky;
    bottom: 0;
    border-top: 1px solid var(--border);
    z-index: 10 !important;
}

.booking-confirm-btn {
    width: 100%;
    height: 48px;
    border: none;
    border-radius: 12px;
    background: var(--primary);
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}

.booking-confirm-btn:hover {
    background: var(--primary-hover);
    transform: scale(1.05);
}

.booking-confirm-btn:active {
    transform: scale(0.98);
}

/* --- PROFILE MODULE STYLES (AIRBNB STYLE) --- */
.profile-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    margin-top: 20px;
    align-items: start;
}

.profile-main-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.05);
}

.profile-header-sec {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    padding-bottom: 20px;
    margin-bottom: 24px;
}

.profile-header-sec h1 {
    font-size: 28px;
    font-weight: 500;
    color: var(--dark);
    margin: 0;
}

.profile-avatar-container {
    position: relative;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow);
    background: var(--light);
    border: 3px solid var(--primary);
    transition: transform 0.2s, border-color 0.2s;
}

.profile-avatar-container:hover {
    transform: scale(1.03);
    border-color: #20a287;
}

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

.profile-avatar-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 11px;
    font-weight: 500;
    text-align: center;
    opacity: 0;
    transition: opacity 0.2s;
    padding: 8px;
}

.profile-avatar-container:hover .profile-avatar-overlay {
    opacity: 1;
}

/* Edit Group Row (Airbnb Style) */
.profile-row {
    border-bottom: 1px solid var(--border);
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: background 0.15s;
}

.profile-row:last-child {
    border-bottom: none;
}

.profile-row-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.profile-row-label {
    font-size: 15px;
    font-weight: 500;
    color: var(--dark);
}

.profile-row-value {
    font-size: 14px;
    color: var(--gray);
    margin-top: 4px;
}

.profile-input-group {
    margin-top: 12px;
    display: none;
    /* toggled with js */
    flex-direction: column;
    gap: 8px;
}

.profile-input-group.show {
    display: flex;
}

.profile-field-edit-btn {
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 500;
    color: var(--dark);
    text-decoration: underline;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.1s;
}

.profile-field-edit-btn:hover {
    background: var(--light);
}

/* Custom inputs matching consistency */
.profile-input {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-size: 14px;
    font-family: inherit;
    color: var(--dark);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: var(--white);
}

.profile-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 185, 154, 0.15);
}

.profile-save-row {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
}

.btn-profile-save {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 12px 28px;
    border-radius: 12px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    font-family: inherit;
    box-shadow: 0 4px 12px rgba(37, 185, 154, 0.3);
}

.btn-profile-save:hover {
    background: #20a287;
    transform: translateY(-1px);
}

.btn-profile-save:active {
    transform: translateY(1px);
}

/* Sidebar Info Cards */
.profile-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.info-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
}

.info-card h3 {
    font-size: 16px;
    font-weight: 500;
    color: var(--dark);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-card h3 svg,
.info-card h3 ion-icon {
    color: var(--primary);
    width: 20px;
    height: 20px;
    font-size: 20px;
    flex-shrink: 0;
}

.info-card p {
    font-size: 13px;
    color: var(--gray);
    line-height: 1.5;
}

.info-card-divider {
    height: 1px;
    background: var(--border);
    margin: 16px 0;
}

/* Responsive Grid Profile */
@media (max-width: 1024px) {
    .profile-container {
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .profile-container {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .profile-main-card {
        padding: 20px;
    }

    .profile-header-sec h1 {
        font-size: 22px;
    }

    .profile-avatar-container {
        width: 80px;
        height: 80px;
    }
}

/* --- BOOKINGS MODULE STYLES (AIRBNB STYLE) --- */
.bookings-section-header {
    margin-bottom: 24px;
}

.bookings-section-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.5px;
    margin: 0;
}

.bookings-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
    overflow-x: auto;
    white-space: nowrap;
    padding: 4px 0 10px;
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
}

.bookings-tabs::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.bookings-tab-btn {
    background: #ffffff;
    border: 1.5px solid #f1f5f9;
    padding: 8px 18px;
    font-size: 13.5px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    border-radius: 100px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.bookings-tab-btn:hover {
    color: #0f172a;
    border-color: #cbd5e1;
    background: #f8fafc;
}

.bookings-tab-btn.active {
    color: #ffffff;
    background: #0f172a;
    border-color: #0f172a;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.12);
}

.bookings-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.booking-card-item {
    display: flex;
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 16px;
    gap: 16px;
    align-items: center;
    cursor: pointer;
}

.booking-card-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.booking-card-img {
    width: 110px;
    height: 110px;
    object-fit: cover;
    flex-shrink: 0;
    border-radius: 16px;
    background: #f8fafc;
}

.booking-card-details {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 6px;
}

.booking-card-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.booking-card-title {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    text-transform: uppercase;
    margin: 0;
    line-height: 1.3;
}

.booking-category-badge {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
    background: #e6f7f4;
    color: #1e9488;
    white-space: nowrap;
    text-transform: none;
}

.booking-card-info-row {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    color: #64748b;
    font-weight: 500;
}

.booking-card-info-row svg {
    width: 14px;
    height: 14px;
    color: #94a3b8;
    flex-shrink: 0;
}

.booking-card-status-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
    gap: 8px;
}

.booking-status-badge {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: capitalize;
    display: inline-block;
}

.status-paid {
    background: #dcfce7;
    color: #166534;
}

.status-pending {
    background: #fef9c3;
    color: #854d0e;
}

.status-canceled {
    background: #fee2e2;
    color: #991b1b;
}

.status-completed {
    background: #f3f4f6;
    color: #374151;
}

.bookings-group-header {
    font-size: 12px;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin: 24px 0 12px;
}

/* Interactive Countdown Timer (Twist 1) */
.countdown-timer-box {
    background: linear-gradient(135deg, rgba(37, 185, 154, 0.1) 0%, rgba(37, 185, 154, 0.02) 100%);
    border: 1px dashed rgba(37, 185, 154, 0.4);
    border-radius: 10px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: #189e90;
    align-self: flex-start;
}

.countdown-pulse {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
    box-shadow: 0 0 0 0 rgba(37, 185, 154, 0.7);
    animation: countdown-pulse-anim 1.6s infinite;
}

@keyframes countdown-pulse-anim {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(37, 185, 154, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 8px rgba(37, 185, 154, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(37, 185, 154, 0);
    }
}

/* Star reviews inline widget (Twist 2) */
.review-widget {
    background: var(--light);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 8px;
}

.review-stars-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.review-star-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 2px;
    transition: transform 0.15s;
}

.review-star-btn:hover {
    transform: scale(1.15);
}

.review-star-btn svg {
    width: 22px;
    height: 22px;
    fill: #e5e7eb;
    /* default empty gray */
    transition: fill 0.2s;
}

.review-star-btn.active svg,
.review-star-btn.hovered svg {
    fill: #f59e0b;
    /* amber active */
}

.review-input-remarks {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid var(--border);
    border-radius: 8px;
    font-size: 13px;
    font-family: inherit;
    color: var(--dark);
    outline: none;
    background: var(--white);
    resize: vertical;
}

.review-submit-row {
    display: flex;
    justify-content: flex-end;
}

.btn-review-submit {
    background: var(--dark);
    color: var(--white);
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.2s;
}

.btn-review-submit:hover {
    background: #333333;
}

/* Card Actions Row */
.booking-card-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    border-top: 1px solid var(--border);
    padding-top: 16px;
}

/* Modals & Boarding Pass style ticket (Twist 3) */
.ticket-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    opacity: 0;
    pointer-events: none;
    align-items: center;
    justify-content: center;
    z-index: 30000;
    padding: 20px;
    transition: opacity 0.3s ease;
}

.ticket-modal.show {
    opacity: 1;
    pointer-events: auto;
}

.ticket-modal-content {
    background: var(--white);
    border-radius: 24px;
    overflow: hidden;
    max-width: 480px;
    width: 100%;
    position: relative;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    animation: ticket-slide-up 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

@keyframes ticket-slide-up {
    from {
        transform: translateY(40px) scale(0.96);
        opacity: 0;
    }

    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.modal-close-circle {
    position: absolute;
    top: 16px;
    left: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--white);
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    cursor: pointer;
    color: var(--dark);
    transition: all 0.2s ease;
}

.modal-close-circle:hover {
    transform: scale(1.1);
    background: #f3f4f6;
}

.modal-close-circle svg {
    width: 20px;
    height: 20px;
}

.modal-hero-container {
    width: 100%;
    height: 300px;
    background: #f3f4f6;
    overflow: hidden;
    position: relative;
}

.modal-hero-container img {
    width: 100%;
    height: 140%;
    object-fit: cover;
    position: absolute;
    top: -20%;
    left: 0;
    will-change: transform;
}

.modal-scrollable-body {
    overflow-y: auto;
    flex: 1;
}

.modal-header-section {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
}

.brand-model-wrapper {
    display: flex;
    flex-direction: column;
}

.modal-brand-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--gray);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.modal-model-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--dark);
    margin: 4px 0 0 0;
}

.modal-status-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: capitalize;
}

.modal-status-badge.pending {
    background: #fef3c7;
    color: #d97706;
}

.modal-status-badge.confirmed,
.modal-status-badge.completed {
    background: #d1fae5;
    color: #059669;
}

.modal-status-badge.canceled {
    background: #fee2e2;
    color: #dc2626;
}

.modal-section {
    margin-bottom: 24px;
}

.modal-section-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 12px 0;
}

.rental-period-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    background: #f8fafc;
    padding: 16px;
    border-radius: 16px;
    border: 1px solid #f1f5f9;
}

.rental-grid-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rental-icon-box {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #eff6ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.rental-icon-box svg {
    width: 18px;
    height: 18px;
}

.rental-info-text {
    display: flex;
    flex-direction: column;
}

.rental-info-label {
    font-size: 11px;
    color: #64748b;
    font-weight: 500;
}

.rental-info-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--dark);
    margin-top: 2px;
}

.proof-image-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 160px;
    cursor: pointer;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
}

.proof-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.proof-image-wrapper:hover img {
    transform: scale(1.05);
}

.proof-view-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: white;
    font-weight: 600;
    font-size: 14px;
    opacity: 0.9;
    transition: background 0.2s;
}

.proof-image-wrapper:hover .proof-view-overlay {
    background: rgba(0, 0, 0, 0.5);
}

.proof-view-overlay svg {
    width: 18px;
    height: 18px;
}

.booking-summary-card {
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 16px;
    background: var(--white);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.summary-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    color: var(--dark);
}

.summary-header svg {
    width: 20px;
    height: 20px;
    color: #475569;
}

.summary-header h3 {
    font-size: 15px;
    font-weight: 700;
    margin: 0;
}

.summary-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.summary-row.dates-total-row {
    align-items: flex-start;
}

.summary-dates-text {
    font-size: 13px;
    font-weight: 600;
    color: var(--dark);
    max-width: 70%;
}

.summary-calc-text {
    font-size: 12px;
    color: #64748b;
}

.summary-label {
    color: #64748b;
    font-weight: 500;
}

.summary-value {
    color: var(--dark);
    font-weight: 600;
}

.summary-value.bold {
    font-size: 15px;
    font-weight: 700;
}

.summary-divider {
    border-top: 1px dashed #cbd5e1;
    margin: 8px 0;
}

.summary-row.total-row {
    font-size: 15px;
}

.summary-total-label {
    font-weight: 700;
    color: var(--dark);
}

.summary-total-value {
    font-size: 20px;
    font-weight: 800;
    color: var(--dark);
}

.summary-booked-on-text {
    text-align: center;
    font-size: 11px;
    color: #94a3b8;
    margin-top: 12px;
}

.modal-status-footer-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}

.modal-status-footer-bar.pending {
    background: #fffbeb;
    color: #d97706;
    border-top: 1px solid #fef3c7;
}

.modal-status-footer-bar.confirmed {
    background: #ecfdf5;
    color: #059669;
    border-top: 1px solid #d1fae5;
}

.modal-status-footer-bar.completed {
    background: #f0f9ff;
    color: #0284c7;
    border-top: 1px solid #e0f2fe;
}

.modal-status-footer-bar.canceled {
    background: #fef2f2;
    color: #dc2626;
    border-top: 1px solid #fee2e2;
}

.status-footer-icon {
    width: 16px;
    height: 16px;
}

.mt-12 {
    margin-top: 12px;
}

/* Empty Bookings State */
.bookings-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 20px;
    color: #94a3b8;
}

.bookings-empty-state svg {
    width: 80px;
    height: 80px;
    color: #cbd5e1;
    margin-bottom: 18px;
    stroke-width: 1.5;
}

.bookings-empty-state h2 {
    font-size: 16px;
    font-weight: 500;
    color: #94a3b8;
    margin: 0;
}

/* Responsive & Desktop Layout Alignments */
@media (min-width: 769px) {

    .bookings-section-header,
    .bookings-tabs,
    .bookings-tab-content {
        max-width: 720px;
        margin-left: auto;
        margin-right: auto;
    }
}

.booking-card-actions-desktop {
    display: flex;
    align-items: center;
    gap: 8px;
}

@media (max-width: 768px) {
    .booking-card-actions-desktop {
        display: none !important;
    }

    .countdown-timer-box {
        display: none !important;
    }

    .bookings-subtitle {
        display: none !important;
    }

    .bookings-section-header {
        margin-top: 12px;
        margin-bottom: 16px;
    }

    .bookings-section-header h1 {
        font-size: 26px;
    }

    .bookings-tabs {
        margin-bottom: 16px;
        padding-bottom: 4px;
    }

    .bookings-group-header {
        margin: 20px 0 12px;
    }
}

@media (max-width: 480px) {
    .booking-card-item {
        padding: 12px;
        gap: 12px;
        border-radius: 16px;
    }

    .booking-card-img {
        width: 100px;
        height: 100px;
        border-radius: 12px;
    }

    .booking-card-title {
        font-size: 14px;
    }
}

/* --- SETTINGS MODULE STYLES (AIRBNB STYLE) --- */
.settings-section-header {
    margin-bottom: 32px;
}

.settings-section-header h1 {
    font-size: 32px;
    font-weight: 500;
    color: var(--dark);
}

.settings-section-header p {
    font-size: 15px;
    color: var(--gray);
    margin-top: 4px;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 40px;
}

.settings-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: left;
}

.settings-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    border-color: var(--dark);
}

.settings-card-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.settings-card-icon svg {
    width: 32px;
    height: 32px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

.settings-card-title {
    font-size: 16px;
    font-weight: 500;
    color: var(--dark);
}

.settings-card-desc {
    font-size: 13px;
    color: var(--gray);
    line-height: 1.5;
}

/* Detail Form Views */
.settings-view-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
    max-width: 680px;
    margin: 0 auto;
}

.settings-view-header {
    border-bottom: 1px solid var(--border);
    padding-bottom: 20px;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.settings-back-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    transition: background 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
}

.settings-back-btn:hover {
    background: var(--light);
}

.settings-back-btn svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.5;
}

.settings-view-title h2 {
    font-size: 24px;
    font-weight: 500;
    color: var(--dark);
}

/* Custom CSS Toggle Switch (Airbnb Style) */
.toggle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}

.toggle-row:last-child {
    border-bottom: none;
}

.toggle-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-width: 80%;
}

.toggle-label {
    font-size: 15px;
    font-weight: 500;
    color: var(--dark);
}

.toggle-desc {
    font-size: 13px;
    color: var(--gray);
    line-height: 1.4;
}

/* Switch styling */
.switch-container {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 28px;
}

.switch-container input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background-color: #ccc;
    transition: 0.3s;
    border-radius: 34px;
}

.switch-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

input:checked+.switch-slider {
    background-color: var(--primary);
}

input:focus+.switch-slider {
    box-shadow: 0 0 1px var(--primary);
}

input:checked+.switch-slider:before {
    transform: translateX(20px);
}

/* Responsive grids */
@media (max-width: 1024px) {
    .settings-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .settings-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .settings-view-card {
        padding: 20px;
    }

    .settings-section-header h1 {
        font-size: 26px;
    }
}

/* --- HELP CENTER MODULE STYLES (AIRBNB STYLE) --- */
/* --- HELP CENTER MODULE STYLES (AIRBNB STYLE) --- */
.help-page-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 12px 10px 40px;
    font-family: 'Poppins', sans-serif;
}

.help-back-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
}

.help-back-circle-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
    background: var(--white);
    transition: background 0.2s, transform 0.2s;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
}

.help-back-circle-btn:hover {
    background: var(--light);
    transform: scale(1.05);
}

.help-back-circle-btn svg {
    width: 18px;
    height: 18px;
    stroke-width: 2.5;
}

.help-back-label {
    font-size: 20px;
    font-weight: 600;
    color: var(--dark);
}

/* Centered Top Section */
.help-hero-centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
    margin-bottom: 48px;
    margin-top: 10px;
}

.help-brand-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
}

.help-ayo-logo {
    height: 44px;
    object-fit: contain;
}

.help-brand-subtitle {
    font-size: 15px;
    color: var(--gray);
    margin: 0;
}

.help-search-box-container {
    max-width: 580px;
    width: 100%;
}

.help-search-box {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
}

.help-search-box svg.search-icon {
    position: absolute;
    left: 20px;
    color: var(--gray);
    width: 18px;
    height: 18px;
    pointer-events: none;
}

.help-search-box input {
    width: 100%;
    height: 52px;
    padding: 12px 20px 12px 52px;
    border: none;
    border-radius: 26px;
    font-size: 15px;
    font-family: inherit;
    color: var(--dark);
    outline: none;
    background: #f2f4f8;
    transition: background-color 0.2s, box-shadow 0.2s;
}

.help-search-box input:focus {
    background: var(--white);
    box-shadow: 0 0 0 1.5px var(--primary), 0 4px 16px rgba(37, 185, 154, 0.1);
}

/* Swapped Columns Grid */
.help-split-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 60px;
}

.help-faqs-col {
    display: flex;
    flex-direction: column;
}

.help-contact-col {
    display: flex;
    flex-direction: column;
}

.help-section-label {
    font-size: 11px;
    font-weight: 700;
    color: #8fa0b5;
    letter-spacing: 1px;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.help-contact-list-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.help-contact-row {
    display: flex;
    align-items: center;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
    cursor: pointer;
    transition: background 0.2s;
}

.help-contact-row:last-child {
    border-bottom: none;
}

.help-contact-row:hover {
    background: var(--light);
}

.contact-icon-box {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
}

.contact-icon-box.chat-icon {
    background: rgba(37, 185, 154, 0.1);
    color: var(--primary);
}

.contact-icon-box.email-icon {
    background: rgba(54, 162, 235, 0.1);
    color: #36a2eb;
}

.contact-icon-box.call-icon {
    background: rgba(255, 159, 64, 0.1);
    color: #ff9f40;
}

.contact-icon-box svg {
    width: 20px;
    height: 20px;
}

.contact-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.contact-title {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--dark);
}

.contact-desc {
    font-size: 12px;
    color: var(--gray);
}

.contact-arrow {
    width: 16px;
    height: 16px;
    color: var(--border);
    transition: transform 0.2s, color 0.2s;
}

.help-contact-row:hover .contact-arrow {
    color: var(--dark);
    transform: translateX(2px);
}

/* FAQs Left Column Style */
.help-faq-card-list {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.faq-row-item {
    border-bottom: 1px solid var(--border);
    transition: background-color 0.2s;
}

.faq-row-item:last-child {
    border-bottom: none;
}

.faq-question-header {
    width: 100%;
    padding: 22px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    color: var(--dark);
    transition: color 0.2s;
}

.faq-row-item:hover .faq-question-header {
    color: var(--primary);
}

.faq-row-arrow {
    width: 16px;
    height: 16px;
    color: var(--gray);
    transition: transform 0.25s ease, color 0.25s ease;
}

.faq-row-item.open .faq-row-arrow {
    transform: rotate(90deg);
    color: var(--dark);
}

.faq-row-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease-out, padding 0.25s ease-out;
    padding: 0 24px;
    font-size: 13.5px;
    color: var(--gray);
    line-height: 1.6;
}

.faq-row-item.open .faq-row-answer {
    max-height: 300px;
    padding-bottom: 24px;
}

/* Responsive elements */
@media (max-width: 992px) {
    .help-split-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .help-faqs-col {
        max-width: 600px;
        margin: 0 auto;
        width: 100%;
    }

    .help-contact-col {
        max-width: 600px;
        margin: 0 auto;
        width: 100%;
    }
}

@media (max-width: 576px) {
    .help-page-container {
        padding: 20px 16px 40px;
    }

    .help-hero-centered {
        margin-top: 0;
        gap: 16px;
        margin-bottom: 32px;
    }

    .help-ayo-logo {
        height: 38px;
    }

    .faq-question-header {
        padding: 18px 20px;
        font-size: 14px;
    }

    .faq-row-answer {
        padding: 0 20px;
        font-size: 13px;
    }

    .faq-row-item.open .faq-row-answer {
        padding-bottom: 18px;
    }

    .help-contact-row {
        padding: 16px;
    }
}

/* Help Article Modal Styles */
.help-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.help-modal-overlay.show {
    opacity: 1;
}

.help-modal-box {
    background: var(--white);
    border-radius: 24px;
    max-width: 460px;
    width: 90%;
    padding: 24px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
    gap: 20px;
    transform: translateY(20px);
    transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.help-modal-overlay.show .help-modal-box {
    transform: translateY(0);
}

.help-modal-header {
    display: flex;
    align-items: center;
    position: relative;
    justify-content: center;
    padding-bottom: 8px;
}

.help-modal-close-btn {
    position: absolute;
    left: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--dark);
    transition: background-color 0.2s;
}

.help-modal-close-btn:hover {
    background: var(--light);
}

.help-modal-close-btn svg {
    width: 16px;
    height: 16px;
    stroke-width: 2.5;
}

.help-modal-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark);
}

.help-modal-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.help-article-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(37, 185, 154, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}

.help-article-icon-box svg {
    width: 24px;
    height: 24px;
}

.help-article-heading {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    text-align: center;
    margin: 0;
}

.help-article-content {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.6;
    text-align: center;
}

.help-feedback-card {
    background: #f7fafc;
    border-radius: 16px;
    padding: 16px 24px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
}

.help-feedback-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--dark);
}

.help-feedback-stats {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: var(--gray);
}

.feedback-stat-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.help-feedback-actions {
    display: flex;
    gap: 12px;
    width: 100%;
    justify-content: center;
}

.feedback-btn {
    flex: 1;
    max-width: 120px;
    height: 38px;
    border-radius: 19px;
    border: 1.5px solid var(--border);
    background: var(--white);
    color: var(--dark);
    font-size: 13.5px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s;
}

.feedback-btn:hover {
    background: var(--light);
}

.feedback-btn.active-yes {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.feedback-btn.active-no {
    background: #ff4d4d;
    color: var(--white);
    border-color: #ff4d4d;
}

.thumb-icon {
    width: 14px;
    height: 14px;
}

/* --- BECOME A PROVIDER STYLES --- */
.provider-layout {
    max-width: 800px;
    margin: 0 auto;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.provider-section-title {
    text-align: center;
    margin-bottom: 32px;
}

.provider-section-title h1 {
    font-size: 28px;
    font-weight: 500;
    color: var(--dark);
}

.provider-section-title p {
    font-size: 15px;
    color: var(--gray);
    margin-top: 6px;
}

.provider-select-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.provider-select-card {
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
    background: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.provider-select-card:hover {
    transform: translateY(-2px);
    border-color: var(--dark);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.04);
}

.provider-select-card.selected {
    border-color: var(--primary);
    background: rgba(37, 185, 154, 0.03);
    box-shadow: 0 0 0 1px var(--primary);
}

.provider-select-card-icon {
    width: 48px;
    height: 48px;
    color: var(--primary);
}

.provider-select-card-icon svg {
    width: 100%;
    height: 100%;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.8;
}

.provider-select-card-title {
    font-size: 15px;
    font-weight: 500;
    color: var(--dark);
}

.provider-select-card-desc {
    font-size: 12px;
    color: var(--gray);
    line-height: 1.4;
}

.provider-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
}

.provider-form-group label {
    font-size: 14px;
    font-weight: 500;
    color: var(--dark);
}

.provider-existing-list {
    margin-top: 30px;
    border-top: 1px solid var(--border);
    padding-top: 24px;
}

.provider-existing-badge {
    background: var(--light);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.provider-existing-service {
    font-size: 14px;
    font-weight: 500;
    color: var(--dark);
    text-transform: capitalize;
}

.provider-existing-name {
    font-size: 13px;
    color: var(--gray);
    margin-top: 4px;
}

@media (max-width: 768px) {
    .provider-layout {
        padding: 24px 16px;
    }

    .provider-select-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}

/* ── SEARCH BAR EXPANDED & OVERLAYS (DESKTOP & MOBILE) ── */

/* Backdrop overlay */
.search-overlay-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(4px);
    z-index: 19999;
    display: none;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.search-overlay-backdrop.show {
    display: block;
    opacity: 1;
    transition: opacity 0.25s ease;
}

/* Expanded panel container */
.search-expanded-panel {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translate(-50%, -20px);
    width: 90%;
    max-width: 850px;
    background: var(--white);
    border-radius: 32px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.16);
    border: 1px solid var(--border);
    padding: 20px 24px;
    z-index: 20000;
    display: none;
    opacity: 0;
    transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.25s ease;
}

.search-expanded-panel.show {
    display: block;
    opacity: 1;
    transform: translate(-50%, 0);
}

.search-expanded-inner {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.search-tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
}

.search-tab-btn {
    background: none;
    border: none;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--gray);
    cursor: pointer;
    position: relative;
    font-family: inherit;
}

.search-tab-btn.active {
    color: var(--dark);
}

.search-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -11px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--dark);
}

.search-tab-btn.disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

.search-tab-btn .badge-soon {
    font-size: 10px;
    background: #e0e0e0;
    color: #666;
    padding: 2px 6px;
    border-radius: 8px;
    margin-left: 4px;
}

/* Horizontal form fields row */
.search-form-row {
    display: flex;
    align-items: center;
    background: var(--light);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: 6px 6px 6px 24px;
}

.search-form-row .divider {
    width: 1px;
    height: 32px;
    background: var(--border);
    margin: 0 12px;
}

.search-input-group {
    display: flex;
    flex-direction: column;
    flex: 1;
    cursor: pointer;
    position: relative;
}

.search-input-group label {
    font-size: 11px;
    font-weight: 600;
    color: var(--dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.search-input-group input[type="text"] {
    border: none;
    background: transparent;
    font-size: 14px;
    color: var(--dark);
    font-family: inherit;
    outline: none;
    width: 100%;
}

.search-input-group input[type="text"]::placeholder {
    color: var(--gray);
}

.search-input-group input[type="date"] {
    border: none;
    background: transparent;
    font-size: 13px;
    color: var(--dark);
    font-family: inherit;
    outline: none;
    cursor: pointer;
}

.search-input-group span {
    font-size: 14px;
    color: var(--gray);
}

/* Guests Counter Panel */
.guests-group {
    position: relative;
}

.guests-dropdown {
    position: absolute;
    top: 55px;
    right: 0;
    width: 280px;
    background: var(--white);
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    padding: 16px 20px;
    display: none;
    z-index: 1001;
}

.guests-dropdown.show {
    display: block;
}

.guests-dropdown-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.guests-dropdown-info {
    display: flex;
    flex-direction: column;
}

.guests-type {
    font-size: 14px;
    font-weight: 500;
    color: var(--dark);
}

.guests-sub {
    font-size: 12px;
    color: var(--gray);
}

.guests-counter {
    display: flex;
    align-items: center;
    gap: 14px;
}

.counter-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--dark);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    outline: none;
    transition: all 0.15s;
    font-weight: 500;
}

.counter-btn:hover {
    border-color: var(--dark);
}

.counter-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

#guestCountVal {
    font-size: 15px;
    font-weight: 500;
    min-width: 14px;
    text-align: center;
}

.expanded-search-btn {
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 100px;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.15s, background-color 0.15s;
    box-shadow: 0 4px 10px rgba(37, 185, 154, 0.3);
}

.expanded-search-btn:hover {
    background: #20a287;
    transform: scale(1.03);
}

.expanded-search-btn svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* ── MOBILE FLOATING SEARCH BAR ── */
.search-bar-footer-mobile {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 380px;
    height: 56px;
    background: #ffffff;
    /* Solid white background for high contrast */
    border-radius: 30px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    /* More visible drop shadow */
    border: 1px solid rgba(0, 0, 0, 0.06);
    display: none;
    /* Only visible on mobile/responsive */
    align-items: center;
    justify-content: space-between;
    padding: 8px 8px 8px 20px;
    z-index: 990;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.mobile-search-text-container {
    display: flex;
    align-items: center;
    gap: 12px;
    overflow: hidden;
    white-space: nowrap;
    transition: max-width 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), opacity 0.2s;
    max-width: 300px;
    opacity: 1;
}

.mobile-search-icon-small {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: #222222;
    /* High-contrast icon stroke */
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

.mobile-search-info {
    display: flex;
    flex-direction: column;
}

.mobile-search-title {
    font-size: 13px;
    font-weight: 600;
    color: #222222;
    /* High-contrast dark title */
}

.mobile-search-sub {
    font-size: 11px;
    color: #717171;
    /* High-contrast dark subtext */
}

.mobile-search-btn-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    flex-shrink: 0;
    transition: transform 0.2s;
}

.mobile-search-btn-circle svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Collapsed floating action button state on scroll */
.search-bar-footer-mobile.collapsed {
    width: 56px;
    height: 56px;
    padding: 0;
    border-radius: 50%;
    justify-content: center;
    bottom: 24px;
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    border-color: rgba(255, 255, 255, 0.15);
}

.search-bar-footer-mobile.collapsed .mobile-search-text-container {
    max-width: 0;
    opacity: 0;
    margin: 0;
    display: none;
}

.search-bar-footer-mobile.collapsed .mobile-search-btn-circle {
    width: 48px;
    height: 48px;
    transform: scale(0.9);
}

/* Responsiveness overrides */
@media (max-width: 768px) {
    .search-bar-footer-mobile {
        display: flex;
    }

    /* Make search expanded panel full width or slide up from bottom on mobile */
    .search-expanded-panel {
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        border-radius: 24px 24px 0 0;
        transform: translateY(100%);
        border: none;
        border-top: 1px solid var(--border);
        box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.15);
        padding: 20px 20px calc(20px + env(safe-area-inset-bottom)) 20px;
    }

    .search-expanded-panel.show {
        transform: translateY(0);
    }

    .search-form-row {
        flex-direction: column;
        border-radius: 16px;
        padding: 16px;
        align-items: stretch;
        gap: 12px;
    }

    .search-form-row .divider {
        width: 100%;
        height: 1px;
        margin: 6px 0;
    }

    .expanded-search-btn {
        justify-content: center;
        margin-top: 8px;
        padding: 14px;
        width: 100%;
    }

    .guests-dropdown {
        right: auto;
        left: 0;
        width: 100%;
        top: 60px;
    }
}

/* ========================================================
   CUSTOM AIRBNB-STYLE DATEPICKER (ROAM IDENTITY)
======================================================== */
.dates-widget-relative {
    position: relative;
    width: 100%;
}

.date-display-val {
    font-size: 14px;
    font-weight: 500;
    color: var(--dark);
    margin-top: 4px;
    cursor: pointer;
}

.date-field-half {
    transition: box-shadow 0.2s, background-color 0.2s;
    cursor: pointer;
}

.date-field-half.focused {
    background: #fff;
    box-shadow: 0 0 0 2px var(--dark) inset;
}

.booking-dates-container>.date-field-half:first-child.focused {
    border-top-left-radius: 11px;
    border-bottom-left-radius: 11px;
}

.booking-dates-container>.date-field-half:last-child.focused {
    border-top-right-radius: 11px;
    border-bottom-right-radius: 11px;
}

.airbnb-calendar-panel {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12), 0 2px 4px rgba(0, 0, 0, 0.04);
    z-index: 1000;
    width: 650px;
    font-family: 'Poppins', sans-serif;
}

.airbnb-calendar-panel.show {
    display: block;
    animation: calendarSlideDown 0.25s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes calendarSlideDown {
    from {
        opacity: 0;
        transform: translateY(-12px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Header summary */
.calendar-header-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
}

.calendar-duration-title {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.calc-nights-count {
    font-size: 18px;
    font-weight: 600;
    color: var(--dark);
}

.calc-date-range {
    font-size: 13px;
    color: var(--gray);
    font-weight: 500;
}

/* Input Badges inside panel */
.calendar-inputs-row {
    display: flex;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.cal-input-badge {
    padding: 8px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    cursor: pointer;
    background: #fff;
    min-width: 120px;
    height: 48px;
}

.cal-input-badge.active {
    box-shadow: 0 0 0 2px var(--dark) inset;
    z-index: 2;
}

.badge-lbl {
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--gray);
    display: block;
    line-height: 1;
    margin-bottom: 2px;
}

.badge-val {
    font-size: 12px;
    font-weight: 500;
    color: var(--dark);
    display: block;
    line-height: 1.2;
}

.badge-clear {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 11px;
    color: var(--gray);
    cursor: pointer;
    display: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #f1f1f1;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.cal-input-badge.has-val:hover .badge-clear {
    display: flex;
}

.badge-clear:hover {
    background: var(--dark);
    color: #fff;
}

/* Months Grids container */
.calendar-months-container {
    display: flex;
    gap: 24px;
}

.calendar-month-box {
    flex: 1;
}

.month-name-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    height: 32px;
}

.month-name-label {
    font-size: 15px;
    font-weight: 500;
    color: var(--dark);
}

.month-nav-btn {
    border: none;
    background: transparent;
    font-size: 20px;
    color: var(--dark);
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    outline: none;
}

.month-nav-btn:hover {
    background: var(--light);
}

.month-nav-btn:disabled {
    opacity: 0.15;
    cursor: not-allowed;
    background: transparent;
}

.nav-spacer {
    width: 32px;
}

.weekday-labels {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    margin-bottom: 8px;
    text-align: center;
}

.weekday-labels span {
    font-size: 11px;
    font-weight: 500;
    color: var(--gray);
}

.days-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    row-gap: 2px;
}

.day-cell {
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: var(--dark);
    user-select: none;
}

.day-number {
    position: relative;
    z-index: 2;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.15s, box-shadow 0.15s;
}

.day-cell:not(.disabled):not(.cal-empty):hover .day-number {
    box-shadow: 0 0 0 1px var(--dark) inset;
}

/* Selection Range styles */
.day-cell.selected-start .day-number,
.day-cell.selected-end .day-number {
    background: var(--dark);
    color: #fff;
}

.day-cell.in-range {
    background: #f2fdfc;
    /* very light turquoise matching Roam brand accent */
}

.day-cell.hover-range {
    background: #f7f7f7;
}

/* Semi-range background tail bars */
.day-cell.selected-start::after,
.day-cell.selected-end::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 50%;
    background: #f2fdfc;
    z-index: 1;
}

.day-cell.selected-start::after {
    right: 0;
}

.day-cell.selected-end::after {
    left: 0;
}

.day-cell.selected-start.selected-end::after {
    display: none;
}

.day-cell.disabled {
    color: var(--border);
    cursor: not-allowed;
}

/* Calendar Footer */
.calendar-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.footer-btn {
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.2s, opacity 0.2s;
    outline: none;
}

.footer-btn.text-btn {
    background: transparent;
    border: none;
    color: var(--dark);
    text-decoration: underline;
    padding: 8px 12px;
}

.footer-btn.text-btn:hover {
    background: var(--light);
}

.footer-btn.dark-btn {
    background: var(--dark);
    color: #fff;
    border: none;
    padding: 8px 16px;
}

.footer-btn.dark-btn:hover {
    opacity: 0.9;
}

/* Responsive configurations overrides */
@media (max-width: 992px) {
    #desktopCalendarPanel {
        display: none !important;
    }

    #mobileCalendarPanel {
        display: block;
        position: static;
        width: 100%;
        box-shadow: none;
        border: none;
        padding: 0;
        margin-top: 16px;
    }

    .calendar-months-container {
        flex-direction: column;
        gap: 20px;
    }

    .calendar-header-info {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }

    .calendar-inputs-row {
        width: 100%;
    }

    .cal-input-badge {
        flex: 1;
    }

    .calendar-footer {
        display: none;
        /* Mobile relies on bottom sheet Confirm button */
    }
}

/* PWA Splash Screen Overlay */
#pwa-splash-screen {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 1;
    transition: opacity 0.4s ease;
}

.splash-hidden #pwa-splash-screen {
    display: none !important;
}

.splash-active {
    overflow: hidden !important;
    height: 100% !important;
    width: 100% !important;
}

/* --- BRAND HEADER & TYPE BADGE --- */
.brand-badge-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 4px;
}

.detail-brand {
    font-size: 13px;
    font-weight: 500;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-type-badge {
    background: #f1f3f6;
    color: #4b5563;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

/* --- FULLSCREEN LIGHTBOX MODAL --- */
.fullscreen-gallery-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000000;
    z-index: 1000005;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.fullscreen-gallery-modal.show {
    display: flex;
}

.close-fullscreen-btn {
    position: absolute;
    top: 24px;
    left: 20px;
    background: none;
    border: none;
    color: #ffffff;
    font-size: 38px;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    opacity: 0.85;
    transition: opacity 0.2s;
}

.close-fullscreen-btn:hover {
    opacity: 1;
}

.fullscreen-gallery-track {
    display: flex;
    width: 100%;
    height: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.fullscreen-gallery-track::-webkit-scrollbar {
    display: none;
}

.fullscreen-gallery-item {
    flex: 0 0 100%;
    scroll-snap-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.fullscreen-gallery-item img {
    width: 100%;
    max-height: 80%;
    object-fit: contain;
}

.fullscreen-gallery-pagination {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.fullscreen-gallery-pagination span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transition: all 0.2s ease;
}

.fullscreen-gallery-pagination span.active {
    background: #ffffff;
    transform: scale(1.25);
}

/* --- HOST SECTION & SPECS DESKTOP DEFAULTS --- */
.host-chat-wrapper {
    display: none;
}

.host-rating-row {
    display: none;
}

.host-sub.mobile-only {
    display: none !important;
}

.host-sub.desktop-only {
    display: block;
}

.hosted-by-prefix {
    display: inline;
}

.mobile-specifications-section {
    display: none;
}

/* --- MOBILE SPECIFIC OVERLAYS FOR CAR DETAIL PAGE --- */
@media (max-width: 768px) {

    /* Hide top nav on mobile detail page */
    .car-rental-detail-page nav {
        display: none !important;
    }

    /* Reset main layout paddings for full view top image */
    .car-rental-detail-page main {
        display: flex;
        flex-direction: column;
        padding: 0 0 88px 0 !important;
        margin: 0 !important;
        position: relative;
        max-width: 100% !important;
    }

    /* Image Gallery at top */
    .car-rental-detail-page .detail-gallery {
        order: 1;
        margin: 0 0 0 0 !important;
        position: relative;
        width: 100%;
    }

    .car-rental-detail-page .gallery-track {
        height: 75vh !important;
        border-radius: 0;
    }

    .car-rental-detail-page .gallery-item {
        height: 75vh !important;
    }

    .car-rental-detail-page .gallery-pagination {
        display: none !important;
    }

    .car-rental-detail-page .gallery-counter {
        display: block !important;
        position: absolute;
        bottom: 44px;
        right: 16px;
        background: rgba(0, 0, 0, 0.2);
        /* 20% opacity black background */
        color: #ffffff;
        padding: 4px 10px;
        border-radius: 6px;
        font-size: 11px;
        font-weight: 600;
        z-index: 10;
        font-family: 'Poppins', sans-serif;
    }

    /* Circular Overlay Back Button */
    .car-rental-detail-page .back-nav-container {
        position: absolute;
        top: 24px;
        left: 20px;
        z-index: 10;
        margin: 0 !important;
        padding: 0 !important;
        order: 0;
    }

    .car-rental-detail-page .back-nav-container a {
        background: #ffffff;
        border-radius: 50%;
        width: 38px;
        height: 38px;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
        color: var(--dark) !important;
        text-decoration: none;
        font-size: 0;
        border: none;
        transition: transform 0.1s;
    }

    .car-rental-detail-page .back-nav-container a::after {
        content: none;
    }

    .car-rental-detail-page .back-nav-container .back-icon {
        width: 18px;
        height: 18px;
        fill: var(--dark);
        margin: 0;
    }

    /* Circular Overlay Share & Save Buttons */
    .car-rental-detail-page .detail-header .header-actions {
        position: absolute;
        top: calc(-75vh + 52px) !important;
        right: 20px;
        z-index: 10;
        display: flex;
        gap: 12px;
        margin: 0;
    }

    .car-rental-detail-page .detail-header .header-actions .action-btn {
        background: #ffffff;
        border-radius: 50%;
        width: 38px;
        height: 38px;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
        color: var(--dark);
        border: none;
        padding: 0;
        cursor: pointer;
    }

    .car-rental-detail-page .detail-header .header-actions .action-btn span {
        display: none !important;
    }

    .car-rental-detail-page .detail-header .header-actions .action-btn svg {
        width: 18px;
        height: 18px;
        margin: 0;
        fill: none;
        stroke: var(--dark);
        stroke-width: 2.5;
    }

    /* Pull up white card overlay */
    .car-rental-detail-page .detail-header {
        order: 2;
        background: var(--white);
        border-radius: 28px 28px 0 0;
        margin-top: -28px;
        position: relative;
        z-index: 5;
        padding: 24px 20px 0 20px;
    }

    /* Hide metadata elements on mobile except location */
    .car-rental-detail-page .header-metadata .rating-badge,
    .car-rental-detail-page .header-metadata .reviews-link,
    .car-rental-detail-page .header-metadata .meta-dot {
        display: none !important;
    }

    .car-rental-detail-page .detail-brand {
        font-size: 13px;
        font-weight: 500;
        color: var(--gray);
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }

    .car-rental-detail-page .detail-title.desktop-only {
        display: none !important;
    }

    .car-rental-detail-page .detail-title.mobile-only {
        display: block !important;
        font-size: 24px;
        font-weight: 700;
        color: var(--dark);
        margin-top: 4px;
        margin-bottom: 8px;
        text-transform: uppercase;
        letter-spacing: -0.5px;
    }

    .car-rental-detail-page .content-grid {
        order: 3;
        padding: 16px 20px;
    }

    /* Mobile Host section overrides */
    .car-rental-detail-page .host-header-sec {
        display: flex;
        align-items: center;
        gap: 16px;
        padding: 8px 0;
    }

    .car-rental-detail-page .host-avatar {
        width: 56px;
        height: 56px;
        border-radius: 50%;
        background: #fef08a;
        /* yellow circle */
        color: #854d0e;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 600;
        font-size: 18px;
        order: 1;
        flex-shrink: 0;
    }

    .car-rental-detail-page .host-text {
        display: flex;
        flex-direction: column;
        order: 2;
        flex: 1;
    }

    .car-rental-detail-page .host-title {
        font-size: 16px;
        font-weight: 600;
        color: #1f2937;
        margin: 0 0 2px 0;
    }

    .car-rental-detail-page .host-sub.mobile-only {
        font-size: 13px;
        color: #9ca3af;
        margin: 0 0 2px 0;
        display: block !important;
    }

    .car-rental-detail-page .host-sub.desktop-only {
        display: none !important;
    }

    .car-rental-detail-page .hosted-by-prefix {
        display: none;
    }

    .car-rental-detail-page .host-rating-row {
        display: flex !important;
        align-items: center;
        gap: 4px;
        font-size: 13px;
        font-weight: 500;
        color: #6b7280;
    }

    .car-rental-detail-page .host-star {
        color: #25b99a;
        /* teal star */
    }

    .car-rental-detail-page .host-chat-wrapper {
        display: flex !important;
        align-items: center;
        justify-content: center;
        order: 3;
    }

    .car-rental-detail-page .host-chat-btn {
        width: 40px;
        height: 40px;
        border-radius: 50%;
        border: 1px solid #e5e7eb;
        background: #ffffff;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        color: #4b5563;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
        transition: background-color 0.15s;
    }

    .car-rental-detail-page .host-chat-btn .chat-icon {
        width: 18px;
        height: 18px;
        stroke: #4b5563;
    }

    /* Specifications section styles */
    .car-rental-detail-page .specifications-section {
        display: block;
        margin: 24px 0;
    }

    .car-rental-detail-page .spec-title {
        font-size: 18px;
        font-weight: 600;
        color: var(--dark);
        margin-bottom: 16px;
    }

    .car-rental-detail-page .spec-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .car-rental-detail-page .spec-grid-item {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .car-rental-detail-page .spec-icon-wrapper {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        background: #f1f3f6;
        border-radius: 12px;
        color: #4b5563;
        flex-shrink: 0;
    }

    .car-rental-detail-page .spec-icon {
        font-size: 20px;
    }

    .car-rental-detail-page .spec-details {
        display: flex;
        flex-direction: column;
    }

    .car-rental-detail-page .spec-label {
        font-size: 11px;
        color: #9ca3af;
        margin-bottom: 2px;
    }

    .car-rental-detail-page .spec-value {
        font-size: 14px;
        font-weight: 600;
        color: #1f2937;
    }

    /* Mobile Sticky Reserve Bar Overrides */
    .car-rental-detail-page .mobile-reserve-bar {
        display: none !important;
    }

    /* Mobile Floating Reserve Button */
    .car-rental-detail-page .mobile-floating-reserve-btn {
        display: flex !important;
        align-items: center;
        justify-content: center;
        position: fixed;
        bottom: calc(80px + env(safe-area-inset-bottom));
        right: 20px;
        background: var(--primary);
        /* primary teal color */
        color: #ffffff;
        border: none;
        height: 48px;
        border-radius: 24px;
        font-size: 15px;
        font-weight: 600;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
        z-index: 999;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        overflow: hidden;
        width: 125px;
        padding: 0 16px;
        white-space: nowrap;
        cursor: pointer;
    }

    .car-rental-detail-page .mobile-floating-reserve-btn svg {
        width: 20px;
        height: 20px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2.5;
        flex-shrink: 0;
        transition: margin 0.3s;
    }

    .car-rental-detail-page .mobile-floating-reserve-btn span {
        transition: opacity 0.2s, max-width 0.3s, margin 0.3s;
        max-width: 80px;
        opacity: 1;
        margin-left: 8px;
    }

    .car-rental-detail-page .mobile-floating-reserve-btn.collapsed {
        width: 48px;
        border-radius: 50%;
        padding: 0;
    }

    .car-rental-detail-page .mobile-floating-reserve-btn.collapsed span {
        opacity: 0;
        max-width: 0;
        margin: 0;
        overflow: hidden;
    }

    #mobileCalendarPanel .calendar-header-info {
        display: none !important;
    }
}

/* Mobile Bottom Navigation Bar & Mobile Top Header Overrides */
.mobile-filter-btn {
    display: none;
}

.mobile-bottom-nav {
    display: none;
}

@media (max-width: 768px) {

    /* Hide desktop nav menu & profile icon on mobile */
    .nav-right>a,
    .profile-menu-container {
        display: none !important;
    }

    /* Mobile settings/filter circular button hidden */
    .mobile-filter-btn {
        display: none !important;
    }

    /* White Navbar on Mobile */
    nav {
        background: var(--white) !important;
        /* solid white */
        border-bottom: 1px solid var(--border) !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08) !important;
    }

    /* Original colored logo on mobile header */
    .logo img {
        filter: none !important;
    }

    /* Mobile Bottom Navigation Bar Styles */
    .mobile-bottom-nav {
        display: flex !important;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 65px;
        background: #ffffff;
        border-top: 1px solid var(--border);
        box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.08);
        z-index: 9999;
        justify-content: space-around;
        align-items: center;
        padding-bottom: env(safe-area-inset-bottom);
    }

    .mobile-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-decoration: none;
        color: #717171;
        /* gray inactive text */
        font-size: 10px;
        font-weight: 500;
        width: 20%;
        height: 100%;
        gap: 3px;
        transition: color 0.2s;
    }

    .mobile-nav-item span {
        font-family: 'Poppins', sans-serif;
    }

    .mobile-nav-item.active {
        color: var(--primary) !important;
        /* vibrant teal active label */
    }

    .nav-icon-container {
        width: 26px;
        height: 26px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav-icon-container svg,
    .nav-icon-container img,
    .nav-icon-container div {
        width: 22px;
        height: 22px;
        object-fit: contain;
    }

    /* Shift floating mobile search bar above bottom nav */
    .search-bar-footer-mobile {
        bottom: 80px !important;
    }

    /* Prevent bottom nav overlaying footer or body content */
    body {
        padding-bottom: 80px !important;
    }
}

/* --- WISHLIST (MY DREAM) AND MESSAGES MODULES --- */
.mydream-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 0;
}

/* Messages Inbox Layout */
.messages-container {
    display: grid;
    grid-template-columns: 320px 1fr;
    max-width: 1200px;
    margin: 0 auto 40px auto;
    height: calc(100vh - 220px);
    min-height: 500px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.chats-sidebar {
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--border);
    background: #fafafa;
}

.sidebar-search {
    padding: 16px;
    border-bottom: 1px solid var(--border);
}

.sidebar-search input {
    width: 100%;
    padding: 10px 16px;
    border-radius: 20px;
    border: 1px solid var(--border);
    font-size: 13px;
    background: #ffffff;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}

.sidebar-search input:focus {
    border-color: var(--primary);
}

.threads-list {
    flex: 1;
    overflow-y: auto;
}

.thread-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s;
}

.thread-item:hover {
    background-color: #f3f4f6;
}

.thread-item.active {
    background-color: #e6f7f4;
    border-left: 3px solid var(--primary);
}

.thread-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-weight: 700;
    font-size: 15px;
    flex-shrink: 0;
}

.thread-info {
    flex: 1;
    min-width: 0;
}

.thread-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 4px;
}

.thread-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.thread-time {
    font-size: 11px;
    color: var(--gray);
}

.thread-preview {
    font-size: 13px;
    color: var(--gray);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-main-area {
    display: flex;
    flex-direction: column;
    background: #ffffff;
}

.chat-header {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border);
}

.chat-header-user {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--dark);
}

.chat-subtitle {
    font-size: 12px;
    color: var(--gray);
}

.chat-history {
    flex: 1;
    padding: 24px;
    overflow-y: auto;
    background: #f7f9fa;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.message-row {
    display: flex;
    width: 100%;
}

.message-row.me {
    justify-content: flex-end;
}

.message-row.them {
    justify-content: flex-start;
}

.message-bubble {
    max-width: 65%;
    padding: 12px 16px;
    border-radius: 16px;
    position: relative;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.message-row.me .message-bubble {
    background: var(--primary);
    color: #ffffff;
    border-bottom-right-radius: 4px;
}

.message-row.them .message-bubble {
    background: #ffffff;
    color: var(--dark);
    border-bottom-left-radius: 4px;
    border: 1px solid var(--border);
}

.message-text {
    font-size: 14px;
    line-height: 1.45;
    word-break: break-word;
}

.message-time {
    font-size: 10px;
    margin-top: 6px;
    text-align: right;
    opacity: 0.8;
}

.message-row.them .message-time {
    color: var(--gray);
}

.chat-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--border);
    background: #ffffff;
}

.chat-footer form {
    display: flex;
    gap: 12px;
    align-items: center;
}

#chatMessageInput {
    flex: 1;
    padding: 12px 18px;
    border-radius: 24px;
    border: 1px solid var(--border);
    font-size: 14px;
    outline: none;
    font-family: inherit;
    transition: border-color 0.2s;
}

#chatMessageInput:focus {
    border-color: var(--primary);
}

.chat-send-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: #ffffff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s, transform 0.1s;
    flex-shrink: 0;
}

.chat-send-btn:hover {
    background: var(--primary-hover);
}

.chat-send-btn:active {
    transform: scale(0.95);
}

.chat-send-btn svg {
    width: 18px;
    height: 18px;
    margin-left: 2px;
}

/* Responsive Grid/Flex overrides for inbox */
@media (max-width: 768px) {
    .messages-container {
        grid-template-columns: 1fr;
        height: calc(100vh - 180px);
        margin-bottom: 20px;
    }

    .chats-sidebar {
        display: none;
        /* Hide sidebar list on mobile to focus on current chat */
    }
}

/* --- MOBILE BOTTOM NAV ANIMATED BOOKING ICON --- */
@media (max-width: 768px) {
    #lottie-bookings {
        overflow: visible !important;
    }

    #lottie-bookings svg {
        transform: scale(2.5) !important;
        transform-origin: center !important;
    }
}

/* --- PROFILE DASHBOARD & RESPONSIVE LAYOUT --- */
.profile-container {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 48px;
    margin-top: 30px;
    align-items: start;
}

.profile-dashboard-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.profile-content-panel {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.mobile-profile-back-bar {
    display: none;
}

/* Fallback letter avatar styling */
.avatar-letter {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: 700;
    color: #ffffff;
    background: linear-gradient(135deg, #25b99a, #20a287);
}

/* User Summary Card */
.profile-user-summary-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.user-summary-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    border: 2.5px solid var(--primary);
    flex-shrink: 0;
    position: relative;
    background: var(--light);
}

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

.user-summary-info h2 {
    font-size: 18px;
    font-weight: 600;
    color: var(--dark);
    margin: 0 0 4px 0;
    font-family: 'Poppins', sans-serif;
}

.user-summary-info p {
    font-size: 13px;
    color: var(--gray);
    margin: 0;
}

.profile-dashboard-header h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--dark);
    margin: 0;
}

/* Become a Provider Promo Card */
.become-provider-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    text-decoration: none;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.become-provider-card:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(37, 185, 154, 0.08);
    transform: translateY(-2px);
}

.provider-card-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: var(--primary);
    flex-shrink: 0;
}

.provider-card-icon svg,
.provider-card-icon ion-icon {
    width: 42px;
    height: 42px;
    font-size: 42px;
}

.provider-card-info {
    flex: 1;
}

.provider-card-info h3 {
    font-size: 15px;
    font-weight: 600;
    color: var(--dark);
    margin: 0 0 2px 0;
}

.provider-card-info p {
    font-size: 12px;
    color: var(--gray);
    margin: 0;
}

/* Sidebar Navigation Menu List */
.profile-menu-list {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.profile-menu-item {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    color: var(--dark);
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}

.profile-menu-item:last-child {
    border-bottom: none;
}

.profile-menu-item:hover {
    background-color: #fafafa;
}

.profile-menu-item.active {
    background-color: rgba(37, 185, 154, 0.06);
    color: var(--primary);
    font-weight: 600;
}

.profile-menu-item.active .menu-item-icon {
    color: var(--primary);
    opacity: 1;
}

.menu-item-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark);
    opacity: 0.7;
    margin-right: 14px;
    transition: color 0.2s, opacity 0.2s;
}

.menu-item-icon svg,
.menu-item-icon ion-icon {
    width: 20px;
    height: 20px;
    font-size: 20px;
    stroke-width: 2;
}

.menu-item-content {
    flex: 1;
}

.menu-item-content h3 {
    font-size: 14.5px;
    font-weight: 500;
    margin: 0;
    font-family: 'Poppins', sans-serif;
}

.menu-item-arrow {
    color: #ccc;
    display: flex;
    align-items: center;
    margin-left: 8px;
    opacity: 0.7;
}

.menu-item-arrow svg,
.menu-item-arrow ion-icon {
    width: 16px;
    height: 16px;
    font-size: 16px;
}

.profile-menu-item.logout-item {
    color: #ec5f5f;
}

.profile-menu-item.logout-item .menu-item-icon {
    color: #ec5f5f;
    opacity: 0.9;
}

.profile-menu-item.logout-item:hover {
    background-color: #fdf2f2;
}

/* Legal Document Modals styling */
.legal-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    opacity: 0;
    transition: opacity 0.25s ease;
    padding: 20px;
}

.legal-modal-overlay.show {
    opacity: 1;
}

.legal-modal-box {
    background: var(--white);
    border-radius: 24px;
    max-width: 680px;
    width: 95%;
    max-height: 80vh;
    padding: 28px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    gap: 20px;
    transform: scale(0.95);
    transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
    border: 1px solid var(--border);
}

.legal-modal-overlay.show .legal-modal-box {
    transform: scale(1);
}

.legal-modal-header {
    display: flex;
    align-items: center;
    position: relative;
    justify-content: center;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.legal-modal-back-btn {
    position: absolute;
    left: 0;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--white);
    display: none;
    /* Hidden by default on desktop */
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--dark);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.legal-modal-back-btn:hover {
    background: var(--light);
    color: var(--primary);
}

.legal-modal-back-btn svg,
.legal-modal-back-btn ion-icon {
    width: 18px;
    height: 18px;
    font-size: 18px;
    stroke-width: 2.5;
}

.legal-modal-close-btn {
    position: absolute;
    right: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--gray);
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.legal-modal-close-btn:hover {
    background: var(--light);
    color: var(--dark);
    border-color: var(--gray);
}

.legal-modal-close-btn svg,
.legal-modal-close-btn ion-icon {
    width: 14px;
    height: 14px;
    font-size: 14px;
    stroke-width: 2.5;
}

.legal-modal-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--dark);
    font-family: 'Poppins', sans-serif;
}

.legal-modal-body {
    flex: 1;
    overflow-y: auto;
    padding-right: 8px;
}

.legal-modal-content-scroll {
    font-size: 14px;
    color: #4b5563;
    line-height: 1.6;
}

.legal-modal-content-scroll h2 {
    font-size: 18px;
    font-weight: 600;
    color: var(--dark);
    margin-top: 8px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e5e7eb;
}

.legal-modal-content-scroll h3 {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark);
    margin-top: 20px;
    margin-bottom: 8px;
}

.legal-modal-content-scroll p {
    margin-bottom: 16px;
}

.legal-modal-content-scroll li {
    margin-left: 12px;
    margin-bottom: 8px;
    list-style-type: none;
    position: relative;
    padding-left: 18px;
    color: #4b5563;
}

.legal-modal-content-scroll li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #4b5563;
    font-weight: bold;
    font-size: 16px;
    top: -1px;
}

.legal-modal-body::-webkit-scrollbar {
    width: 6px;
}

.legal-modal-body::-webkit-scrollbar-track {
    background: transparent;
}

.legal-modal-body::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

.legal-modal-body::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

@media (max-width: 768px) {
    .profile-container {
        display: block !important;
        padding: 0px;
        margin-top: 10px;
    }

    .profile-dashboard-sidebar {
        display: block;
        padding: 0;
    }

    .profile-dashboard-sidebar.mobile-hide {
        display: none !important;
    }

    .profile-content-panel {
        display: none !important;
        /* Hidden by default on mobile */
        width: 100% !important;
        box-shadow: none !important;
        border: none !important;
        padding: 0 !important;
        background: transparent !important;
    }

    .profile-content-panel.mobile-show {
        display: block !important;
    }

    .mobile-profile-back-bar {
        display: flex;
        align-items: center;
        margin-bottom: 24px;
        padding-bottom: 12px;
        border-bottom: 1px solid var(--border);
    }

    .mobile-profile-back-btn {
        background: transparent;
        border: none;
        padding: 0;
        display: flex;
        align-items: center;
        gap: 8px;
        color: var(--primary);
        font-family: inherit;
        font-size: 16px;
        font-weight: 500;
        cursor: pointer;
    }

    .mobile-profile-back-btn svg,
    .mobile-profile-back-btn ion-icon {
        width: 20px;
        height: 20px;
        font-size: 20px;
    }

    .profile-user-summary-card {
        padding: 16px;
        margin-bottom: 24px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
    }

    .user-summary-avatar {
        width: 56px;
        height: 56px;
        border: 2px solid var(--primary);
    }

    .user-summary-info h2 {
        font-size: 18px;
        margin: 0 0 2px 0;
    }

    .profile-menu-item {
        padding: 18px 20px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    }

    .profile-menu-item.active {
        background-color: transparent;
        color: inherit;
        font-weight: normal;
    }

    .profile-menu-item.active .menu-item-icon {
        color: var(--dark);
        opacity: 0.7;
    }

    .profile-menu-item:active {
        background-color: #f7f7f7;
    }

    .menu-item-icon {
        width: 24px;
        height: 24px;
        margin-right: 16px;
    }

    .menu-item-icon svg,
    .menu-item-icon ion-icon {
        width: 22px;
        height: 22px;
        font-size: 22px;
    }

    .menu-item-content h3 {
        font-size: 15px;
        font-weight: 550;
    }

    .menu-item-arrow {
        color: #b0b0b0;
        margin-left: 8px;
    }

    .menu-item-arrow svg,
    .menu-item-arrow ion-icon {
        width: 18px;
        height: 18px;
        font-size: 18px;
    }

    .profile-menu-item.logout-item .menu-item-icon {
        color: #ec5f5f;
        opacity: 0.9;
    }

    .profile-menu-item.logout-item h3 {
        color: #ec5f5f;
    }

    .profile-dashboard-header h1 {
        font-family: 'Outfit', sans-serif;
        font-size: 28px;
        font-weight: 700;
        margin-bottom: 24px;
    }

    .become-provider-card {
        margin-bottom: 24px;
    }

    .profile-sidebar {
        display: none !important;
    }

    .profile-main-card {
        box-shadow: none !important;
        border: none !important;
        padding: 0 !important;
        background: transparent !important;
    }

    /* Legal Modal Fullscreen & Responsive styles */
    .legal-modal-overlay {
        background: var(--white);
        padding: 0;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        align-items: stretch;
        justify-content: stretch;
    }

    .legal-modal-box {
        width: 100%;
        height: 100%;
        max-width: none;
        max-height: none;
        border-radius: 0;
        border: none;
        box-shadow: none;
        padding: 20px 24px 24px 24px;
        gap: 20px;
    }

    .legal-modal-header {
        padding-top: 10px;
        padding-bottom: 16px;
        border-bottom: 1px solid var(--border);
    }

    .legal-modal-title {
        font-size: 16px;
        font-weight: 600;
    }

    .legal-modal-content-scroll {
        font-size: 12px;
    }

    .legal-modal-content-scroll h2 {
        font-size: 16px;
    }

    .legal-modal-content-scroll h3 {
        font-size: 14px;
    }

    .legal-modal-content-scroll li {
        font-size: 12px;
    }

    .legal-modal-body {
        padding-right: 0;
    }

    .legal-modal-back-btn {
        display: flex;
    }

    .legal-modal-close-btn {
        display: none !important;
    }
}

/* --- MOBILE SPLASH SCREEN & LOGO SIZE --- */
.logo img {
    height: 28px !important;
}

@media (max-width: 768px) {
    #pwa-splash-screen {
        background: #0d9b7d !important;
    }

    .logo img {
        height: 28px !important;
    }
}

/* ── PAGE: BECOME A PROVIDER — full-bleed wizard layout ── */
.page-become-provider main {
    padding: 0 !important;
    max-width: 100% !important;
    overflow: hidden;
}

/* Prevent body scroll (wizard is fixed) */
.page-become-provider {
    overflow: hidden;
    height: 100vh;
}

/* Hide scrollbar for Cars near me horizontal scroll carousel everywhere */
.near-me-carousel {
    scrollbar-width: none !important;
    -ms-overflow-style: none !important;
}
.near-me-carousel::-webkit-scrollbar {
    display: none !important;
}

/* --- CAROUSEL PWA RESPONSIVENESS --- */
.near-me-card {
    flex: 0 0 280px !important;
    scroll-snap-align: start !important;
    margin-bottom: 4px !important;
}

/* --- SINGLE-LINE TEXT ELLIPSIS TRUNCATION --- */
.card-name,
.card-location-text,
.card-specs-row,
.card-price-row {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
    min-width: 0;
    max-width: 100%;
}