/* ======= GENERAL RESET ======= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
}

/* ======= HERO SECTION ======= */
.hero {
    height: 100vh;
    width: 100vw;
    background-image: url("https://images.unsplash.com/photo-1506744038136-46273834b3fb?auto=format&fit=crop&w=1650&q=80");
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
    position: relative;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 0;
}

.motive,
.hero-title,
.hero-btn {
    position: relative;
    z-index: 2;
}

.motive {
    font-size: 15px;
    letter-spacing: 3px;
    color: #d5ff9d;
}

.hero-title {
    font-size: 58px;
    font-weight: 700;
    margin: 0;
}

.hero-btn {
    margin-top: 30px;
    padding: 14px 40px;
    background: #ff385c;
    border: none;
    border-radius: 40px;
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: 0.3s;
}

.hero-btn:hover {
    background: #e71e50;
}

.home-top-post {
    position: relative;
    z-index: 2;
    margin-top: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 16px;
    backdrop-filter: blur(4px);
    padding: 10px;
    max-width: 640px;
    width: 92%;
}

.home-top-post img {
    width: 92px;
    height: 76px;
    border-radius: 12px;
    object-fit: cover;
}

.home-top-post-content {
    text-align: left;
}

.home-top-post-tag {
    color: #ffd6df;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 2px;
}

.home-top-post h3 {
    margin: 0;
    font-size: 17px;
    color: #fff;
}

.home-top-post p {
    margin: 3px 0 8px;
    color: #f2f2f2;
    font-size: 13px;
}

.home-top-rating {
    margin-top: -2px;
    color: #ffe58f !important;
    font-weight: 700;
}

.home-top-mini-stars {
    margin-left: 8px;
}

.home-top-mini-stars .star {
    color: rgba(255, 255, 255, 0.35);
    font-size: 12px;
}

.home-top-mini-stars .star.filled {
    color: #ffe58f;
}

.home-top-post a {
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 99px;
    padding: 4px 10px;
}

.home-top-post a:hover {
    background: rgba(255, 255, 255, 0.2);
}

.pagination-wrap {
    margin-top: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.page-btn,
.page-num {
    text-decoration: none;
    color: #333;
    border: 1px solid #e1e1e1;
    background: #fff;
    border-radius: 10px;
    padding: 8px 12px;
    font-weight: 600;
    transition: 0.2s;
}

.page-btn:hover,
.page-num:hover {
    border-color: #ff5a5f;
    color: #ff385c;
}

.page-numbers {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.page-num.active {
    background: #ff385c;
    border-color: #ff385c;
    color: #fff;
}

.page-btn.disabled {
    opacity: 0.5;
    pointer-events: none;
}

    /* ======= HEADER ======= */
    header.site-header {
        position: sticky;
        top: 0;
        width: 100%;
        background: white;
        padding: 14px 32px;
        border-bottom: 1px solid #eee;
        display: flex;
        align-items: center;
        justify-content: space-between;
        z-index: 1000;
    }

    .logo a img {
        height: 32px;
        width: auto;
        cursor: pointer;
    }

    /* ======= NAV LINKS CENTERED ======= */
    .nav-links {
        display: flex;
        align-items: center;
        gap: 32px;
        list-style: none;
        margin-left: auto;
        margin-right: auto;
    }

    /* ======= TAX TOGGLE SWITCH ======= */
    .tax-toggle-container {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 8px 0;
    }

    .tax-toggle-container p {
        margin: 0;
        font-size: 14px;
        color: #333;
        font-weight: 500;
    }

    .toggle-switch {
        position: relative;
        display: inline-block;
        width: 50px;
        height: 26px;
    }

    .toggle-switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

    .slider {
        position: absolute;
        cursor: pointer;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-color: #ccc;
        transition: 0.3s;
        border-radius: 26px;
    }

    .slider:before {
        position: absolute;
        content: "";
        height: 20px;
        width: 20px;
        left: 3px;
        bottom: 3px;
        background-color: white;
        transition: 0.3s;
        border-radius: 50%;
    }

    .toggle-switch input:checked + .slider {
        background-color: #ff385c;
    }

    .toggle-switch input:focus + .slider {
        box-shadow: 0 0 1px #ff385c;
    }

    .toggle-switch input:checked + .slider:before {
        transform: translateX(24px);
    }

    .toggle-switch:hover .slider {
        background-color: #bbb;
    }

    .toggle-switch input:checked:hover + .slider {
        background-color: #e71e50;
    }

    .nav-links li a {
        text-decoration: none;
        color: #333;
        font-size: 15px;
        font-weight: 600;
        padding: 6px 0;
        transition: color 0.2s;
    }

    .nav-links li a:hover {
        color: #FF385C;
    }

    .nav-links li.home,
    .nav-links li.listings {
        font-weight: 700;
    }

    /* ======= BUTTONS ======= */
    .btn {
        padding: 8px 18px;
        border-radius: 25px;
        font-size: 15px;
        font-weight: 600;
        text-decoration: none;
        transition: background 0.2s, transform 0.1s;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
    }

    .btn-primary,
    .primary {
        background: #FF385C;
        color: white;
    }

    .btn-primary:hover {
        background: #E21D4E;
        transform: translateY(-1px);
    }

    .btn-outline {
        border: 1px solid #ccc;
        color: #333;
        background: white;
    }

    .btn-outline:hover {
        background: #f7f7f7;
    }

    /* ======= DROPDOWN ======= */
    .dropdown {
        position: relative;
    }

    .dropdown-btn {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 6px 12px;
        border-radius: 25px;
        background: #f2eded;
        cursor: pointer;
    }

    .dropdown-btn img {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        object-fit: cover;
    }

    .dropdown-menu {
        display: none;
        position: absolute;
        right: 0;
        background: white;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        border-radius: 8px;
        margin-top: 8px;
        padding: 8px 0;
        min-width: 140px;
        z-index: 10;
    }

    .dropdown-menu a,
    .dropdown-menu button {
        display: block;
        padding: 8px 16px;
        text-decoration: none;
        color: #333;
        transition: background 0.2s;
        width: 100%;
        text-align: left;
        background: none;
        border: none;
        cursor: pointer;
        font-size: 14px;
    }

    .dropdown-menu a:hover,
    .dropdown-menu button:hover {
        background: #f7f7f7;
    }

    /* ======= RIGHT ACTIONS ======= */
    .right-actions {
        display: flex;
        align-items: center;
        gap: 6px;
    }

    /* ======= MOBILE MENU ======= */
    .mobile-menu {
        display: none;
        font-size: 24px;
        cursor: pointer;
    }

    .mobile-nav {
        display: none;
        position: fixed;
        top: 64px;
        /* header ke neeche start */
        left: 0;
        width: 100%;
        height: calc(100% - 64px);
        /* baki height full cover */
        background: white;
        flex-direction: column;
        justify-content: space-between;
        z-index: 999;
        padding: 16px;
    }


    .mobile-nav .menu-items {
        display: flex;
        flex-direction: column;
    }

    .mobile-nav a,
    .mobile-nav button {
        text-decoration: none;
        color: #333;
        font-weight: 600;
        font-size: 16px;
        padding: 14px 16px;
        width: 100%;
        text-align: left;
        background: none;
        border: none;
        cursor: pointer;
        border-bottom: 1px solid #eee;
        transition: background 0.2s;
        display: flex;
        justify-content: center;
    }

    .mobile-nav a:hover,
    .mobile-nav button:hover {
        background: #f7f7f7;
        color: #FF385C;
    }

    .mobile-nav .bottom-actions {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    /* ======= RESPONSIVE ======= */
    @media (max-width: 768px) {

        .home-top-post {
            flex-direction: column;
            text-align: center;
            padding: 12px;
        }

        .home-top-post-content {
            text-align: center;
        }

        .nav-links,
        .right-actions>a,
        .right-actions>.dropdown {
            display: none;
        }

        .mobile-menu {
            display: block;
        }
    }




/* ======= LISTING CARDS ======= */
.container {
    padding: 16px 50px 20px;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
}

.listings-topbar {
    border-bottom: 2px solid #ff5a5f;
    padding: 0 0 10px 6px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.listings-topbar .section-title {
    font-size: 22px;
    line-height: 1.2;
}

.listing-filter-bar {
    margin-bottom: 18px;
    border: 1px solid #ececec;
    border-radius: 14px;
    background: #fff;
    padding: 12px;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
}

.filter-item label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #555;
    margin-bottom: 4px;
}

.filter-item input,
.filter-item select {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 9px 10px;
    font-size: 13px;
    background: #fff;
}

.filter-actions {
    display: flex;
    align-items: flex-end;
    gap: 8px;
}

.filter-actions .btn {
    width: 100%;
    height: 40px;
}

.quick-filter-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.chip {
    text-decoration: none;
    color: #333;
    font-size: 13px;
    font-weight: 700;
    border: 1px solid #ddd;
    border-radius: 999px;
    padding: 7px 12px;
    background: #fff;
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    position: relative;
}

.chip:hover {
    border-color: #ff385c;
    color: #ff385c;
}

.chip.active {
    background: #ffedf1;
    border-color: #ffb8c7;
    color: #e31e50;
}

.listing-wrapper a {
    text-decoration: none;
    color: #222;
}

.listing-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
    margin: auto;
    width: 100%;
}

.listing-card {
    width: 240px;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    transition: 0.3s ease;
    transition: all 0.3s ease;

}

.listing-card:hover {
    opacity: 0.8;
}

.img-box {
    width: 100%;
    height: 180px;
    position: relative;
}

.img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
}

/* BADGE */
.badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

/* HEART */
.heart {
    position: absolute;
    top: 14px;
    right: 14px;
    font-size: 16px;
    color: #ff385c;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 56, 92, 0.28);
    padding: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    text-align: center;
    line-height: 29px;
    font-weight: 500;
}

/* TEXT */
.info {
    padding: 10px 4px;
}

.title {
    font-size: 14px;
    font-weight: 600;
    /* margin: 4px 0; */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.price {
    font-size: 12px;
    color: #444;
}

.listing-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
}

.listing-rating-stars {
    display: flex;
    gap: 2px;
}

.listing-rating-stars .star {
    color: #d6d6d6;
    font-size: 13px;
}

.listing-rating-stars .star.filled {
    color: #ff4d6d;
}

.listing-rating-text {
    font-size: 12px;
    color: #666;
    font-weight: 600;
}

/* ======= DETAILS SECTION ======= */
.details-container {
    max-width: 900px;
    margin: 50px auto;
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.listing-map-card {
    max-width: 900px;
    margin: 20px auto 0;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    padding: 16px;
}

#listingMap {
    margin-top: 10px;
    height: 300px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #eee;
}

.details-main {
    display: flex;
    gap: 30px;
    align-items: stretch;
}

.image-preview {
    flex: 1;
}

.image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-top-left-radius: 15px;
    border-bottom-left-radius: 15px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.details-info {
    flex: 1.5;
    padding: 20px;
    display: flex;
    flex-direction: column;
}

.details-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.title-border {
    height: 3px;
    width: 100%;
    background-color: #ff5a5f;
    margin: 10px 0 0px 0;
    border-radius: 2px;
}

.details-list {
    list-style: none;
    padding: 0;
    margin-bottom: 25px;
    flex: 1;
}

.details-list li {
    /* margin-bottom: 8px; */
    font-size: 15px;
    color: #555;
}

.details-list strong {
    color: #333;
}

.details-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.details-actions .edit-btn,
.details-actions .delete-btn {
    flex: 1;
    padding: 12px 0;
    border-radius: 8px;
    font-weight: 500;
    font-size: 15px;
    cursor: pointer;
    text-align: center;
    transition: all 0.3s ease;
}

.details-actions .edit-btn {
    background-color: #ff5a5f;
    color: white;
    text-decoration: none;
}

.details-actions .edit-btn:hover {
    background-color: #e03d77;
    transform: translateY(-2px);
}

.details-actions .delete-btn {
    background-color: #333;
    color: white;
    border: 3px solid #333;
    width: 100%;
}

.details-actions .delete-btn:hover {
    background-color: black;
    transform: translateY(-2px);
}

/* =====form validation===== */

.green-text {
    color: green !important;
}


.field-wrapper {
    width: 100%;
    margin-bottom: 12px;
    position: relative;
    display: flex;
    flex-direction: column;
}

.valid {
    border: 2px solid green !important;
}

.error {
    border: 2px solid red !important;
}

input.valid,
textarea.valid {
    border: 2px solid green;
}

input.error,
textarea.error {
    border: 2px solid red;
}

.error-msg {
    font-size: 12px;
    color: red;
    margin-top: 4px;
}

.hellow {
    font-size: 12px;
    margin-top: 4px;
    color: red;
}

/* ======= FORMS ======= */
.form-container,
.edit-container {
    max-width: 600px;
    margin: 50px auto;
    padding: 35px 30px;
    background-color: #ffffff;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    border-bottom: 4px solid #ff5a5f;
}

.form-container h3,
.edit-title {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    font-weight: 700;
    font-size: 22px;
    padding-bottom: 5px;
    border-bottom: 2px solid #FF4C8B;
}

.pp {
    margin-bottom: 15px;
}

.form-container input,
.form-container textarea,
.edit-form input,
.edit-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 14px;
    transition: 0.3s;
}

.form-container input:focus,
.form-container textarea:focus,
.edit-form input:focus,
.edit-form textarea:focus {
    border-color: #ff5a5f;
    outline: none;
    box-shadow: 0 0 5px #ff5a607d;
}

.current-image-preview {
    display: flex;
    align-items: center;
   margin-bottom: 10px  ;

}

.preview-img {
    width: 96px;
    height: 64px;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    border: 1px solid #eee;
}



.flex-row {
    display: flex;
    gap: 20px;
    /* margin-bottom: 15px; */
}


.flex-item {
    flex: 1;
}

.form-container button,
.edit-btn {
    width: 100%;
    padding: 14px;
    background-color: #ff5a5f;
    color: white;
    border: none;
    font-size: 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
    font-weight: 700;
}

.form-container button:hover,
.edit-btn:hover {
    background-color: #e03d77;
}

.stats-panel {
    margin-top: 28px;
    border-top: 1px solid #eee;
    padding-top: 18px;
}

.stats-public-wrap {
    max-width: 850px;
    margin: 24px auto 50px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

.stats-card {
    border: 1px solid #ececec;
    background: #fafafa;
    border-radius: 10px;
    padding: 10px 12px;
}

.stats-label {
    margin: 0;
    font-size: 12px;
    color: #666;
}

.stats-card h4 {
    margin-top: 4px;
    font-size: 24px;
    color: #222;
}

.avg-rating-value {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.mini-stars-inline {
    display: inline-flex;
    gap: 2px;
}

.mini-stars-inline .star {
    font-size: 13px;
    color: #d8d8d8;
    line-height: 1;
}

.mini-stars-inline .star.filled {
    color: #ff5a5f;
}

.mini-stars-inline .star.half {
    background: linear-gradient(90deg, #ff5a5f 50%, #d8d8d8 50%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.best-review-card {
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 12px;
    background: #fff;
}

.best-review-card h4 {
    font-size: 16px;
    margin-bottom: 6px;
}

.best-review-stars .star {
    color: #d9d9d9;
}

.best-review-stars .star.filled {
    color: #ff4d6d;
}

.best-review-text {
    color: #333;
    margin: 6px 0;
}

.best-review-meta {
    color: #666;
    font-size: 12px;
}

.top-post-highlight {
    display: flex;
    gap: 12px;
    align-items: center;
}

.top-post-highlight img {
    width: 86px;
    height: 70px;
    border-radius: 10px;
    object-fit: cover;
    border: 1px solid #eee;
}

.top-post-badge {
    font-size: 13px;
    color: #ff385c;
    font-weight: 700;
    margin: 3px 0 6px;
}

.stats-open-link {
    display: inline-block;
    font-size: 12px;
    color: #111;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 4px 10px;
}

.stats-open-link:hover {
    border-color: #ff385c;
    color: #ff385c;
}

.profile-wrap {
    max-width: 980px;
}

.profile-head-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.profile-new-btn {
    width: auto;
    min-width: 160px;
    padding: 10px 14px;
    text-decoration: none;
    text-align: center;
}

.profile-actions-row {
    display: flex;
    gap: 14px;
    margin-top: 20px;
}

.profile-actions-row .edit-btn,
.profile-actions-row .profile-account-delete {
    width: auto;
    min-width: 170px;
}

.profile-account-delete {
    padding: 12px 16px;
    border: 1px solid #ffb7c7;
    border-radius: 8px;
    background: #fff4f7;
    color: #d61f52;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.profile-account-delete:hover {
    border-color: #ff5a8c;
    background: #ffeef3;
}

.profile-posts-panel {
    margin-top: 22px;
    border-top: 1px solid #eee;
    padding-top: 16px;
}

.profile-posts-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.profile-listings-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.profile-listing-card {
    border: 1px solid #ececec;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
}

.profile-listing-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    display: block;
}

.profile-listing-info {
    padding: 10px;
}

.profile-listing-info h4 {
    font-size: 15px;
    margin-bottom: 3px;
}

.profile-listing-info p {
    margin: 0;
    color: #666;
    font-size: 13px;
}

.profile-listing-price {
    margin-top: 4px !important;
    color: #222 !important;
    font-weight: 700;
}

.profile-listing-actions {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 0 10px 10px;
    flex-wrap: wrap;
}

.profile-listing-actions form {
    margin: 0;
}

.profile-delete-post {
    background: transparent;
    cursor: pointer;
}

.profile-listing-actions .stats-open-link,
.profile-listing-actions .profile-delete-post {
    width: auto !important;
    padding: 5px 10px !important;
    font-size: 12px;
    line-height: 1.2;
}

.profile-listing-actions .profile-delete-post {
    border: 1px solid #ffbfd0;
    color: #e31e50;
    background: #fff5f8;
}

.profile-link {
    color: #ff385c;
    text-decoration: none;
    font-weight: 700;
}

.profile-link:hover {
    text-decoration: underline;
}

/* ======= FOOTER ======= */
.footer {
    padding: 24px 40px;
    color: #222;
    border-top: 1px solid #e0e0e0;
    background: #fff;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;

    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 15px;
    margin-bottom: 15px;
}

.language-currency span {
    margin-right: 20px;

    font-size: 14px;
    cursor: default;
}

.language-currency a {
    margin-right: 15px;
    font-size: 14px;
    color: #333;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.3s;
}

.language-currency a:hover {
    color: black;
}


.social-icons a {
    margin-left: 10px;
    font-size: 18px;
    color: #222;
    display: inline-block;
    transition: color 0.3s, transform 0.3s, background 0.3s;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #e7e7e7;
    text-align: center;
    line-height: 36px;
}

.social-icons a:hover {
    color: #ff5a5f;
    transform: translateY(-2px);
    background: #fff6f8;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    font-size: 13px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

.footer-links li {
    margin-left: 10px;
}

.footer-links a {
    color: #ff5a5f;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #ff8085;
}

/* Mobile: up to 767px */
@media screen and (max-width: 767px) {
    .header-bottom {
        display: none;
        /* mobile default hidden */
        flex-direction: column;
        /* mobile layout */
        width: 100%;
        background: #fff;
        /* optional */
        padding: 15px 0;
        transition: 0.3s ease;
    }

    .header-bottom.open {
        display: block;
    }

    .hamburger {
        display: block;
        cursor: pointer;
    }

    .search-bar,
    .nav-list {
        display: none;
    }

    .container {
        padding: 4px 10px;
    }

    .listings-topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding-left: 0;
    }

    .listings-topbar .section-title {
        font-size: 20px;
    }

    .hamburger {
        display: block;
    }

    .listing-card {
        max-width: 200px;
    }

    .footer-top,
    .footer-bottom {
        justify-content: center;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .profile-head-row,
    .profile-posts-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .profile-listings-grid {
        grid-template-columns: 1fr;
    }
}

/* Tablet: 768px to 1024px */
@media screen and (min-width: 768px) and (max-width: 1024px) {
    .container {
        padding: 8px 8px;
    }

    .listing-card {
        max-width: 200px;
    }
}

/* ===========REVIEWS AND RATINGS SECTION ===========*/
.listing-reviews {
    margin-top: 30px;
    font-family: Arial, sans-serif;
}

/* Previous reviews styling */
.previous-reviews {
    display: flex;
    margin: 16px;
    gap: 12px;
    flex-wrap: wrap;
}

.review-stars .star.filled {
    color: gold;
}


.review-card {
    display: flex;
    flex-direction: column;

flex:1;
    min-width: 280px;
    background: #fff;
    padding: 14px;
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
    margin-bottom: 18px;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  
  /* ---------------- HEADER ---------------- */
  .review-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .header-left {
    display: flex;
    align-items: center;
    gap: 6px;
  }
  
  .review-profile {
    width: 42px;
    height: 42px;
    border-radius: 50%;
  }
  
  .review-user-info {
    display: flex;
    flex-direction: column;
  }
  
  .review-time {
    font-size: 12px;
    color: #666;
  }
  
  .delete-btn {
    background: transparent;
    border: none;
    color: red;
    font-size: 18px;
    cursor: pointer;
  }
  
  /* ---------------- BODY ---------------- */
  .review-card-body {
    max-height: 80px;    /* FIXED BODY height */
    overflow: hidden;    /* hide overflow */
  }
  

  .review-text {
    margin: 0;
    font-size: 15px;
    color: #333;
    line-height: 1.4;
    display: block;              
    overflow: hidden;     
    max-height: calc(1.4em * 4);
}

  /* ---------------- FOOTER ---------------- */
  .review-card-footer {
    margin-top: auto;       /* pushes footer to bottom */
    align-self: flex-start; /* left side fix */
    display: flex;
    gap: 4px;
  }
  
  
  .review-stars .star {
    font-size: 20px;
    color: #ccc;
  }
  
  .review-stars .star.filled {
    color: #ff5252;
  }

.reviews-pagination {
    margin-top: 6px;
}
  


/* Add review form */
.add-review-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 3px solid #ff5a5f;
    margin-bottom: 5px;
}


.review-input-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.review-text-input {
    flex: 1;
    border: none;
    border-bottom: 2px solid #ccc;
    padding: 8px 10px;
    font-size: 14px;
    outline: none;
    transition: 0.3s;
}

.review-text-input:focus {
    border-bottom-color: #ff0080;
    /* pink focus */
}

.review-submit-btn {
    padding: 12px 40px;
    background: #ff5a5f;
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: 0.3s;
}

.review-submit-btn:hover {
    opacity: 0.85;
}

/* Stars in form */
.star-rating {
    display: flex;
    gap: 8px;
    cursor: pointer;
}

.star-rating .star {
    font-size: 30px;
    color: #ccc;
    transition: 0.2s;
}

.star-rating .star.filled,
.star-rating .star.hovered {
    color: gold;
}


.no-review , .flash,.erroor{
    text-align: center;
    padding: 20px;
    background: #dadada52;
    border-radius: 8px;
    color: #4444442e;
    font-weight: bold;
    font-size: 14px;
    margin: 20px;
    cursor: pointer;
    user-select: none;
}

.flash{
    background: rgba(0, 128, 0, 0.37) !important;
    border: 1px solid green !important;
    color: green !important;
    font-size: 20px;
}
.erroor{
    background: rgba(255, 166, 0, 0.5) !important;
    border: 1px solid orangered !important;
    color: orangered !important;
    font-size: 20px;

}



.star-rating-wrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.star.error-star {
    color: transparent;
    -webkit-text-stroke: 1.5px blue;
}

.star.filled {
    color: gold;
}

.input-error {
    border-bottom: 2px solid blue !important;
}

.input-error::placeholder {
    color: blue;
}

.stars-error {
    margin-bottom: 8px;
}

.stars-error,
.review-error-msg {
    color: blue;
    font-size: 12px;
    line-height: 1.2;
}
.field-wrapper label {
    margin-bottom: 4px;
    font-weight: 600;
}

.field-wrapper input {
    transition: 0.2s;
}

.field-wrapper input:focus {
    transform: scale(1.02);
}
.field-wrapper textarea {
    transition: 0.2s;
}

/* ======= ABOUT PAGE ======= */
.about-section {
    max-width: 1020px;
    margin: 34px auto 56px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    padding: 32px 28px;
}

.about-header {
    margin-bottom: 12px;
}

.about-chip {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.6px;
    color: #ff385c;
    background: #fff4f6;
    border: 1px solid #ffd7df;
    padding: 6px 12px;
    border-radius: 999px;
}

.about-lead {
    margin-top: 12px;
    color: #4f4f4f;
    font-size: 15px;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin: 20px 0 8px;
}

.about-card {
    border: 1px solid #f0f0f0;
    border-radius: 14px;
    padding: 18px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.about-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.09);
}

.about-card h3 {
    font-size: 18px;
    margin: 10px 0 6px;
}

.about-card p {
    color: #555;
    font-size: 14px;
    line-height: 1.5;
}

.about-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #fff7f9;
    color: #ff5a5f;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.about-cta {
    margin-top: 18px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.about-spotlight {
    margin-top: 24px;
    display: flex;
    gap: 12px;
    align-items: center;
    border: 1px solid #eee;
    border-radius: 14px;
    padding: 12px 14px;
    background: #fff;
}

.about-spotlight h3 {
    margin-bottom: 2px;
}

.about-spotlight p {
    font-size: 14px;
    color: #555;
}

.about-spotlight-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: #fff1f4;
    color: #ff385c;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.about-signature {
    margin-top: 20px;
    border-top: 1px dashed #e9e9e9;
    padding-top: 14px;
    color: #555;
    font-size: 14px;
}

@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-section {
        padding: 22px 18px;
    }
}

/* ======= STATS REDESIGN ======= */
.stats-page {
    max-width: 980px;
    margin: 30px auto 50px;
}

.stats-hero {
    background: linear-gradient(135deg, #ffeff3 0%, #ffffff 100%);
    border: 1px solid #ffdce4;
    border-radius: 20px;
    padding: 22px 20px;
    margin-bottom: 16px;
}

.stats-kicker {
    color: #ff385c;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.stats-hero h2 {
    margin: 6px 0 4px;
    font-size: 30px;
}

.stats-hero p {
    color: #555;
}

.stats-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.metric-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 14px;
    padding: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.metric-card p {
    color: #666;
    font-size: 13px;
}

.metric-card h3 {
    font-size: 30px;
    color: #1f1f1f;
    margin-top: 3px;
}

.stats-focus {
    margin-top: 16px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 16px;
    padding: 14px;
}

.stats-focus h3 {
    margin-bottom: 10px;
}

.focus-card {
    display: flex;
    gap: 14px;
    align-items: center;
}

.focus-card img {
    width: 200px;
    height: 130px;
    border-radius: 14px;
    object-fit: cover;
}

.focus-content h4 {
    font-size: 20px;
}

.focus-content p {
    color: #555;
    margin-top: 3px;
}

.focus-actions {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* ======= ABOUT REDESIGN ======= */
.about-v2 {
    max-width: 980px;
    margin: 30px auto 50px;
    background: #fff;
    border-radius: 18px;
    border: 1px solid #eee;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
    padding: 24px;
}

.about-v2-head span {
    color: #ff385c;
    font-weight: 700;
    font-size: 13px;
}

.about-v2-head h2 {
    margin: 6px 0 8px;
    font-size: 34px;
    line-height: 1.2;
}

.about-v2-head p {
    color: #5a5a5a;
    max-width: 780px;
}

.about-v2-cards {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.about-v2-cards article {
    border: 1px solid #eee;
    border-radius: 14px;
    padding: 14px;
    background: #fff;
}

.about-v2-cards h3 {
    font-size: 18px;
    margin-bottom: 4px;
}

.about-v2-cards p {
    color: #5c5c5c;
    font-size: 14px;
}

.about-v2-bottom {
    margin-top: 18px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

@media (max-width: 900px) {
    .stats-metrics,
    .about-v2-cards {
        grid-template-columns: 1fr;
    }

    .focus-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .focus-card img {
        width: 100%;
        height: 190px;
    }

    .about-v2-head h2 {
        font-size: 28px;
    }

    .listing-filter-bar {
        grid-template-columns: 1fr;
    }

    .quick-filter-chips {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 4px;
    }

    .quick-filter-chips .chip {
        min-width: 42px;
        width: 42px;
        height: 42px;
        padding: 0;
        justify-content: center;
        border-radius: 50%;
        flex: 0 0 auto;
    }

    .quick-filter-chips .chip span {
        display: none;
    }

    .quick-filter-chips .chip i {
        font-size: 14px;
    }

    .quick-filter-chips .chip:focus-visible::after,
    .quick-filter-chips .chip:active::after {
        content: attr(data-label);
        position: absolute;
        bottom: -30px;
        left: 50%;
        transform: translateX(-50%);
        font-size: 11px;
        color: #fff;
        background: #111;
        padding: 4px 8px;
        border-radius: 8px;
        white-space: nowrap;
        z-index: 2;
    }

    .quick-filter-chips .chip.active::after {
        content: attr(data-label);
        position: absolute;
        bottom: -30px;
        left: 50%;
        transform: translateX(-50%);
        font-size: 11px;
        color: #e31e50;
        background: #ffedf1;
        border: 1px solid #ffb8c7;
        padding: 4px 8px;
        border-radius: 8px;
        white-space: nowrap;
        z-index: 2;
    }

    .filter-actions {
        align-items: center;
    }
}


