:root {
  --blue: #003580;
  --blue-light: #0057b8;
  --accent: #febb02;
  --text: #262626;
  --muted: #6b6b6b;
  --border: #e7e7e7;
  --bg: #f5f5f5;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

a { color: inherit; text-decoration: none; }

header.topbar {
  background: var(--blue);
  color: white;
  padding: 16px 24px;
}

header.topbar .inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.logo span { color: var(--accent); }

.search-panel {
  background: var(--blue);
  padding: 0 24px 32px;
}

.search-panel .inner { max-width: 1100px; margin: 0 auto; }

.search-panel h1 {
  color: white;
  font-size: 26px;
  margin: 0 0 16px;
}

.search-form {
  background: var(--accent);
  padding: 8px;
  border-radius: 6px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.search-form .field {
  background: white;
  border-radius: 4px;
  padding: 8px 12px;
  flex: 1;
  min-width: 160px;
}

.search-form label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
}

.search-form input {
  border: none;
  outline: none;
  font-size: 14px;
  width: 100%;
  padding-top: 2px;
}

.search-form button {
  background: #febb02;
  border: none;
  border-radius: 4px;
  padding: 0 28px;
  font-weight: 700;
  font-size: 16px;
  color: #1a1a1a;
  cursor: pointer;
  min-width: 120px;
}

.search-form button:hover { background: #e0a601; }

main {
  max-width: 1100px;
  margin: 24px auto;
  padding: 0 24px;
}

.results-meta {
  color: var(--muted);
  margin-bottom: 16px;
  font-size: 14px;
}

.property-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.property-card {
  display: flex;
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.15s;
}

.property-card:hover { box-shadow: 0 2px 12px rgba(0,0,0,0.12); }

.property-card img {
  width: 260px;
  height: 190px;
  object-fit: cover;
  flex-shrink: 0;
}

.property-card .body {
  padding: 16px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.property-card h3 { margin: 0 0 4px; font-size: 18px; color: var(--blue-light); }
.property-card .location { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.property-card .desc { font-size: 13px; color: var(--text); flex: 1; }
.property-card .amenities { font-size: 12px; color: var(--muted); margin-top: 8px; }

.property-card .price-col {
  padding: 16px 20px;
  border-left: 1px solid var(--border);
  min-width: 160px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
}

.rating-badge {
  background: var(--blue);
  color: white;
  font-weight: 700;
  font-size: 13px;
  padding: 4px 8px;
  border-radius: 4px;
  display: inline-block;
}

.review-count { font-size: 11px; color: var(--muted); margin-top: 4px; }

.price {
  font-size: 22px;
  font-weight: 800;
  margin-top: 8px;
}

.price small { font-size: 12px; font-weight: 400; color: var(--muted); }

.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}

/* Property detail page */
.detail-hero img {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  border-radius: 8px;
}

.detail-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  margin-top: 24px;
}

.detail-main h1 { margin: 0 0 6px; color: var(--blue); }
.detail-main .location { color: var(--muted); margin-bottom: 12px; }
.detail-main .amenities-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.detail-main .amenities-list span {
  background: white;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 13px;
}

.booking-box {
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  height: fit-content;
}

.booking-box .price-line {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 12px;
}

.booking-box .price-line small { font-size: 13px; font-weight: 400; color: var(--muted); }

.booking-box label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  margin: 12px 0 4px;
  text-transform: uppercase;
}

.booking-box input {
  width: 100%;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 14px;
}

.booking-box button {
  width: 100%;
  margin-top: 16px;
  background: var(--blue);
  color: white;
  border: none;
  padding: 12px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 4px;
  cursor: pointer;
}

.booking-box button:hover { background: var(--blue-light); }
.booking-box button:disabled { background: #aaa; cursor: not-allowed; }

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 4px 0;
  border-top: 1px solid var(--border);
  margin-top: 8px;
  padding-top: 8px;
}

.summary-row.total { font-weight: 800; font-size: 15px; }

.message {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 4px;
  font-size: 13px;
}

.message.error { background: #fdecea; color: #b3261e; }
.message.success { background: #e6f4ea; color: #1e7e34; }

.back-link {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--blue-light);
  font-size: 14px;
}

@media (max-width: 720px) {
  .property-card { flex-direction: column; }
  .property-card img { width: 100%; height: 180px; }
  .property-card .price-col { border-left: none; border-top: 1px solid var(--border); flex-direction: row; align-items: center; }
  .detail-grid { grid-template-columns: 1fr; }
}
