/* assets/css/style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f4f6f9;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

header {
    background: #1a3a6e;
    color: white;
    text-align: center;
    padding: 40px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
}

.ad-banner {
    background: linear-gradient(135deg, #e63946, #c1121f);
    color: white;
    text-align: center;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    font-weight: bold;
}

.ad-banner a {
    color: #fff;
    text-decoration: underline;
    font-weight: normal;
}

.search-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 30px;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #444;
}

.filter-group select,
.filter-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
}

.companies {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.company-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.company-card:hover {
    transform: translateY(-5px);
}

.card-header {
    background: #2c5282;
    color: white;
    padding: 15px;
    font-size: 1.2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.city-tag {
    font-size: 0.85rem;
    background: #e63946;
    color: white;
    padding: 3px 8px;
    border-radius: 10px;
}

.card-body {
    padding: 15px;
}

.equipment-list {
    list-style: none;
    margin: 10px 0;
}

.equipment-list li {
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price {
    color: #e63946;
    font-weight: bold;
}

.contact-info {
    margin: 10px 0;
    font-size: 0.9rem;
    color: #555;
}

.rent-btn {
    display: block;
    width: 100%;
    padding: 7px 12px;
    background: #2a9d8f;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    text-align: center;
    transition: background 0.3s;
    margin-top: 10px;
    text-decoration: none;
    font-weight: 500;
}

.rent-btn:hover {
    background: #238b7d;
}

.nearby-badge {
    font-size: 0.8rem;
    background: #4361ee;
    color: white;
    padding: 2px 6px;
    border-radius: 6px;
    margin-left: 8px;
}

.map-section {
    margin: 40px 0;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.1);
}

.map-section h3 {
    margin-bottom: 15px;
    color: #1a3a6e;
    text-align: center;
}

#yandexMap {
    width: 100%;
    height: 500px;
    border-radius: 10px;
}

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    background: white;
    border-radius: 12px;
    color: #666;
    font-size: 1.1rem;
}

footer {
    text-align: center;
    padding: 30px 0;
    margin-top: 50px;
    color: #666;
    font-size: 0.9rem;
    border-top: 1px solid #eee;
}

@media (max-width: 600px) {
    .form-row {
        flex-direction: column;
    }
    h1 {
        font-size: 2rem;
    }
    .filter-group {
        min-width: 100%;
    }
}