/**
 * style.css - rcmarket.de
 * RC-Modellbau Kleinanzeigen
 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background: #f5f5f5;
    color: #333;
}

/* Header */
.header {
    background: white;
    border-bottom: 1px solid #e5e5e5;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-top {
    background: #f0f0f0;
    padding: 8px 0;
    font-size: 13px;
}

.header-top-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-top-links a {
    color: #333;
    text-decoration: none;
    margin-left: 20px;
}

.header-top-links a:hover {
    color: #d32f2f;
}

.header-main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    text-decoration: none;
    white-space: nowrap;
    min-width: 200px;
}

.logo-dot {
    color: #d32f2f;
}

.search-bar {
    flex: 1;
    display: flex;
    gap: 10px;
    max-width: none;
    margin-left: 100px;
}

.search-input {
    flex: 1;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
}

.search-input:focus {
    outline: none;
    border-color: #d32f2f;
}

.location-input {
    width: 200px;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
}

.search-btn {
    padding: 12px 30px;
    background: #d32f2f;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.search-btn:hover {
    background: #b71c1c;
}

/* Alert Messages */
.alert {
    max-width: 1400px;
    margin: 20px auto;
    padding: 15px 20px;
    border-radius: 4px;
    font-size: 14px;
}

.alert-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.alert-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* Breadcrumb */
.breadcrumb {
    max-width: 1400px;
    margin: 0 auto;
    padding: 15px 20px;
    font-size: 13px;
    color: #666;
}

.breadcrumb a {
    color: #d32f2f;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

/* Main Content */
.main-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
}

/* Sidebar Filter */
.sidebar {
    background: white;
    border-radius: 4px;
    padding: 20px;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.filter-section {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e5e5;
}

.filter-section:last-child {
    border-bottom: none;
}

.filter-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}

.filter-option {
    display: flex;
    align-items: center;
    padding: 5px 0;
}

.filter-option input {
    margin-right: 10px;
    accent-color: #d32f2f;
}

.filter-option label {
    font-size: 14px;
    cursor: pointer;
    flex: 1;
}

.filter-count {
    color: #999;
    font-size: 13px;
}

.price-inputs {
    display: flex;
    gap: 10px;
    align-items: center;
}

.price-input {
    width: 100px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.filter-select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
}

/* Listings Area */
.listings-area {
    background: white;
    border-radius: 4px;
}

.listings-header {
    padding: 20px;
    border-bottom: 1px solid #e5e5e5;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.result-count {
    font-size: 18px;
    font-weight: 600;
}

.sort-dropdown {
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
}

/* Listing Item */
.listing-item {
    display: flex;
    padding: 20px;
    border-bottom: 1px solid #e5e5e5;
    cursor: pointer;
    transition: background 0.2s;
}

.listing-item:hover {
    background: #fafafa;
}

.listing-image {
    width: 150px;
    height: 150px;
    background: #f0f0f0;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-right: 20px;
    overflow: hidden;
}

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

.listing-image i {
    font-size: 48px;
    color: #ccc;
}

.listing-details {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.listing-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.listing-price {
    font-size: 18px;
    font-weight: 700;
    color: #d32f2f;
    margin-bottom: 8px;
}

.listing-description {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.listing-meta {
    display: flex;
    gap: 15px;
    font-size: 13px;
    color: #999;
    margin-top: auto;
}

.listing-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.listing-badges {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.badge {
    padding: 4px 10px;
    border-radius: 3px;
    font-size: 12px;
    font-weight: 600;
}

.badge-top {
    background: #d32f2f;
    color: white;
}

.badge-vhb {
    background: #e7f3ff;
    color: #004085;
    border: 1px solid #b8daff;
}

.badge-new {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 30px;
}

.page-btn {
    padding: 10px 15px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    color: #333;
}

.page-btn:hover {
    background: #f5f5f5;
}

.page-btn.active {
    background: #d32f2f;
    color: white;
    border-color: #d32f2f;
}

/* Footer */
.footer {
    background: #f5f5f5;
    border-top: 1px solid #e5e5e5;
    padding: 40px 20px;
    margin-top: 60px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.footer-section h3 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
    text-transform: uppercase;
    color: #666;
}

.footer-section a {
    display: block;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    margin-bottom: 10px;
}

.footer-section a:hover {
    color: #d32f2f;
}

.footer-bottom {
    max-width: 1400px;
    margin: 30px auto 0;
    padding-top: 20px;
    border-top: 1px solid #e5e5e5;
    text-align: center;
    font-size: 13px;
    color: #666;
}