:root {
  --teal-900: #0b3d3c;
  --teal-700: #0f5c5b;
  --teal-500: #1a8a83;
  --sand-100: #fbf6ec;
  --sand-200: #f2e7d0;
  --coral-500: #e8734a;
  --coral-600: #d15f38;
  --ink-900: #1c2624;
  --ink-600: #4a5a57;
  --border: #e1d8c4;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--sand-100);
  color: var(--ink-900);
}

header.hero {
  background: linear-gradient(135deg, var(--teal-900), var(--teal-700));
  color: white;
  padding: 3rem 1.5rem 2.5rem;
  text-align: center;
}

header.hero h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}

header.hero p {
  margin: 0 auto;
  max-width: 640px;
  color: #d7ece9;
  font-size: 1.05rem;
}

header.hero .disclaimer {
  margin-top: 1.25rem;
  font-size: 0.8rem;
  color: #a9c9c5;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

main {
  max-width: 1180px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.controls {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.75rem;
}

.controls-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.controls-top h2 {
  margin: 0;
  font-size: 1rem;
  color: var(--ink-600);
  font-weight: 600;
}

.controls-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

#sort-select {
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 0.9rem;
  background: var(--sand-100);
}

#clear-filters {
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.45rem 0.8rem;
  font-size: 0.85rem;
  cursor: pointer;
  color: var(--ink-600);
}

#clear-filters:hover {
  background: var(--sand-200);
}

#tag-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag-filter {
  border: 1px solid var(--border);
  background: var(--sand-100);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.82rem;
  cursor: pointer;
  color: var(--ink-600);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.tag-filter:hover {
  border-color: var(--teal-500);
}

.tag-filter.active {
  background: var(--teal-700);
  border-color: var(--teal-700);
  color: white;
}

#result-count {
  display: block;
  margin-bottom: 1rem;
  color: var(--ink-600);
  font-size: 0.9rem;
}

#card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

.card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.15s, transform 0.15s;
}

.card:hover {
  box-shadow: 0 8px 24px rgba(11, 61, 60, 0.12);
  transform: translateY(-2px);
}

.card-image {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  background: var(--sand-200);
}

.card-header {
  background: var(--sand-200);
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.badge {
  display: inline-block;
  background: var(--teal-500);
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  margin-bottom: 0.5rem;
}

.card-header h3 {
  margin: 0 0 0.3rem;
  font-size: 1.15rem;
}

.tagline {
  margin: 0;
  font-size: 0.87rem;
  color: var(--ink-600);
}

.card-body {
  padding: 1.1rem 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
}

.stat-label {
  color: var(--ink-600);
}

.stat-value {
  font-weight: 600;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.tag {
  background: var(--sand-200);
  border-radius: 6px;
  padding: 0.15rem 0.5rem;
  font-size: 0.75rem;
  color: var(--ink-600);
}

.cancellation {
  margin: 0;
  font-size: 0.82rem;
  color: var(--ink-600);
  line-height: 1.4;
}

.highlight {
  margin: 0;
  font-size: 0.85rem;
  color: var(--teal-900);
  font-style: italic;
  line-height: 1.4;
}

.book-btn {
  display: block;
  text-align: center;
  background: var(--coral-500);
  color: white;
  text-decoration: none;
  font-weight: 600;
  padding: 0.85rem;
  font-size: 0.92rem;
  transition: background 0.15s;
}

.book-btn:hover {
  background: var(--coral-600);
}

footer {
  text-align: center;
  padding: 2rem 1.5rem 3rem;
  color: var(--ink-600);
  font-size: 0.82rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --sand-100: #14201f;
    --sand-200: #1c2b29;
    --border: #2c3d3a;
    --ink-900: #eef4f2;
    --ink-600: #a9bdb9;
  }

  .card {
    background: #182524;
  }

  #sort-select {
    background: #182524;
    color: var(--ink-900);
  }
}
