/* ==========================================================
   ListBoardX - Classifieds Platform Styles
   ========================================================== */

/* ---------- Reset & Base ---------- */
.lbx-body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #222;
    background: #f5f5f5;
    margin: 0;
    padding: 0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.lbx-body *, .lbx-body *::before, .lbx-body *::after {
    box-sizing: border-box;
}

.lbx-body a {
    color: #0066cc;
    text-decoration: none;
}

.lbx-body a:hover {
    color: #004499;
    text-decoration: underline;
}

.lbx-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.lbx-section {
    padding: 2rem 1rem;
}

.lbx-text-center { text-align: center; }
.lbx-text-muted { color: #666; }

/* ---------- Header ---------- */
.lbx-header {
    background: #1a1a2e;
    color: #fff;
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.lbx-header .lbx-container {
    padding: 0 1rem;
}

.lbx-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.lbx-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff !important;
    text-decoration: none !important;
    letter-spacing: -0.5px;
}

.lbx-logo-text { color: #fff; }
.lbx-logo-x { color: #4cc9f0; }

.lbx-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lbx-nav-link {
    color: #ccc !important;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.9rem;
    text-decoration: none !important;
    transition: all 0.2s;
}

.lbx-nav-link:hover {
    color: #fff !important;
    background: rgba(255,255,255,0.1);
    text-decoration: none !important;
}

.lbx-mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    flex-direction: column;
    gap: 5px;
}

.lbx-mobile-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
}

/* ---------- Buttons ---------- */
.lbx-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.25rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none !important;
    line-height: 1.4;
    white-space: nowrap;
}

.lbx-btn:hover { transform: translateY(-1px); text-decoration: none !important; }

.lbx-btn-primary {
    background: #4cc9f0;
    color: #1a1a2e !important;
    border-color: #4cc9f0;
}
.lbx-btn-primary:hover {
    background: #3ab8df;
    border-color: #3ab8df;
    color: #1a1a2e !important;
}

.lbx-btn-success {
    background: #06d6a0;
    color: #fff !important;
    border-color: #06d6a0;
}
.lbx-btn-success:hover { background: #05c090; border-color: #05c090; color: #fff !important; }

.lbx-btn-info {
    background: #118ab2;
    color: #fff !important;
    border-color: #118ab2;
}
.lbx-btn-info:hover { background: #0e7a9e; border-color: #0e7a9e; color: #fff !important; }

.lbx-btn-danger {
    background: #ef476f;
    color: #fff !important;
    border-color: #ef476f;
}
.lbx-btn-danger:hover { background: #dd3660; border-color: #dd3660; color: #fff !important; }

.lbx-btn-outline {
    background: transparent;
    color: #333 !important;
    border-color: #ccc;
}
.lbx-btn-outline:hover { border-color: #999; background: #f9f9f9; color: #333 !important; }

.lbx-btn-sm { padding: 0.35rem 0.75rem; font-size: 0.8rem; }
.lbx-btn-lg { padding: 0.85rem 2rem; font-size: 1.05rem; }
.lbx-btn-block { width: 100%; }

/* ---------- Hero Section ---------- */
.lbx-hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    color: #fff;
    padding: 4rem 0;
    text-align: center;
}

.lbx-hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin: 0 0 1rem;
    line-height: 1.2;
}

.lbx-highlight { color: #4cc9f0; }

.lbx-hero-sub {
    font-size: 1.2rem;
    color: #aaa;
    margin-bottom: 2rem;
}

.lbx-search-bar {
    display: flex;
    max-width: 700px;
    margin: 0 auto;
    gap: 0;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.lbx-search-input,
.lbx-search-location {
    flex: 1;
    padding: 1rem 1.25rem;
    border: none;
    font-size: 1rem;
    outline: none;
    color: #333;
}

.lbx-search-location {
    flex: 0.6;
    border-left: 1px solid #eee;
}

.lbx-search-btn {
    border-radius: 0 12px 12px 0 !important;
    padding: 1rem 2rem !important;
}

.lbx-hero-stats {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
    color: #888;
    font-size: 0.95rem;
}

.lbx-hero-stats strong { color: #4cc9f0; }

/* ---------- Categories Section ---------- */
.lbx-categories-section {
    padding: 3rem 0;
    background: #fff;
}

.lbx-section-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #1a1a2e;
}

.lbx-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.lbx-category-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s;
}

.lbx-category-card:hover {
    border-color: #4cc9f0;
    box-shadow: 0 4px 12px rgba(76, 201, 240, 0.15);
}

.lbx-category-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem;
    text-decoration: none !important;
    color: #222 !important;
}

.lbx-category-icon { font-size: 1.5rem; }

.lbx-category-header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    flex: 1;
}

.lbx-category-count {
    font-size: 0.8rem;
    color: #888;
    background: #e5e7eb;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
}

.lbx-subcategory-list {
    list-style: none;
    padding: 0 1.25rem 1rem;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0;
}

.lbx-subcategory-list li {
    width: 50%;
}

.lbx-subcategory-list a {
    font-size: 0.85rem;
    color: #555;
    padding: 0.15rem 0;
    display: block;
}

.lbx-subcategory-list a:hover { color: #0066cc; }
.lbx-see-all { color: #0066cc !important; font-weight: 600; }

/* ---------- Listing Cards Grid ---------- */
.lbx-listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.25rem;
}

.lbx-listing-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.2s;
}

.lbx-listing-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    border-color: #ccc;
}

.lbx-listing-card-link {
    text-decoration: none !important;
    color: inherit !important;
    display: block;
}

.lbx-listing-thumb {
    position: relative;
    width: 100%;
    height: 180px;
    background: #f0f0f0;
    overflow: hidden;
}

.lbx-listing-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lbx-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: #e9ecef;
    color: #999;
    font-size: 0.9rem;
}

.lbx-no-image-large {
    height: 300px;
    border-radius: 10px;
}

.lbx-price-badge {
    position: absolute;
    bottom: 8px;
    left: 8px;
    background: #1a1a2e;
    color: #4cc9f0;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-weight: 700;
    font-size: 0.95rem;
}

.lbx-listing-info {
    padding: 1rem;
}

.lbx-listing-title {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: #222;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.lbx-listing-meta {
    display: flex;
    gap: 0.75rem;
    font-size: 0.8rem;
    color: #888;
    flex-wrap: wrap;
}

.lbx-listing-cat {
    display: inline-block;
    margin-top: 0.5rem;
    font-size: 0.75rem;
    background: #f0f0f0;
    color: #666;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
}

/* ---------- Recent Listings Section ---------- */
.lbx-recent-section {
    padding: 3rem 0;
}

/* ---------- CTA Section ---------- */
.lbx-cta-section {
    background: linear-gradient(135deg, #1a1a2e, #0f3460);
    color: #fff;
    padding: 4rem 0;
}

.lbx-cta-section h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.lbx-cta-section p {
    color: #aaa;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

/* ---------- Browse Page ---------- */
.lbx-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: #888;
    flex-wrap: wrap;
}

.lbx-breadcrumb a { color: #0066cc; }
.lbx-breadcrumb span { color: #999; }

.lbx-browse-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 2rem;
}

.lbx-sidebar {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 1.25rem;
    align-self: start;
    position: sticky;
    top: 80px;
}

.lbx-sidebar-section {
    margin-bottom: 1.5rem;
}

.lbx-sidebar-section:last-child { margin-bottom: 0; }

.lbx-sidebar-section h3 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
    color: #1a1a2e;
}

.lbx-sidebar-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.lbx-sidebar-list li {
    border-bottom: 1px solid #f0f0f0;
}

.lbx-sidebar-list li:last-child { border-bottom: none; }

.lbx-sidebar-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    color: #444;
    font-size: 0.9rem;
}

.lbx-sidebar-list a:hover { color: #0066cc; text-decoration: none; }
.lbx-count { color: #999; font-size: 0.8rem; }

.lbx-price-filter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lbx-price-filter input {
    width: 80px;
    padding: 0.4rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.85rem;
}

.lbx-price-filter span { color: #999; font-size: 0.85rem; }

.lbx-browse-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.lbx-browse-header h1, .lbx-browse-header h2 {
    margin: 0;
    font-size: 1.5rem;
}

.lbx-browse-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.lbx-result-count {
    color: #888;
    font-size: 0.9rem;
}

.lbx-sort-select {
    padding: 0.4rem 0.75rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.85rem;
    background: #fff;
}

/* ---------- Pagination ---------- */
.lbx-pagination {
    display: flex;
    justify-content: center;
    gap: 0.35rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.lbx-page-link {
    padding: 0.5rem 0.85rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    color: #333 !important;
    font-size: 0.9rem;
    text-decoration: none !important;
    transition: all 0.2s;
}

.lbx-page-link:hover { background: #f0f0f0; border-color: #bbb; }
.lbx-page-link.active {
    background: #1a1a2e;
    color: #fff !important;
    border-color: #1a1a2e;
}

/* ---------- Empty State ---------- */
.lbx-empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
}

.lbx-empty-state h3 { margin: 0 0 0.5rem; color: #333; }
.lbx-empty-state p { color: #888; margin-bottom: 1.5rem; }

/* ---------- Single Listing ---------- */
.lbx-listing-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
}

.lbx-gallery-main {
    border-radius: 10px;
    overflow: hidden;
    background: #f0f0f0;
}

.lbx-gallery-main img {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    display: block;
    background: #f5f5f5;
}

.lbx-gallery-thumbs {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}

.lbx-gallery-thumbs img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s;
}

.lbx-gallery-thumbs img:hover,
.lbx-gallery-thumbs img.active {
    border-color: #4cc9f0;
}

.lbx-listing-header h1 {
    margin: 0 0 0.5rem;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.3;
}

.lbx-listing-price {
    font-size: 2rem;
    font-weight: 800;
    color: #06d6a0;
    margin-bottom: 1.5rem;
}

.lbx-listing-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.lbx-detail-item {
    display: flex;
    flex-direction: column;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f0f0f0;
}

.lbx-detail-label {
    font-size: 0.75rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.lbx-detail-value {
    font-size: 0.95rem;
    color: #333;
    font-weight: 500;
}

.lbx-listing-description {
    margin-bottom: 2rem;
}

.lbx-listing-description h3 {
    font-size: 1.2rem;
    margin: 0 0 0.75rem;
}

.lbx-description-text {
    color: #444;
    line-height: 1.7;
    white-space: pre-wrap;
}

.lbx-contact-box {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.lbx-contact-box h3 {
    margin: 0 0 1rem;
    font-size: 1.1rem;
}

.lbx-contact-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.lbx-contact-item {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 0.5rem;
}

.lbx-contact-label {
    font-size: 0.85rem;
    color: #666;
    font-weight: 600;
    min-width: 100px;
}

.lbx-contact-value {
    font-size: 1rem;
    font-weight: 500;
}

.lbx-phone-link {
    color: #06d6a0 !important;
    font-size: 1.2rem !important;
    font-weight: 700 !important;
}

.lbx-contact-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.lbx-listing-actions {
    display: flex;
    gap: 0.75rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
    flex-wrap: wrap;
}

/* ---------- Search Page ---------- */
.lbx-page-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 1.5rem;
    color: #1a1a2e;
}

.lbx-search-form {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.lbx-search-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.lbx-search-field {
    flex: 1;
    min-width: 150px;
}

.lbx-search-field-lg { flex: 2; }
.lbx-search-field-sm { flex: 0.75; min-width: 120px; }

.lbx-search-field label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: #555;
    margin-bottom: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.lbx-search-field input,
.lbx-search-field select {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
}

.lbx-search-actions {
    display: flex;
    gap: 0.75rem;
}

/* ---------- Post Listing Form ---------- */
.lbx-post-form-container {
    max-width: 800px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 2rem;
}

.lbx-form-group {
    margin-bottom: 1.25rem;
}

.lbx-label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.4rem;
}

.lbx-label .required { color: #ef476f; }

.lbx-input,
.lbx-select,
.lbx-textarea {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.2s;
    background: #fff;
}

.lbx-input:focus,
.lbx-select:focus,
.lbx-textarea:focus {
    outline: none;
    border-color: #4cc9f0;
    box-shadow: 0 0 0 3px rgba(76, 201, 240, 0.15);
}

.lbx-textarea { resize: vertical; min-height: 120px; }

.lbx-form-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.lbx-form-half { flex: 1; min-width: 200px; }
.lbx-form-third { flex: 1; min-width: 150px; }
.lbx-form-quarter { flex: 0.5; min-width: 120px; }

.lbx-radio-group {
    display: flex;
    gap: 1.5rem;
}

.lbx-radio-group label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    cursor: pointer;
    font-size: 0.9rem;
}

.lbx-form-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 1.5rem 0 0.75rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
    color: #1a1a2e;
}

.lbx-conditional-fields {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
}

.lbx-conditional-fields .lbx-form-section-title {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}

.lbx-help-text {
    font-size: 0.8rem;
    color: #888;
    margin-top: 0.3rem;
}

.lbx-file-input {
    display: block;
    margin-top: 0.5rem;
}

.lbx-image-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.lbx-image-preview img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #ddd;
}

.lbx-existing-images {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.lbx-existing-image {
    position: relative;
}

.lbx-existing-image img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    border: 1px solid #ddd;
}

.lbx-remove-image {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #ef476f;
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.lbx-form-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.lbx-form-status {
    font-size: 0.9rem;
    color: #888;
}

.lbx-form-status.success { color: #06d6a0; }
.lbx-form-status.error { color: #ef476f; }

/* ---------- Auth Pages ---------- */
.lbx-auth-container {
    display: flex;
    justify-content: center;
    padding: 2rem 0;
}

.lbx-auth-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 2.5rem;
    width: 100%;
    max-width: 480px;
}

.lbx-auth-card h1 {
    margin: 0 0 0.25rem;
    font-size: 1.75rem;
}

.lbx-auth-subtitle {
    color: #888;
    margin-bottom: 1.5rem;
}

.lbx-checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
}

.lbx-auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e5e7eb;
}

.lbx-auth-footer p {
    margin: 0.5rem 0;
    font-size: 0.9rem;
    color: #666;
}

/* ---------- Alerts ---------- */
.lbx-alert {
    padding: 1rem 1.25rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.lbx-alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

.lbx-alert-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}

/* ---------- My Listings ---------- */
.lbx-my-listings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.lbx-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #e5e7eb;
}

.lbx-tab {
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: #666 !important;
    text-decoration: none !important;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s;
}

.lbx-tab:hover { color: #333 !important; }
.lbx-tab.active {
    color: #1a1a2e !important;
    border-bottom-color: #4cc9f0;
}

.lbx-my-listings-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.lbx-my-listing-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 1rem;
    transition: all 0.2s;
}

.lbx-my-listing-item:hover {
    border-color: #ccc;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.lbx-my-listing-thumb {
    width: 80px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    background: #f0f0f0;
}

.lbx-my-listing-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lbx-no-image-sm {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: #e9ecef;
    color: #999;
    font-size: 0.7rem;
}

.lbx-my-listing-info {
    flex: 1;
    min-width: 0;
}

.lbx-my-listing-info h3 {
    margin: 0 0 0.25rem;
    font-size: 1rem;
}

.lbx-my-listing-info h3 a {
    color: #222 !important;
}

.lbx-my-listing-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: #888;
    flex-wrap: wrap;
}

.lbx-my-listing-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

/* ---------- Account Page ---------- */
.lbx-account-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 2rem;
}

.lbx-account-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 1.5rem;
    text-align: center;
}

.lbx-account-avatar {
    margin-bottom: 1rem;
}

.lbx-account-avatar img {
    border-radius: 50%;
}

.lbx-account-card h3 {
    margin: 0 0 0.25rem;
}

.lbx-account-main {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 2rem;
}

/* ---------- Footer ---------- */
.lbx-footer {
    background: #1a1a2e;
    color: #aaa;
    padding: 3rem 0 1.5rem;
    margin-top: 3rem;
}

.lbx-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.lbx-footer h4 {
    color: #fff;
    margin: 0 0 1rem;
    font-size: 1rem;
}

.lbx-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.lbx-footer li {
    margin-bottom: 0.4rem;
}

.lbx-footer a {
    color: #888 !important;
    font-size: 0.9rem;
    text-decoration: none !important;
}

.lbx-footer a:hover { color: #4cc9f0 !important; }

.lbx-footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    text-align: center;
    font-size: 0.85rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    .lbx-hero h1 { font-size: 1.8rem; }
    .lbx-search-bar { flex-direction: column; border-radius: 12px; }
    .lbx-search-input, .lbx-search-location {
        border-left: none;
        border-bottom: 1px solid #eee;
    }
    .lbx-search-btn { border-radius: 0 0 12px 12px !important; }

    .lbx-nav {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        right: 0;
        background: #1a1a2e;
        flex-direction: column;
        padding: 1rem;
        box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    }
    .lbx-nav.lbx-nav-open { display: flex; }
    .lbx-mobile-toggle { display: flex; }

    .lbx-categories-grid { grid-template-columns: 1fr; }
    .lbx-listings-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }

    .lbx-browse-layout { grid-template-columns: 1fr; }
    .lbx-sidebar {
        position: static;
        order: -1;
    }

    .lbx-listing-detail { grid-template-columns: 1fr; }
    .lbx-listing-details-grid { grid-template-columns: 1fr; }

    .lbx-form-row { flex-direction: column; }
    .lbx-form-half, .lbx-form-third, .lbx-form-quarter { min-width: 100%; }

    .lbx-search-row { flex-direction: column; }
    .lbx-search-field, .lbx-search-field-lg, .lbx-search-field-sm { min-width: 100%; }

    .lbx-my-listing-item { flex-direction: column; text-align: center; }
    .lbx-my-listing-actions { justify-content: center; }

    .lbx-account-layout { grid-template-columns: 1fr; }

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

    .lbx-contact-actions { flex-direction: column; }

    .lbx-hero-stats { flex-direction: column; gap: 0.5rem; }
}

@media (max-width: 480px) {
    .lbx-hero h1 { font-size: 1.5rem; }
    .lbx-hero { padding: 2.5rem 0; }
    .lbx-listings-grid { grid-template-columns: 1fr; }
    .lbx-post-form-container { padding: 1.25rem; }
    .lbx-auth-card { padding: 1.5rem; }
    .lbx-footer-grid { grid-template-columns: 1fr; }
}

/* ---------- WP Admin Bar Adjustment ---------- */
.admin-bar .lbx-header {
    top: 32px;
}

@media (max-width: 782px) {
    .admin-bar .lbx-header {
        top: 46px;
    }
}

/* Hide Divi header/footer on our custom templates */
#main-header, #main-footer, #top-header, #et-footer-nav {
    display: none !important;
}

/* Override Divi body styles on our pages */
.lbx-body #page-container {
    display: none !important;
}
