/* Reusable primitives: buttons, badges, chips, form controls, notices. */

/* --- Buttons ------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .72rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: .95rem;
  font-weight: 650;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  transition: transform .12s ease, box-shadow .15s ease, background-color .15s ease;
  /* 44px minimum touch target -- this is a thumb-driven site. */
  min-height: 44px;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--coral); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--coral-dark); box-shadow: var(--shadow); color: #fff; }

.btn-ghost { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.5); }
.btn-ghost:hover { background: rgba(255,255,255,.24); color: #fff; }

.btn-quiet { background: var(--surface); color: var(--teal-dark); border-color: var(--line-strong); }
.btn-quiet:hover { background: var(--teal-tint); border-color: var(--teal); }

.btn-lg { padding: .9rem 1.6rem; font-size: 1.02rem; min-height: 52px; }
.btn-block { display: flex; width: 100%; }

/* --- Badges -------------------------------------------------------------- */

.badge {
  position: absolute; top: .7rem; left: .7rem;
  padding: .28rem .65rem; border-radius: 999px;
  font-size: .74rem; font-weight: 750; letter-spacing: .02em;
  text-transform: uppercase;
  box-shadow: var(--shadow-sm);
}
.badge-static { position: static; display: inline-block; box-shadow: none; }
.badge-available { background: var(--green); color: #fff; }
.badge-pending { background: var(--sunshine); color: #543c00; }
.badge-muted { background: var(--line); color: var(--slate); }

.status { font-size: .8rem; font-weight: 700; padding: .2rem .55rem; border-radius: 999px; }
.status-pending { background: #fff4d9; color: #7a5600; }
.status-occupied { background: var(--line); color: var(--slate); }

/* --- Chips --------------------------------------------------------------- */

.chip-row { display: flex; flex-wrap: wrap; gap: .45rem; list-style: none; margin: .65rem 0; padding: 0; }
.chip {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .3rem .7rem; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line-strong);
  font-size: .81rem; font-weight: 600; color: var(--slate);
}
.chip-accent { background: var(--coral-tint); border-color: #ffd3c6; color: var(--coral-dark); }
.chip-verified { background: var(--green-tint); border-color: #b6e3d1; color: #0f6f51; }

.pill {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .34rem .8rem; margin: 0 0 1rem;
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.32);
  border-radius: 999px;
  font-size: .8rem; font-weight: 700; letter-spacing: .03em;
  text-transform: uppercase; color: #fff;
}
.pill-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sunshine); }
.page-head .pill { background: var(--coral-tint); border-color: #ffd3c6; color: var(--coral-dark); }

/* --- Form controls ------------------------------------------------------- */

.field { display: flex; flex-direction: column; gap: .35rem; }
.field label { font-size: .84rem; font-weight: 700; color: var(--slate); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: .68rem .8rem;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--navy);
  font: inherit; font-size: 16px; /* 16px prevents iOS zoom-on-focus */
  min-height: 46px;
}
.field textarea { min-height: 118px; resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-tint);
}
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235a7280' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .7rem center; background-size: 17px;
  padding-right: 2.2rem;
}

.contact-form { display: grid; gap: .85rem; }
.field-row { display: grid; gap: .85rem; grid-template-columns: 1fr; }
/* Honeypot: off-screen rather than display:none, which some bots detect. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .82rem; color: var(--slate); margin: 0; text-align: center; }
.form-status { padding: .8rem 1rem; border-radius: var(--radius-sm); font-size: .92rem; font-weight: 600; }
.form-status.is-error { background: #fdecea; color: #a3282a; border: 1px solid #f5c2c0; }

.filters {
  display: grid; gap: .85rem; grid-template-columns: 1fr;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.15rem;
  box-shadow: var(--shadow-sm);
}
.filter-actions { display: flex; gap: .6rem; align-items: flex-end; }
.filter-actions .btn { flex: 1; }

/* --- Notices and empty states -------------------------------------------- */

.notice {
  background: var(--coral-tint); border: 1px solid #ffd3c6;
  border-radius: var(--radius); padding: .95rem 1.1rem; margin: 1.25rem 0;
}
.notice strong {
  display: block; margin-bottom: .2rem; color: var(--coral-dark);
  font-size: .86rem; text-transform: uppercase; letter-spacing: .04em;
}
.notice p { margin: 0; color: var(--navy); font-size: .94rem; }

.empty {
  text-align: center; padding: 2.5rem 1.25rem;
  background: var(--surface); border: 1px dashed var(--line-strong);
  border-radius: var(--radius-lg);
}
.empty-page { margin: 2rem 0; }
.empty-title { font-size: 1.22rem; font-weight: 750; margin-bottom: .3rem; }
.empty p { color: var(--slate); }
.empty .btn { margin-top: .85rem; }

/* --- FAQ ----------------------------------------------------------------- */

.faq-list { display: grid; gap: .6rem; max-width: 46rem; }
.faq-item {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: .95rem 1.1rem;
}
.faq-item summary {
  cursor: pointer; font-weight: 700; color: var(--navy);
  list-style-position: outside; padding-right: .5rem;
}
.faq-item summary::marker { color: var(--coral); }
.faq-item p { margin: .7rem 0 0; color: var(--slate); }
.faq-item[open] { border-color: var(--line-strong); }

.success-box { text-align: center; padding: .5rem 0 .25rem; }
.success-box svg { color: var(--green); margin: 0 auto .5rem; }
.success-box h3 { color: var(--green); }
.success-box p { color: var(--slate); margin: 0; }
