* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f6f2ea;
    color: #16213e;
}

.hero {
    background: linear-gradient(135deg, #0f172a, #1e3a5f);
    color: white;
    padding: 32px 8%;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav h1 {
    letter-spacing: 4px;
}

.hero h2 {
    font-size: 42px;
    max-width: 700px;
}

.hero p {
    font-size: 18px;
    color: #e5e7eb;
}

.container {
    width: 86%;
    margin: 32px auto;
}

.controls {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

input,
textarea,
select {
    width: 100%;
    padding: 12px;
    border: 1px solid #d4c7b0;
    border-radius: 10px;
    font-size: 15px;
}

textarea {
    min-height: 90px;
}

.form-section {
    background: white;
    padding: 24px;
    border-radius: 18px;
    margin-bottom: 32px;
    margin-top: 48px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

form {
    display: grid;
    gap: 12px;
}

.checkbox {
    display: flex;
    gap: 8px;
    align-items: center;
}

.checkbox input {
    width: auto;
}

button {
    border: none;
    background: #1e3a5f;
    color: white;
    padding: 12px 16px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
}

button:hover {
    background: #0f172a;
}

.secondary {
    background: #64748b;
}

.danger {
    background: #b91c1c;
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 28px;
    margin-bottom: 48px;
}

.card {
    background: white;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.card img {
    width: 100%;
    height: 210px;
    object-fit: cover;
}

.card-content {
    padding: 18px;
}

.card h3 {
    margin-bottom: 4px;
}

.location {
    color: #64748b;
    font-weight: bold;
}

.price {
    font-size: 20px;
    font-weight: bold;
    color: #b7791f;
}

.badge {
    background: #dcfce7;
    color: #166534;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: bold;
}

.actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.hidden {
    display: none;
}

.error {
    color: #b91c1c;
    font-weight: bold;
}

@media (max-width: 700px) {
    .controls {
        flex-direction: column;
    }

    .hero h2 {
        font-size: 30px;
    }
}

.rating-box {
    margin-top: 16px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 14px;
    display: grid;
    gap: 10px;
}

.rating-box p {
    margin: 0;
    font-weight: bold;
}

.rating-box select,
.rating-box input {
    width: 100%;
}