@import url("assets/fonts/dm-sans.css");

:root {
  --color-rausch: #ff385c;
  --color-rausch-600: #e00b41;
  --color-hof: #222222;
  --color-foggy: #6a6a6a;
  --color-grey-500: #c1c1c1;
  --color-bebe: #ebebeb;
  --color-deco: #dddddd;
  --color-faint: #f7f7f7;
  --color-white: #ffffff;

  --font-sans: "DM Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --text-caption: 11px;
  --text-ui: 16px;
  --text-heading-sm: 22px;
  --text-heading: 28px;

  --spacing-4: 4px;
  --spacing-8: 8px;
  --spacing-12: 12px;
  --spacing-16: 16px;
  --spacing-20: 20px;
  --spacing-24: 24px;
  --spacing-32: 32px;
  --spacing-40: 40px;
  --spacing-48: 48px;

  --radius-cards: 12px;
  --radius-inputs: 8px;
  --radius-full: 9999px;

  --shadow-search: 0px 0px 0px 1px rgba(0, 0, 0, 0.02), 0px 2px 6px 0px rgba(0, 0, 0, 0.04), 0px 4px 8px 0px rgba(0, 0, 0, 0.1);
  --shadow-subtle: rgba(0, 0, 0, 0.02) 0px 0px 0px 1px, rgba(0, 0, 0, 0.04) 0px 2px 6px 0px, rgba(0, 0, 0, 0.1) 0px 4px 8px 0px;

  --surface-canvas: #f7f7f7;
  --surface-card: #ffffff;
  --page-pad: 40px;
  --nav-height: 80px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.43;
  color: var(--color-hof);
  background: var(--surface-canvas);
  -webkit-font-smoothing: antialiased;
  opacity: 0;
  transition: opacity 0.45s var(--ease-soft);
}

body.is-ready {
  opacity: 1;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ——— Top nav ——— */
.topnav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(1.2) blur(10px);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease-soft), box-shadow 0.25s var(--ease-soft);
}

.topnav.is-scrolled {
  border-bottom-color: var(--color-bebe);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02);
}

.topnav__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 100%;
  max-width: 1760px;
  margin: 0 auto;
  padding: 0 var(--page-pad);
  gap: var(--spacing-16);
}

.topnav__logo {
  display: inline-flex;
  align-items: center;
  width: 102px;
  height: 32px;
  color: var(--color-rausch);
  transition: transform 0.35s var(--ease-out);
}

.topnav__logo:hover {
  transform: scale(1.04);
}

.topnav__logo svg {
  width: 100%;
  height: 100%;
}

.topnav__tabs {
  display: flex;
  align-items: center;
  gap: var(--spacing-8);
}

.pill-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 70px;
  padding: 10px 12px 8px;
  gap: 6px;
  color: var(--color-foggy);
  border-bottom: 2px solid transparent;
  transition: color 0.2s var(--ease-soft), transform 0.25s var(--ease-out);
}

.pill-tab:hover {
  transform: translateY(-1px);
}

.pill-tab svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

.pill-tab span {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.2;
}

.pill-tab:hover {
  color: var(--color-hof);
}

.pill-tab.is-active {
  color: var(--color-hof);
  border-bottom-color: var(--color-hof);
}

.pill-tab.is-active span {
  font-weight: 500;
}

.topnav__right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--spacing-8);
}

.host-link {
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
  border-radius: var(--radius-full);
  transition: background 0.15s ease;
}

.host-link:hover {
  background: var(--color-faint);
}

.circle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--color-faint);
  transition: background 0.15s ease;
}

.circle-btn:hover {
  background: var(--color-bebe);
}

.circle-btn svg {
  width: 16px;
  height: 16px;
  stroke: var(--color-hof);
  fill: none;
  stroke-width: 1.5;
}

.menu-btn {
  width: auto;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  gap: 8px;
}

.menu-btn svg:last-child {
  width: 18px;
  height: 18px;
}

/* ——— Search hero ——— */
.hero {
  background: var(--color-white);
  padding: 24px var(--page-pad) 40px;
}

.search-bar {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr auto;
  align-items: center;
  max-width: 880px;
  margin: 0 auto;
  background: var(--color-white);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-search);
  padding: 8px 8px 8px 8px;
  transition: box-shadow 0.35s var(--ease-soft), transform 0.45s var(--ease-out);
}

.search-bar.is-in {
  animation: searchLift 0.8s var(--ease-out) both;
}

.search-bar:focus-within {
  box-shadow:
    0px 0px 0px 1px rgba(0, 0, 0, 0.04),
    0px 6px 18px rgba(0, 0, 0, 0.1),
    0px 12px 28px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

@keyframes searchLift {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.search-field {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 56px;
  padding: 10px 24px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: background 0.15s ease;
}

.search-field:hover {
  background: var(--color-faint);
}

.search-field + .search-field {
  position: relative;
}

.search-field + .search-field::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 28px;
  background: var(--color-bebe);
}

.search-field__label {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.25;
  color: var(--color-hof);
}

.search-field__value {
  margin-top: 2px;
  font-size: 14px;
  font-weight: 400;
  color: var(--color-foggy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-right: 4px;
  border-radius: var(--radius-full);
  background: var(--color-rausch);
  color: var(--color-white);
  transition: background 0.2s var(--ease-soft), transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-soft);
}

.search-submit:hover {
  background: var(--color-rausch-600);
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(255, 56, 92, 0.35);
}

.search-submit:active {
  transform: scale(0.96);
}

.search-submit svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
}

/* ——— Sections / carousels ——— */
.main {
  padding: 8px 0 48px;
  background: var(--color-white);
}

.section {
  padding: 24px 0;
  margin-bottom: 8px;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

.section__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-16);
  padding: 0 var(--page-pad);
  margin-bottom: var(--spacing-16);
}

.section__title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: var(--text-heading-sm);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--color-hof);
  transition: gap 0.25s var(--ease-out);
}

.section__title:hover {
  gap: 12px;
}

.section__title svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
  transition: transform 0.25s var(--ease-out);
}

.section__title:hover svg {
  transform: translateX(3px);
}

.carousel-nav {
  display: flex;
  gap: 8px;
}

.carousel-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--color-white);
  box-shadow: var(--shadow-subtle);
  transition: background 0.2s var(--ease-soft), transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-soft);
}

.carousel-btn svg {
  width: 12px;
  height: 12px;
  stroke: var(--color-hof);
  fill: none;
  stroke-width: 2.5;
}

.carousel-btn:hover {
  background: var(--color-faint);
  transform: scale(1.06);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.carousel-btn:active {
  transform: scale(0.96);
}

.carousel {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: none;
  scroll-behavior: auto;
  padding: 0 var(--page-pad) 8px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  mask-image: linear-gradient(90deg, transparent 0, #000 2.5%, #000 97.5%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 2.5%, #000 97.5%, transparent 100%);
}

.carousel::-webkit-scrollbar {
  display: none;
}

.section.is-paused .carousel {
  cursor: grab;
}

/* ——— Listing card ——— */
.card {
  flex: 0 0 252px;
  background: transparent;
  transition: transform 0.35s var(--ease-out);
}

.card:hover {
  transform: translateY(-4px);
}

.card__media {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-cards);
  overflow: hidden;
  background: var(--color-deco);
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out);
  will-change: transform;
}

.card:hover .card__media img {
  transform: scale(1.06);
}

.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background: var(--color-white);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.18;
  color: var(--color-hof);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
}

.wish {
  position: absolute;
  top: 4px;
  right: 4px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
}

.wish svg {
  width: 24px;
  height: 24px;
  stroke: #fff;
  stroke-width: 2;
  fill: rgba(0, 0, 0, 0.35);
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.35));
  transition: fill 0.2s var(--ease-soft), transform 0.25s var(--ease-out);
}

.wish.is-active svg {
  fill: var(--color-rausch);
  stroke: var(--color-white);
}

.wish:hover svg {
  transform: scale(1.1);
}

.wish.is-pop svg {
  animation: heartPop 0.45s var(--ease-out);
}

@keyframes heartPop {
  0% { transform: scale(1); }
  40% { transform: scale(1.35); }
  100% { transform: scale(1); }
}

.card__body {
  padding-top: 12px;
}

.card__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.card__title {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.29;
  color: var(--color-hof);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card__rating {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 400;
  color: var(--color-hof);
}

.card__rating svg {
  width: 12px;
  height: 12px;
  fill: var(--color-hof);
}

.card__meta,
.card__price {
  margin: 2px 0 0;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.29;
  color: var(--color-foggy);
}

.card__price {
  color: var(--color-hof);
}

.card__price strong {
  font-weight: 600;
}

/* ——— Footer ——— */
.footer {
  background: var(--color-faint);
  border-top: 1px solid var(--color-bebe);
  padding: 48px var(--page-pad) 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px 48px;
  max-width: 1440px;
  margin: 0 auto;
  padding-bottom: 40px;
}

.footer__col h3 {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-hof);
}

.footer__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__col a {
  font-size: 14px;
  font-weight: 400;
  color: var(--color-foggy);
  transition: color 0.15s ease;
}

.footer__col a:hover {
  color: var(--color-hof);
}

.footer__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  max-width: 1440px;
  margin: 0 auto;
  padding: 24px 0;
  border-top: 1px solid var(--color-bebe);
  font-size: 14px;
  color: var(--color-hof);
}

.footer__legal {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.footer__legal a:hover {
  text-decoration: underline;
}

.footer__meta {
  display: flex;
  align-items: center;
  gap: 20px;
}

.locale-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
}

.locale-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
}

.social {
  display: flex;
  gap: 12px;
}

.social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
}

.social svg {
  width: 18px;
  height: 18px;
  fill: var(--color-hof);
}

/* ——— Responsive ——— */
@media (max-width: 980px) {
  :root {
    --page-pad: 24px;
  }

  .topnav__inner {
    grid-template-columns: auto 1fr auto;
  }

  .topnav__tabs .pill-tab span {
    display: none;
  }

  .host-link {
    display: none;
  }

  .search-bar {
    grid-template-columns: 1fr;
    border-radius: 24px;
    padding: 8px;
    gap: 0;
  }

  .search-field + .search-field::before {
    display: none;
  }

  .search-submit {
    width: 100%;
    height: 48px;
    border-radius: 24px;
    margin: 4px 0 0;
  }

  .card {
    flex-basis: 220px;
  }

  .footer__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .topnav {
    height: 64px;
  }

  .topnav__logo {
    width: 80px;
    height: 26px;
  }

  .pill-tab {
    min-width: 48px;
    padding: 8px;
  }

  .section__title {
    font-size: 18px;
  }

  .carousel {
    mask-image: none;
    -webkit-mask-image: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  body,
  .reveal,
  .search-bar,
  .card,
  .card__media img,
  .wish svg,
  .topnav,
  .section__title,
  .carousel-btn,
  .search-submit {
    transition: none !important;
    animation: none !important;
  }

  .reveal,
  body {
    opacity: 1;
    transform: none;
  }

  .card:hover,
  .card:hover .card__media img {
    transform: none;
  }
}
