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

body {
  font-family: monospace;
  background: #fff;
  color: #111;
  line-height: 1.5;
}

header {
  border-bottom: 2px solid #111;
  padding: .8rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

button {
  padding: .3rem .7rem;
  border: 1px solid #111;
  background: #fff;
  color: #111;
  font-family: monospace;
  font-size: .8rem;
  cursor: pointer;
}

button:hover { background: #111; color: #fff; }
button.secondary { border-color: #888; color: #888; }
button.danger { border-color: #c00; color: #c00; }
button.danger:hover { background: #c00; color: #fff; }
button[type="submit"] { background: #111; color: #fff; }
button[type="submit"]:hover { background: #333; }

main { max-width: 700px; margin: 1.5rem auto; padding: 0 1.5rem; }

section { margin-bottom: 2rem; }
section h2 {
  font-size: .85rem;
  border-bottom: 1px solid #ddd;
  padding-bottom: .3rem;
  margin-bottom: .8rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: .6rem;
}

.card {
  border: 1px solid #ddd;
  padding: .8rem;
}

.card h3 { font-size: .8rem; }
.card p { font-size: .7rem; color: #666; }
.card .amenities { display: flex; gap: .3rem; flex-wrap: wrap; margin-top: .4rem; }
.card .tag {
  border: 1px solid #ddd;
  padding: 0 .3rem;
  font-size: .6rem;
  color: #555;
}

form { display: flex; flex-direction: column; gap: .4rem; max-width: 350px; }

input, select, textarea {
  padding: .4rem;
  border: 1px solid #ccc;
  font-family: monospace;
  font-size: .8rem;
  background: #fff;
  color: #111;
}

input:focus, select:focus, textarea:focus { outline: 1px solid #111; border-color: #111; }

.error { color: #c00; font-size: .75rem; }
.success { color: #060; font-size: .75rem; }

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

.modal.hidden { display: none; }

.modal-content {
  background: #fff;
  border: 2px solid #111;
  padding: 1.5rem;
  width: 300px;
  position: relative;
}

.modal-content h2 { font-size: .9rem; margin-bottom: .8rem; border: none; padding: 0; }
.close { position: absolute; top: .4rem; right: .6rem; background: none; border: none; font-size: 1rem; cursor: pointer; }

.booking-item {
  border: 1px solid #ddd;
  padding: .5rem .8rem;
  margin-bottom: .4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.booking-item .info h4 { font-size: .8rem; }
.booking-item .info p { font-size: .7rem; color: #888; }
.booking-item.cancelled { opacity: .4; }

.hidden { display: none !important; }
