/* ==========================================================================
   MountainMate — Home page styles — page-specific styles
   Shared tokens, reset, navbar, footer, and buttons live in base.css
   ========================================================================== */

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  background-color: var(--pine-950);
}
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--pine-950), rgba(13, 31, 22, 0.7), rgba(13, 31, 22, 0.3));
}
.hero__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-block: 5rem;
}
@media (min-width: 640px) {
  .hero__inner { padding-block: 7rem; }
}
@media (min-width: 1024px) {
  .hero__inner { padding-block: 9rem; }
}

.hero__eyebrow {
  margin-bottom: 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 9999px;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--amber-100);
  backdrop-filter: blur(4px);
}

.hero__title {
  max-width: 48rem;
  font-size: 2.25rem;
  font-weight: 600;
  color: var(--parchment);
}
@media (min-width: 640px) {
  .hero__title { font-size: 3rem; }
}
@media (min-width: 1024px) {
  .hero__title { font-size: 3.75rem; }
}
.hero__title em {
  font-style: italic;
  color: var(--amber-400);
}

.hero__desc {
  margin-top: 1.5rem;
  max-width: 36rem;
  font-size: 1rem;
  line-height: 1.6;
  color: rgba(220, 236, 226, 0.85);
}
@media (min-width: 640px) {
  .hero__desc { font-size: 1.125rem; }
}

.hero__search {
  margin-top: 2.25rem;
  display: flex;
  width: 100%;
  max-width: 36rem;
  flex-direction: column;
  gap: 0.75rem;
  border-radius: 1rem;
  background-color: rgba(255, 255, 255, 0.95);
  padding: 0.625rem;
  box-shadow: var(--shadow-lift);
}
@media (min-width: 640px) {
  .hero__search { flex-direction: row; }
}
.hero__search-field {
  display: flex;
  flex: 1;
  align-items: center;
  gap: 0.5rem;
  border-radius: 0.75rem;
  padding: 0.625rem 0.75rem;
}
.hero__search-field svg {
  flex-shrink: 0;
  color: var(--ink-soft);
}
.hero__search-field input {
  width: 100%;
  min-width: 0;
  border: none;
  background: transparent;
  font-size: 0.875rem;
  color: var(--ink);
  outline: none;
}
.hero__search-field input::placeholder {
  color: rgba(74, 83, 70, 0.7);
}
.hero__search-btn {
  flex-shrink: 0;
  min-height: 44px;
  border-radius: 0.75rem;
  background-color: var(--pine-800);
  color: var(--parchment);
  padding: 0.75rem 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  transition: background-color 0.2s ease;
}
.hero__search-btn:hover {
  background-color: var(--pine-700);
}

.hero__stats {
  margin-top: 2.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem 2rem;
  font-size: 0.875rem;
  color: rgba(220, 236, 226, 0.85);
}
.hero__stats span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* Sub-page hero / page header */
.page-header {
  border-bottom: 1px solid rgba(18, 51, 34, 0.05);
  background-color: var(--pine-50);
  padding-block: 3.5rem;
}
@media (min-width: 640px) {
  .page-header { padding-block: 4rem; }
}
.breadcrumb {
  font-size: 0.875rem;
  color: var(--ink-soft);
}
.breadcrumb a:hover {
  color: var(--pine-700);
}
.page-header__eyebrow {
  margin-top: 1rem;
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--amber-600);
}
.page-header__title {
  margin-top: 0.5rem;
  max-width: 42rem;
  font-size: 1.875rem;
  font-weight: 600;
  color: var(--pine-950);
}
@media (min-width: 640px) {
  .page-header__title { font-size: 2.25rem; }
}
.page-header__title em {
  font-style: italic;
}
.page-header__desc {
  margin-top: 0.75rem;
  max-width: 36rem;
  color: var(--ink-soft);
}

/* Hero on dark trip-detail page header */
.trip-header {
  position: relative;
  overflow: hidden;
  background-color: var(--pine-950);
}
.trip-header__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
}
.trip-header__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--pine-950), rgba(13, 31, 22, 0.7), rgba(13, 31, 22, 0.4));
}
.trip-header__inner {
  position: relative;
  padding-block: 4rem;
}
@media (min-width: 640px) {
  .trip-header__inner { padding-block: 5rem; }
}
.trip-header .breadcrumb { color: rgba(220, 236, 226, 0.7); }
.trip-header .breadcrumb a:hover { color: var(--parchment); }

.trip-header__badges {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border-radius: 9999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
}
.pill--ghost {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--parchment);
  backdrop-filter: blur(4px);
}
.pill--amber {
  background-color: var(--amber-500);
  color: #fff;
}
.pill--dark {
  background-color: rgba(13, 31, 22, 0.8);
  color: var(--parchment);
  backdrop-filter: blur(4px);
}

.trip-header__title {
  margin-top: 1rem;
  max-width: 42rem;
  font-size: 1.875rem;
  font-weight: 600;
  color: var(--parchment);
}
@media (min-width: 640px) { .trip-header__title { font-size: 2.25rem; } }
@media (min-width: 1024px) { .trip-header__title { font-size: 3rem; } }

.trip-header__desc {
  margin-top: 1rem;
  max-width: 36rem;
  color: rgba(220, 236, 226, 0.85);
}

.trip-header__meta {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  font-size: 0.875rem;
  color: rgba(220, 236, 226, 0.85);
}
.trip-header__meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* ==========================================================================
   Trip filters sidebar
   ========================================================================== */
.filters-panel {
  border-radius: 1rem;
  background-color: #fff;
  padding: 1.25rem;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(18, 51, 34, 0.05);
}
@media (min-width: 640px) {
  .filters-panel { padding: 1.5rem; }
}
.filters-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.filters-panel__head h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--pine-950);
}
.filters-panel__clear {
  border: none;
  background: none;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--pine-700);
  padding: 0;
}
.filters-panel__clear:hover { text-decoration: underline; }

.field-group {
  margin-top: 1.25rem;
}
.field-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--pine-950);
}
.select, .text-input, textarea.text-input {
  width: 100%;
  border-radius: 0.5rem;
  border: 1px solid rgba(18, 51, 34, 0.15);
  background-color: #fff;
  padding: 0.625rem 0.75rem;
  font-size: 0.875rem;
  color: var(--ink);
}
.select:focus, .text-input:focus, textarea.text-input:focus {
  border-color: var(--pine-600);
  outline: none;
}

.filters-panel__count {
  margin-top: 1.5rem;
  font-size: 0.75rem;
  color: var(--ink-soft);
}
.filters-panel__count strong {
  color: var(--pine-950);
}

.search-field {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  max-width: 28rem;
  margin-top: 1.75rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(18, 51, 34, 0.1);
  background-color: #fff;
  padding: 0.75rem 1rem;
  box-shadow: var(--shadow-card);
}
.search-field svg { color: var(--ink-soft); flex-shrink: 0; }
.search-field input {
  width: 100%;
  border: none;
  background: transparent;
  font-size: 0.875rem;
  outline: none;
}

.toolbar {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .toolbar { flex-direction: row; align-items: center; justify-content: space-between; }
}
.toolbar select {
  width: 100%;
}
@media (min-width: 640px) {
  .toolbar select { width: 14rem; }
}

.empty-state {
  border-radius: 1rem;
  border: 1px dashed rgba(18, 51, 34, 0.2);
  background-color: #fff;
  padding: 3rem 1.5rem;
  text-align: center;
}
.empty-state h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--pine-950);
}
.empty-state p {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: var(--ink-soft);
}

/* ==========================================================================
   Departures table
   ========================================================================== */
.departures-table-wrap {
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid rgba(18, 51, 34, 0.1);
  background-color: #fff;
  box-shadow: var(--shadow-card);
}
.departures-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  display: none;
}

.departures-cards {
  display: flex;
  flex-direction: column;
}

@media (min-width: 640px) {
  .departures-table { display: table; }
  .departures-cards { display: none; }
}
.departures-table thead {
  background-color: var(--pine-50);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--ink-soft);
}
.departures-table th, .departures-table td {
  padding: 1rem 1.5rem;
  font-size: 0.875rem;
}
.departures-table tbody tr {
  border-top: 1px solid rgba(18, 51, 34, 0.1);
}
.departures-table td:first-child {
  font-weight: 600;
  color: var(--pine-950);
}
.departures-table td { color: var(--ink-soft); }
.departures-table td.price-cell {
  font-weight: 600;
  color: var(--pine-950);
}
.departures-table td.actions-cell { text-align: right; }

.availability-pill {
  display: inline-flex;
  border-radius: 9999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  background-color: var(--pine-100);
  color: var(--pine-800);
}
.availability-pill--warn {
  background-color: var(--amber-100);
  color: var(--amber-600);
}

.table-book-btn {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  border-radius: 9999px;
  background-color: var(--pine-800);
  color: var(--parchment);
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  font-weight: 600;
}
.table-book-btn:hover { background-color: var(--pine-700); }


.departures-cards li {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.25rem;
  border-top: 1px solid rgba(18, 51, 34, 0.1);
}
.departures-cards li:first-child { border-top: none; }
.departures-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}
.departures-card__head p {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--pine-950);
}
.departures-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1rem;
  font-size: 0.875rem;
  color: var(--ink-soft);
}
.departures-card__meta strong { color: var(--pine-950); }
.departures-cards .table-book-btn {
  justify-content: center;
  min-height: 44px;
  width: 100%;
}
