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

body {
  font-family: -apple-system, system-ui, sans-serif;
  background: #f5f5f5;
  color: #222;
  line-height: 1.5;
}

header {
  background: #1a1a2e;
  color: #fff;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header h1 { font-size: 1.3rem; letter-spacing: 1px; }

#auth-area { display: flex; gap: .5rem; align-items: center; }
#auth-area .user-name { font-size: .9rem; opacity: .8; }

button {
  padding: .5rem 1rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: .85rem;
  background: #4361ee;
  color: #fff;
}

button:hover { opacity: .9; }
button.secondary { background: #666; }
button.danger { background: #c0392b; }

main { max-width: 900px; margin: 2rem auto; padding: 0 1rem; }

section { margin-bottom: 2rem; }
section h2 { margin-bottom: 1rem; font-size: 1.1rem; color: #333; }

/* Grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }

.card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 1rem;
}

.card h3 { font-size: .95rem; margin-bottom: .3rem; }
.card p { font-size: .8rem; color: #666; }
.card .amenities { display: flex; gap: .3rem; flex-wrap: wrap; margin-top: .5rem; }
.card .tag {
  background: #eef;
  color: #4361ee;
  padding: .1rem .4rem;
  border-radius: 3px;
  font-size: .7rem;
}

/* Forms */
form { display: flex; flex-direction: column; gap: .6rem; max-width: 400px; }

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

input:focus, select:focus, textarea:focus { outline: none; border-color: #4361ee; }

.error { color: #c0392b; font-size: .8rem; }
.success { color: #27ae60; font-size: .8rem; }

/* Modal */
.modal {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.4);
  display: flex; align-items: center; justify-content: center;
  z-index: 10;
}

.modal.hidden { display: none; }

.modal-content {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  width: 340px;
  position: relative;
}

.modal-content h2 { margin-bottom: 1rem; }
.close { position: absolute; top: .5rem; right: .8rem; background: none; color: #999; font-size: 1.3rem; }

/* Booking list */
.booking-item {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: .8rem 1rem;
  margin-bottom: .5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.booking-item .info h4 { font-size: .9rem; }
.booking-item .info p { font-size: .75rem; color: #888; }
.booking-item.cancelled { opacity: .5; }

.hidden { display: none !important; }
