* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
}

body {
    background: #f4f4f4;
    color: #333;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.motors-search-hero {
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    background-image: linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.45)), url('/img/cars-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 60px 0 40px;
    min-height: 360px;
    display: flex;
    align-items: center;
}

.motors-search-inner {
    width: 95%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
    color: #fff;
}

.motors-search-heading h1 {
    margin: 4px 0;
    font-size: 32px;
}

.motors-search-heading p {
    margin: 6px 0;
}

.motors-search-kicker {
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 700;
    color: #e8ffeb;
}

.motors-search-subtext {
    max-width: 760px;
}

.motors-search-card {
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    color: #333;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.motors-sell-card {
    margin-top: 10px;
    background: linear-gradient(90deg, #f5f7fa 0%, #eef6ff 100%);
    border: 1px solid #dbe7ff;
    border-radius: 12px;
    padding: 14px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: center;
}

.motors-sell-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.motors-sell-kicker {
    font-weight: 700;
    color: #032f3c;
    font-size: 15px;
}

.motors-sell-note {
    color: #184f5f;
    font-size: 13px;
}

.motors-sell-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.motors-reg-input input {
    padding: 12px 14px;
    border: 2px solid #ffd200;
    border-radius: 10px;
    font-size: 16px;
    letter-spacing: 0.08em;
    font-weight: 700;
    background: #fff9d6;
    min-width: 200px;
}

.motors-sell-btn {
    background: #3ed06c;
    color: #064458;
    border: none;
    padding: 12px 18px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.motors-sell-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.motors-reg-status {
    grid-column: 1 / -1;
    font-size: 13px;
    color: #064458;
    min-height: 16px;
}

.motors-reg-status.error {
    color: #b20820;
}

.motors-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.motors-form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 14px;
    color: #1b1b1b;
}

.motors-form-field select,
.motors-form-field input[type="text"] {
    padding: 12px 10px;
    border-radius: 8px;
    border: 1px solid #d5d5d5;
    font-size: 14px;
    width: 100%;
}

.motors-form-field select:disabled {
    background: #f2f2f2;
    color: #7a7a7a;
}

.motors-label {
    font-weight: 700;
    color: #0d303a;
}

.motors-price-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.motors-form-actions {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    flex-wrap: wrap;
}

.motors-advanced {
    flex: 1 1 220px;
}

.motors-search-btn {
    background: #3ed06c;
    color: #053038;
    border: none;
    padding: 12px 18px;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.1s ease, box-shadow 0.1s ease;
    margin-left: auto;
}

.motors-search-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
}

@media (max-width: 900px) {
    .motors-search-card {
        padding: 14px;
    }

    .motors-sell-card {
        grid-template-columns: 1fr;
    }

    .motors-form-grid {
        grid-template-columns: 1fr;
    }

    .motors-form-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .motors-more-toggle,
    .motors-search-btn {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .motors-search-hero {
        padding: 40px 0;
        min-height: 320px;
    }

    .motors-search-heading h1 {
        font-size: 24px;
    }
}

.motor-confirm-summary {
    margin: 12px 0 18px;
}

.motor-confirm-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 12px;
}

.motor-confirm-grid dt {
    font-weight: 700;
    color: #063b47;
    font-size: 13px;
}

.motor-confirm-grid dd {
    margin: 0;
    font-size: 13px;
    color: #234047;
}

.container {
    width: 95%;
    max-width: 1100px;
    margin: 0 auto;
}

/* ===== Gumtree-style two-row header ===== */

.site-header {
    background: #064458; /* dark teal instead of Gumtree blue */
    color: #fff;
    margin-bottom: 0;
}

/* TOP BAR */

.top-header {
    background: #064458;
    padding: 10px 0;
}

.top-header-inner {
    display: flex;
    align-items: center;
    gap: 18px;
}

/* LOGO */

.logo-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.logo-mark {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: #3ed06c;        /* bright green badge */
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 14px;
    color: #064458;
}

.logo-text {
    font-weight: 700;
    font-size: 18px;
    color: #ffffff;
}

/* SEARCH AREA */

.header-search {
    flex: 1;
    display: flex;
    align-items: stretch;
    gap: 0;
    max-width: 700px;
}

.header-search-input,
.header-location-input {
    background: #ffffff;
    display: flex;
    align-items: center;
    padding: 0 10px;
}

.header-search-input {
    flex: 2;
    border-radius: 6px 0 0 6px;
}

.header-location-input {
    flex: 1;
    border-left: 1px solid #e0e0e0;
}

.header-search-input input,
.header-location-input input {
    border: none;
    outline: none;
    font-size: 14px;
    padding: 8px 4px;
    width: 100%;
}

.header-search-icon,
.header-location-icon {
    margin-right: 6px;
    font-size: 16px;
}

.header-search-btn {
    border: none;
    padding: 0 18px;
    border-radius: 0 6px 6px 0;
    background: #3ed06c;    /* green search button */
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    color: #064458;
}

.header-search-btn:hover {
    filter: brightness(0.95);
}

/* RIGHT ACTIONS */

.top-header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-left: auto;
}

.top-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #ffffff;
    font-size: 12px;
}

.top-action-icon {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    margin-bottom: 2px;
}

.top-action-logout {
    display: block;
    margin-top: 2px;
    font-size: 11px;
    color: #ffd4d4;
    text-decoration: none;
}

.top-action-logout:hover {
    text-decoration: underline;
}

/* MAIN CATEGORY BAR (ROW 2) */

.main-category-bar {
    background: #ffffff;
    border-bottom: 1px solid #e3e3e3;
}

.main-category-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    padding: 10px 0;
    margin: 0;
    font-size: 14px;
}

.main-category-item {
    position: relative;
}

.main-category-item > a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    padding-bottom: 6px;
    display: inline-block;
    border-bottom: 2px solid transparent;
}

.main-category-item > a:hover {
    border-bottom-color: #3ed06c;
    color: #064458;
}

/* Dropdown */

.main-category-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    padding: 6px 0;
    display: none;
    z-index: 500;
}

.main-category-dropdown a {
    display: block;
    padding: 6px 12px;
    font-size: 13px;
    color: #333;
    text-decoration: none;
    white-space: nowrap;
}

.main-category-dropdown a:hover {
    background: #f3f7ff;
    color: #064458;
}

.main-category-item.has-dropdown:hover .main-category-dropdown {
    display: block;
}

/* RESPONSIVE TWEAKS */

@media (max-width: 900px) {
    .top-header-inner {
        flex-wrap: wrap;
        gap: 10px;
    }

    .header-search {
        order: 3;
        width: 100%;
    }

    .top-header-actions {
        order: 2;
        margin-left: 0;
    }
}

@media (max-width: 600px) {
    .main-category-list {
        gap: 14px;
        font-size: 13px;
    }

    .top-action-icon {
        width: 24px;
        height: 24px;
        font-size: 12px;
    }

    .logo-text {
        font-size: 16px;
    }
}


.site-content {
    min-height: 100vh;
}

.site-footer {
    background: #222;
    color: #ccc;
    text-align: center;
    padding: 15px 0;
    margin-top: 30px;
    font-size: 13px;
}

/* Page title */

.page-title {
    margin-bottom: 15px;
}

/* HOMEPAGE LISTINGS – CARD GRID (LIKE EBAY SECTIONS) */

.listings-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);  /* always 4 per row */
    gap: 18px;
    margin-top: 15px;
}


.listing-link {
    text-decoration: none;
    color: inherit;
}

.listing-card a {
    text-decoration: none;
    color: inherit;
}

.listing-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.listing-card {
    height: 350px;          /* fixed height */
    position: relative;     /* required for heart */
}


.listing-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.listing-thumb {
    width: 100%;
    height: 180px;
    background: #f2f2f2;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 8px;
}


.listing-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;   /* FILL card */
    display: block;
}


.no-image {
    font-size: 11px;
    color: #777;
}

.badge-category {
    display: inline-block;
    font-size: 11px;
    background: #eee;
    padding: 2px 6px;
    border-radius: 20px;
    margin-bottom: 4px;
}

.listing-main {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.listing-title {
    font-size: 14px;
    font-weight: 600;
    color: #222;
    line-height: 1.3;
    min-height: 34px; /* keeps rows even when titles differ */
}

.listing-meta-row {
    font-size: 12px;
    color: #666;
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.listing-condition {
    font-size: 11px;
    color: #555;
    margin-top: 2px;
}

.listing-side {
    margin-top: 6px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5px;
}

.listing-price {
    font-size: 16px;
    font-weight: bold;
    color: #0a7a25;
}

.listing-side-meta {
    color: #777;
    font-size: 11px;
}

.listing-motor-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 11px;
    color: #555;
}

.motor-meta-divider {
    color: #c4c4c4;
    padding: 0 4px;
    font-weight: 600;
}

/* Post ad / forms */

.post-ad-form {
    background: #fff;
    padding: 20px;
    margin: 20px 0;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.post-ad-form label {
    margin-top: 10px;
    display: block;
    font-weight: bold;
}

.post-ad-form input,
.post-ad-form select,
.post-ad-form textarea {
    width: 100%;
    padding: 10px 12px;
    margin-top: 5px;
    border: 1px solid #dcdfe4;
    border-radius: 12px;
    background-color: #fbfbfd;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.post-ad-form select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='14' height='10' viewBox='0 0 14 10' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%237b8190' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.03);
}

.post-ad-form input:focus,
.post-ad-form select:focus,
.post-ad-form textarea:focus {
    outline: none;
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
    background-color: #fff;
}

.post-ad-form button {
    margin-top: 15px;
    padding: 10px 15px;
    background: #222;
    color: #fff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

.post-ad-form button:hover {
    background: #444;
}

/* Single listing page */

.single-listing h1 {
    margin-bottom: 15px;
}

.single-listing-top {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.5fr);
    gap: 20px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .single-listing-top {
        grid-template-columns: 1fr;
    }
}

.single-main-image {
    width: 100%;
    max-height: 350px;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 4px;
}

.single-main-image img {
    max-width: 100%;
    max-height: 100%;
}

.single-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    flex-wrap: wrap;
}

.single-thumb {
    width: 70px;
    height: 70px;
    background: #eee;
    overflow: hidden;
    border-radius: 3px;
}

.single-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.single-listing-info {
    background: #fff;
    padding: 15px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.single-price {
    font-size: 22px;
    font-weight: bold;
    color: #0a7a25;
    margin: 10px 0;
}

.single-meta {
    margin: 5px 0;
    font-size: 14px;
}

.single-contact h3 {
    margin-top: 15px;
    margin-bottom: 5px;
}

.single-description {
    background: #fff;
    padding: 15px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.vehicle-reg-row {
    align-items: center;
}

.vehicle-reg-row input {
    text-transform: uppercase;
    font-weight: 600;
}

.vehicle-spec-card {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    margin: 16px 0;
}

.vehicle-spec-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
}

.vehicle-spec-name {
    font-size: 18px;
    font-weight: 800;
    color: #2a7f3f;
}

.vehicle-spec-meta {
    flex: 1;
    font-size: 14px;
    color: #555;
}

.vehicle-reg-badge {
    background: #ffeb3b;
    color: #000;
    padding: 8px 14px;
    border-radius: 6px;
    font-weight: 800;
    letter-spacing: 1px;
    box-shadow: inset 0 0 0 2px rgba(0,0,0,0.15);
    min-width: 90px;
    text-align: center;
}

.vehicle-spec-tabs {
    margin: 0 0 8px;
}

.vehicle-spec-tabs .auth-tab {
    background: none;
    border: none;
    cursor: pointer;
}

.vehicle-spec-panel {
    display: none;
    padding-top: 6px;
}

.vehicle-spec-panel.active {
    display: block;
}

.vehicle-spec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px 18px;
}

.vehicle-spec-item {
    padding: 4px 0;
    border-bottom: 1px solid #f0f0f0;
}

.vehicle-spec-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 2px;
}

.vehicle-spec-value {
    font-size: 14px;
    font-weight: 700;
    color: #222;
}

/* Header user text */

.nav-user {
    color: #aaa;
    margin-left: 15px;
    font-size: 13px;
}

/* Form errors */

.form-errors {
    background: #f8d7da;
    border: 1px solid #f5c2c7;
    color: #842029;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 4px;
    font-size: 14px;
}
.form-errors ul {
    margin-left: 18px;
}

/* Flash success message */

.flash-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 8px 10px;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 14px;
}

/* My Ads page */

.my-ads-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.my-ads-item {
    display: grid;
    grid-template-columns: 100px minmax(0, 1.8fr) minmax(0, 1fr);
    gap: 10px;
    background: #fff;
    padding: 10px;
    border-radius: 4px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.08);
    align-items: center;
}

@media (max-width: 768px) {
    .my-ads-item {
        grid-template-columns: 80px minmax(0, 1fr);
        grid-template-rows: auto auto;
    }
    .my-ads-side {
        grid-column: 1 / -1;
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: 8px;
    }
}

.my-ads-thumb {
    width: 100%;
    height: 80px;
    background: #f2f2f2;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border-radius: 3px;
}

.my-ads-thumb img {
    max-width: 100%;
    max-height: 100%;
}

.my-ads-title {
    font-size: 15px;
    font-weight: 600;
    color: #0654ba; /* eBay blue */
    text-decoration: none;
}

.my-ads-title:hover {
    text-decoration: underline;
}

.my-ads-meta {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

.my-ads-status {
    font-size: 12px;
    margin-top: 4px;
}

.status-badge {
    display: inline-block;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
}

.status-active {
    background: #d4edda;
    color: #155724;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-sold {
    background: #d1ecf1;
    color: #0c5460;
}

.my-ads-side {
    text-align: right;
}

.my-ads-price {
    font-weight: bold;
    margin-bottom: 6px;
}

.my-ads-actions button {
    display: block;
    width: 100%;
    margin-bottom: 4px;
    padding: 6px 8px;
    font-size: 12px;
    border-radius: 3px;
    border: 1px solid #ccc;
    background: #f8f8f8;
    cursor: pointer;
}

.my-ads-actions button:hover {
    background: #e6e6e6;
}

.my-ads-actions .btn-secondary {
    background: #fff;
}

/* Seller profile */

.seller-profile {
    margin-top: 10px;
    margin-bottom: 20px;
}

.seller-header-box {
    background: #fff;
    padding: 15px;
    border-radius: 4px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.08);
    margin-bottom: 15px;
}

.seller-header-top {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.seller-info-block {
    flex: 1 1 320px;
}

.seller-header-box h1 {
    font-size: 20px;
    margin-bottom: 5px;
}

.seller-meta {
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
}

.seller-message-box {
    background: #f7f7f7;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 12px;
}

.seller-message-box h3 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 16px;
}

.seller-message-form label {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    color: #444;
}

.seller-message-form textarea,
.seller-message-form input,
.seller-message-form select {
    width: 100%;
    padding: 8px;
    margin-top: 4px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
}

.seller-message-form button {
    margin-top: 10px;
    padding: 10px 12px;
    background: #0654ba;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.seller-message-form button:hover {
    background: #054494;
}

.seller-stats-card {
    flex: 0 0 260px;
    background: #fdfdfd;
    border: 1px solid #e6e6e6;
    border-radius: 6px;
    padding: 12px;
    align-self: flex-start;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.seller-stats-card h3 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 16px;
}

.seller-stats-row {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 14px;
}

.seller-stats-label {
    color: #555;
}

.seller-stats-value {
    font-weight: 600;
    color: #222;
    text-align: right;
}

.seller-listings-title {
    margin: 10px 0;
    font-size: 16px;
}

.seller-link {
    color: #0654ba; /* eBay blue */
    text-decoration: none;
}
.seller-link:hover {
    text-decoration: underline;
}

/* Search bar */

.search-bar {
    display: flex;
    gap: 8px;
    margin: 10px 0 15px;
}

.search-bar input[type="text"] {
    flex: 1;
    padding: 8px 10px;
    border-radius: 3px;
    border: 1px solid #ccc;
    font-size: 14px;
}

.search-bar button {
    padding: 8px 14px;
    border-radius: 3px;
    border: 1px solid #0654ba;
    background: #0654ba;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
}

.search-bar button:hover {
    background: #054494;
}

.search-results-label {
    font-size: 13px;
    color: #555;
    margin-bottom: 8px;
}

.offer-form {
    margin-top: 10px;
}

.offer-form label {
    display: block;
    font-weight: bold;
    margin-top: 8px;
    font-size: 13px;
}

.offer-form textarea,
.offer-form input[type="number"] {
    width: 100%;
    padding: 6px;
    margin-top: 4px;
    border-radius: 3px;
    border: 1px solid #ccc;
    font-size: 13px;
}

.offer-form button {
    margin-top: 10px;
    padding: 8px 12px;
    border-radius: 3px;
    border: 1px solid #0654ba;
    background: #0654ba;
    color: #fff;
    font-size: 13px;
    cursor: pointer;
}

.offer-form button:hover {
    background: #054494;
}

.conversation-box {
    background: #fff;
    border-radius: 4px;
    padding: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    max-height: 450px;
    overflow-y: auto;
    margin-bottom: 10px;
}

.msg {
    margin-bottom: 8px;
    max-width: 80%;
    padding: 6px 8px;
    border-radius: 6px;
    font-size: 13px;
}

.msg-me {
    margin-left: auto;
    background: #d1ecf1;
}

.msg-them {
    margin-right: auto;
    background: #f8f9fa;
}

.msg-body {
    margin-bottom: 3px;
}

.msg-meta {
    font-size: 11px;
    color: #555;
}

.conversation-reply-form label {
    display: block;
    margin-top: 6px;
    font-weight: bold;
    font-size: 13px;
}

.conversation-reply-form textarea,
.conversation-reply-form input[type="number"] {
    width: 100%;
    padding: 6px;
    margin-top: 3px;
    border-radius: 3px;
    border: 1px solid #ccc;
    font-size: 13px;
}

.conversation-reply-form button {
    margin-top: 8px;
    padding: 8px 12px;
    border-radius: 3px;
    border: 1px solid #0654ba;
    background: #0654ba;
    color: #fff;
    font-size: 13px;
    cursor: pointer;
}

.conversation-reply-form button:hover {
    background: #054494;
}

.offer-actions-inline {
    display: inline-block;
    margin-left: 6px;
}

.offer-actions-inline button {
    font-size: 11px;
    padding: 2px 6px;
    margin-left: 2px;
    border-radius: 3px;
    border: 1px solid #ccc;
    background: #f8f8f8;
    cursor: pointer;
}
.offer-actions-inline button:hover {
    background: #e6e6e6;
}

.fav-form {
    margin-top: 8px;
}

.fav-form button {
    padding: 6px 10px;
    border-radius: 3px;
    border: 1px solid #ccc;
    background: #fffceb;
    font-size: 12px;
    cursor: pointer;
}

.fav-form button:hover {
    background: #fff3cd;
}

.report-box {
    margin-top: 15px;
    background: #fff;
    padding: 10px 12px;
    border-radius: 4px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.report-box h3 {
    font-size: 14px;
    margin-bottom: 6px;
}

.report-form label {
    display: block;
    font-size: 13px;
    font-weight: bold;
    margin: 4px 0;
}

.report-form textarea {
    width: 100%;
    padding: 6px;
    border-radius: 3px;
    border: 1px solid #ccc;
    font-size: 13px;
}

.report-form button {
    margin-top: 6px;
    padding: 6px 10px;
    font-size: 12px;
    border-radius: 3px;
    border: 1px solid #dc3545;
    background: #dc3545;
    color: #fff;
    cursor: pointer;
}

.report-form button:hover {
    background: #c82333;
}

.similar-section {
    margin-top: 20px;
}

.similar-section h2 {
    font-size: 16px;
    margin-bottom: 8px;
}

.report-inline {
    margin-top: 8px;
}

.report-toggle-btn {
    padding: 6px 10px;
    border-radius: 3px;
    border: 1px solid #dc3545;
    background: #fff;
    color: #dc3545;
    font-size: 12px;
    cursor: pointer;
}

.report-toggle-btn:hover {
    background: #dc3545;
    color: #fff;
}

.report-inline-form {
    display: none;
    margin-top: 6px;
}

.report-inline-form label {
    font-size: 12px;
    font-weight: bold;
    display: block;
    margin-bottom: 3px;
}

.report-inline-form textarea {
    width: 100%;
    padding: 6px;
    border-radius: 3px;
    border: 1px solid #ccc;
    font-size: 12px;
    resize: vertical;
}

.report-inline-form button {
    margin-top: 5px;
    padding: 5px 9px;
    border-radius: 3px;
    border: 1px solid #dc3545;
    background: #dc3545;
    color: #fff;
    font-size: 12px;
    cursor: pointer;
}

.report-inline-form button:hover {
    background: #c82333;
}

.report-inline-note {
    font-size: 12px;
    margin-top: 6px;
}


.report-btn {
    display: inline-block;
    margin-top: 6px;
    padding: 6px 10px;
    border-radius: 3px;
    border: 1px solid #dc3545;
    background: #fff;
    color: #dc3545;
    font-size: 12px;
    cursor: pointer;
    text-decoration: none;
}

.report-btn:hover {
    background: #dc3545;
    color: #fff;
}

/* Report page */

.report-page-box {
    background: #fff;
    padding: 15px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    max-width: 600px;
}

.report-form-page label {
    display: block;
    font-weight: bold;
    margin-top: 10px;
    font-size: 13px;
}

.report-form-page textarea {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    border-radius: 3px;
    border: 1px solid #ccc;
    font-size: 13px;
}

.report-form-page button {
    margin-top: 12px;
    padding: 8px 14px;
    border-radius: 3px;
    border: 1px solid #dc3545;
    background: #dc3545;
    color: #fff;
    font-size: 13px;
    cursor: pointer;
}

.report-form-page button:hover {
    background: #c82333;
}

/* ---- Improved Report Page UI ---- */

.report-page-box {
    background: #fff;
    padding: 18px 20px;
    border-radius: 14px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.12);
    max-width: 420px;        /* smaller like screenshot */
    margin: 20px auto;
    font-size: 14px;
}

.report-page-box h3 {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 12px;
}

/* item row */
.report-item-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding: 6px 0;
}

.report-item-row img {
    width: 58px;
    height: 58px;
    border-radius: 10px;
    object-fit: cover;
    background: #eee;
}

/* add content button */
.report-add-btn {
    border: 1px solid #ccc;
    background: #fff;
    padding: 6px 10px;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    margin-bottom: 12px;
}
.report-add-btn:hover {
    background: #f2f2f2;
}

/* form fields */
.report-form-page label {
    font-size: 13px;
    font-weight: 600;
    margin: 10px 0 4px;
}

.report-form-page select,
.report-form-page textarea {
    width: 100%;
    padding: 8px;
    border-radius: 10px;
    border: 1px solid #ccc;
    font-size: 13px;
}

.report-form-page select:focus,
.report-form-page textarea:focus {
    border-color: #0654ba;
    box-shadow: 0 0 0 1px rgba(6,84,186,0.25);
}

/* submit button */
.report-form-page button {
    margin-top: 14px;
    padding: 8px 14px;
    border-radius: 10px;
    border: none;
    background: #dc3545;
    color: white;
    cursor: pointer;
}
.report-form-page button:hover {
    background: #b9232c;
}


/* --- Fancy single listing gallery (vertical thumbs) --- */

.single-gallery {
    display: grid;
    grid-template-columns: 90px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
}

.single-thumbs {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #f7f7f7;
    padding: 8px 4px;
    border-radius: 16px;
}

.single-thumb {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid transparent;
    background: #eee;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.single-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.single-thumb.active {
    border-color: #111;
    box-shadow: 0 0 0 1px rgba(0,0,0,0.08);
}

/* main image area */

.single-main-image {
    position: relative;
    width: 100%;
    background: #f5f5f5;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    height: 380px;           /* fixed box height on desktop */
}

.single-main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;      /* fit nicely inside box */
}

/* enlarge icon in top-right of main image */
.single-image-enlarge {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.18);
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* lightbox overlay */

.image-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.image-lightbox.open {
    display: flex;
}

.image-lightbox-inner {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    background: #111;
    border-radius: 8px;
    padding: 10px;
}

.image-lightbox-inner img {
    display: block;
    max-width: 100%;
    max-height: 80vh;
    margin: 0 auto;
}

.lightbox-close {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: #fff;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
}

/* smaller height on mobile */
@media (max-width: 768px) {
    .single-main-image {
        height: 260px;
    }
}


/* arrows */

.single-image-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: none;
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.single-image-nav.nav-prev {
    left: 10px;
}

.single-image-nav.nav-next {
    right: 10px;
}

.single-image-nav:hover {
    background: #f0f0f0;
}

/* mobile: stack thumbs under main image */

@media (max-width: 768px) {
    .single-gallery {
        grid-template-columns: 1fr;
    }
    .single-thumbs {
        flex-direction: row;
        justify-content: center;
        padding: 6px;
    }
    .single-thumb {
        width: 60px;
        height: 60px;
    }
}

.post-steps {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 13px;
}

.post-steps .step {
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid #ddd;
    background: #f9f9f9;
}

.cat-pill {
    border-radius: 999px;
    border: 1px solid #e4e7ec;
    padding: 8px 14px;
    background: #fff;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.15s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.04);
}

.cat-pill.active {
    border-color: #3b82f6;
    background: #e6f2ff;
    box-shadow: 0 6px 18px rgba(59, 130, 246, 0.18);
}

.cat-pill:hover {
    transform: translateY(-1px);
    border-color: #c9d6e2;
}

.category-select-group {
    margin-top: 12px;
}

.category-select-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
}

.category-select-group select {
    width: 100%;
    border-radius: 12px;
    border: 1px solid #d8e0ea;
    padding: 10px 12px;
    font-size: 14px;
    background: #fdfefe;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.04);
}

.category-select-group select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}

.selected-category-box {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
    background: #fafafa;
}
.category-level-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cat-pill {
    border-radius: 999px;
    border: 1px solid #e4e7ec;
    padding: 8px 14px;
    background: #fff;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.15s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.04);
}

.cat-pill.active {
    border-color: #3b82f6;
    background: #e6f2ff;
    box-shadow: 0 6px 18px rgba(59, 130, 246, 0.18);
}

.cat-pill:hover {
    transform: translateY(-1px);
    border-color: #c9d6e2;
}

.category-select-group {
    margin-top: 12px;
}

.category-select-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
}

.category-select-group select {
    width: 100%;
    border-radius: 12px;
    border: 1px solid #d8e0ea;
    padding: 10px 12px;
    font-size: 14px;
    background: #fdfefe;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.04);
}

.category-select-group select:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}

.selected-category-box {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 12px;
    background: #fafafa;
}

.selected-category-box h3 {
    margin-top: 0;
    margin-bottom: 4px;
    font-size: 14px;
}

.post-ad-category-form button {
    width: 100%;
}

.post-ad-grid {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.post-ad-main {
    flex: 2;
}

.post-ad-side {
    flex: 1;
    border-left: 1px solid #eee;
    padding-left: 16px;
}

.post-ad-form label {
    display: block;
    font-size: 13px;
    margin-bottom: 10px;
}

.post-ad-form input[type="text"],
.post-ad-form input[type="number"],
.post-ad-form input[type="email"],
.post-ad-form input[type="date"],
.post-ad-form select,
.post-ad-form textarea {
    width: 100%;
    box-sizing: border-box;
    margin-top: 4px;
}

.form-row-2 {
    display: flex;
    gap: 16px;
}

.form-row-2 > label {
    flex: 1;
}

.extra-fields-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.custom-fields-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 8px;
}

.custom-field-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.custom-field-row input[type="text"] {
    flex: 1;
}

.custom-field-row .remove-custom-field {
    background: #f8d7da;
    color: #8a1f2d;
    border: 1px solid #f1b0b7;
    border-radius: 4px;
    padding: 8px 10px;
    cursor: pointer;
}

.extra-field-item {
    flex: 1 1 220px;
}

.required {
    color: #d00;
    margin-left: 4px;
}

.post-ad-submit-btn {
    width: 100%;
    margin-top: 10px;
}

.selected-category-inline {
    margin-bottom: 12px;
    font-size: 13px;
}

.change-category-link {
    margin-left: 8px;
    font-size: 12px;
}
.form-errors {
    border: 1px solid #e99;
    background: #fff2f2;
    padding: 10px;
    margin-bottom: 12px;
    border-radius: 6px;
}
.form-errors ul {
    margin: 0;
    padding-left: 18px;
}
.small-note {
    font-size: 12px;
    color: #666;
}


.category-search-label {
    display: block;
    font-size: 13px;
    margin-bottom: 8px;
}

#category-search-input {
    width: 100%;
    padding: 6px 8px;
    margin-top: 4px;
    box-sizing: border-box;
}

.category-search-results {
    margin-bottom: 12px;
    font-size: 13px;
    border: 1px solid #eee;
    border-radius: 6px;
    max-height: 160px;
    overflow-y: auto;
}

.category-search-results .search-result-item {
    padding: 6px 8px;
    cursor: pointer;
}

.category-search-results .search-result-item:hover {
    background: #f3f7ff;
}

.category-search-results .no-results {
    padding: 6px 8px;
    color: #777;
}

/* ---- Gumtree-style category nav ---- */

.category-nav {
    background: #fff;
    border-bottom: 1px solid #ddd;
}

.category-nav .container {
    display: flex;
    align-items: center;
}

.category-nav-list {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 8px 0;
    margin: 0;
}

.category-nav-item {
    position: relative;
    font-size: 14px;
}

.category-nav-item > a {
    text-decoration: none;
    color: #222;
    font-weight: 600;
    padding: 6px 0;
    display: block;
}

.category-nav-item > a:hover {
    color: #0654ba; /* eBay/Gumtree-ish blue */
}

/* Dropdown */
.category-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    padding: 6px 0;
    display: none;
    z-index: 500;
}

.category-dropdown a {
    display: block;
    padding: 6px 12px;
    font-size: 13px;
    color: #333;
    text-decoration: none;
    white-space: nowrap;
}

.category-dropdown a:hover {
    background: #f3f7ff;
    color: #0654ba;
}

.category-nav-item.has-dropdown:hover .category-dropdown {
    display: block;
}

/* Small tweak so header top-right menu stays nice on small screens */
@media (max-width: 768px) {
    .header-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .main-nav a {
        font-size: 13px;
    }

    .category-nav-list {
        gap: 10px;
        font-size: 13px;
    }
}

/* Right-side rounded links */
.top-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    flex-wrap: wrap;
}

.top-link-pill {
    padding: 6px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.7);
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    text-decoration: none;
    background: transparent;
    white-space: nowrap;
}

.top-link-pill:hover {
    background: rgba(255,255,255,0.15);
}

.top-link-primary {
    background: #3ed06c;
    border-color: #3ed06c;
    color: #064458;
}

.top-link-primary:hover {
    filter: brightness(0.95);
}

.top-link-ghost {
    background: transparent;
}

/* Location suggestions dropdown */
.loc-wrapper {
    position: relative;
}

/* Location suggestions dropdown (improved – clearer text like Gumtree) */
.loc-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.18);
    max-height: 250px;
    overflow-y: auto;
    z-index: 600;
    display: none;
    font-size: 14px;               /* bigger text */
    border: 1px solid #ccc;        /* light border like Gumtree */
}

.loc-suggestion-item {
    padding: 10px 12px;
    cursor: pointer;
    font-size: 14px;
    color: #222;                   /* DARKER text */
    border-bottom: 1px solid #f0f0f0;
}

.loc-suggestion-item:last-child {
    border-bottom: none;
}

.loc-suggestion-item:hover {
    background: #e9f4ff;           /* soft blue highlight */
    color: #064458;                /* Gumtree-style teal */
}

/* ===== Responsive Logo ===== */

.logo-brand {
    display: flex;
    align-items: center;
}

.logo-img {
    width: 48px;       /* Default desktop size */
    height: 48px;
    object-fit: contain;
}

/* Tablet */
@media (max-width: 900px) {
    .logo-img {
        width: 42px;
        height: 42px;
    }
}

/* Mobile */
@media (max-width: 600px) {
    .logo-img {
        width: 36px;
        height: 36px;
    }
}


/* ===== Text Logo ===== */

.logo-brand-text {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 28px;
    color: #ffffff;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 2px;
}

/* Make “Sell” green */
.logo-brand-text span {
    color: #3ed06c;
}

/* Responsive scaling */
@media (max-width: 900px) {
    .logo-brand-text {
        font-size: 24px;
    }
}

@media (max-width: 600px) {
    .logo-brand-text {
        font-size: 20px;
    }
}

/* ===== Homepage hero promo (ListSellBuy) ===== */

.hero-promo {
    margin: 24px 0 10px;
}

.hero-promo-inner {
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    padding: 22px 26px;
    display: flex;
    gap: 24px;
    align-items: stretch;
}

/* Left side – text */

.hero-promo-copy {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-promo-copy h2 {
    font-size: 22px;
    margin-bottom: 6px;
    color: #222;
}

.hero-promo-copy p {
    font-size: 14px;
    margin-bottom: 10px;
    color: #555;
}

.hero-promo-list {
    list-style: none;
    padding-left: 0;
    margin: 0 0 14px;
    font-size: 13px;
    color: #444;
}

.hero-promo-list li {
    position: relative;
    padding-left: 18px;
    margin-bottom: 4px;
}

.hero-promo-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: #25b45b;
    font-size: 12px;
}

.hero-promo-btn {
    display: inline-block;
    padding: 9px 18px;
    border-radius: 999px;
    background: #25b45b;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    margin-top: 4px;
    transition: transform 0.08s ease, box-shadow 0.08s ease, filter 0.08s ease;
}

.hero-promo-btn:hover {
    filter: brightness(0.95);
    box-shadow: 0 6px 16px rgba(0,0,0,0.18);
    transform: translateY(-1px);
}

/* Right side – real images collage (3 images) */

.hero-promo-media {
    flex: 1;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 8px;
}

.hero-tile {
    border-radius: 14px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 140px;
}

/* img/img1.png – big vertical image */
.hero-tile-large {
    grid-row: 1 / span 2;
    background-image: url("img/img1.png");
}

/* img/img2.png – top-right */
.hero-tile-small {
    background-image: url("img/img2.png");
}

/* img/img3.png – bottom-right */
.hero-tile-medium {
    background-image: url("img/img3.png");
}

/* We only want 3 tiles, hide the 4th if it exists in HTML */
.hero-tile-long {
    display: none;
}

/* Responsive */

@media (max-width: 900px) {
    .hero-promo-inner {
        flex-direction: column;
        padding: 18px 16px;
    }

    .hero-promo-media {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        min-height: 0;
    }

    .hero-tile-large {
        grid-column: 1 / span 2;
        grid-row: 1;
        min-height: 180px;
    }

    .hero-tile-small,
    .hero-tile-medium {
        grid-row: 2;
        min-height: 120px;
    }
}

@media (max-width: 600px) {
    .hero-promo {
        margin-top: 16px;
    }

    .hero-promo-copy h2 {
        font-size: 20px;
    }

    .hero-promo-copy p {
        font-size: 13px;
    }

    /* On mobile show only the main image for simplicity */
    .hero-promo-media {
        grid-template-columns: 1fr;
    }

    .hero-tile-large {
        grid-column: 1;
        grid-row: 1;
        min-height: 190px;
    }

    .hero-tile-small,
    .hero-tile-medium {
        display: none;
    }
}

/* ===== Auth (login/register) cards ===== */

.auth-wrapper {
    max-width: 800px;
    margin: 24px auto 40px;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 18px;
}

.auth-main-card,
.auth-benefits-card {
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.08);
    padding: 18px 20px 20px;
}

.auth-tabs {
    display: flex;
    border-bottom: 1px solid #e6e6e6;
    margin: -4px -20px 14px;
    padding: 0 20px;
}

.auth-tab {
    flex: 1;
    text-align: center;
    padding: 10px 0;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    color: #666;
    border-bottom: 3px solid transparent;
}

.auth-tab-active {
    color: #064458;
    border-bottom-color: #3ed06c;
}

.auth-card-body {
    padding-top: 4px;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.auth-form label {
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
    border-radius: 8px;
    border: 1px solid #d3d8de;
    padding: 8px 10px;
    font-size: 14px;
    outline: none;
}

.auth-form input:focus {
    border-color: #064458;
    box-shadow: 0 0 0 2px rgba(6, 68, 88, 0.12);
}

.auth-btn-primary {
    margin-top: 8px;
    padding: 9px 0;
    border-radius: 999px;
    border: none;
    background: #3ed06c;
    color: #064458;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: filter 0.08s ease, box-shadow 0.08s ease, transform 0.08s ease;
}

.auth-btn-primary:hover {
    filter: brightness(0.96);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
    transform: translateY(-1px);
}

/* Error box reused */
.form-errors {
    background: #ffe6e6;
    border-radius: 8px;
    padding: 8px 10px;
    margin-bottom: 6px;
    font-size: 13px;
    color: #a80000;
}

.form-errors ul {
    margin: 0;
    padding-left: 16px;
}

/* Benefits card */

.auth-benefits-card h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: #064458;
}

.auth-benefits-card ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
    font-size: 13px;
    color: #444;
}

.auth-benefits-card li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 6px;
}

.auth-benefits-card li::before {
    content: "•";
    position: absolute;
    left: 7px;
    top: -1px;
    color: #3ed06c;
    font-size: 18px;
}

/* Responsive */

@media (max-width: 768px) {
    .auth-wrapper {
        grid-template-columns: 1fr;
        max-width: 480px;
        padding: 0 8px;
    }
}


.image-uploader {
    border: 2px dashed #ccc;
    padding: 15px;
    border-radius: 10px;
    background: #fafafa;
}

.drop-area {
    text-align: center;
    padding: 20px;
    cursor: pointer;
}

.drop-area.dragging {
    background: #e7f0ff;
    border-color: #3b82f6;
}

.preview-container {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.preview-thumb {
    position: relative;
    width: 90px;
    height: 90px;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    display: inline-block;
    margin: 6px;
    background: #fff;
}

.preview-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* remove button inside top-right corner */
.preview-thumb .remove-btn {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #000;
    color: #fff;
    border: none;
    font-size: 14px;
    line-height: 22px;
    text-align: center;
    cursor: pointer;
    padding: 0;
    opacity: 0.85;
    z-index: 2;
}

.preview-thumb .remove-btn:hover {
    opacity: 1;
    background: #e60000;
}

.readonly-field {
    background: #f7f7f7;
    cursor: not-allowed;
}

.single-extra-details {
    background: #fff;
    padding: 15px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    margin: 15px 0;
}

.extra-details-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin: 8px 0 0;
}

.extra-details-row {
    display: flex;
    gap: 4px;
    font-size: 14px;
}

.extra-details-row dt {
    font-weight: 600;
    color: #333;
}

.extra-details-row dd {
    margin: 0;
    color: #555;
}




/* =============================== */
/*   Listing Action Buttons (NEW)  */
/* =============================== */

.single-action-btn {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    text-decoration: none;
    display: block;
    margin-bottom: 10px;
    transition: 0.15s ease;
}

/* Green "Send message" */
.single-btn-message {
    background: #3ed06c;
    color: #064458;
    border: none;
}
.single-btn-message:hover {
    filter: brightness(0.93);
}

/* Blue "Make offer" */
.single-btn-offer {
    background: #064458;
    color: #ffffff;
    border: none;
}
.single-btn-offer:hover {
    filter: brightness(1.1);
}

/* Favourite button */
.single-btn-fav {
    background: #fffceb;
    color: #8a6d00;
    border: 1px solid #e6d98d;
}
.single-btn-fav:hover {
    background: #fff5c6;
}

/* Report button */
.single-btn-report {
    background: #fff;
    border: 1px solid #dc3545;
    color: #dc3545;
}
.single-btn-report:hover {
    background: #dc3545;
    color: #fff;
}

/* Masked phone number badge */
.phone-mask-box {
    background: #f0f7ff;
    border: 1px solid #c9e2ff;
    color: #064458;
    padding: 10px 14px;
    border-radius: 12px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 12px;
    font-size: 14px;
}

.unread-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    margin-left: 6px;
    padding: 0 5px;
    border-radius: 999px;
    background: #dc3545; /* red */
    color: #fff;
    font-size: 11px;
    font-weight: 700;
}

/* Remove favourite saved item */
/* Favourite card remove button */
.favourite-card {
    position: relative;
}

.fav-remove-form {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 20;
}

.fav-remove-btn {
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid #e6d98d;
    background: #fffceb;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    line-height: 1.2;
    white-space: nowrap;      /* keeps “Remove” on one line */
}

.fav-remove-btn:hover {
    background: #fff5c6;
    border-color: #d8c65e;
}


/* Heart style */
.fav-heart {
    background: #ffffff;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    border: 1px solid #ccc;
    cursor: pointer;
    font-size: 18px;
    line-height: 30px;
    text-align: center;
    transition: 0.15s;
}

/* Hover effect */
.fav-heart:hover {
    background: #ffe5e5;
    border-color: #ff4d4d;
    transform: scale(1.25);
}

.fav-heart:hover::before {
    content: "✖";
    color: #ff4d4d;
}

/* Click animation */
@keyframes heartPop {
    0%   { transform: scale(1); }
    40%  { transform: scale(1.4); }
    100% { transform: scale(1); }
}

.fav-heart.animate {
    animation: heartPop 0.35s ease-out;
    color: #ff3b3b !important;
}

/* ===== User dropdown menu (top-right) ===== */

.user-menu {
    position: relative;
}

.user-menu-toggle {
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.7);
    background: transparent;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.user-menu-toggle:hover {
    background: rgba(255,255,255,0.15);
}

.user-menu-dropdown {
    position: absolute;
    right: 0;
    top: 110%;
    min-width: 190px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    padding: 6px 0;
    display: none;
    z-index: 800;
}

.user-menu.open .user-menu-dropdown {
    display: block;
}

.user-menu-dropdown a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px;
    font-size: 13px;
    color: #333;
    text-decoration: none;
}

.user-menu-dropdown a:hover {
    background: #f3f7ff;
    color: #064458;
}

.user-menu-dropdown hr {
    border: none;
    border-top: 1px solid #eee;
    margin: 4px 0;
}

.user-menu-disabled {
    color: #999 !important;
    cursor: default;
}

.user-menu-logout {
    color: #dc3545;
}

/* ===== Top New Message Banner ===== */
.new-msg-banner {
    display: block;
    width: 100%;
    background: #dc3545;
    color: #fff;
    text-align: center;
    padding: 10px 0;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    z-index: 9999;
}

.new-msg-banner:hover {
    background: #bd1f2f;
    color: #fff;
}

.unread-conv {
    border-left: 4px solid #dc3545;
    background: #fff7f7;
}

.unread-badge {
    background: #dc3545;
    color: #fff;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
}


/* ===== Seller row ===== */

.conv-seller-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 2px;
    border-bottom: 1px solid #e5e5e5;
    margin-bottom: 14px;
}

.conv-seller-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #ddd;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    font-weight: 600;
    color: #555;
}

.conv-seller-name {
    font-size: 15px;
    font-weight: 600;
    color: #222;
}

/* ===== Listing row ===== */

.conv-listing-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    margin-bottom: 14px;
}

.conv-listing-img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
}

.conv-listing-noimg {
    width: 70px;
    height: 70px;
    background: #eee;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    color: #777;
}

.conv-listing-info {
    display: flex;
    flex-direction: column;
}

.conv-listing-title {
    font-size: 14px;
    font-weight: 500;
    color: #222;
    margin-bottom: 4px;
}

.conv-listing-price {
    font-size: 14px;
    font-weight: 700;
    color: #111;
}






.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

.modal-box {
    background: #ffffff;
    padding: 20px;
    border-radius: 18px;
    width: 95%;
    max-width: 420px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 6px 22px rgba(0,0,0,0.20);
    position: relative;
}

body.modal-open {
    overflow: hidden;
}
.modal-box h3 {
    font-size: 18px;
    margin-bottom: 12px;
    color: #064458;
}

.modal-box label {
    font-size: 13px;
    font-weight: 600;
}

.modal-box input {
    width: 100%;
    padding: 10px;
    margin-top: 4px;
    margin-bottom: 12px;
    border: 1px solid #ccc;
    border-radius: 10px;
    font-size: 14px;
}

.modal-close {
    position: absolute;
    right: 12px;
    top: 10px;
    font-size: 22px;
    border: none;
    background: none;
    cursor: pointer;
}

.modal-btn {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    border: none;
    background: #3ed06c;
    color: #064458;
    font-weight: 700;
    cursor: pointer;
    font-size: 15px;
}

.single-gallery {
    background: #fff;
    padding: 15px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.edit-timer {
    font-size: 12px;
    color: #555;
    margin-top: 3px;
}

.edit-timer.disabled {
    color: #b00;
    font-weight: bold;
}

.edit-images-wrap {
    margin: 12px 0;
}

.edit-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    margin-top: 6px;
}

.edit-image-card {
    position: relative;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    padding: 6px;
    text-align: center;
    background: #fafafa;
}

.edit-image-card img {
    max-width: 100%;
    border-radius: 4px;
}

.edit-image-card .primary-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    background: #27ae60;
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
}

.edit-image-card .edit-image-delete {
    margin-top: 6px;
    padding: 6px 8px;
    background: #f39c12;
    border: none;
    color: #fff;
    cursor: pointer;
    border-radius: 6px;
}

.edit-image-card.pending-delete {
    border-color: #e74c3c;
    background: #fef0f0;
}

.muted {
    color: #666;
    font-size: 14px;
}

.edit-locked {
    background: #eee !important;
    color: #999 !important;
    border: 1px solid #ccc !important;
    cursor: not-allowed !important;
}

.fav-heart {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #ccc;
    background: #fff;
    font-size: 18px;
    cursor: pointer;
    line-height: 30px;
    text-align: center;
    transition: 0.15s;
}

.fav-heart:hover {
    background: #ffe5e5;
    border-color: #ff4d4d;
    transform: scale(1.15);
}




/* Fix layout for Contact Seller section */
.single-contact form label {
    display: block;
    font-weight: bold;
    margin: 8px 0 4px;
}

.single-contact form textarea,
.single-contact form input[type="number"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 6px;
    margin-bottom: 10px;
    font-size: 14px;
}

.single-contact form button {
    padding: 8px 14px;
    border-radius: 6px;
    background: #064458;
    color: #fff;
    border: none;
    cursor: pointer;
}
.single-contact form button:hover {
    background: #043543;
}
