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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
    color: #333;
}

.container {
    width: 95%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.header {
    background-color: #ff6b6b;
    color: white;
    text-align: center;
    padding: 60px 20px;
    margin-bottom: 40px;
    width: 100%;
    border-radius: 10px;
}

.header h1 {
    font-size: 3em;
    margin-bottom: 20px;
}

.header p {
    font-size: 1.2em;
}

/* Filters */
.filters {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    font-weight: bold;
    margin-bottom: 5px;
    color: #666;
}

.filter-group select,
.filter-group input {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 0.9em;
}

.filter-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
}

.filter-button {
    padding: 8px 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s;
}

.apply-filters {
    background-color: #ff6b6b;
    color: white;
}

.apply-filters:hover {
    background-color: #ff5252;
    transform: translateY(-2px);
}

.reset-filters {
    background-color: #f0f0f0;
    color: #666;
}

.reset-filters:hover {
    background-color: #e0e0e0;
    transform: translateY(-2px);
}

/* Listings */
.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.listing {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

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

.listing h2 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.4em;
}

.listing-details {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.price {
    color: #ff6b6b;
    font-weight: bold;
    font-size: 1.2em;
}

.area, .duration {
    color: #666;
    font-size: 0.9em;
}

.view-details {
    display: inline-block;
    background-color: #ff6b6b;
    color: white;
    padding: 8px 16px;
    border-radius: 5px;
    text-decoration: none;
    margin-top: 15px;
    transition: background-color 0.2s;
}

.view-details:hover {
    background-color: #ff5252;
}

/* Rental Ad Page */
.back-button {
    display: inline-block;
    color: #ff6b6b;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 20px;
    padding: 10px 20px;
    border-radius: 5px;
    background-color: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.2s;
}

.back-button:hover {
    background-color: #ff6b6b;
    color: white;
    transform: translateX(-5px);
}

.rental-content {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    padding: 20px;
    margin-bottom: 30px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .rental-details {
        display: grid;
        grid-template-columns: 2fr 1fr;
        gap: 30px;
    }
}

.key-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.feature {
    background-color: #f8f8f8;
    padding: 15px;
    border-radius: 8px;
}

.feature-label {
    color: #666;
    font-weight: bold;
    margin-right: 5px;
}

.description, .additional-info {
    margin: 30px 0;
    word-wrap: break-word;
}

.description h2, .additional-info h2 {
    color: #333;
    margin-bottom: 15px;
}

.contact-info {
    background-color: #f8f8f8;
    padding: 20px;
    border-radius: 8px;
}

.contact-info h2 {
    color: #333;
    margin-bottom: 15px;
}

.contact-details p {
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    .rental-details {
        display:block;
        grid-template-columns: 1fr;
    }
    
    .filters-grid {
        grid-template-columns: 1fr;
    }
    
    .listings-grid {
        grid-template-columns: 1fr;
    }
}
