:root {
    --primary-color: #005f73;
    --secondary-color: #0a9396;
    --accent-color: #ee9b00;
    --text-color: #333;
    --bg-color: #f4f7f6;
    --card-bg: #ffffff;
    --radius: 8px;
}

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
}

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

header {
    background-color: var(--primary-color);
    color: white;
    padding: 40px 0;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

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

header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

main {
    padding: 40px 0;
}

.card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.card h2 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.8rem;
}

.filters {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
    margin-top: 20px;
    background: #e9ecef;
    padding: 20px;
    border-radius: var(--radius);
}

.filter-group {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 150px;
}

.filter-group label {
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

select, input {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-family: inherit;
    font-size: 1rem;
}

.btn {
    background-color: var(--accent-color);
    color: white;
    border: none;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    height: 44px;
}

.btn:hover {
    background-color: #ca8400;
}

.btn-secondary {
    background-color: var(--secondary-color);
}
.btn-secondary:hover {
    background-color: #087c7e;
}

.dates-info {
    margin-top: 15px;
    font-style: italic;
    color: #555;
}

.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 25px;
}

.deal-card {
    border: 1px solid #eaeaea;
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    transition: transform 0.2s;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}

.deal-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.deal-card h3 {
    color: var(--primary-color);
    margin-bottom: 10px;
}

.deal-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-color);
    margin: 10px 0;
}

.deal-btn {
    display: inline-block;
    background: var(--secondary-color);
    color: #fff;
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 4px;
    margin-top: 15px;
    font-weight: 600;
    transition: 0.3s;
}

.deal-btn:hover {
    background: #087c7e;
}

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

/* Autocomplete Styles */
.autocomplete-container {
    position: relative;
}

.suggestions-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    list-style: none;
    z-index: 100;
    max-height: 200px;
    overflow-y: auto;
    display: none;
    margin-top: 4px;
}

.suggestions-list li {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    font-size: 0.9rem;
}

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

.suggestions-list li:hover {
    background-color: var(--bg-color);
}

footer {
    text-align: center;
    padding: 30px 0;
    background: #2b2d42;
    color: #fff;
}

footer p {
    margin-bottom: 10px;
    font-size: 0.9rem;
    opacity: 0.8;
}

@media (max-width: 768px) {
    .filters, .search-form {
        flex-direction: column;
    }
    .filter-group, .btn {
        width: 100%;
    }
}
