/* ═══════════════════════════════════════════════════════════════
   traevel.com — Community Platform Styles (VISUAL PERFECTION)
   Premium travel-magazine aesthetic. Extends design-system.css.
   Condé Nast Traveler / AFAR inspired. NOT Reddit.
   ═══════════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════════════════
   1. COMMUNITY HERO — Editorial Statement
   ═══════════════════════════════════════════════════════════════ */
.hero--community {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(232, 93, 58, 0.15) 0%, transparent 50%),
    linear-gradient(135deg, var(--bg-dark) 0%, #242b3d 40%, var(--primary-dark) 100%);
  isolation: isolate;
}

/* Subtle texture overlay */
.hero--community::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 80% 70%, rgba(20, 117, 110, 0.25) 0%, transparent 40%),
    radial-gradient(circle at 20% 90%, rgba(232, 93, 58, 0.08) 0%, transparent 35%);
  z-index: 0;
}

/* Grain texture via SVG noise */
.hero--community::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.03;
  z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}

.hero--community .hero__inner {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: var(--sp-9) var(--sp-5);
  max-width: 800px;
}

.hero--community .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-1) var(--sp-3);
  background: rgba(255, 122, 85, 0.15);
  border: 1px solid rgba(255, 122, 85, 0.3);
  border-radius: var(--radius-full);
  color: var(--accent-light);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--sp-4);
  animation: fadeInDown 0.6s var(--ease-out) both;
}

.hero--community .hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5.5vw, 4rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text-on-dark);
  margin: var(--sp-3) 0;
  animation: fadeInUp 0.8s var(--ease-out) 0.1s both;
}

.hero--community .hero__title em {
  font-style: italic;
  font-weight: 500;
  color: var(--accent-light);
  position: relative;
}

.hero--community .hero__title em::after {
  content: '';
  position: absolute;
  bottom: 0.1em;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-light));
  border-radius: var(--radius-full);
  opacity: 0.4;
}

.hero--community .hero__sub {
  color: var(--text-on-dark-muted);
  font-size: clamp(1rem, 2vw, 1.2rem);
  max-width: 560px;
  margin: 0 auto var(--sp-6);
  line-height: 1.6;
  animation: fadeInUp 0.8s var(--ease-out) 0.2s both;
}

/* Hero stats — editorial number cards */
.hero--community .hero__stats {
  display: flex;
  gap: clamp(var(--sp-4), 4vw, var(--sp-7));
  justify-content: center;
  flex-wrap: wrap;
  margin-top: var(--sp-6);
  animation: fadeInUp 0.8s var(--ease-out) 0.3s both;
}

.hero--community .hero__stat {
  text-align: center;
  position: relative;
}

.hero--community .hero__stat:not(:last-child)::after {
  content: '';
  position: absolute;
  right: calc(-1 * clamp(var(--sp-2), 2vw, var(--sp-3)));
  top: 20%;
  bottom: 20%;
  width: 1px;
  background: rgba(255, 255, 255, 0.12);
}

.hero--community .hero__stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 700;
  color: var(--text-on-dark);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.hero--community .hero__stat-label {
  display: block;
  color: var(--text-on-dark-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: var(--sp-1);
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}


/* ═══════════════════════════════════════════════════════════════
   2. LIVE TICKER — Premium Breaking-News Style
   ═══════════════════════════════════════════════════════════════ */
.community-ticker-wrap {
  background: var(--bg-dark);
  position: relative;
  z-index: 40;
}

.community-ticker {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--sp-2) var(--sp-5);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  color: var(--text-on-dark);
  font-size: 0.9rem;
  overflow: hidden;
  white-space: nowrap;
}

.community-ticker__label {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  flex-shrink: 0;
  font-weight: 700;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-light);
  padding-right: var(--sp-3);
  border-right: 1px solid var(--border-dark);
}

.community-ticker__pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
  animation: livePulse 2s infinite;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
}

@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.community-ticker__text {
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity var(--dur) var(--ease);
  flex: 1;
  color: var(--text-on-dark-muted);
  font-weight: 500;
}

.community-ticker__text strong {
  color: var(--text-on-dark);
  font-weight: 600;
}

@media (max-width: 768px) {
  .community-ticker {
    font-size: 0.8rem;
    padding: var(--sp-2) var(--sp-3);
    gap: var(--sp-2);
  }
  .community-ticker__label {
    font-size: 0.8125rem;
  }
}


/* ═══════════════════════════════════════════════════════════════
   3. FEED HEADER + SORT TABS — Pill Toggle Group
   ═══════════════════════════════════════════════════════════════ */
.community-feed {
  max-width: var(--container);
  margin: 0 auto;
  padding: var(--sp-7) var(--sp-5) var(--sp-8);
}

.community-feed__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: var(--sp-6);
  flex-wrap: wrap;
  gap: var(--sp-4);
}

.community-feed__title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 600;
  color: var(--text);
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.community-feed__subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: var(--sp-2);
  max-width: 460px;
  line-height: 1.5;
}

/* Sort Tabs — Premium segmented control */
.sort-tabs {
  display: inline-flex;
  gap: 2px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 4px;
  box-shadow: var(--shadow-sm);
}

.sort-tab {
  padding: var(--sp-2) var(--sp-4);
  min-height: 40px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--dur) var(--ease);
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  white-space: nowrap;
}

.sort-tab:hover:not(.sort-tab--active) {
  color: var(--text);
}

.sort-tab--active {
  background: var(--primary);
  color: var(--text-on-dark);
  box-shadow: 0 2px 8px rgba(13, 92, 99, 0.3);
}

.sort-tab--active:active {
  transform: scale(0.97);
}


/* ═══════════════════════════════════════════════════════════════
   4. DEAL GRID
   ═══════════════════════════════════════════════════════════════ */
.deal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: var(--sp-5);
}

@media (max-width: 1024px) {
  .deal-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
}

@media (max-width: 640px) {
  .deal-grid { grid-template-columns: 1fr; gap: var(--sp-4); }
}


/* ═══════════════════════════════════════════════════════════════
   5. DEAL CARD — Magazine Card (Airbnb/Booking premium)
   ═══════════════════════════════════════════════════════════════ */
.deal-tile {
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
  display: flex;
  flex-direction: column;
  position: relative;
  border: 1px solid var(--border);
}

.deal-tile:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(13, 92, 99, 0.15);
}

.deal-tile:focus-within {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Heat glow on hot cards */
.deal-tile--hot {
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(232, 93, 58, 0.15);
}

.deal-tile--hot:hover {
  box-shadow: var(--shadow-xl), 0 0 24px rgba(232, 93, 58, 0.18);
}

/* ─── Card Media ─── */
.deal-tile__media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--bg-soft);
  overflow: hidden;
}

.deal-tile__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform var(--dur-slow) var(--ease-out);
}

.deal-tile:hover .deal-tile__media img {
  transform: scale(1.06);
}

/* Gradient overlay at bottom for readability */
.deal-tile__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 31, 46, 0.5) 0%, transparent 35%);
  pointer-events: none;
}

/* ─── Heat Badge ─── */
.deal-tile__heat-badge {
  position: absolute;
  top: var(--sp-3);
  right: var(--sp-3);
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  color: white;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  letter-spacing: 0.02em;
}

.deal-tile__heat-badge--hot {
  animation: heatPulse 2s ease-in-out infinite;
}

@keyframes heatPulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(0,0,0,0.2), 0 0 0 0 rgba(232, 93, 58, 0.5); }
  50% { box-shadow: 0 4px 16px rgba(0,0,0,0.2), 0 0 0 8px rgba(232, 93, 58, 0); }
}

/* ─── Star Rating Overlay ─── */
.deal-tile__rating {
  position: absolute;
  bottom: var(--sp-3);
  left: var(--sp-3);
  background: rgba(26, 31, 46, 0.75);
  color: #fbbf24;
  padding: 4px var(--sp-2);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 3;
  letter-spacing: 1.5px;
}

/* ─── Card Body ─── */
.deal-tile__body {
  padding: var(--sp-5);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.deal-tile__destination {
  font-size: 0.8125rem;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  font-family: var(--font-body);
}

.deal-tile__title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  margin: 0;
  letter-spacing: -0.01em;
}

.deal-tile__meta {
  display: flex;
  gap: var(--sp-3);
  font-size: 0.875rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  margin-top: var(--sp-1);
}

.deal-tile__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ─── Price Row ─── */
.deal-tile__price-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: auto;
  padding-top: var(--sp-4);
}

.deal-tile__price {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  letter-spacing: -0.02em;
}

.deal-tile__price-unit {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-weight: 500;
  display: block;
  margin-top: 2px;
}

.deal-tile__cta {
  background: var(--primary);
  color: var(--text-on-dark);
  padding: var(--sp-3) var(--sp-4);
  min-height: 44px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-1);
  box-shadow: 0 2px 8px rgba(13, 92, 99, 0.25);
}

.deal-tile__cta:hover {
  background: var(--primary-light);
  color: var(--text-on-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(13, 92, 99, 0.35);
}

.deal-tile__cta:active {
  transform: translateY(0);
}

.deal-tile__cta:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ─── Community Stats Bar ─── */
.deal-tile__community {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-3) var(--sp-5);
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  gap: var(--sp-3);
}

.deal-tile__stats {
  display: flex;
  gap: var(--sp-3);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.deal-tile__stat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
}


/* ═══════════════════════════════════════════════════════════════
   6. VOTE WIDGET — Animated Pills
   ═══════════════════════════════════════════════════════════════ */
.community-vote {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 3px;
  box-shadow: var(--shadow-sm);
}

.community-vote--comment {
  background: var(--bg-soft);
  border: none;
  box-shadow: none;
}

.vote-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: var(--radius-full);
  transition: all var(--dur-fast) var(--ease);
  position: relative;
  font-size: 1.1rem;
  line-height: 1;
}

.vote-btn svg {
  width: 18px;
  height: 18px;
  transition: transform var(--dur-fast) var(--ease);
}

.vote-btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.vote-btn:hover:not(:disabled) {
  background: var(--bg-soft);
  color: var(--primary);
}

.vote-btn:hover:not(:disabled) svg {
  transform: scale(1.2);
}

@media (max-width: 768px) {
  .vote-btn { width: 44px; height: 44px; }
  .vote-btn svg { width: 20px; height: 20px; }
}

.vote-btn--active-up {
  color: var(--text-on-dark);
  background: var(--primary);
  box-shadow: 0 0 16px rgba(13, 92, 99, 0.4);
  animation: voteBounce 0.4s var(--ease-out);
}

.vote-btn--active-up svg {
  transform: scale(1.15);
}

.vote-btn--active-down {
  color: white;
  background: var(--accent);
  box-shadow: 0 0 16px rgba(232, 93, 58, 0.4);
  animation: voteBounce 0.4s var(--ease-out);
}

@keyframes voteBounce {
  0% { transform: scale(1); }
  40% { transform: scale(1.25); }
  100% { transform: scale(1); }
}

.vote-btn--loading {
  opacity: 0.5;
  pointer-events: none;
}

.vote-btn--loading::after {
  content: '';
  position: absolute;
  inset: 6px;
  border: 2px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.vote-score {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text);
  min-width: 36px;
  text-align: center;
  font-family: var(--font-body);
  font-variant-numeric: tabular-nums;
  padding: 0 var(--sp-1);
}

.vote-score--positive { color: var(--primary); }
.vote-score--negative { color: var(--accent); }


/* ═══════════════════════════════════════════════════════════════
   7. HEAT BADGE (inline)
   ═══════════════════════════════════════════════════════════════ */
.heat-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px var(--sp-2);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 700;
  color: white;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

/* ═══════════════════════════════════════════════════════════════
   8. LOADING SKELETON — Shimmer
   ═══════════════════════════════════════════════════════════════ */
.deal-skeleton {
  background: var(--bg-elevated);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.deal-skeleton__media {
  aspect-ratio: 16 / 10;
  background: var(--bg-soft);
  position: relative;
  overflow: hidden;
}

.deal-skeleton__media::after,
.deal-skeleton__line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.6) 50%, transparent 100%);
  animation: shimmer 1.6s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.deal-skeleton__body {
  padding: var(--sp-5);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.deal-skeleton__line {
  height: 12px;
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
  position: relative;
  overflow: hidden;
}

.deal-skeleton__line--sm { width: 35%; height: 10px; }
.deal-skeleton__line--md { width: 65%; height: 12px; }
.deal-skeleton__line--lg { width: 85%; height: 16px; }

.deal-skeleton__footer {
  display: flex;
  justify-content: space-between;
  padding: var(--sp-3) var(--sp-5);
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
}

.deal-skeleton__pill {
  width: 70px;
  height: 28px;
  background: linear-gradient(90deg, var(--bg-soft) 0%, var(--border) 50%, var(--bg-soft) 100%);
  background-size: 200% 100%;
  border-radius: var(--radius-full);
  animation: shimmer 1.6s infinite;
}


/* ═══════════════════════════════════════════════════════════════
   9. EMPTY & ERROR STATES
   ═══════════════════════════════════════════════════════════════ */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: var(--sp-9) var(--sp-5);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-4);
}

.empty-state__illustration {
  width: 120px;
  height: 120px;
}

.empty-state__illustration svg {
  width: 100%;
  height: 100%;
}

.empty-state__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.empty-state__text {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 420px;
  margin: 0;
  line-height: 1.6;
}


/* ═══════════════════════════════════════════════════════════════
   10. COMMENTS SECTION
   ═══════════════════════════════════════════════════════════════ */
.comments-section {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--sp-7) var(--sp-5);
}

.comments-header { margin-bottom: var(--sp-5); }

.comments-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}

.comments-count { color: var(--text-muted); font-weight: 400; }

.comment-form {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  margin-bottom: var(--sp-5);
  box-shadow: var(--shadow-sm);
}

.comment-form__row { margin-bottom: var(--sp-3); }

.comment-form__name {
  width: 100%;
  max-width: 320px;
  padding: var(--sp-3);
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--bg);
  color: var(--text);
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}

.comment-form__name:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(13, 92, 99, 0.1);
}

.comment-form__body {
  width: 100%;
  padding: var(--sp-3);
  min-height: 110px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  resize: vertical;
  background: var(--bg);
  color: var(--text);
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}

.comment-form__body:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(13, 92, 99, 0.1);
}

.comment-form__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--sp-3);
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.comment-form__hint {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.comment-form__char-counter {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.comment-form__char-counter--warning {
  color: var(--accent);
  font-weight: 700;
}

.comment-form__submit {
  min-height: 44px;
  padding: var(--sp-3) var(--sp-5);
  flex-shrink: 0;
}

.comment-form__submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.comment-form__submit:disabled:hover {
  transform: none;
  box-shadow: none;
}

/* Comment Item */
.comments-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.comment {
  display: flex;
  gap: var(--sp-3);
  position: relative;
}

.comment__avatar {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
  font-family: var(--font-body);
  text-transform: uppercase;
  box-shadow: var(--shadow-sm);
}

.comment__content { flex: 1; min-width: 0; }

.comment__header {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-1);
  flex-wrap: wrap;
}

.comment__author {
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--text);
}

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

.comment__body {
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.6;
  margin: 0 0 var(--sp-2);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.comment__actions {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  margin-top: var(--sp-2);
  flex-wrap: wrap;
}

.comment__reply-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  padding: var(--sp-2) var(--sp-1);
  min-height: 36px;
  font-family: var(--font-body);
  transition: color var(--dur-fast) var(--ease);
}

.comment__reply-btn:hover { color: var(--primary); }

.comment__reply-btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* Threaded replies */
.comment__replies {
  margin-top: var(--sp-4);
  padding-left: var(--sp-4);
  border-left: 2px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.comment--depth-1 .comment__replies { margin-left: var(--sp-2); }
.comment--depth-2 .comment__replies { margin-left: var(--sp-4); }
.comment--depth-3 .comment__replies,
.comment--depth-4 .comment__replies,
.comment--depth-5 .comment__replies { margin-left: var(--sp-5); }

.comment-form--reply {
  margin-top: var(--sp-3);
  padding: var(--sp-3);
  box-shadow: none;
  background: var(--bg-soft);
}

/* Vote on comments */
.community-vote--comment .vote-btn { width: 30px; height: 30px; }
.community-vote--comment .vote-btn svg { width: 14px; height: 14px; }
.community-vote--comment .vote-score { font-size: 0.8rem; min-width: 28px; }

@media (max-width: 768px) {
  .community-vote--comment .vote-btn { width: 36px; height: 36px; }
}

.comments-loading,
.comments-empty,
.comments-error {
  text-align: center;
  padding: var(--sp-6) var(--sp-4);
  color: var(--text-muted);
  font-size: 0.95rem;
}

.comments-error { color: var(--accent); }


/* ═══════════════════════════════════════════════════════════════
   11. TOAST NOTIFICATIONS
   ═══════════════════════════════════════════════════════════════ */
.community-toast {
  position: fixed;
  bottom: var(--sp-5);
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--bg-dark);
  color: var(--text-on-dark);
  padding: var(--sp-3) var(--sp-5);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 500;
  box-shadow: var(--shadow-xl);
  z-index: 10000;
  opacity: 0;
  transition: all var(--dur) var(--ease);
}

.community-toast--show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.deal-drop-alert {
  position: fixed;
  top: var(--sp-5);
  right: var(--sp-5);
  background: var(--accent);
  color: white;
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  z-index: 10000;
  transform: translateX(400px);
  transition: transform var(--dur) var(--ease);
  max-width: 320px;
}

.deal-drop-alert--show { transform: translateX(0); }

.deal-drop-alert__title {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: var(--sp-1);
}

.deal-drop-alert__body {
  font-size: 0.85rem;
  opacity: 0.95;
}


/* ═══════════════════════════════════════════════════════════════
   12. SKIP LINK + FOCUS STYLES
   ═══════════════════════════════════════════════════════════════ */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary);
  color: white;
  padding: var(--sp-2) var(--sp-4);
  z-index: 10001;
  border-radius: 0 0 var(--radius-md) 0;
  text-decoration: none;
  font-weight: 600;
  transition: top var(--dur-fast) var(--ease);
}

.skip-link:focus {
  top: 0;
  color: white;
  outline: 2px solid var(--accent-light);
  outline-offset: 2px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}


/* ═══════════════════════════════════════════════════════════════
   13. DEAL DETAIL PAGE (community/deal.html)
   ═══════════════════════════════════════════════════════════════ */
.deal-detail__hero {
  position: relative;
  height: 400px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  margin-bottom: var(--sp-6);
}

.deal-detail__hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.deal-detail__hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 31, 46, 0.92) 0%, rgba(26, 31, 46, 0.4) 55%, transparent 100%);
}

.deal-detail__hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--sp-6) var(--sp-5);
}

.deal-detail__destination-tag {
  color: var(--accent-light);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: var(--sp-2);
}

.deal-detail__title {
  color: var(--text-on-dark);
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: var(--sp-1) 0;
}

.deal-detail__meta-row {
  display: flex;
  gap: var(--sp-4);
  flex-wrap: wrap;
  margin-top: var(--sp-3);
  align-items: center;
}

.deal-detail__meta-item {
  color: var(--text-on-dark-muted);
  font-size: 0.9rem;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.deal-detail__grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--sp-6);
  align-items: start;
}

.deal-detail__sidebar-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  position: sticky;
  top: var(--sp-5);
  box-shadow: var(--shadow-md);
}

.deal-detail__price-block {
  margin-bottom: var(--sp-4);
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid var(--border);
}

.deal-detail__price-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.deal-detail__price-amount {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1;
  margin: var(--sp-1) 0;
  letter-spacing: -0.02em;
}

.deal-detail__price-unit {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.deal-detail__cta {
  display: flex;
  width: 100%;
  text-align: center;
  padding: var(--sp-3) var(--sp-4);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: var(--sp-3);
  justify-content: center;
  gap: var(--sp-1);
}

.deal-detail__trust {
  border-top: 1px solid var(--border);
  padding-top: var(--sp-3);
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.deal-detail__trust-item {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-2);
}

.deal-detail__trust-check {
  color: var(--primary);
  font-weight: 700;
}

.deal-detail__notice {
  background: var(--bg-soft);
  border-radius: var(--radius-md);
  padding: var(--sp-3);
  margin-top: var(--sp-4);
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.deal-detail__section {
  margin-top: var(--sp-6);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  box-shadow: var(--shadow-sm);
}

.deal-detail__section-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--sp-3);
  letter-spacing: -0.01em;
}

@media (max-width: 768px) {
  .deal-detail__grid { grid-template-columns: 1fr; }
  .deal-detail__sidebar { order: -1; }
  .deal-detail__hero { height: 280px; }
  .deal-detail__sidebar-card { position: static; }
}


/* ═══════════════════════════════════════════════════════════════
   14. CARD ENTRANCE + REDUCED MOTION
   ═══════════════════════════════════════════════════════════════ */
@keyframes cardFadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.deal-tile--animate {
  animation: cardFadeIn 0.5s var(--ease-out) both;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .deal-tile__heat-badge--hot { animation: none; }
}


/* ═══════════════════════════════════════════════════════════════
   16. FILTER BAR (PRACTICAL FEATURES)
   ═══════════════════════════════════════════════════════════════ */
.filter-bar {
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  padding: var(--sp-4) 0;
  margin-bottom: var(--sp-5);
}

.filter-bar__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--sp-5);
}

.filter-bar__filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  align-items: flex-end;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

.filter-group__label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.filter-select,
.price-input {
  padding: var(--sp-2) var(--sp-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg);
  color: var(--text);
  font-size: 0.9rem;
  min-width: 140px;
  transition: border-color 0.2s ease;
}

.filter-select:focus,
.price-input:focus {
  outline: none;
  border-color: var(--primary);
}

.filter-group--price {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

.price-range {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.price-range span {
  color: var(--text-muted);
  font-weight: 500;
}

.price-input {
  min-width: 80px;
  width: 80px;
}

.filter-reset {
  min-width: auto;
  padding: var(--sp-2) var(--sp-4);
  font-size: 0.85rem;
  white-space: nowrap;
}

.filter-active {
  margin-top: var(--sp-3);
  padding: var(--sp-2) var(--sp-3);
  background: var(--primary-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.filter-active__label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.filter-active__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
}

.filter-active__tag {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  padding: var(--sp-1) var(--sp-2);
  background: var(--primary);
  color: var(--text-on-primary);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 500;
}


/* ═══════════════════════════════════════════════════════════════
   17. SAVINGS BADGE & PRICE INTELLIGENCE (PRACTICAL FEATURES)
   ═══════════════════════════════════════════════════════════════ */
.deal-tile__price-wrapper {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

.deal-tile__price-original {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: line-through;
  font-weight: 500;
}

.deal-tile__savings-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-left: var(--sp-2);
}

.savings-badge--green {
  background: var(--success-light);
  color: var(--success);
}

.savings-badge--yellow {
  background: var(--warning-light);
  color: var(--warning);
}

.savings-badge--gray {
  background: var(--muted-light);
  color: var(--text-muted);
}

.deal-tile__avg-price {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 0.1rem;
}

.deal-tile__cta--primary {
  background: var(--primary);
  color: var(--text-on-primary);
  border: none;
  font-weight: 600;
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.deal-tile__cta--primary:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(20, 117, 110, 0.3);
}

.deal-tile__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--sp-3) var(--sp-4);
  border-top: 1px solid var(--border-light);
  background: var(--bg-elevated);
}

.deal-tile__views {
  display: flex;
  align-items: center;
}

.deal-tile__view-count {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.deal-tile__votes {
  display: flex;
  align-items: center;
}

.deal-tile__vote-widget {
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.deal-tile:hover .deal-tile__vote-widget {
  opacity: 1;
}

.deal-tile__popular-badge {
  position: absolute;
  top: var(--sp-3);
  right: var(--sp-3);
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  padding: var(--sp-1) var(--sp-2);
  background: var(--accent);
  color: var(--text-on-accent);
  border-radius: var(--radius-sm);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 2;
}


/* ═══════════════════════════════════════════════════════════════
   15. RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  .community-feed {
    padding: var(--sp-5) var(--sp-4) var(--sp-6);
  }

  .community-feed__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .sort-tabs {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    justify-content: flex-start;
  }

  .sort-tabs::-webkit-scrollbar { display: none; }

  .sort-tab { flex-shrink: 0; }

  .deal-tile__price-row {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--sp-3);
  }

  .deal-tile__cta {
    width: 100%;
    justify-content: center;
  }

  .deal-drop-alert {
    right: var(--sp-3);
    left: var(--sp-3);
    max-width: none;
    top: var(--sp-3);
  }

  .deal-tile__body { padding: var(--sp-4); }
  .deal-tile__title { font-size: 1.15rem; }
  .deal-tile__price { font-size: 1.5rem; }
}

/* Mobile: prevent zoom on focus */
@media (max-width: 768px) {
  input[type="text"],
  input[type="email"],
  textarea,
  select {
    font-size: 16px !important;
  }
}

/* ═══ Price Intelligence Display ═══ */
.deal-tile__price-info {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
}

.deal-tile__price-original {
  text-decoration: line-through;
  color: var(--text-muted, #999);
  font-size: 0.8rem;
  font-weight: 400;
}

.deal-tile__savings-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 0.85rem;
  background: var(--warning, #f59e0b);
  color: white;
  letter-spacing: 0.5px;
}

.deal-tile__savings-badge--hot {
  background: var(--accent, #e85d3a);
  animation: savingsPulse 2s ease-in-out infinite;
}

@keyframes savingsPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@media (prefers-reduced-motion: reduce) {
  .deal-tile__savings-badge--hot { animation: none; }
}

.deal-tile__avg-price {
  font-size: 0.8125rem;
  color: var(--text-muted, #999);
  margin-top: 4px;
  padding-top: 4px;
  border-top: 1px solid var(--border, rgba(0,0,0,0.06));
}

/* ═══ FILTER BAR UPGRADE ═══ */
.filter-bar {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg) !important;
  padding: var(--sp-5) var(--sp-5);
  margin-bottom: var(--sp-6);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.filter-bar::before {
  content: '🔎 Filtern nach besten Angeboten';
  display: block;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--sp-4);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--border);
}

.filter-select,
.price-input {
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border);
  padding: var(--sp-2) var(--sp-3);
  font-size: 0.9rem;
  min-height: 44px;
  box-sizing: border-box;
  transition: all 0.2s ease;
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
}

.filter-select:hover,
.price-input:hover {
  border-color: var(--primary);
}

.filter-select:focus,
.price-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(13, 92, 99, 0.1);
}

.filter-reset {
  background: var(--accent);
  color: white !important;
  border: none;
  border-radius: var(--radius-md);
  padding: var(--sp-2) var(--sp-4);
  font-weight: 600;
  cursor: pointer;
  min-height: 44px;
  transition: all 0.2s ease;
}

.filter-reset:hover {
  background: var(--accent-dark, #d04d2a);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

/* ═══ DEAL CARD PRICE EMPHASIS ═══ */
.deal-tile__price-info {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 6px;
}

.deal-tile__price {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.02em;
  font-family: var(--font-display);
}

.deal-tile__price-unit {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 500;
}

.deal-tile__price-original {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: line-through;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
}

.deal-tile__savings-badge {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 700;
  background: var(--success, #2d7a3a);
  color: white;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.deal-tile__savings-badge--hot {
  background: var(--accent);
  font-size: 0.9rem;
  animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.deal-tile__avg-price {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 4px;
  padding-top: 4px;
  border-top: 1px dashed var(--border);
}

.deal-tile__cta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 10px 20px;
  background: var(--primary);
  color: white !important;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.deal-tile__cta:hover {
  background: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
