/* Minimal Landing Page Design */

/* Layout */
.landing-container {
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* reduce top padding to pull title upward */
    padding: 1.5rem 1rem 4rem;
    background: radial-gradient(circle at top, #ffffff 0%, #f4f6fb 55%, #e8edf5 100%);
    text-align: center;
    margin: 0 auto;
    width: 100%;
}

.dark .landing-container {
    background: linear-gradient(to bottom, #0f172a, #1e293b);
    color: #f1f5f9;
}

/* Header Section */
.landing-header {
    /* smaller gap between header and search section */
    margin-bottom: 1rem;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.landing-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 0.35rem;
    color: #111827;
    letter-spacing: -0.03em;
}

.dark .landing-title {
    color: #f8fafc;
}

.landing-subtitle {
    font-size: 1.05rem;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 0.5rem; /* reduced from 0.75rem */
}

/* remove default margins from landing-header paragraphs to tighten stack */
.landing-header p {
    margin: 0;
}

.dark .landing-subtitle {
    color: #cbd5e1;
}

/* ... existing badge styles ... */
.parts-counter-badge {
    display: inline-block;
    background-color: #e0e7ff;
    color: #4338ca;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.dark .parts-counter-badge {
    background-color: #312e81;
    color: #c7d2fe;
}

/* Stats Banner Section */
.stats-banner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 1rem;
    max-width: 900px;
    margin: 1.25rem auto; /* reduced from 2.5rem to pull content up */
    padding: 0 1rem;
}

.stat-card {
    background: white;
    padding: 1rem 0.5rem; /* reduced from 1.75rem 1rem */
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
    text-align: center;
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.1);
}

.dark .stat-card {
    background: #1e293b;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.dark .stat-card:hover {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
}

.stat-value {
    font-size: 1.75rem; /* reduced from 2.2rem */
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.8rem; /* reduced from 0.9rem */
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.dark .stat-label {
    color: #cbd5e1;
}


/* Search Box - The Centerpiece */

/* Hero search area */
.hero-grid {
    position: relative;
    display: flex;
    justify-content: center; /* centre the search stack */
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* give search stack a bit more right padding so content doesn't butt up against ads */
.search-stack {
    padding-right: 2rem;
}

/* spacing between rows inside the search card */
.search-card > * + * {
    margin-top: 1.25rem;
}

/* ensure the wide search field has same top margin */
.search-card .full-width {
    margin-top: 1.25rem;
}

/* left spacer removed, hero-empty unused */
.hero-empty {
    display: none;
}

.ad-column {
    position: absolute;
    top: 0;
    right: 0;
    width: 220px; /* fixed width for partner panel */
    min-width: 180px;
    padding-left: 2rem; /* add breathing room between search and ads */
}

/* on small screens hide ad panel and stack search normally */
@media (max-width: 900px) {
    .ad-column {
        display: none;
    }
}

/* partner-column kept for legacy but not used on primary landing */
.partner-column {
    border-radius: 24px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.7);
}

.dark .partner-column {
    background: rgba(15, 23, 42, 0.75);
    border-color: rgba(148, 163, 184, 0.2);
}

.partner-eyebrow {
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    color: #94a3b8;
}

/* new horizontal strip style for partner logos/ads */
.partner-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

/* vertical variant for right-hand ad column */
.partner-strip.vertical {
    flex-direction: column;
    align-items: flex-start;
    margin-top: 0;
}

.partner-strip .partner-eyebrow {
    width: 100%;
    text-align: center;
    margin-bottom: 0.5rem;
}

.partner-strip .partner-tile {
    background: rgba(15, 23, 42, 0.04);
    border-radius: 12px;
    padding: 0.4rem 0.8rem;
    font-weight: 500;
    font-size: 0.9rem;
}

.dark .partner-strip .partner-tile {
    background: rgba(148, 163, 184, 0.12);
    color: #e2e8f0;
}

.partner-tile {
    background: rgba(15, 23, 42, 0.04);
    border-radius: 999px;
    padding: 0.6rem 1rem;
    font-weight: 600;
    color: #1f2937;
}

.dark .partner-tile {
    background: rgba(148, 163, 184, 0.12);
    color: #e2e8f0;
}

.search-stack {
    background: white;
    padding: 2rem;
    border-radius: 32px;
    box-shadow: 0 25px 80px rgba(15, 23, 42, 0.12);
    text-align: left;
}

.dark .search-stack {
    background: #0f172a;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

.search-eyebrow {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.25em;
    color: #a5b4fc;
    margin-bottom: 0.5rem;
}

.search-headline {
    font-size: 1.85rem;
    line-height: 1.2;
    color: #0f172a;
    margin: 0 0 0.4rem 0;
}

.dark .search-headline {
    color: #f8fafc;
}

.search-copy {
    color: #475569;
    margin-bottom: 1.5rem;
}

.dark .search-copy {
    color: #cbd5e1;
}

.origin-toggle {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.origin-option {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    font-size: 0.85rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.9);
    color: #0f172a;
}

.origin-option input {
    accent-color: #4338ca;
}

.dark .origin-option {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(148, 163, 184, 0.4);
    color: #e2e8f0;
}

.dark .origin-option input {
    accent-color: #a5b4fc;
}

.origin-option--disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.origin-hint {
    margin-top: -0.5rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: #94a3b8;
}

.dark .origin-hint {
    color: #cbd5e1;
}

.origin-hint--auth {
    color: #475569;
    margin-top: 0.25rem;
}

.dark .origin-hint--auth {
    color: #e2e8f0;
}

.search-card {
    background: rgba(248, 250, 252, 0.9);
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 20px;
    padding: 1.5rem;
}

.dark .search-card {
    background: #101a32;
    border-color: rgba(148, 163, 184, 0.2);
}

.search-pill-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.pill-field {
    background: white;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    padding: 0.35rem 1rem;
    font-size: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #475569;
}

.pill-field select,
.pill-field input {
    border: none;
    background: transparent;
    font-size: 0.95rem;
    font-weight: 600;
    color: #0f172a;
    padding: 0;
}

.pill-field select:focus,
.pill-field input:focus {
    outline: none;
}

.search-field-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #94a3b8;
}

.form-field.full-width {
    width: 100%;
}

.form-field input {
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    font-size: 1rem;
    background: white;
    color: #0f172a;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-field input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.search-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.btn-search-primary,
.btn-clear-secondary {
    flex: 1;
    border-radius: 999px;
    padding: 0.85rem 1.5rem;
    font-weight: 600;
    border: none;
}

/* Tabs for Search */
.search-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding: 0.25rem;
    background: rgba(15, 23, 42, 0.04);
    border-radius: 12px;
    width: fit-content;
}

.dark .search-tabs {
    background: rgba(255, 255, 255, 0.05);
}

.search-tab {
    padding: 0.5rem 1.25rem;
    border-radius: 9px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    color: #64748b;
    border: none;
    background: none;
}

.search-tab:hover {
    color: #0f172a;
}

.dark .search-tab:hover {
    color: #f1f5f9;
}

.search-tab.active {
    background: white;
    color: #0f172a;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.dark .search-tab.active {
    background: #1e293b;
    color: #f1f5f9;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.ai-beta-badge {
    background: linear-gradient(135deg, #6366f1, #a855f7);
    color: white;
    font-size: 0.65rem;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    margin-left: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.search-ai-input-group {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.search-ai-input-group input {
    flex: 1;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    font-size: 1.125rem;
    background: white;
    color: #0f172a;
}

.dark .search-ai-input-group input {
    background: #0f172a;
    border-color: rgba(255,255,255,0.1);
    color: white;
}

.ai-search-hint {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: #64748b;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
}

.btn-search-primary {
    background: linear-gradient(135deg, #4338ca, #7c3aed);
    color: white;
    box-shadow: 0 12px 20px rgba(99, 102, 241, 0.35);
}

.btn-search-primary:hover {
    transform: translateY(-2px);
}

.btn-clear-secondary {
    background: transparent;
    border: 1px solid rgba(71, 85, 105, 0.3);
    color: #475569;
}

.btn-clear-secondary:hover {
    border-color: #0f172a;
    color: #0f172a;
}

/* Action Area (Dashboard/Login) */
.action-area {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.btn-action-primary {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 2rem;
    background-color: #0f172a;
    color: white;
    font-weight: 600;
    border-radius: 9999px;
    text-decoration: none;
    transition: transform 0.1s;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.dark .btn-action-primary {
    background-color: #3b82f6;
}

.btn-action-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.btn-action-secondary {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 2rem;
    background-color: white;
    color: #0f172a;
    font-weight: 600;
    border-radius: 9999px;
    text-decoration: none;
    border: 1px solid #e2e8f0;
    transition: background-color 0.2s;
}

.dark .btn-action-secondary {
    background-color: transparent;
    border-color: #475569;
    color: #e2e8f0;
}

.btn-action-secondary:hover {
    background-color: #f8fafc;
}

.dark .btn-action-secondary:hover {
    background-color: #1e293b;
}

/* Results Section Placeholder */
.results-wrapper {
    width: 100%;
    max-width: 1200px;
    margin-top: 5rem;
    margin-left: auto;
    margin-right: auto;
    padding: 2rem 1rem;
    scroll-margin-top: 2rem;
}

.results-header {
    text-align: center;
    margin-bottom: 2rem;
}

.results-header h2 {
    font-size: 1.6rem;
    color: #0f172a;
    margin-bottom: 0.35rem;
}

.dark .results-header h2 {
    color: #f8fafc;
}

.results-header p {
    color: #64748b;
}

.dark .results-header p {
    color: #cbd5e1;
}

/* Results Summary Box */
.results-summary-box {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1px solid #fcd34d;
    border-radius: 12px;
    padding: 1rem 1.25rem;
    margin: 1rem 0;
    color: #92400e;
    font-size: 0.95rem;
}

.dark .results-summary-box {
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.2), rgba(180, 83, 9, 0.2));
    border-color: rgba(217, 119, 6, 0.4);
    color: #fbbf24;
}

.results-summary-box p {
    margin: 0;
}

/* Pagination */
.pagination-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid #e2e8f0;
}

.dark .pagination-container {
    border-top-color: #334155;
}

.pagination-info {
    text-align: center;
    color: #64748b;
    font-weight: 600;
}

.dark .pagination-info {
    color: #cbd5e1;
}

.pagination-count {
    font-weight: 400;
    font-size: 0.9rem;
    color: #94a3b8;
    margin-left: 0.5rem;
}

.dark .pagination-count {
    color: #94a3b8;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination-btn {
    padding: 0.6rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    color: #0f172a;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    font-size: 0.9rem;
}

.dark .pagination-btn {
    background: #1e293b;
    border-color: #334155;
    color: #f8fafc;
}

.pagination-btn:hover:not(.pagination-btn-disabled) {
    background: #0f172a;
    color: white;
    border-color: #0f172a;
}

.dark .pagination-btn:hover:not(.pagination-btn-disabled) {
    background: #334155;
    border-color: #475569;
}

.pagination-btn-first,
.pagination-btn-last {
    font-size: 0.85rem;
}

.pagination-btn-disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-btn-disabled:hover {
    background: white;
    color: #0f172a;
    border-color: #e2e8f0;
}

.dark .pagination-btn-disabled:hover {
    background: #1e293b;
    border-color: #334155;
    color: #f8fafc;
}

.pagination-pages {
    display: flex;
    gap: 0.25rem;
}

.pagination-page {
    min-width: 2.5rem;
    padding: 0.6rem 0.4rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: white;
    color: #0f172a;
    text-decoration: none;
    text-align: center;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.dark .pagination-page {
    background: #1e293b;
    border-color: #334155;
    color: #cbd5e1;
}

.pagination-page:hover {
    background: #e2e8f0;
    border-color: #0f172a;
}

.dark .pagination-page:hover {
    background: #334155;
    border-color: #475569;
}

/* Grid Results Layout */
.landing-results-grid-compact {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

@media (max-width: 1200px) {
    .landing-results-grid-compact {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1.25rem;
    }
}

@media (max-width: 768px) {
    .landing-results-grid-compact {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .landing-results-grid-compact {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
}

/* Grid Item Card */
.grid-item-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 1px solid rgba(15, 23, 42, 0.05);
}

.dark .grid-item-card {
    background: #1e293b;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    border-color: rgba(148, 163, 184, 0.1);
}

.grid-item-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.12);
    border-color: rgba(15, 23, 42, 0.1);
}

.dark .grid-item-card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
    border-color: rgba(148, 163, 184, 0.2);
}

.grid-item-image {
    width: 100%;
    height: 160px;
    background: #f1f5f9;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dark .grid-item-image {
    background: #0f172a;
}

.grid-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.grid-item-card:hover .grid-item-image img {
    transform: scale(1.05);
}

.grid-item-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: 2rem;
    color: #cbd5e1;
}

.grid-item-info {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.grid-item-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 0.5rem 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dark .grid-item-name {
    color: #f8fafc;
}

.grid-item-specs {
    flex: 1;
    margin-bottom: 0.75rem;
}

.grid-spec {
    display: flex;
    font-size: 0.75rem;
    gap: 0.25rem;
    margin-bottom: 0.3rem;
    line-height: 1.3;
}

.grid-spec-label {
    font-weight: 600;
    color: #64748b;
    min-width: 35px;
}

.dark .grid-spec-label {
    color: #cbd5e1;
}

.grid-spec-value {
    color: #0f172a;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dark .grid-spec-value {
    color: #e2e8f0;
}

.grid-item-footer {
    border-top: 1px solid #e2e8f0;
    padding-top: 0.75rem;
}

.dark .grid-item-footer {
    border-top-color: #334155;
}

.grid-item-price {
    font-size: 1.1rem;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.price-muted {
    color: #94a3b8;
    font-weight: 600;
}

.grid-item-seller {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.grid-seller-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: #0f172a;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dark .grid-seller-name {
    color: #e2e8f0;
}

.grid-seller-location {
    font-size: 0.7rem;
    color: #64748b;
}

.dark .grid-seller-location {
    color: #94a3b8;
}

/* Location Badges */
.grid-item-location {
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
}

.location-badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-weight: 500;
    font-size: 0.8rem;
}

.location-near {
    background: #dcfce7;
    color: #166534;
}

.location-eu {
    background: #dbeafe;
    color: #1e40af;
}

.location-asean {
    background: #fce7f3;
    color: #be185d;
}

.location-world {
    background: #f3f4f6;
    color: #374151;
}

@media (prefers-color-scheme: dark) {
    .location-near {
        background: #064e3b;
        color: #a7f3d0;
    }
    .location-eu {
        background: #082f49;
        color: #7dd3fc;
    }
    .location-asean {
        background: #500724;
        color: #fbcfe8;
    }
    .location-world {
        background: #27272a;
        color: #d4d4d8;
    }
}

.expanded-location {
    margin-bottom: 1rem;
}

/* Expanded Grid Item */
.grid-item-expanded {
    grid-column: 1 / -1;
    animation: expandDown 0.4s ease-out;
}

@keyframes expandDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 600px;
    }
}

.expanded-container {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.15);
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    padding: 2rem;
    border: 1px solid rgba(15, 23, 42, 0.1);
}

.dark .expanded-container {
    background: #1e293b;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
    border-color: rgba(148, 163, 184, 0.2);
}

@media (max-width: 768px) {
    .expanded-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
    }
}

.expanded-image {
    width: 100%;
    height: 300px;
    background: #f1f5f9;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dark .expanded-image {
    background: #0f172a;
}

.expanded-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.expanded-details {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.expanded-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.expanded-header h2 {
    font-size: 1.5rem;
    margin: 0;
    color: #0f172a;
    flex: 1;
}

.dark .expanded-header h2 {
    color: #f8fafc;
}

.expand-close-btn {
    background: none;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.dark .expand-close-btn {
    border-color: #334155;
    color: #cbd5e1;
}

.expand-close-btn:hover {
    background: #f1f5f9;
    border-color: #0f172a;
    color: #0f172a;
}

.dark .expand-close-btn:hover {
    background: #334155;
    border-color: #475569;
    color: #f8fafc;
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    background: rgba(15, 23, 42, 0.03);
    padding: 1rem;
    border-radius: 12px;
}

.dark .specs-grid {
    background: rgba(15, 23, 42, 0.2);
}

.spec-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.spec-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.dark .spec-label {
    color: #94a3b8;
}

.spec-value {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
}

.dark .spec-value {
    color: #f8fafc;
}

.price-highlight {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.3rem !important;
}

.expanded-description {
    padding: 1rem;
    background: rgba(15, 23, 42, 0.02);
    border-radius: 12px;
}

.dark .expanded-description {
    background: rgba(15, 23, 42, 0.2);
}

.expanded-description h3 {
    font-size: 0.95rem;
    margin: 0 0 0.5rem 0;
    color: #0f172a;
    font-weight: 600;
}

.dark .expanded-description h3 {
    color: #f8fafc;
}

.expanded-description p {
    margin: 0;
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.6;
}

.dark .expanded-description p {
    color: #cbd5e1;
}

.expanded-seller {
    padding: 1rem;
    background: rgba(15, 23, 42, 0.02);
    border-radius: 12px;
}

.dark .expanded-seller {
    background: rgba(15, 23, 42, 0.2);
}

.expanded-seller h3 {
    font-size: 0.95rem;
    margin: 0 0 0.75rem 0;
    color: #0f172a;
    font-weight: 600;
}

.dark .expanded-seller h3 {
    color: #f8fafc;
}

.seller-card {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.seller-name {
    font-weight: 700;
    color: #0f172a;
    font-size: 1rem;
}

.dark .seller-name {
    color: #f8fafc;
}

.seller-location {
    font-size: 0.9rem;
    color: #64748b;
}

.dark .seller-location {
    color: #94a3b8;
}

.expanded-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding-top: 0.5rem;
    border-top: 1px solid #e2e8f0;
}

.dark .expanded-actions {
    border-top-color: #334155;
}

.btn-action {
    padding: 0.75rem 1.25rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-action.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-action.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.btn-action.btn-secondary {
    background: white;
    color: #0f172a;
    border: 1px solid #e2e8f0;
}

.dark .btn-action.btn-secondary {
    background: #334155;
    color: #f8fafc;
    border-color: #475569;
}

.btn-action.btn-secondary:hover {
    background: #f1f5f9;
    border-color: #0f172a;
}

.dark .btn-action.btn-secondary:hover {
    background: #475569;
    border-color: #64748b;
}



.landing-results-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.result-card {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 1.25rem;
    padding: 1.25rem;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 15px 40px rgba(15, 23, 42, 0.08);
    align-items: center;
    transition: box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.dark .result-card {
    background: rgba(15, 23, 42, 0.85);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.result-card--near {
    border: 1px solid #c7d2fe;
    box-shadow: 0 18px 45px rgba(99, 102, 241, 0.25);
    background: linear-gradient(135deg, rgba(238, 242, 255, 0.9), rgba(255, 255, 255, 0.95));
}

.result-card--region {
    border: 1px solid #bae6fd;
    box-shadow: 0 18px 45px rgba(14, 165, 233, 0.2);
    background: linear-gradient(135deg, rgba(219, 234, 254, 0.9), rgba(255, 255, 255, 0.95));
}

.dark .result-card--near,
.dark .result-card--region {
    background: rgba(15, 23, 42, 0.9);
    border-color: rgba(99, 102, 241, 0.5);
}

.result-top-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
}

.result-top-stack {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.region-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.75rem;
    border-radius: 999px;
    background: rgba(14, 165, 233, 0.15);
    color: #0369a1;
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.region-badge--primary {
    background: rgba(99, 102, 241, 0.15);
    color: #4c1d95;
}

.dark .region-badge {
    background: rgba(56, 189, 248, 0.2);
    color: #bae6fd;
}

.dark .region-badge--primary {
    background: rgba(129, 140, 248, 0.25);
    color: #e0e7ff;
}

.result-media {
    width: 100%;
    height: 160px;
    border-radius: 16px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.result-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Features Section */
.features-section {
    max-width: 1200px;
    margin: 4rem auto;
    padding: 0 1rem;
}

.features-header {
    text-align: center;
    margin-bottom: 3rem;
}

.features-header h2 {
    font-size: 2.2rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.dark .features-header h2 {
    color: #f8fafc;
}

.features-header p {
    font-size: 1.1rem;
    color: #64748b;
}

.dark .features-header p {
    color: #cbd5e1;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    border: 1px solid rgba(15, 23, 42, 0.05);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, currentColor 0%, transparent 100%);
}

.feature-card-1 {
    color: #667eea;
}

.feature-card-2 {
    color: #f093fb;
}

.feature-card-3 {
    color: #4facfe;
}

.feature-card-4 {
    color: #43e97b;
}

.feature-card-5 {
    color: #fa709a;
}

.feature-card-6 {
    color: #30b0c8;
}

.dark .feature-card {
    background: #1e293b;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.15);
}

.dark .feature-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

.feature-icon {
    font-size: 2.4rem;
    margin-bottom: 1rem;
    display: block;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.75rem;
}

.dark .feature-card h3 {
    color: #f8fafc;
}

.feature-card p {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
}

.dark .feature-card p {
    color: #cbd5e1;
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .features-header h2 {
        font-size: 1.75rem;
    }
}
}

.result-body {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.result-body h3 {
    margin: 0;
    font-size: 1.25rem;
    color: #111827;
}

.result-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.5rem;
    font-size: 0.95rem;
    color: #475569;
}

.result-meta span {
    display: block;
}

.result-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.result-info-stack {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-width: 180px;
}

.quantity-pill {
    background: #e0e7ff;
    color: #312e81;
    border-radius: 999px;
    padding: 0.25rem 0.9rem;
    font-weight: 600;
    font-size: 0.85rem;
}

.price-pill {
    background: #ecfccb;
    color: #365314;
    border-radius: 999px;
    padding: 0.25rem 0.9rem;
    font-weight: 700;
    font-size: 0.9rem;
}

.price-pill--muted {
    background: rgba(15, 23, 42, 0.08);
    color: #475569;
}

.btn-message {
    background: #0f172a;
    color: white;
    padding: 0.65rem 1.4rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.btn-outline {
    border: 1px solid rgba(15, 23, 42, 0.2);
    border-radius: 999px;
    padding: 0.55rem 1.25rem;
    text-decoration: none;
    color: #0f172a;
    font-weight: 500;
}

.owner-pill {
    font-size: 0.8rem;
    color: #94a3b8;
}

.owner-pill--seller {
    color: #475569;
}

.owner-pill--seller-location {
    color: #475569;
}

.owner-pill--location {
    color: #0369a1;
}

@media (max-width: 768px) {
    .search-stack {
        padding: 1.5rem;
    }

    .result-card {
        grid-template-columns: 1fr;
    }

    .result-media {
        height: 220px;
    }
}

