/* Cards */
.card{
  background: var(--c-white);
  border:1px solid var(--c-border);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-soft);
  padding:16px;
  margin:14px 0;
}

/* Grid / tiles */
.grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:12px;
}

.grid.three-col{
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tile{
  display:flex;
  align-items:center;
  gap:10px;
  padding:12px 14px;
  border-radius:14px;
  background: rgba(233,236,238,.65);
  border:1px solid var(--c-border);
  color: var(--c-text);
  text-decoration:none;
}

.tile:hover{
  border-color: var(--c-border-strong);
  background: rgba(233,236,238,.92);
}

/* Filters */
.filters{
  background: rgba(233,236,238,.70);
  border:1px solid var(--c-border);
  border-radius:14px;
  padding:12px;
  margin:12px 0 18px 0;
}

.filters-row{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  align-items:end;
}

label{
  display:flex;
  flex-direction:column;
  gap:6px;
  font-size:12px;
  color: var(--c-muted);
}

input,
select{
  background: var(--c-white);
  border:1px solid var(--c-border);
  border-radius:12px;
  padding:10px 12px;
  color: var(--c-text);
  min-width:180px;
  font: inherit;
}

/* Buttons */
.btn{
  border-radius:12px;
  padding:10px 14px;
  border:1px solid var(--c-border);
  background: var(--c-white);
  color: var(--c-text);
  cursor:pointer;
  font: inherit;
}

.btn.primary{
  border-color: rgba(31,95,84,.55);
  background: rgba(31,95,84,.10);
  color: var(--c-primary);
  font-weight:700;
}

.btn:hover{
  border-color: var(--c-border-strong);
}

/* Alerts */
.alert{
  border-radius:14px;
  border:1px solid rgba(200, 40, 60, .35);
  background: rgba(200, 40, 60, .06);
  padding:12px 14px;
  margin:12px 0;
}

.alert-title{
  font-family: var(--font-head);
  font-weight:800;
  margin-bottom:6px;
}

.alert-body{ white-space: pre-wrap; }

/* Empty state */
.empty{
  padding:24px;
  border-radius:14px;
  border:1px dashed var(--c-border);
}

/* Inline code */
code{
  background: rgba(233,236,238,.9);
  border:1px solid rgba(46,47,47,.10);
  padding:2px 6px;
  border-radius:8px;
}

/* Responsive */
@media (max-width: 900px){
  .grid,
  .grid.three-col{ grid-template-columns:1fr; }
  input{ min-width:150px; }
}

/* =========================
   Combobox (searchable dropdown)
   Scoped so it won't affect other fields.
========================= */
.filters-row > label{ min-width:0; }

.field-excursion{ flex: 1 1 520px; min-width: 260px; max-width: 680px; }

.combo{
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}

.combo-input{
  width: 100%;
  min-width: 0;
}

.combo-btn{
  border-radius: 12px;
  padding: 10px 12px;
  border: 1px solid var(--c-border);
  background: var(--c-white);
  color: var(--c-text);
  cursor: pointer;
  line-height: 1;
}

.combo-btn:hover{ border-color: var(--c-border-strong); }

.combo-menu{
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  background: var(--c-white);
  border: 1px solid var(--c-border);
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
  padding: 6px;
  max-height: 320px;
  overflow: auto;
  display: none;
  z-index: 200;
}

.combo.is-open .combo-menu{ display: block; }

.combo-item{
  padding: 10px 10px;
  border-radius: 10px;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.combo-item:hover,
.combo-item.is-active{
  background: rgba(31,95,84,.08);
}

.combo-item[data-selected="1"]{
  background: rgba(31,95,84,.12);
}

.combo-item.is-hidden{ display:none; }

@media (max-width: 900px){
  .field-excursion{ max-width: 100%; }
}
