/* BORROWLY Global Styles */
:root {
  --color-bg: #f5f5f7;
  --color-surface: #ffffff;
  --color-surface-muted: #f1f5f9;
  --color-primary: #0f766e; /* teal */
  --color-primary-soft: #14b8a6;
  --color-primary-dark: #115e59;
  --color-accent: #2563eb; /* blue */
  --color-text: #0f172a;
  --color-text-muted: #6b7280;
  --shadow-soft: 0 18px 40px rgba(15, 23, 42, 0.08);
  --radius-card: 18px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
}

body {
  min-height: 100vh;
}

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

a:hover {
  text-decoration: underline;
}

.layout-root {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

header.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: rgba(245, 245, 247, 0.88);
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.brand-logo {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: radial-gradient(circle at 20% 20%, #a5f3fc, #22c55e 35%, #0f766e 70%, #0f172a 100%);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.25);
}

.brand-text {
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 0.88rem;
}

.nav-links {
  display: none;
  gap: 1.25rem;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.nav-link {
  padding: 0.35rem 0;
  border-bottom: 1px solid transparent;
}

.nav-link[data-active="true"] {
  color: var(--color-text);
  border-bottom-color: var(--color-text);
}

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

.button-primary {
  border-radius: 999px;
  padding: 0.5rem 1.2rem;
  border: none;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 12px 25px rgba(37, 99, 235, 0.25);
  transition: background-color 150ms ease-out, box-shadow 150ms ease-out, transform 80ms ease-out;
}

.button-primary:hover {
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.3);
  transform: translateY(-1px);
}

.button-primary:active {
  transform: translateY(0);
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.25);
}

.button-ghost {
  border-radius: 999px;
  padding: 0.45rem 1rem;
  border: 1px solid rgba(148, 163, 184, 0.8);
  background: rgba(255, 255, 255, 0.9);
  font-size: 0.85rem;
  color: var(--color-text);
  cursor: pointer;
  transition: background-color 150ms ease-out, border-color 150ms ease-out;
}

.button-ghost:hover {
  background: white;
  border-color: var(--color-primary-soft);
}

.chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.18rem 0.6rem;
  font-size: 0.72rem;
  background-color: var(--color-surface-muted);
  color: var(--color-text-muted);
}

.badge-pill {
  display: inline-flex;
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  font-size: 0.7rem;
  background-color: rgba(34, 197, 94, 0.08);
  color: #047857;
}

.hero {
  padding-top: 2rem;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
}

.hero-copy-eyebrow {
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 0.8rem;
}

.hero-title {
  font-size: clamp(2.35rem, 6vw, 3.6rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-bottom: 1.1rem;
}

.hero-subtitle {
  font-size: 0.98rem;
  color: var(--color-text-muted);
  max-width: 34rem;
  margin-bottom: 1.4rem;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.hero-announcement {

.host-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.host-card {
  display: flex;
  gap: 0.85rem;
  padding: 0.9rem 1rem;
.product-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1.1rem 1.1rem 0 0;
}

  border-radius: 1.2rem;
  background: var(--color-surface);
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.host-avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: linear-gradient(135deg, #0ea5e9, #22c55e);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f9fafb;
  font-weight: 600;
  font-size: 0.9rem;
}

.host-body {
  flex: 1;
}

.host-name-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.15rem;
}

.host-name {
  margin: 0;
  font-size: 0.95rem;
}

.host-badge {
  font-size: 0.7rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.08);
  color: #166534;
}

.host-meta {
  margin: 0;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.host-offerings {
  margin: 0.25rem 0 0;
  font-size: 0.8rem;
}


  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.08);
  color: var(--color-primary-dark);
  font-size: 0.8rem;
}

.hero-panel {
  border-radius: 1.6rem;
  padding: 1.5rem 1.4rem;
  background: radial-gradient(circle at top left, #e0f2fe, #ecfeff 36%, #f5f5f7 100%);
  box-shadow: var(--shadow-soft);
}

.hero-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.hero-panel-title {
  font-size: 0.88rem;
  font-weight: 600;
}

.hero-search-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.form-field-label {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-bottom: 0.25rem;
}

.input-base,
.select-base {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border-radius: 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.7);
  font-size: 0.85rem;
  background-color: rgba(255, 255, 255, 0.96);
  outline: none;
  transition: border-color 150ms ease-out, box-shadow 150ms ease-out, background-color 150ms ease-out;
}

.input-base:focus,
.select-base:focus {
  border-color: var(--color-primary-soft);
  box-shadow: 0 0 0 1px rgba(45, 212, 191, 0.65);
  background-color: #ffffff;
}

.hero-search-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

.hero-meta strong {
  color: var(--color-text);
}

.hero-live-listings {
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.75rem;
}

.section {
  margin-top: 3rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 1.5rem;
}

.section-title {
  font-size: 1.2rem;
  font-weight: 600;
}

.section-subtitle {
  font-size: 0.88rem;
  color: var(--color-text-muted);
}

.category-row {
  display: flex;
  overflow-x: auto;
  gap: 1rem;
  padding-bottom: 0.4rem;
}

.category-card {
  min-width: 150px;
  border-radius: var(--radius-card);
  padding: 1rem;
  background: var(--color-surface);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
  cursor: pointer;
  border: 1px solid rgba(148, 163, 184, 0.25);
  transition: box-shadow 150ms ease-out, border-color 150ms ease-out, transform 80ms ease-out;
}

.category-card:hover {
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  border-color: rgba(37, 99, 235, 0.45);
  transform: translateY(-1px);
}

.category-card-title {
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.category-card-meta {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.category-tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.category-tile {
  position: relative;
  border: none;
  border-radius: 1.4rem;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  background: linear-gradient(135deg, #0ea5e9, #10b981);
  min-height: 160px;
  text-align: left;
}

.category-tile-overlay {
  position: absolute;
  inset: 0;
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #f9fafb;
  background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.1), rgba(15, 23, 42, 0.55));
}

.category-tile-overlay h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
}

.category-tile-overlay p {
  margin: 0;
  font-size: 0.8rem;
}

.homepage-popular-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.6fr);
  gap: 1.5rem;
}

.homepage-map,
.browse-map {
  border-radius: 1.4rem;
  background: #0f172a;
  padding: 0.75rem;
}

.homepage-map-inner,
.browse-map-inner {
  border-radius: 1.1rem;
  background: radial-gradient(circle at top, #1f2937, #020617);
  position: relative;
  min-height: 200px;
}

.homepage-map-label {
  position: absolute;
  left: 0.9rem;
  bottom: 0.9rem;
  font-size: 0.8rem;
  color: #e5e7eb;
}

.homepage-map-pins {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.homepage-map-pins span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.15);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.product-card {
  border-radius: 1.2rem;
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.product-card-image {
  position: relative;
}

.product-card-image-inner {
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
  background: linear-gradient(135deg, #e0f2fe, #bae6fd);
  height: 140px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 0.75rem;
  font-size: 0.75rem;
  color: #0f172a;
}

.product-card-badges {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  display: flex;
  gap: 0.35rem;
}

.product-card-save {
  position: absolute;
  top: 0.5rem;
  right: 0.6rem;
  border-radius: 999px;
  border: none;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.65);
  color: #e5e7eb;
  font-size: 0.8rem;
  cursor: pointer;
}

.product-card-save.is-saved {
  background: #f97316;
}

.product-card-body {
  padding: 0.75rem 0.85rem 0.8rem;
}

.product-card-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.25rem;
}

.product-card-title {
  font-size: 0.95rem;
  margin: 0;
}

.product-card-meta {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  display: flex;
  gap: 0.35rem;
}

.bundle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.bundle-card {
  border-radius: 1.5rem;
  overflow: hidden;
  min-height: 180px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.bundle-card[data-testid="bundle-surf-weekend"] {
  background-image: linear-gradient(135deg, #0ea5e9, #1d4ed8);
}

.bundle-card[data-testid="bundle-family-beach"] {
  background-image: linear-gradient(135deg, #22c55e, #16a34a);
}

.bundle-card[data-testid="bundle-city-stroll"] {
  background-image: linear-gradient(135deg, #f97316, #ea580c);
}

.bundle-card-overlay {
  position: absolute;
  inset: 0;
  padding: 1.1rem 1.2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: #f9fafb;
  background: radial-gradient(circle at top left, rgba(15, 23, 42, 0.25), rgba(15, 23, 42, 0.7));
}

.bundle-card-overlay h3 {
  margin: 0 0 0.3rem;
  font-size: 1rem;
}

.bundle-card-overlay p {
  margin: 0 0 0.5rem;
  font-size: 0.84rem;
}

.horizontal-scroll {
  display: flex;
  overflow-x: auto;
  gap: 0.9rem;
  padding-bottom: 0.25rem;
}

.horizontal-scroll .product-card {
  min-width: 210px;
}

.how-it-works-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.step-card {
  border-radius: var(--radius-card);
  padding: 1.1rem 1.1rem 1rem;
  background: var(--color-surface);
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.step-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.08);
  color: var(--color-accent);
  font-size: 0.8rem;
  margin-bottom: 0.6rem;
}

.step-title {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.step-body {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.faq-item {
  border-radius: var(--radius-card);
  background-color: var(--color-surface);
  border: 1px solid rgba(148, 163, 184, 0.25);
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.faq-header {
  padding: 0.9rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-question {
  font-size: 0.92rem;
  font-weight: 500;
}

.faq-toggle-icon {
  font-size: 1.1rem;
  color: var(--color-text-muted);
}

.faq-body {
  padding: 0 1rem 0.9rem;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  display: none;
}

.faq-item[data-open="true"] .faq-body {
  display: block;
}

.site-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  background-color: rgba(15, 23, 42, 0.98);
  color: #e5e7eb;
  padding: 1.75rem 1.25rem 1.5rem;
  margin-top: auto;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.8rem;
}

.footer-links {
  display: flex;
  gap: 1rem;
}

.browse-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr);
  gap: 1.5rem;
  align-items: flex-start;
}

.browse-grid {
  width: 100%;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-panel {
    order: -1;
  }

  .hero-search-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .category-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .homepage-popular-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bundle-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .how-it-works-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .browse-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}
