/* --------------------------------------------------------
   Excursion list availability indicator
--------------------------------------------------------- */
.excursion-card.exc-available {
  background: rgba(63, 139, 115, 0.06);
  border: 1px solid rgba(63, 139, 115, 0.16);
}

.excursion-card.exc-soldout {
  background: rgba(239, 68, 68, 0.06);
  border: 1px solid rgba(239, 68, 68, 0.16);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid transparent;
  line-height: 1;
}

.status-pill.is-available {
  background: rgba(63, 139, 115, 0.10);
  border-color: rgba(63, 139, 115, 0.22);
  color: rgba(31, 95, 84, 1);
}

.status-pill.is-soldout {
  background: rgba(239, 68, 68, 0.10);
  border-color: rgba(239, 68, 68, 0.22);
  color: rgba(239, 68, 68, 1);
}

/* --------------------------------------------------------
   Grid/List view toggle
--------------------------------------------------------- */
.view-toggle{
  display:inline-flex;
  border: 1px solid var(--c-soft);
  background: rgba(233,236,238,0.5);
  border-radius: 999px;
  padding: 4px;
  gap: 4px;
}

.view-toggle .view-toggle-btn{
  border-radius: 999px;
}

.view-toggle .view-toggle-btn.is-active{
  background: rgba(63,139,115,0.12);
  border-color: rgba(63,139,115,0.24);
  color: var(--c-text);
}

/* --------------------------------------------------------
   View switching
--------------------------------------------------------- */
.excursions-view[data-view="grid"] [data-view-panel="list"]{ display:none; }
.excursions-view[data-view="list"] [data-view-panel="grid"]{ display:none; }

/* --------------------------------------------------------
   List view table styles
--------------------------------------------------------- */
.excursions-table .exc-name{
  display:flex;
  align-items:center;
  gap: 10px;
}

.excursions-table .exc-thumb{
  width: 44px;
  height: 32px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.06);
  flex: 0 0 auto;
}

.excursions-table tr.row-available td{ background: rgba(63,139,115,0.03); }
.excursions-table tr.row-soldout td{ background: rgba(239,68,68,0.03); }

.excursions-table tr:hover td{
  background: rgba(17,24,39,0.03);
}

.muted { color: var(--c-muted); }
.muted-2 { color: var(--c-muted-2); }

.page-header{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:16px;
  flex-wrap:wrap;
  margin-bottom: 12px;
}

.page-header .title-wrap{ min-width: 240px; }

.page-actions{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

/* --------------------------------------------------------
   View toggle (Grid / List)
--------------------------------------------------------- */
.view-toggle{
  display:inline-flex;
  gap:8px;
  padding: 6px;
  border-radius: 999px;
  border: 1px solid var(--c-soft);
  background: rgba(233,236,238,0.55);
}

.view-toggle .view-toggle-btn{
  border-radius: 999px;
}

.view-toggle .view-toggle-btn.is-active{
  background: rgba(63,139,115,0.12);
  border-color: rgba(63,139,115,0.25);
}

/* Hide panels based on selected view */
.excursions-view[data-view="grid"] [data-view-panel="list"]{ display:none; }
.excursions-view[data-view="list"] [data-view-panel="grid"]{ display:none; }

/* --------------------------------------------------------
   List view table cosmetics
--------------------------------------------------------- */
.excursions-table .exc-name{
  display:flex;
  align-items:center;
  gap:12px;
}

.excursions-table .exc-thumb{
  width: 54px;
  height: 40px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,0.06);
  flex: 0 0 auto;
}

.excursions-table tr.row-available td{ background: rgba(63,139,115,0.03); }
.excursions-table tr.row-soldout td{ background: rgba(239,68,68,0.03); }

.excursions-table tr:hover td{
  background: rgba(15, 23, 42, 0.03);
}

@media (max-width: 820px) {
  .view-toggle .nav-text{ display:none; }
  .excursions-table .exc-thumb{ width: 46px; height: 34px; }
}

.kpi{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}

.kpi .value{
  font-family: Montserrat;
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -0.02em;
}

.kpi .label{ font-size: 14px; color: var(--c-muted); }

.stack{ display:flex; flex-direction:column; gap:10px; }

.card.compact{ padding: 14px; }

.divider{ height: 1px; background: var(--c-soft); margin: 14px 0; }

.stepper{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:center;
}

.step{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--c-soft);
  background: rgba(233,236,238,0.45);
  font-size: 14px;
  font-weight: 600;
  color: var(--c-muted);
}

.step .dot{
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background: var(--c-soft);
  color: var(--c-text);
  font-size: 12px;
  font-weight: 700;
}

.step.active{
  background: rgba(63,139,115,0.10);
  border-color: rgba(63,139,115,0.22);
  color: var(--c-text);
}

.step.active .dot{
  background: rgba(63,139,115,0.22);
}

.input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--c-soft);
  outline: none;
  font-size: 16px;
}

.input:focus { border-color: var(--c-secondary); box-shadow: 0 0 0 3px rgba(63,139,115,0.18); }

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 700px) { .row { grid-template-columns: 1fr; } }

.hr { height: 1px; background: var(--c-soft); margin: 16px 0; }

.alert {
  border-radius: 12px;
  padding: 12px 14px;
  background: rgba(233,236,238,0.7);
  border: 1px solid var(--c-soft);
}

.alert.error { background: rgba(255, 0, 0, 0.06); border-color: rgba(255, 0, 0, 0.12); }

.table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--c-soft);
}

.table th, .table td {
  padding: 12px;
  border-bottom: 1px solid var(--c-soft);
  text-align: left;
}

.table th { background: rgba(233,236,238,0.6); font-family: "Montserrat"; font-weight: 600; }

/* Responsive table -> stacked cards on mobile */
@media (max-width: 820px) {
  .table.table-responsive,
  .table.table-responsive thead,
  .table.table-responsive tbody,
  .table.table-responsive th,
  .table.table-responsive td,
  .table.table-responsive tr {
    display: block;
    width: 100%;
  }
  .table.table-responsive thead { display: none; }
  .table.table-responsive { border: 0; border-radius: 0; }
  .table.table-responsive tr {
    border: 1px solid var(--c-soft);
    border-radius: var(--r-xl);
    box-shadow: var(--shadow);
    background: var(--c-white);
    margin-bottom: 12px;
    overflow: hidden;
  }
  .table.table-responsive td {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 10px 12px;
    border-bottom: 1px solid var(--c-soft);
    text-align: right;
  }
  .table.table-responsive td:last-child { border-bottom: 0; }
  .table.table-responsive td::before {
    content: attr(data-label);
    text-align: left;
    font-weight: 600;
    color: var(--c-muted);
  }
}

.avail {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 740px) {
  .avail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 420px) {
  .container { padding: 16px; }
  .navbar .inner { padding: 12px 16px; }
}

.day {
  border: 1px solid var(--c-soft);
  border-radius: 14px;
  padding: 12px;
}

.day.available { background: rgba(63,139,115,0.08); border-color: rgba(63,139,115,0.18); }
.day.sold_out { background: rgba(0,0,0,0.04); }
.day.unavailable { background: rgba(239,68,68,0.06); border-color: rgba(239,68,68,0.18); opacity: 0.9; }

.footer-space { height: 20px; }



/* --------------------------------------------------------
   LIST VIEW: sortable headers (Excel-like)
--------------------------------------------------------- */
.excursions-table thead th.sortable {
  cursor: pointer;
  user-select: none;
  position: relative;
  white-space: nowrap;
}

.excursions-table thead th.sortable .sort-indicator {
  display: inline-block;
  margin-left: 8px;
  font-weight: 800;
  opacity: 0.65;
}

.excursions-table thead th.sortable:hover {
  background: rgba(0, 0, 0, 0.03);
}

.excursions-table thead th.sortable.is-sorted {
  background: rgba(0, 0, 0, 0.05);
}

.excursions-table thead th.sortable:focus {
  outline: 2px solid rgba(63, 139, 115, 0.35);
  outline-offset: 2px;
  border-radius: 8px;
}
