:root { --primary: #003366; --accent: #D4AF37; --text: #333; --bg: #f4f4f4; }
body { font-family: 'Montserrat', sans-serif; margin: 0; padding: 0; color: var(--text); background: var(--bg); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.main-header { background: #fff; padding: 20px 0; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.main-header .container { display: flex; justify-content: space-between; align-items: center; }
.logo a { text-decoration: none; color: var(--primary); font-weight: 600; font-size: 1.5rem; }
.main-header nav ul { list-style: none; display: flex; gap: 20px; }
.main-header nav a { text-decoration: none; color: var(--text); font-weight: 500; }
.search-bar { background: var(--primary); padding: 20px; color: white; display: flex; gap: 10px; justify-content: center; align-items: center; flex-wrap: wrap; }
.search-bar input { padding: 10px; border: none; border-radius: 4px; }
.btn-search { background: var(--accent); color: white; border: none; padding: 10px 20px; cursor: pointer; font-weight: bold; }
.map-container { height: 60vh; width: 100%; z-index: 1; }
.results-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; padding: 40px 0; }
.property-card { background: white; border-radius: 8px; overflow: hidden; box-shadow: 0 2px 5px rgba(0,0,0,0.1); transition: transform 0.2s; }
.property-card:hover { transform: translateY(-5px); }
.card-img { height: 200px; background-size: cover; background-position: center; }
.card-body { padding: 15px; }
.card-body h3 { margin: 0 0 10px 0; color: var(--primary); }
.price { color: var(--accent); font-weight: bold; font-size: 1.2rem; }
.btn-view { display: block; text-align: center; background: var(--primary); color: white; text-decoration: none; padding: 10px; margin-top: 10px; border-radius: 4px; }
.main-footer { background: #222; color: #fff; padding: 20px 0; text-align: center; margin-top: auto; }
.admin-header { background: #333; color: #fff; padding: 15px; display: flex; justify-content: space-between; }
.admin-content { padding: 40px; }
table { width: 100%; border-collapse: collapse; margin-top: 20px; }
th, td { border: 1px solid #ddd; padding: 12px; text-align: left; }
th { background-color: var(--primary); color: white; }
.btn-action { padding: 5px 10px; text-decoration: none; border-radius: 4px; font-size: 0.9rem; margin-right:5px; }
.btn-edit { background: #2ecc71; color: white; }
.btn-delete { background: #e74c3c; color: white; }
.btn-new { background: var(--accent); color: white; padding: 10px 20px; text-decoration: none; font-weight: bold; }
#map {
    height: 500px; /* Deve avere un'altezza definita in pixel */
    width: 100%;
    z-index: 1;
    border-bottom: 2px solid #003366;
}