/**
 * Matchify Offer Page - Premium Design System
 * Airbnb-level, mobile-first, production-ready
 * Supports: Assets, Events, Projects, Personal Offers
 */

/* FOUNDATIONS */

:root {
  /* Typography */
  --offer-font-primary: 'Inter', 'Sora', 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
  --offer-font-display: 'Sora', 'Inter', 'SF Pro Display', -apple-system, sans-serif;

  /* Colors - Light Mode */
  --offer-bg: #ffffff;
  --offer-surface: #ffffff;
  --offer-surface-elevated: #f8fafc;
  --offer-text-primary: #0f172a;
  --offer-text-secondary: #475569;
  --offer-text-tertiary: #94a3b8;
  --offer-border: #e5e7eb;
  --offer-border-subtle: rgba(148, 163, 184, 0.18);

  /* Accent Colors */
  --offer-accent: #f43f5e;
  --offer-accent-hover: #e11d48;
  --offer-accent-gradient: linear-gradient(135deg, #f43f5e 0%, #ec4899 50%, #f97316 100%);
  --offer-accent-soft: rgba(244, 63, 94, 0.08);

  /* Interactive */
  --offer-interactive: #6366f1;
  --offer-interactive-soft: rgba(99, 102, 241, 0.1);

  /* Shadows */
  --offer-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --offer-shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
  --offer-shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.12);
  --offer-shadow-xl: 0 24px 64px rgba(15, 23, 42, 0.16);

  /* Radii */
  --offer-radius-sm: 8px;
  --offer-radius-md: 12px;
  --offer-radius-lg: 16px;
  --offer-radius-xl: 24px;
  --offer-radius-full: 9999px;

  /* Spacing */
  --offer-spacing-page: 24px;
  --offer-content-max: 1120px;

  /* Timing */
  --offer-transition-fast: 0.15s ease;
  --offer-transition-normal: 0.25s ease;
  --offer-transition-slow: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* BASE LAYOUT */

.offer-page {
  font-family: var(--offer-font-primary);
  color: var(--offer-text-primary);
  background: var(--offer-bg);
  min-height: 100vh;
  max-width: 100%;
  overflow-x: clip;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Prevent mobile sticky CTA from covering the last content */
html.has-offer-sticky .offer-page {
  padding-bottom: calc(96px + env(safe-area-inset-bottom));
}
@media (min-width: 1181px) {
  html.has-offer-sticky .offer-page {
    padding-bottom: 0;
  }
}

.offer-container {
  max-width: var(--offer-content-max);
  margin: 0 auto;
  padding: 0 var(--offer-spacing-page);
  min-width: 0;
  overflow-x: clip;
}

/* HERO SECTION - MOBILE FIRST */

.offer-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  max-height: 300px;
  border-radius: var(--offer-radius-xl);
  overflow: hidden;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  margin-bottom: 22px;
}

.offer-hero__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.offer-hero__media img,
.offer-hero__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Swipeable carousel (Airbnb-style) */
.offer-hero__carousel {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.offer-hero__carousel::-webkit-scrollbar {
  display: none;
}

.offer-hero__slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  position: relative;
}

.offer-hero__slide img,
.offer-hero__slide video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Subtle zoom on load */
.offer-hero__media img {
  animation: offerHeroZoom 20s ease-out infinite alternate;
}

/* No zoom animation for swipeable carousels (reduces jank and matches iOS apps) */
.offer-hero__carousel img {
  animation: none !important;
}

@keyframes offerHeroZoom {
  0% {
    transform: scale(1);
  }

  100% {
    transform: scale(1.05);
  }
}

/* Gallery Button */
.offer-hero__gallery-btn {
  position: absolute;
  bottom: 16px;
  right: 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--offer-text-primary);
  border: none;
  border-radius: var(--offer-radius-md);
  font-family: var(--offer-font-primary);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  cursor: pointer;
  backdrop-filter: blur(8px);
  box-shadow: var(--offer-shadow-lg);
  transition: all var(--offer-transition-fast);
  z-index: 10;
}

.offer-hero__gallery-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--offer-shadow-xl);
}

.offer-hero__gallery-btn .material-icons {
  font-size: 18px;
}

.offer-hero__owner-action {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 12;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(15, 23, 42, 0.78);
  color: #ffffff;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.24);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.offer-hero__owner-action:hover {
  transform: translateY(-1px);
  background: rgba(15, 23, 42, 0.9);
  box-shadow: 0 22px 46px rgba(15, 23, 42, 0.3);
}

.offer-hero__owner-action .material-icons {
  font-size: 18px;
}

/* Video Play Overlay */
.offer-hero__play {
  position: absolute;
  left: 62px;
  bottom: 14px;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 21;
}

.offer-hero__play-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  border: 2px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  cursor: pointer;
  transition: all var(--offer-transition-fast);
  backdrop-filter: blur(4px);
}

.offer-hero__play-btn:hover {
  background: rgba(0, 0, 0, 0.7);
  transform: scale(1.06);
}

.offer-hero__play-btn .material-icons {
  font-size: 22px;
  margin-left: 2px;
  /* Optical centering for play icon */
}

/* Carousel Dots - Inside Hero */
.offer-hero__dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10;
}

.offer-hero__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all var(--offer-transition-fast);
}

.offer-hero__dot[data-active="1"] {
  width: 24px;
  border-radius: 4px;
  background: #fff;
}

/* Mobile chrome (back + share) and photo counter */
.offer-hero__chrome {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  pointer-events: none;
  padding: calc(env(safe-area-inset-top, 0px) + 10px) 12px 10px;
}

.offer-hero__chrome-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.offer-hero__chrome-spacer {
  flex: 1;
}

.offer-hero__chrome-btn {
  pointer-events: auto;
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.92);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--offer-shadow-md);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--offer-text-primary);
  cursor: pointer;
  transition: transform var(--offer-transition-fast), box-shadow var(--offer-transition-fast);
}

.offer-hero__chrome-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--offer-shadow-lg);
}

.offer-hero__chrome-btn .material-icons {
  font-size: 20px;
  line-height: 1;
  display: block;
}

.offer-hero__count {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 20;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(15, 23, 42, 0.45);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--offer-shadow-lg);
  cursor: pointer;
}

.offer-hero__count[data-visible="1"] {
  display: inline-flex;
}

.offer-hero__video-toggle {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 20;
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(15, 23, 42, 0.45);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--offer-shadow-lg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
}

.offer-hero__video-toggle .material-icons {
  font-size: 20px;
}

/* Mobile "gallery strip" thumbnails (Airbnb-like) */
.offer-gallery-strip {
  margin: 10px 0 6px;
}

.offer-gallery-strip__track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 0 6px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.offer-gallery-strip__track::-webkit-scrollbar {
  display: none;
}

.offer-gallery-strip__thumb {
  flex: 0 0 auto;
  width: min(180px, 56vw);
  height: 96px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.04);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.10);
  padding: 0;
  cursor: pointer;
  scroll-snap-align: start;
  position: relative;
  transform: translateZ(0);
}

.offer-gallery-strip__thumb:active {
  transform: scale(0.99);
}

.offer-gallery-strip__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.offer-gallery-strip__video {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.55), rgba(15, 23, 42, 0.20));
  color: #fff;
}

.offer-gallery-strip__video .material-icons {
  font-size: 44px;
  opacity: 0.95;
}

@media (min-width: 1025px) {
  .offer-hero__chrome,
  .offer-hero__count {
    display: none !important;
  }

  .offer-gallery-strip {
    display: none !important;
  }
}

/* OFFER HEADER */

.offer-header {
  padding: 0 0 20px;
}

.offer-header__title {
  font-family: var(--offer-font-display);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--offer-text-primary);
  margin: 0 0 8px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.offer-header__meta {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 4px;
  font-size: 0.9375rem;
  color: var(--offer-text-secondary);
  min-width: 0;
  overflow: hidden;
}

.offer-header__meta > * {
  min-width: 0;
  white-space: nowrap;
}

.offer-header__meta > :not(.offer-header__meta-sep) {
  overflow: hidden;
  text-overflow: ellipsis;
}

.offer-header__supporting {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  min-width: 0;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.offer-header__supporting::-webkit-scrollbar {
  display: none;
}

.offer-header__supporting-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 13px;
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.18);
  color: #334155;
  font-size: 0.84rem;
  font-weight: 850;
  line-height: 1;
  flex: 0 0 auto;
}

.offer-header__supporting-link {
  text-decoration: none;
  color: inherit;
  flex: 0 0 auto;
}

.offer-header__supporting-link:hover {
  border-color: rgba(37, 99, 235, 0.22);
  color: #0f172a;
}

.offer-header__meta-sep {
  color: var(--offer-text-tertiary);
}

.offer-header__meta a {
  color: var(--offer-text-secondary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.offer-header__meta a:hover {
  color: var(--offer-text-primary);
}

/* Project page: keep HIRING badge compact and visually pinned to the title edge */
body[data-page-id="graph_public_project"] .offer-header__title-row {
  position: relative;
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 100%;
  min-width: 0;
}

body[data-page-id="graph_public_project"] .offer-header__pill {
  padding: 6px 11px;
  font-size: 0.74rem;
  line-height: 1;
  letter-spacing: 0.05em;
}

@media (min-width: 960px) {
  body[data-page-id="graph_public_project"] .offer-header__title-row {
    padding-right: 88px;
  }
  body[data-page-id="graph_public_project"] .offer-header__pill--hiring {
    position: absolute;
    top: 3px;
    right: 0;
  }
}

/* Specs Row */
.offer-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  padding: 12px 0;
  font-size: 0.9375rem;
  color: var(--offer-text-secondary);
  border-bottom: 1px solid var(--offer-border);
}

.offer-specs__item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.offer-specs__sep {
  color: var(--offer-text-tertiary);
}

/* OFFER GHOST ENTRY */

.offer-public-tabs {
  display: grid;
  gap: 14px;
  margin: 18px 0 8px;
}

.offer-public-tabs__bar {
  position: relative;
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

.offer-public-tabs__tab {
  appearance: none;
  border: 0;
  border-radius: 999px;
  padding: 9px 16px;
  background: transparent;
  color: #475569;
  font-weight: 900;
  cursor: pointer;
}

.offer-public-tabs__tab--disabled {
  display: inline-grid;
  place-items: center;
  gap: 2px;
  min-height: 52px;
  padding: 7px 18px 8px;
  line-height: 1.05;
}

.offer-public-tabs__soon {
  color: #7c3aed;
  font-size: 0.62rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.offer-public-tabs__tab[aria-selected="true"] {
  color: #ffffff;
  background: #111827;
}

.offer-public-tabs__tab--disabled,
.offer-public-tabs__tab[disabled] {
  color: #94a3b8;
  cursor: not-allowed;
  opacity: 0.78;
}

.offer-public-feed {
  display: grid;
  gap: 14px;
}

.offer-public-feed__grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(150px, calc((100% - 56px) / 4.75), 204px);
  grid-template-columns: none;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 2px 12px;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.offer-public-feed__card {
  display: grid;
  gap: 8px;
  text-decoration: none;
  color: #0f172a;
  scroll-snap-align: start;
  min-width: 0;
}

.offer-public-feed__thumb {
  display: block;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: 12px;
  background:
    radial-gradient(circle at 34% 18%, rgba(255, 255, 255, 0.24), transparent 32%),
    linear-gradient(150deg, #111827, #4f46e5 54%, #0f172a);
}

.offer-public-feed__thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.offer-public-feed__thumb--fallback img {
  opacity: 0;
}

.offer-public-feed__actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(42px, 1fr));
  gap: 5px;
  min-width: 0;
}

.offer-public-feed__rail-btn {
  min-width: 0;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border-radius: 999px;
  color: #334155;
  background: rgba(248, 250, 252, 0.94);
  border: 1px solid rgba(148, 163, 184, 0.24);
  font-size: clamp(0.58rem, 1.6vw, 0.68rem);
  font-weight: 900;
  line-height: 1;
}

.offer-public-feed__rail-btn .material-icons,
.offer-public-feed__rail-btn i {
  font-size: 15px;
  line-height: 1;
  color: #4f46e5;
}

.offer-public-feed__rail-btn span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  font-variant-numeric: tabular-nums;
}

.offer-public-feed__join-icon {
  font-size: 15px;
  line-height: 1;
  filter: drop-shadow(0 1px 3px rgba(15, 23, 42, 0.18));
}

.offer-public-feed__meta {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.offer-public-feed__meta strong,
.offer-public-feed__meta span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.offer-public-feed__meta strong {
  font-size: 0.9rem;
  font-weight: 900;
}

.offer-public-feed__meta span,
.offer-public-feed__empty {
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 800;
}

.offer-ghost-entry {
  margin-top: 12px;
  width: min(100%, 460px);
}

.offer-ghost-entry__launcher {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(99, 102, 241, 0.28);
  border-radius: 999px;
  background:
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 250, 252, 0.97));
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px 6px 10px;
  color: #0f172a;
  cursor: pointer;
  text-align: left;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.offer-ghost-entry__launcher:hover {
  transform: translateY(-1px);
  border-color: rgba(79, 70, 229, 0.42);
  box-shadow: 0 22px 52px rgba(79, 70, 229, 0.16);
}

.offer-ghost-entry__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.offer-ghost-entry__brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.94), rgba(244, 246, 255, 0.88));
  box-shadow: 0 14px 28px rgba(124, 58, 237, 0.16);
}

.offer-ghost-entry__brand-icon img {
  width: 28px;
  height: 28px;
  display: block;
}

.offer-ghost-entry__brand-copy {
  min-width: 0;
  display: grid;
  gap: 1px;
}

.offer-ghost-entry__brand-copy strong {
  color: #0f172a;
  font-size: 0.84rem;
  font-weight: 900;
  line-height: 1.1;
}

.offer-ghost-entry__brand-copy span {
  color: #64748b;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.2;
}

.offer-ghost-entry__field {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  padding: 0 2px;
}

.offer-ghost-entry__field-placeholder {
  display: block;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #4f46e5;
  font-size: 0.98rem;
  font-weight: 500;
}

.offer-ghost-entry__open {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  padding: 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(241, 245, 249, 0.96));
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: #0f172a;
  font-size: 0;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.offer-ghost-entry__open .material-icons {
  font-size: 16px;
}

/* HOST CARD */

.offer-host {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--offer-border);
}

.offer-host__avatar {
  position: relative;
  flex-shrink: 0;
}

.offer-host__avatar img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--offer-border);
}

.offer-host__badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 20px;
  height: 20px;
  background: var(--offer-accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  border: 2px solid #fff;
}

.offer-host__info {
  flex: 1;
  min-width: 0;
}

.offer-host__name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--offer-text-primary);
  margin: 0 0 2px;
}

.offer-host__label {
  font-size: 0.875rem;
  color: var(--offer-text-secondary);
}

/* FEATURES / HIGHLIGHTS */

.offer-features {
  padding: 20px 0;
  border-bottom: 1px solid var(--offer-border);
}

.offer-feature {
  display: flex;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--offer-border-subtle);
}

.offer-feature:first-child {
  padding-top: 0;
}

.offer-feature:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.offer-feature__icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--offer-text-primary);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.offer-feature__icon .material-icons {
  font-size: 24px;
}

.offer-feature__content {
  flex: 1;
  min-width: 0;
}

.offer-feature__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--offer-text-primary);
  margin: 0 0 4px;
}

.offer-feature__desc {
  font-size: 0.875rem;
  color: var(--offer-text-secondary);
  margin: 0;
}

.offer-feature--link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  position: relative;
}

.offer-feature--link:active {
  background: rgba(15, 23, 42, 0.03);
}

.offer-feature__chev {
  margin-left: auto;
  color: var(--offer-text-tertiary);
  font-size: 22px;
  flex-shrink: 0;
}

.offer-time {
  font-variant-numeric: tabular-nums;
}

/* PRICING CARD */

.offer-pricing {
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.offer-pricing__amount {
  display: flex;
  flex-direction: column;
}

.offer-pricing__price {
  font-family: var(--offer-font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--offer-text-primary);
  line-height: 1.2;
}

.offer-pricing__period {
  font-size: 0.875rem;
  color: var(--offer-text-secondary);
  margin-top: 2px;
}

.offer-pricing__note {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8125rem;
  color: var(--offer-text-secondary);
  margin-top: 4px;
}

.offer-pricing__note .material-icons {
  font-size: 16px;
  color: var(--offer-text-tertiary);
}

.offer-pricing > .offer-alert {
  width: 100%;
  flex: 0 0 100%;
  margin-top: 10px;
}

.offer-pricing__chooser {
  width: 100%;
  display: grid;
  gap: 8px;
}

.offer-pricing__label {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--offer-text-tertiary);
}

.offer-pricing__select {
  width: 100%;
  max-width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: #fff;
  color: var(--offer-text-primary);
  font-family: var(--offer-font-primary);
  font-size: 1rem;
  font-weight: 650;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: border-color var(--offer-transition-fast), box-shadow var(--offer-transition-fast),
    transform var(--offer-transition-fast);
}

.offer-pricing__select:focus {
  outline: none;
  border-color: var(--offer-interactive);
  box-shadow: 0 0 0 4px var(--offer-interactive-soft);
}

.offer-pricing__select:active {
  transform: translateY(1px);
}

select.offer-pricing__select {
  appearance: none;
  padding-right: 42px;
  background-image: linear-gradient(45deg, transparent 50%, #64748b 50%),
    linear-gradient(135deg, #64748b 50%, transparent 50%);
  background-position: calc(100% - 18px) calc(50% - 2px), calc(100% - 12px) calc(50% - 2px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.offer-pricing__qty {
  max-width: 180px;
}

input.offer-pricing__select::-webkit-outer-spin-button,
input.offer-pricing__select::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input.offer-pricing__select[type='number'] {
  -moz-appearance: textfield;
}

/* CTA BUTTONS */

.offer-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-sizing: border-box;
  max-width: 100%;
  padding: 14px 32px;
  font-family: var(--offer-font-primary);
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: var(--offer-accent-gradient);
  border: none;
  border-radius: var(--offer-radius-md);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--offer-transition-fast);
  box-shadow: 0 4px 16px rgba(244, 63, 94, 0.3);
  min-width: 160px;
}

.offer-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(244, 63, 94, 0.4);
}

.offer-cta:active {
  transform: translateY(0);
}

.offer-cta--secondary {
  background: var(--offer-surface);
  color: var(--offer-text-primary);
  border: 1px solid var(--offer-border);
  box-shadow: var(--offer-shadow-sm);
}

.offer-cta--secondary:hover {
  background: var(--offer-surface-elevated);
  box-shadow: var(--offer-shadow-md);
}

/* Orange variant for gallery */
.offer-cta--orange {
  background: #f97316;
  box-shadow: 0 4px 16px rgba(249, 115, 22, 0.3);
}

.offer-cta--orange:hover {
  background: #ea580c;
  box-shadow: 0 8px 24px rgba(249, 115, 22, 0.4);
}

/* STICKY CTA BAR (Mobile) */

.offer-sticky {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 16030;
  background: var(--offer-surface);
  border-top: 1px solid var(--offer-border);
  padding: 12px 16px;
  padding-bottom: max(12px, env(safe-area-inset-bottom));
  box-shadow: 0 -4px 24px rgba(15, 23, 42, 0.08);
}

.offer-sticky__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: var(--offer-content-max);
  margin: 0 auto;
}

.offer-sticky__price {
  display: flex;
  flex-direction: column;
}

.offer-sticky__amount {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--offer-text-primary);
}

.offer-sticky__period {
  font-size: 0.8125rem;
  color: var(--offer-text-secondary);
}

.offer-sticky .offer-cta {
  min-width: 120px;
  padding: 12px 24px;
}

/* FULL-SCREEN GALLERY OVERLAY */

.offer-gallery-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  /* Above sidebar and topbar */
  background: #000;
  display: none;
  flex-direction: column;
}

/* Hide sidebar and topbar when gallery is open */
body:has(.offer-gallery-overlay[data-open="1"]) .sidebar,
body:has(.offer-gallery-overlay[data-open="1"]) .topbar {
  display: none !important;
}

/* Always show navigation arrows */
.offer-gallery-overlay .offer-gallery__nav {
  display: flex !important;
}

.offer-gallery-overlay[data-open="1"] {
  display: flex;
}

/* Gallery Header */
.offer-gallery__header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  padding-top: max(16px, env(safe-area-inset-top));
}

.offer-gallery__counter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 64px;
  height: 34px;
  padding: 0 12px;
  border-radius: 9999px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.95);
  font-weight: 800;
  letter-spacing: 0.02em;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.offer-gallery__back {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--offer-transition-fast);
  backdrop-filter: blur(8px);
}

.offer-gallery__back:hover {
  background: rgba(0, 0, 0, 0.6);
}

.offer-gallery__back .material-icons {
  font-family: inherit;
  font-size: 0;
  line-height: 1;
}

.offer-gallery__back .material-icons::before {
  content: "<";
  font-size: 24px;
  font-weight: 900;
}

.offer-gallery__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 30px;
  font-weight: 900;
  line-height: 1;
}

/* Gallery Dots - Top Center */
.offer-gallery__dots {
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
  padding-top: env(safe-area-inset-top);
}

.offer-gallery__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all var(--offer-transition-fast);
}

.offer-gallery__dot[data-active="1"] {
  background: #fff;
  transform: scale(1.2);
}

/* Gallery Stage */
.offer-gallery__stage {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.offer-gallery__media {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.offer-gallery__media img,
.offer-gallery__media video {
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.offer-gallery__thumbs {
  position: absolute;
  left: 0;
  right: 0;
  bottom: max(14px, env(safe-area-inset-bottom));
  padding: 0 14px;
  display: none;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  z-index: 12;
}

.offer-gallery__thumbs::-webkit-scrollbar {
  display: none;
}

.offer-gallery__thumb {
  flex: 0 0 auto;
  width: 74px;
  height: 56px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.10);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35);
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.offer-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.offer-gallery__thumb .material-icons {
  font-size: 34px;
  color: #fff;
  opacity: 0.9;
}

.offer-gallery__thumb[data-active="1"] {
  border-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.5);
}

@media (max-width: 1024px) {
  .offer-gallery__dots {
    display: none;
  }

  .offer-gallery__thumbs {
    display: flex;
  }

  /* Fullscreen lightbox on mobile: prioritize media over info */
  .offer-gallery__info {
    display: none;
  }
}

/* Navigation Arrows - Desktop */
.offer-gallery__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--offer-transition-fast);
  z-index: 10;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(0, 0, 0, 0.2);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
}

.offer-gallery__nav:hover {
  background: rgba(0, 0, 0, 0.65);
  transform: translateY(-50%) scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 0, 0, 0.3);
}

.offer-gallery__nav--prev {
  left: 20px;
}

.offer-gallery__nav--next {
  right: 20px;
}

.offer-gallery__nav .material-icons {
  font-family: inherit;
  font-size: 0;
  line-height: 1;
}

.offer-gallery__nav--prev .material-icons::before {
  content: "<";
  font-size: 34px;
  font-weight: 900;
}

.offer-gallery__nav--next .material-icons::before {
  content: ">";
  font-size: 34px;
  font-weight: 900;
}

.offer-gallery__nav .offer-gallery__icon {
  width: 100%;
  height: 100%;
  font-size: 40px;
  line-height: 48px;
  transform: translateY(-2px);
}

.offer-gallery__nav--prev .offer-gallery__icon {
  transform: translate(-1px, -2px);
}

.offer-gallery__nav--next .offer-gallery__icon {
  transform: translate(1px, -2px);
}

/* Gallery Info Overlay - Bottom */
.offer-gallery__info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 80px 24px 24px;
  padding-bottom: max(24px, env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.85) 100%);
  color: #fff;
  z-index: 5;
}

.offer-gallery__title {
  font-family: var(--offer-font-display);
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 8px;
}

.offer-gallery__meta {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.85);
  margin: 0 0 8px;
}

.offer-gallery__specs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 16px;
}

.offer-gallery__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-family: var(--offer-font-primary);
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background: #f97316;
  border: none;
  border-radius: var(--offer-radius-md);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--offer-transition-fast);
  box-shadow: 0 4px 16px rgba(249, 115, 22, 0.3);
}

.offer-gallery__cta:hover {
  background: #ea580c;
  transform: translateY(-2px);
}

/* CONTENT SECTIONS */

.offer-section {
  padding: 24px 0;
  border-bottom: 1px solid var(--offer-border);
}

.offer-section:last-child {
  border-bottom: none;
}

.offer-section__title {
  font-family: var(--offer-font-display);
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--offer-text-primary);
  margin: 0 0 16px;
}

.offer-section__content {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--offer-text-secondary);
}

.offer-section__content p {
  margin: 0 0 16px;
  white-space: pre-line;
}

.offer-section__content p:last-child {
  margin-bottom: 0;
}

/* Amenities / Tags Grid */
.offer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.offer-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: var(--offer-surface-elevated);
  border: 1px solid var(--offer-border-subtle);
  border-radius: var(--offer-radius-full);
  font-size: 0.875rem;
  color: var(--offer-text-primary);
}

.offer-tag .material-icons {
  font-size: 16px;
  color: var(--offer-text-tertiary);
}

/* ROLES / TICKETS GRID */

.offer-roles {
  display: grid;
  gap: 12px;
}

.offer-role {
  padding: 16px;
  background: var(--offer-surface-elevated);
  border: 1px solid var(--offer-border);
  border-radius: var(--offer-radius-lg);
  transition: all var(--offer-transition-fast);
}

.offer-role:hover {
  border-color: var(--offer-border);
  box-shadow: var(--offer-shadow-md);
}

.offer-role__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.offer-role__name {
  font-size: 1rem;
  font-weight: 600;
  color: var(--offer-text-primary);
  margin: 0;
}

.offer-role__price {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--offer-text-primary);
  white-space: nowrap;
}

.offer-role__desc {
  font-size: 0.875rem;
  color: var(--offer-text-secondary);
  margin: 0 0 8px;
  line-height: 1.5;
}

.offer-role__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-size: 0.8125rem;
  color: var(--offer-text-tertiary);
}

.offer-role__actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}

.offer-select-btn {
  border: 1px solid var(--offer-border);
  background: var(--offer-surface);
  color: var(--offer-text-primary);
  border-radius: var(--offer-radius-md);
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform var(--offer-transition-fast), box-shadow var(--offer-transition-fast), border-color var(--offer-transition-fast);
}

.offer-select-btn:hover:not([disabled]) {
  transform: translateY(-1px);
  box-shadow: var(--offer-shadow-md);
  border-color: rgba(79, 70, 229, 0.35);
}

.offer-select-btn[disabled] {
  opacity: 0.65;
  cursor: not-allowed;
}

.offer-role[data-selected="1"] {
  border-color: rgba(79, 70, 229, 0.45);
  box-shadow: 0 18px 36px rgba(79, 70, 229, 0.16);
}

.offer-role[data-selected="1"] .offer-select-btn {
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  color: #fff;
  border-color: transparent;
}

/* INFO GRID */

.offer-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.offer-info-card {
  padding: 16px;
  background: var(--offer-surface-elevated);
  border: 1px solid var(--offer-border-subtle);
  border-radius: var(--offer-radius-md);
}

.offer-info-card--link {
  display: block;
  text-decoration: none;
  color: inherit;
  position: relative;
  padding-right: 44px;
}

.offer-info-card--link:active {
  background: rgba(15, 23, 42, 0.03);
}

.offer-info-card__chev {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--offer-text-tertiary);
  font-size: 22px;
}

.offer-info-card__label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--offer-text-tertiary);
  margin: 0 0 4px;
}

.offer-info-card__value {
  font-size: 1rem;
  font-weight: 600;
  color: var(--offer-text-primary);
  margin: 0;
}

/* LINKS */

.offer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.offer-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--offer-surface);
  border: 1px solid var(--offer-border);
  border-radius: var(--offer-radius-md);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--offer-text-primary);
  text-decoration: none;
  transition: all var(--offer-transition-fast);
}

.offer-link:hover {
  background: var(--offer-surface-elevated);
  border-color: var(--offer-text-tertiary);
}

.offer-link .material-icons {
  font-size: 20px;
  color: var(--offer-text-secondary);
}

.offer-location-spotlight {
  display: grid;
  gap: 18px;
  align-items: stretch;
}

.offer-location-spotlight__copy {
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 26px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96));
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 20px 52px rgba(15, 23, 42, 0.08);
}

.offer-location-spotlight__eyebrow {
  color: #f43f5e;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.offer-location-spotlight__title {
  margin: 0;
  color: #0f172a;
  font-family: var(--offer-font-display);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.offer-location-spotlight__line {
  margin: 0;
  color: #475569;
  font-size: 15px;
  line-height: 1.55;
}

.offer-location-spotlight__hint {
  margin: 0;
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.offer-location-spotlight__map {
  position: relative;
  min-height: 320px;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 0 20px 52px rgba(15, 23, 42, 0.08);
}

.offer-location-spotlight__map img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.offer-location-spotlight__badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.offer-location-spotlight__badge--place {
  left: 12px;
  top: 12px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.8);
}

.offer-location-spotlight__badge--cta {
  right: 12px;
  bottom: 12px;
  color: #0f172a;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.35);
}

/* DESKTOP RESPONSIVE ADJUSTMENTS */

@media (min-width: 768px) {
  .offer-hero {
    aspect-ratio: 16 / 9;
    max-height: 340px;
  }

  .offer-location-spotlight {
    grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
  }

  .offer-header__title {
    font-size: 2rem;
  }

  .offer-gallery__nav {
    display: flex;
  }

  .offer-gallery__title {
    font-size: 2rem;
  }

  .offer-gallery__info {
    padding: 120px 48px 48px;
  }

  .offer-roles {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }

  .offer-ghost-entry__launcher {
    padding: 9px 12px 9px 14px;
  }
}

@media (min-width: 1024px) {
  .offer-hero {
    max-height: 360px;
  }

  .offer-header__title {
    font-size: 2.25rem;
  }

  .offer-pricing {
    padding: 24px 0;
  }

  .offer-section {
    padding: 32px 0;
  }

  .offer-section__title {
    font-size: 1.5rem;
  }
}

/* Mobile portrait */
@media (max-width: 480px) {
  :root {
    --offer-spacing-page: 16px;
  }

  .offer-hero {
    border-radius: 0;
    margin: 0 -16px 16px;
    width: calc(100% + 32px);
  }

  .offer-header__title {
    font-size: 1.5rem;
  }

  .offer-cta {
    width: 100%;
  }

  .offer-gallery__info {
    padding: 80px 16px 20px;
  }

  .offer-gallery__title {
    font-size: 1.5rem;
  }

  .offer-gallery__cta {
    width: 100%;
    text-align: center;
  }

  .offer-location-spotlight__map {
    min-height: 220px;
  }

  .offer-header__title {
    font-size: 1.35rem;
  }

  .offer-ghost-entry__launcher {
    flex-wrap: wrap;
    border-radius: 24px;
    padding: 14px;
  }

  .offer-ghost-entry__field {
    order: 3;
    flex: 1 1 100%;
    padding: 0;
  }

  .offer-ghost-entry__open {
    margin-left: auto;
  }
}

/* Show sticky CTA on scroll - controlled via JS and mobile breakpoint */
@media (max-width: 1180px) {
  .offer-sticky[data-visible="1"] {
    display: block;
  }
}

/* ANIMATIONS */

@keyframes offerSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes offerFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.offer-page .offer-header {
  animation: offerSlideUp 0.5s ease-out;
}

.offer-page .offer-host {
  animation: offerSlideUp 0.5s ease-out 0.1s both;
}

.offer-page .offer-features {
  animation: offerSlideUp 0.5s ease-out 0.15s both;
}

.offer-page .offer-pricing {
  animation: offerSlideUp 0.5s ease-out 0.2s both;
}

.offer-gallery-overlay[data-open="1"] .offer-gallery__info {
  animation: offerSlideUp 0.4s ease-out 0.1s both;
}

/* Asset booking form (sidebar) responsive fixes */
.asset-booking-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.asset-booking-form__input,
.asset-booking-form select.asset-booking-form__input,
.asset-booking-form textarea.asset-booking-form__input {
  width: 100%;
  box-sizing: border-box;
  max-width: 100%;
}

.asset-booking-form input,
.asset-booking-form select,
.asset-booking-form textarea {
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 768px) {
  .asset-booking-form__row {
    grid-template-columns: 1fr;
  }
}

/* UTILITY CLASSES */

.offer-page .text-muted {
  color: var(--offer-text-secondary);
}

.offer-page .text-small {
  font-size: 0.875rem;
}

.offer-page .mt-4 {
  margin-top: 16px;
}

.offer-page .mt-6 {
  margin-top: 24px;
}

.offer-page .mb-4 {
  margin-bottom: 16px;
}

.offer-page .mb-6 {
  margin-bottom: 24px;
}

.offer-page .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;
}

/* Public page Feed/Ghost composition */
.offer-public-topline {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 100%;
  margin-top: 12px;
}

.offer-public-topline .offer-ghost-entry {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  margin-top: 0;
}

.offer-public-topline .offer-ghost-entry__launcher {
  min-width: 0;
  flex-wrap: nowrap;
  border-radius: 999px;
  padding: 7px 8px 7px 10px;
}

.offer-public-topline .offer-ghost-entry__brand,
.offer-public-topline .offer-ghost-entry__brand-copy {
  min-width: 0;
  flex: 1 1 auto;
}

.offer-public-topline .offer-ghost-entry__field {
  display: none;
}

.offer-ghost-entry__brand-copy strong,
.offer-ghost-entry__brand-copy span {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.offer-ghost-entry__brand-copy span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.offer-ghost-entry__brand-copy span img {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
}

.offer-public-topline .offer-public-tabs__bar {
  flex: 0 0 auto;
  margin: 0;
  box-shadow: none;
}

.offer-public-tabs--inline-tabs {
  margin-top: 14px;
}

.offer-page [data-public-overview-hidden="true"],
.offer-page [data-public-overview-hidden] {
  display: none !important;
}

.offer-public-feed__toolbar {
  display: flex;
  justify-content: flex-end;
}

.offer-public-feed__upload {
  appearance: none;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  color: #ffffff;
  background: #111827;
  font-weight: 900;
  cursor: pointer;
}

.offer-public-feed__upload .material-icons {
  font-size: 18px;
}

.offer-public-feed__grid {
  grid-auto-flow: column;
  grid-auto-columns: clamp(150px, calc((100% - 56px) / 4.75), 204px);
  grid-template-columns: none;
}

.offer-public-feed__card {
  position: relative;
  min-width: 0;
}

.offer-public-feed__thumb {
  position: relative;
  border-radius: 10px;
  background:
    radial-gradient(circle at 34% 18%, rgba(255, 255, 255, 0.24), transparent 32%),
    linear-gradient(150deg, #111827, #4f46e5 54%, #0f172a);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.12);
}

.offer-public-feed__thumb .material-icons {
  position: absolute;
  left: 8px;
  bottom: 8px;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.72);
  font-size: 20px;
}

.offer-public-feed__thumb--fallback img {
  opacity: 0;
}

.offer-public-feed__actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(31px, 1fr));
  gap: 4px;
  min-width: 0;
}

.offer-public-feed__rail-btn {
  min-width: 0;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border-radius: 999px;
  color: #334155;
  background: rgba(248, 250, 252, 0.94);
  border: 1px solid rgba(148, 163, 184, 0.24);
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
}

.offer-public-feed__rail-btn .material-icons,
.offer-public-feed__rail-btn i {
  font-size: 15px;
  line-height: 1;
  color: #4f46e5;
}

.offer-public-feed__rail-btn span:last-child {
  min-width: 0;
  overflow: hidden;
  font-variant-numeric: tabular-nums;
}

.offer-public-feed__join-icon {
  font-size: 15px;
  line-height: 1;
  filter: drop-shadow(0 1px 3px rgba(15, 23, 42, 0.18));
}

.offer-public-feed__empty {
  display: grid;
  gap: 14px;
}

.offer-public-feed__empty[hidden] {
  display: none !important;
}

.offer-public-feed__empty-title {
  color: #64748b;
  font-size: 0.86rem;
  font-weight: 900;
}

.offer-public-feed__empty-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(128px, calc((100% - 60px) / 5.5), 176px);
  grid-template-columns: none;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 2px 12px;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
}

.offer-public-feed__empty-tile {
  aspect-ratio: 9 / 16;
  min-height: 0;
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 10px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: rgba(100, 116, 139, 0.42);
  background:
    linear-gradient(135deg, rgba(248, 250, 252, 0.94), rgba(226, 232, 240, 0.58)),
    repeating-linear-gradient(135deg, rgba(148, 163, 184, 0.12) 0 1px, transparent 1px 14px);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
  scroll-snap-align: start;
}

.offer-public-feed__empty-tile .material-icons {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: rgba(15, 23, 42, 0.36);
  background: rgba(255, 255, 255, 0.62);
}

.offer-public-feed__empty-tile--upload {
  appearance: none;
  border: 1px solid rgba(15, 23, 42, 0.08);
  cursor: pointer;
  color: #ffffff;
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.24), transparent 34%),
    linear-gradient(155deg, #111827, #4f46e5 54%, #0f172a);
}

.offer-public-feed__empty-tile--upload .material-icons {
  color: #111827;
  background: rgba(255, 255, 255, 0.92);
}

.offer-public-feed__empty-tile--upload strong {
  margin-top: 8px;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 950;
}

.offer-public-feed-modal[hidden] {
  display: none !important;
}

.offer-public-feed-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: grid;
  place-items: start center;
  padding: clamp(12px, 3vh, 28px) 18px 18px;
  background: rgba(15, 23, 42, 0.48);
}

.offer-public-feed-modal__panel {
  width: min(100%, 480px);
  max-height: min(86vh, 720px);
  overflow: auto;
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.24);
}

.offer-public-feed-modal__head,
.offer-public-feed-modal__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.offer-public-feed-modal__head strong {
  color: #0f172a;
  font-size: 1.05rem;
  font-weight: 950;
}

.offer-public-feed-modal__head button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0f172a;
  background: #f1f5f9;
  cursor: pointer;
}

.offer-public-feed-modal__file {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 22px;
  border: 1px dashed rgba(100, 116, 139, 0.45);
  border-radius: 14px;
  color: #0f172a;
  background: #f8fafc;
  cursor: pointer;
}

.offer-public-feed-modal__file input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.offer-public-feed-modal__file .material-icons {
  font-size: 28px;
  color: #4f46e5;
}

.offer-public-feed-modal__field {
  display: grid;
  gap: 7px;
}

.offer-public-feed-modal__field span {
  color: #475569;
  font-size: 0.8rem;
  font-weight: 900;
}

.offer-public-feed-modal__field em {
  justify-self: end;
  color: #64748b;
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 800;
}

.offer-public-feed-modal__field input,
.offer-public-feed-modal__field textarea,
.offer-public-feed-tags input {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.36);
  border-radius: 12px;
  padding: 11px 12px;
  color: #0f172a;
  background: #ffffff;
  font: inherit;
  box-sizing: border-box;
}

.offer-public-feed-tags {
  position: relative;
  display: grid;
  gap: 8px;
}

.offer-public-feed-tags__list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  min-height: 0;
}

.offer-public-feed-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 7px 9px;
  border-radius: 999px;
  color: #111827;
  background: #eef2ff;
  border: 1px solid rgba(99, 102, 241, 0.18);
  font-size: 0.82rem;
  font-weight: 900;
}

.offer-public-feed-tag button {
  appearance: none;
  border: 0;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #4338ca;
  background: rgba(255, 255, 255, 0.74);
  cursor: pointer;
  font-weight: 950;
  line-height: 1;
}

.offer-public-feed-tags__menu {
  position: absolute;
  z-index: 3;
  top: 48px;
  left: 0;
  right: 0;
  display: grid;
  max-height: 220px;
  overflow: auto;
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.16);
}

.offer-public-feed-tags__menu[hidden] {
  display: none !important;
}

.offer-public-feed-tags__menu button {
  appearance: none;
  border: 0;
  text-align: left;
  padding: 10px 12px;
  color: #0f172a;
  background: #ffffff;
  cursor: pointer;
  font-weight: 850;
}

.offer-public-feed-tags__menu button:hover {
  background: #f8fafc;
}

.offer-public-feed-modal__link-ok {
  color: #047857 !important;
}

.offer-public-feed-visibility {
  position: relative;
}

.offer-public-feed-visibility > button {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.36);
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 12px;
  color: #0f172a;
  background: #ffffff;
  cursor: pointer;
  font: inherit;
}

.offer-public-feed-visibility > button .material-icons {
  color: #4f46e5;
  font-size: 20px;
}

.offer-public-feed-visibility > button strong {
  font-weight: 900;
}

.offer-public-feed-visibility__menu {
  position: absolute;
  z-index: 4;
  left: 0;
  top: calc(100% + 8px);
  width: min(100%, 260px);
  display: grid;
  gap: 3px;
  padding: 6px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.16);
}

.offer-public-feed-visibility__menu[hidden] {
  display: none !important;
}

.offer-public-feed-visibility__menu button {
  appearance: none;
  border: 0;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  color: #0f172a;
  background: transparent;
  cursor: pointer;
  font-weight: 850;
}

.offer-public-feed-visibility__menu button:hover {
  background: #f8fafc;
}

.offer-public-feed-modal__progress {
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: #e2e8f0;
}

.offer-public-feed-modal__progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #4f46e5;
}

.offer-public-feed-modal__error {
  color: #b91c1c;
  font-size: 0.84rem;
  font-weight: 800;
}

.offer-public-feed-modal__actions button {
  border: 1px solid rgba(148, 163, 184, 0.36);
  border-radius: 999px;
  padding: 10px 16px;
  background: #ffffff;
  color: #0f172a;
  font-weight: 900;
  cursor: pointer;
}

.offer-public-feed-modal__actions button[data-public-feed-publish] {
  color: #ffffff;
  background: #111827;
  border-color: #111827;
}

.offer-public-feed-modal__actions button[disabled] {
  opacity: 0.6;
  cursor: progress;
}

@media (max-width: 560px) {
  .offer-public-topline {
    gap: 8px;
  }

  .offer-public-topline .offer-ghost-entry__brand-icon {
    width: 28px;
    height: 28px;
    border-radius: 10px;
  }

  .offer-public-topline .offer-ghost-entry__brand-icon img {
    width: 24px;
    height: 24px;
  }

  .offer-public-topline .offer-ghost-entry__brand {
    gap: 8px;
  }

  .offer-public-topline .offer-ghost-entry__open {
    display: none;
  }

  .offer-public-tabs__tab {
    padding: 8px 11px;
  }

  .offer-public-feed__grid {
    grid-auto-columns: clamp(118px, calc((100% - 24px) / 2.35), 156px);
    grid-template-columns: none;
  }

  .offer-public-feed__empty-grid {
    grid-auto-columns: clamp(118px, calc((100% - 24px) / 2.35), 156px);
    grid-template-columns: none;
  }
}

/* ROLE SCHEDULE BUTTON */

.offer-role__schedule-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 10px 18px;
  border-radius: 10px;
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
  transition: all 0.2s ease;
}

.offer-role__schedule-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(79, 70, 229, 0.35);
  color: #fff;
}

.offer-role__schedule-btn .material-icons {
  font-size: 18px;
}

/* -------------------------------------------------------------------------- */
/* iOS-QUALITY MOBILE CHROME OVERRIDES (offer pages only)                      */
/* -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  body.mobile-offer-nav[data-page-id="asset_detail"] .mobile-app-topbar,
  body.mobile-offer-nav[data-page-id="offer_public"] .mobile-app-topbar,
  body.mobile-offer-nav[data-page-id="personal_offer_public"] .mobile-app-topbar,
  body.mobile-offer-nav[data-page-id^="graph_public"] .mobile-app-topbar {
    display: none !important;
  }

  body.mobile-offer-nav[data-page-id="asset_detail"] .topbar,
  body.mobile-offer-nav[data-page-id="offer_public"] .topbar,
  body.mobile-offer-nav[data-page-id="personal_offer_public"] .topbar,
  body.mobile-offer-nav[data-page-id^="graph_public"] .topbar {
    display: none !important;
  }

  body.mobile-offer-nav[data-page-id="asset_detail"] nav.bottom-nav[data-mobile-offer-nav],
  body.mobile-offer-nav[data-page-id="offer_public"] nav.bottom-nav[data-mobile-offer-nav],
  body.mobile-offer-nav[data-page-id="personal_offer_public"] nav.bottom-nav[data-mobile-offer-nav],
  body.mobile-offer-nav[data-page-id^="graph_public"] nav.bottom-nav[data-mobile-offer-nav] {
    display: none !important;
  }

  body[data-page-id="asset_detail"] nav.bottom-nav[data-mobile-offer-nav],
  body[data-page-id="offer_public"] nav.bottom-nav[data-mobile-offer-nav],
  body[data-page-id="personal_offer_public"] nav.bottom-nav[data-mobile-offer-nav],
  body[data-page-id^="graph_public"] nav.bottom-nav[data-mobile-offer-nav] {
    display: none !important;
  }

  body.mobile-offer-nav[data-page-id="asset_detail"] .main,
  body.mobile-offer-nav[data-page-id="offer_public"] .main,
  body.mobile-offer-nav[data-page-id="personal_offer_public"] .main,
  body.mobile-offer-nav[data-page-id^="graph_public"] .main {
    margin-top: 0 !important;
    padding: 0 !important;
    background: #fff !important;
  }

  body[data-page-id="asset_detail"],
  body[data-page-id="offer_public"],
  body[data-page-id="personal_offer_public"],
  body[data-page-id^="graph_public"] {
    --offer-mobile-hero-top: calc(env(safe-area-inset-top, 0px) + 14px);
    --offer-mobile-hero-side-left: max(16px, calc(env(safe-area-inset-left, 0px) + 16px));
    --offer-mobile-hero-side-right: max(16px, calc(env(safe-area-inset-right, 0px) + 16px));
    --offer-mobile-hero-btn-size: 42px;
    --offer-mobile-hero-gap: 10px;
    background: #fff !important;
    max-width: 100%;
    overflow-x: hidden;
  }

  body[data-page-id="asset_detail"] .offer-container,
  body[data-page-id="offer_public"] .offer-container,
  body[data-page-id="personal_offer_public"] .offer-container,
  body[data-page-id^="graph_public"] .offer-container {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  body[data-page-id="asset_detail"] .offer-hero,
  body[data-page-id="offer_public"] .offer-hero,
  body[data-page-id="personal_offer_public"] .offer-hero,
  body[data-page-id^="graph_public"] .offer-hero {
    border-radius: 0;
    margin-bottom: 0;
    max-height: none;
    aspect-ratio: auto;
    height: min(32vh, 280px);
  }

  body[data-page-id="asset_detail"] .offer-hero__chrome,
  body[data-page-id="offer_public"] .offer-hero__chrome,
  body[data-page-id="personal_offer_public"] .offer-hero__chrome,
  body[data-page-id^="graph_public"] .offer-hero__chrome {
    left: var(--offer-mobile-hero-side-left);
    right: var(--offer-mobile-hero-side-right);
    padding: var(--offer-mobile-hero-top) 0 10px;
  }

  body[data-page-id="asset_detail"] .offer-hero__chrome-row,
  body[data-page-id="offer_public"] .offer-hero__chrome-row,
  body[data-page-id="personal_offer_public"] .offer-hero__chrome-row,
  body[data-page-id^="graph_public"] .offer-hero__chrome-row {
    gap: var(--offer-mobile-hero-gap);
  }

  body[data-page-id="asset_detail"] .offer-hero__chrome-btn,
  body[data-page-id="offer_public"] .offer-hero__chrome-btn,
  body[data-page-id="personal_offer_public"] .offer-hero__chrome-btn,
  body[data-page-id^="graph_public"] .offer-hero__chrome-btn {
    width: var(--offer-mobile-hero-btn-size);
    min-width: var(--offer-mobile-hero-btn-size);
    height: var(--offer-mobile-hero-btn-size);
  }

  body[data-page-id="asset_detail"] .offer-hero__chrome-btn[data-hero-back],
  body[data-page-id="offer_public"] .offer-hero__chrome-btn[data-hero-back],
  body[data-page-id="personal_offer_public"] .offer-hero__chrome-btn[data-hero-back],
  body[data-page-id^="graph_public"] .offer-hero__chrome-btn[data-hero-back] {
    margin-left: 8px;
  }

  body[data-page-id="asset_detail"] .offer-hero__chrome-btn .material-icons,
  body[data-page-id="offer_public"] .offer-hero__chrome-btn .material-icons,
  body[data-page-id="personal_offer_public"] .offer-hero__chrome-btn .material-icons,
  body[data-page-id^="graph_public"] .offer-hero__chrome-btn .material-icons {
    font-size: 20px;
    margin: 0;
  }

  body[data-page-id="asset_detail"] .offer-hero__chrome-btn[data-hero-share] .material-icons,
  body[data-page-id="offer_public"] .offer-hero__chrome-btn[data-hero-share] .material-icons,
  body[data-page-id="personal_offer_public"] .offer-hero__chrome-btn[data-hero-share] .material-icons,
  body[data-page-id^="graph_public"] .offer-hero__chrome-btn[data-hero-share] .material-icons {
    font-size: 22px;
    transform: translateY(-0.5px);
  }

  /* Match iOS reference: raise dots and move photo counter up */
  body[data-page-id="asset_detail"] .offer-hero__dots,
  body[data-page-id="offer_public"] .offer-hero__dots,
  body[data-page-id="personal_offer_public"] .offer-hero__dots,
  body[data-page-id^="graph_public"] .offer-hero__dots {
    bottom: 54px;
  }

  body[data-page-id="asset_detail"] .offer-hero__count,
  body[data-page-id="offer_public"] .offer-hero__count,
  body[data-page-id="personal_offer_public"] .offer-hero__count,
  body[data-page-id^="graph_public"] .offer-hero__count {
    top: calc(env(safe-area-inset-top, 0px) + 58px);
    bottom: auto;
  }

  /* Mobile UX: swipe in-place; hide the desktop "Open Gallery" button */
  body[data-page-id="asset_detail"] .offer-hero__gallery-btn,
  body[data-page-id="offer_public"] .offer-hero__gallery-btn,
  body[data-page-id="personal_offer_public"] .offer-hero__gallery-btn,
  body[data-page-id^="graph_public"] .offer-hero__gallery-btn {
    display: none !important;
  }

  body[data-page-id="asset_detail"] .offer-hero__owner-action,
  body[data-page-id="offer_public"] .offer-hero__owner-action,
  body[data-page-id="personal_offer_public"] .offer-hero__owner-action,
  body[data-page-id^="graph_public"] .offer-hero__owner-action {
    top: var(--offer-mobile-hero-top);
    right: calc(var(--offer-mobile-hero-side-right) + var(--offer-mobile-hero-btn-size) + var(--offer-mobile-hero-gap));
    width: var(--offer-mobile-hero-btn-size);
    min-width: var(--offer-mobile-hero-btn-size);
    height: var(--offer-mobile-hero-btn-size);
    padding: 0;
    gap: 0;
    justify-content: center;
    border-radius: 999px;
    font-size: 0;
    box-sizing: border-box;
  }

  body[data-page-id="asset_detail"] .offer-hero__owner-action .material-icons,
  body[data-page-id="offer_public"] .offer-hero__owner-action .material-icons,
  body[data-page-id="personal_offer_public"] .offer-hero__owner-action .material-icons,
  body[data-page-id^="graph_public"] .offer-hero__owner-action .material-icons {
    font-size: 20px;
    margin: 0;
    line-height: 1;
    display: block;
  }

  /* Keep readable padding for content while allowing full-bleed hero */
  body[data-page-id="asset_detail"] .offer-header,
  body[data-page-id="asset_detail"] .offer-host,
  body[data-page-id="asset_detail"] .offer-features,
  body[data-page-id="asset_detail"] .offer-links,
  body[data-page-id="asset_detail"] .offer-specs,
  body[data-page-id="asset_detail"] .offer-section,
  body[data-page-id="asset_detail"] .offer-pricing,
  body[data-page-id="asset_detail"] .offer-sticky__inner,
  body[data-page-id="offer_public"] .offer-header,
  body[data-page-id="offer_public"] .offer-host,
  body[data-page-id="offer_public"] .offer-features,
  body[data-page-id="offer_public"] .offer-links,
  body[data-page-id="offer_public"] .offer-specs,
  body[data-page-id="offer_public"] .offer-section,
  body[data-page-id="offer_public"] .offer-pricing,
  body[data-page-id="offer_public"] .offer-sticky__inner,
  body[data-page-id="personal_offer_public"] .offer-header,
  body[data-page-id="personal_offer_public"] .offer-host,
  body[data-page-id="personal_offer_public"] .offer-features,
  body[data-page-id="personal_offer_public"] .offer-links,
  body[data-page-id="personal_offer_public"] .offer-specs,
  body[data-page-id="personal_offer_public"] .offer-section,
  body[data-page-id="personal_offer_public"] .offer-pricing,
  body[data-page-id="personal_offer_public"] .offer-sticky__inner,
  body[data-page-id^="graph_public"] .offer-header,
  body[data-page-id^="graph_public"] .offer-host,
  body[data-page-id^="graph_public"] .offer-features,
  body[data-page-id^="graph_public"] .offer-links,
  body[data-page-id^="graph_public"] .offer-specs,
  body[data-page-id^="graph_public"] .offer-section,
  body[data-page-id^="graph_public"] .offer-pricing,
  body[data-page-id^="graph_public"] .offer-sticky__inner {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  /* Rounded "sheet" transition from hero to content (iOS-style) */
  body[data-page-id="asset_detail"] .offer-header,
  body[data-page-id="offer_public"] .offer-header,
  body[data-page-id="personal_offer_public"] .offer-header,
  body[data-page-id^="graph_public"] .offer-header {
    position: relative;
    z-index: 5;
    background: #fff;
    border-radius: 28px 28px 0 0;
    margin-top: -22px;
    padding-top: 18px;
    box-shadow: 0 -10px 30px rgba(15, 23, 42, 0.06);
  }
}

/* -------------------------------------------------------------------------- */
/* Minimal toast for share/copy fallbacks                                      */
/* -------------------------------------------------------------------------- */

.offer-toast {
  position: fixed;
  left: 50%;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%) translateY(12px);
  opacity: 0;
  padding: 10px 14px;
  border-radius: 9999px;
  background: rgba(15, 23, 42, 0.9);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  z-index: 20010;
  box-shadow: var(--offer-shadow-xl);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.offer-toast[data-open="1"] {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* -------------------------------------------------------------------------- */
/* Form + alert primitives (used by offer_public)                              */
/* -------------------------------------------------------------------------- */

.offer-alert {
  border-radius: var(--offer-radius-md);
  padding: 12px 14px;
  margin: 12px 0 16px;
  border: 1px solid var(--offer-border);
  background: rgba(99, 102, 241, 0.08);
  color: var(--offer-text-primary);
  font-weight: 600;
}

.offer-alert[data-variant="success"] {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.35);
}

.offer-alert[data-variant="danger"] {
  background: rgba(244, 63, 94, 0.12);
  border-color: rgba(244, 63, 94, 0.35);
}

.offer-form {
  display: block;
}

.offer-form__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 14px;
}

.offer-form__grid--2 {
  grid-template-columns: 1fr;
}

.offer-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.offer-field--full {
  grid-column: 1 / -1;
}

.offer-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--offer-text-secondary);
}

.offer-subtitle {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--offer-text-primary);
  margin-bottom: 6px;
}

.offer-input,
.offer-textarea {
  width: 100%;
  box-sizing: border-box;
  border-radius: 12px;
  border: 1px solid var(--offer-border);
  background: var(--offer-surface);
  padding: 12px 12px;
  font-size: 1rem;
  color: var(--offer-text-primary);
  outline: none;
  transition: box-shadow var(--offer-transition-fast), border-color var(--offer-transition-fast);
}

.offer-textarea {
  resize: vertical;
  min-height: 88px;
}

.offer-input:focus,
.offer-textarea:focus {
  border-color: rgba(99, 102, 241, 0.55);
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.14);
}

@media (min-width: 640px) {
  .offer-form__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .offer-form__grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
