:root {
  color-scheme: light;
  font-family: 'Inter','Montserrat',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  --accent: #1DB6A3;
  --accent-strong: #159B8C;
  --charcoal: #111827;
  --muted: #4B5563;
  --border: #E5E7EB;
  --bg: #f8fafc;
  --card: #ffffff;
  --shadow: 0 22px 48px rgba(15, 23, 42, 0.08);
  --pill: #f3f4f6;
  --dark: #0f172a;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--charcoal);
  font-size: 16px;
  line-height: 1.5;
}

.work-shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px 16px 120px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hero { display: flex; flex-direction: column; gap: 6px; margin: 6px 0 8px; }
.eyebrow { text-transform: uppercase; letter-spacing: 2px; font-size: 12px; font-weight: 700; color: #6b7280; margin: 0; }
h1 { margin: 0; font-size: clamp(32px, 4vw, 44px); font-weight: 800; letter-spacing: -0.2px; color: var(--dark); }
.lede { margin: 0; color: #4b5563; font-size: 18px; }

.search-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 18px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 140px;
  gap: 12px;
  align-items: center;
}

.search-input,
.date-input,
.near-input {
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--charcoal);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.search-input input,
.date-input input {
  border: none;
  outline: none;
  background: transparent;
  width: 100%;
  font: inherit;
  color: inherit;
}

.search-input input::placeholder { color: #9ca3af; }
.search-input svg { color: #6b7280; }

.date-input { position: relative; min-width: 0; }
.date-input svg { color: #6b7280; flex-shrink: 0; }
.date-input input {
  font-weight: 700;
  font-size: 15px;
  color: transparent;
  caret-color: transparent;
}
.date-input { cursor: pointer; }
.date-input input { cursor: pointer; }
.date-input[data-empty="true"] input { color: transparent; }
.date-input[data-empty="true"] input::-webkit-datetime-edit,
.date-input[data-empty="true"] input::-webkit-datetime-edit-text,
.date-input[data-empty="true"] input::-webkit-datetime-edit-month-field,
.date-input[data-empty="true"] input::-webkit-datetime-edit-day-field,
.date-input[data-empty="true"] input::-webkit-datetime-edit-year-field {
  color: transparent;
}
.date-input input:placeholder-shown { color: transparent; }
.date-input input::-webkit-datetime-edit,
.date-input input::-webkit-datetime-edit-text,
.date-input input::-webkit-datetime-edit-month-field,
.date-input input::-webkit-datetime-edit-day-field,
.date-input input::-webkit-datetime-edit-year-field { color: transparent; }
.date-input .date-placeholder {
  position: absolute;
  left: 42px;
  color: #9ca3af;
  pointer-events: none;
  font-weight: 600;
  transition: opacity 0.15s ease;
}
.date-input[data-empty="false"] .date-placeholder { opacity: 0; }
.date-input input::-webkit-calendar-picker-indicator {
  opacity: 0;
  pointer-events: none;
  width: 0;
  margin: 0;
  padding: 0;
}
.date-range-display {
  position: absolute;
  left: 42px;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 700;
  color: #111827;
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.near-input {
  gap: 8px;
  justify-content: flex-start;
}
.near-input svg { color: #6b7280; flex-shrink: 0; }
.near-toggle {
  border: none;
  background: transparent;
  font: inherit;
  font-weight: 700;
  color: #6b7280;
  opacity: 0.65;
  cursor: pointer;
  padding: 0;
}
.near-toggle:focus-visible { outline: 3px solid rgba(21, 155, 140, 0.2); border-radius: 6px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--pill);
  color: var(--charcoal);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}

.chip:hover { transform: translateY(-1px); box-shadow: 0 10px 20px rgba(15, 23, 42, 0.12); }
.chip.active { background: #111827; color: #fff; border-color: #111827; box-shadow: 0 12px 24px rgba(17, 24, 39, 0.18); }
.chip.ghost { background: #fff; }
.chip:focus-visible { outline: 3px solid rgba(21, 155, 140, 0.2); outline-offset: 2px; }

.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip-row.features { margin-top: -4px; }

.map-row { display: flex; flex-direction: column; gap: 10px; }
.map-toggle { align-self: flex-start; background: #fff; }
.map-preview {
  border: 1px dashed var(--border);
  border-radius: 16px;
  background: #fff;
  padding: 12px;
  color: #374151;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 12px;
}
.map-preview[hidden] { display: none; }
.map-canvas {
  height: 320px;
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: #eef2f7;
}
.map-meta {
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: space-between;
}
.map-preview p { margin: 0; font-weight: 600; line-height: 1.45; }

.search-submit {
  width: 100%;
  border: none;
  border-radius: 14px;
  padding: 14px 18px;
  background: #111111;
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
  letter-spacing: 0.2px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.16);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.search-submit:hover { transform: translateY(-1px); box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18); background: #0b0b0b; }
.search-submit:focus-visible { outline: 3px solid rgba(21, 155, 140, 0.25); outline-offset: 3px; }

.results { display: flex; flex-direction: column; gap: 14px; padding: 6px 0 0; }
.results-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.results-count { margin: 0; color: #4b5563; font-weight: 600; }
.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: #eef2f7;
  color: #374151;
  font-weight: 700;
  border: 1px solid #e5e7eb;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  align-items: stretch;
}
.empty-state {
  border: 1px dashed var(--border);
  border-radius: 14px;
  padding: 16px;
  background: #fff;
  color: #6b7280;
  font-weight: 600;
}

@keyframes skeleton-shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.results.is-loading .card-grid { opacity: 1; }
.skeleton {
  background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 37%, #f3f4f6 63%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.2s ease-in-out infinite;
}
.skeleton-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
}
.skeleton-thumb { height: 180px; width: 100%; }
.skeleton-body { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.skeleton-line { height: 14px; border-radius: 8px; }
.skeleton-line.tall { height: 18px; width: 60%; }
.skeleton-line.short { width: 45%; }
.skeleton-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.skeleton-pill { height: 12px; width: 80px; border-radius: 999px; }
.skeleton-price { height: 22px; width: 90px; border-radius: 10px; margin-top: 4px; }
.work-shell.is-loading .search-input,
.work-shell.is-loading .date-input,
.work-shell.is-loading .near-input,
.work-shell.is-loading .chip {
  color: transparent !important;
  background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 37%, #f3f4f6 63%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.2s ease-in-out infinite;
  border-color: #e5e7eb;
  pointer-events: none;
}
.work-shell.is-loading .search-input svg,
.work-shell.is-loading .date-input svg,
.work-shell.is-loading .near-input svg { color: transparent !important; }
.work-shell.is-loading .date-placeholder,
.work-shell.is-loading .near-toggle { color: transparent !important; }

.date-popover {
  position: absolute;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 20px 42px rgba(15, 23, 42, 0.14);
  padding: 14px;
  width: 320px;
  z-index: 40;
}
.date-popover__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  gap: 8px;
}
.date-popover__month {
  font-weight: 800;
  color: #111827;
  font-size: 15px;
}
.date-nav {
  border: none;
  background: #f3f4f6;
  border-radius: 8px;
  width: 32px;
  height: 32px;
  font-weight: 800;
  cursor: pointer;
  color: #111827;
}
.date-popover__weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 6px;
  text-align: center;
}
.date-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.date-cell {
  border: none;
  background: #f9fafb;
  border-radius: 10px;
  padding: 10px 0;
  font-weight: 700;
  color: #111827;
  cursor: pointer;
  position: relative;
}
.date-cell:hover { background: #e5e7eb; }
.date-cell.is-in-range {
  background: #e5e7eb;
  color: #0f172a;
}
.date-cell.is-start,
.date-cell.is-end {
  background: #111827;
  color: #fff;
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.22);
}
.date-cell.is-single {
  background: #0f172a;
  color: #fff;
}
.date-popover__footer {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.date-popover__hint {
  color: #4b5563;
  font-size: 13px;
}
.date-popover__clear {
  border: none;
  background: transparent;
  color: #6b7280;
  font-weight: 700;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 8px;
}
.date-popover__clear:hover { background: #f3f4f6; }

.work-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.work-card:hover { transform: translateY(-2px); box-shadow: 0 20px 42px rgba(15, 23, 42, 0.1); }
.work-card:focus-visible { outline: 3px solid rgba(21, 155, 140, 0.25); outline-offset: 3px; }

.work-card figure { margin: 0; position: relative; overflow: hidden; }
.work-card img { width: 100%; height: 220px; object-fit: cover; display: block; }
.badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #111827;
  color: #fff;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.2px;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}
.badge.eco { background: #0F3E3A; }

.card-body {
  padding: 16px 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.card-title { font-size: 22px; font-weight: 700; margin: 0; color: var(--dark); letter-spacing: -0.1px; }
.location { display: flex; align-items: center; gap: 8px; color: #4b5563; font-weight: 600; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #f9fafb;
  color: #374151;
  font-weight: 700;
  font-size: 12px;
}
.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid #f0f2f5;
  padding-top: 10px;
  margin-top: auto;
}
.price { font-size: 26px; font-weight: 800; color: var(--dark); }
.rate { color: #6b7280; font-weight: 600; font-size: 14px; }
.credits { color: #111827; font-weight: 700; font-size: 15px; }
.book-btn {
  margin-top: 12px;
  border: none;
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  background: #111111;
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.16);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.book-btn:hover { transform: translateY(-1px); box-shadow: 0 14px 28px rgba(0, 0, 0, 0.2); background: #0b0b0b; }
.book-btn:focus-visible { outline: 3px solid rgba(21, 155, 140, 0.25); outline-offset: 3px; }

@media (max-width: 1040px) {
  .search-form { grid-template-columns: minmax(0, 1fr) 1fr 1fr; }
}
@media (max-width: 780px) {
  .work-shell { padding: 24px 14px 110px; }
  .search-card { padding: 16px; }
  .search-form { grid-template-columns: 1fr; }
  .search-input, .date-input { padding: 12px; }
  .card-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
  .map-preview { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation-duration: 0.01ms !important; }
}
