/**
 * BytBot UI Kit
 * Design system extracted from landing page
 */

/* ==========================================================================
   Reset
   ========================================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ==========================================================================
   Design Tokens
   ========================================================================== */

:root {
  /* Colors */
  --color-white: #FFFFFF;
  --color-cream: #FBF9F4;
  --color-cream-dark: #F3F0E8;
  --color-black: #111111;
  --color-gray: #666666;
  --color-red: #D64000;
  --color-red-hover: #B83700;
  --color-yellow: #FFD43B;
  --color-yellow-light: #FFE066;
  --color-yellow-dark: #F5C000;
  --color-border: #E5E5E5;

  /* Typography */
  --font-sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Fraunces', Georgia, serif;

  --text-base: 17px;
  --text-sm: 0.9rem;
  --text-xs: 0.85rem;
  --text-lg: 1.1rem;
  --text-xl: 1.5rem;
  --text-2xl: clamp(2.5rem, 8vw, 4rem);
  --text-3xl: 3rem;
  --text-hero: clamp(100px, 20vw, 160px);

  --leading-normal: 1.5;
  --leading-tight: 1.15;
  --leading-none: 0.9;

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-15: 60px;
  --space-20: 80px;

  /* Layout */
  --container-max: 720px;
  --container-padding: 24px;

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 8px;
}

/* ==========================================================================
   Base Styles
   ========================================================================== */

html, body {
  font-family: var(--font-sans);
  background: var(--color-cream);
  color: var(--color-black);
  line-height: var(--leading-normal);
  font-size: var(--text-base);
  min-height: 100%;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 700;
  line-height: var(--leading-tight);
}

a {
  color: var(--color-red);
  text-decoration: none;
}

a:hover {
  color: var(--color-red-hover);
}

/* ==========================================================================
   Layout
   ========================================================================== */

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

.section {
  padding: var(--space-15) 0;
}

.section--lg {
  padding: var(--space-20) 0;
}

.section--alt {
  background: var(--color-cream-dark);
}

/* ==========================================================================
   Typography
   ========================================================================== */

.text-gray {
  color: var(--color-gray);
}

.text-sm {
  font-size: var(--text-sm);
}

.text-xs {
  font-size: var(--text-xs);
}

.text-lg {
  font-size: var(--text-lg);
}

.text-center {
  text-align: center;
}

/* Highlight - underline effect */
.highlight {
  position: relative;
  display: inline;
  font-weight: 700;
}

.highlight::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 100%;
  height: 10px;
  background: var(--color-red);
  opacity: 0.65;
  z-index: -1;
  transform: skewX(-6deg);
}

.highlight--sm {
  position: relative;
  display: inline;
  font-weight: 700;
}

.highlight--sm::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 4px;
  background: var(--color-red);
  opacity: 0.5;
  z-index: -1;
  transform: skewX(-6deg);
}

/* Hero number */
.hero-number {
  font-family: var(--font-serif);
  font-size: var(--text-hero);
  font-weight: 800;
  line-height: var(--leading-none);
  color: var(--color-black);
}

/* ==========================================================================
   Components: Navigation
   ========================================================================== */

.nav {
  padding: var(--space-6) 0;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-cream);
}

.nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__links {
  display: flex;
  gap: var(--space-6);
}

.nav__link {
  color: var(--color-gray);
  text-decoration: none;
  font-size: 0.95rem;
}

.nav__link:hover {
  color: var(--color-black);
}

/* ==========================================================================
   Components: Logo
   ========================================================================== */

.logo {
  font-family: var(--font-serif);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--color-black);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: visible;
}

.logo:hover {
  color: var(--color-black);
}

.logo-icon {
  display: block;
  overflow: visible;
}

.logo-icon .sq-tl,
.logo-icon .sq-tr,
.logo-icon .sq-bl { fill: var(--color-black); }
.logo-icon .sq-br { fill: var(--color-red); }

.logo-icon .logo-group {
  transform-origin: 60px 60px;
}

/* Logo animations */
.logo-icon.anim-rotate-to .logo-group {
  animation: logo-spin-to 0.3s ease-in-out forwards;
}

.logo-icon.anim-rotate-back .logo-group {
  animation: logo-spin-back 0.3s ease-in-out forwards;
}

.logo-icon.anim-jump .sq-br { animation: logo-br 4s ease-in-out forwards; }
.logo-icon.anim-jump .sq-bl { animation: logo-bl 4s ease-in-out forwards; }
.logo-icon.anim-jump .sq-tl { animation: logo-tl 4s ease-in-out forwards; }
.logo-icon.anim-jump .sq-tr { animation: logo-tr 4s ease-in-out forwards; }

@keyframes logo-spin-to {
  from { transform: rotate(0deg); }
  to { transform: rotate(90deg); }
}

@keyframes logo-spin-back {
  from { transform: rotate(90deg); }
  to { transform: rotate(0deg); }
}

@keyframes logo-br {
  0%, 20% { fill: var(--color-red); }
  25%, 100% { fill: var(--color-black); }
}

@keyframes logo-bl {
  0%, 20% { fill: var(--color-black); }
  25%, 45% { fill: var(--color-red); }
  50%, 100% { fill: var(--color-black); }
}

@keyframes logo-tl {
  0%, 45% { fill: var(--color-black); }
  50%, 70% { fill: var(--color-red); }
  75%, 100% { fill: var(--color-black); }
}

@keyframes logo-tr {
  0%, 70% { fill: var(--color-black); }
  75%, 95% { fill: var(--color-red); }
  100% { fill: var(--color-black); }
}

/* ==========================================================================
   Components: Buttons
   ========================================================================== */

.btn {
  display: inline-block;
  padding: 14px 28px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn--primary {
  background: var(--color-red);
  color: var(--color-white);
}

.btn--primary:hover {
  background: var(--color-red-hover);
  color: var(--color-white);
}

.btn--dark {
  background: var(--color-black);
  color: var(--color-white);
}

.btn--dark:hover {
  background: var(--color-black);
  color: var(--color-white);
  transform: scale(1.04);
}

.btn:disabled,
.btn[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.btn:disabled:hover,
.btn[disabled]:hover {
  transform: none;
}

/* ==========================================================================
   Components: Cards
   ========================================================================== */

.card {
  padding: var(--space-6);
  background: var(--color-cream);
  border: 1px solid var(--color-border);
}

.card__title {
  font-size: 1rem;
  margin-bottom: var(--space-2);
}

.card__text {
  color: var(--color-gray);
  font-size: var(--text-sm);
}

/* Card grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}

@media (max-width: 600px) {
  .card-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Components: Steps List
   ========================================================================== */

.steps {
  list-style: none;
  counter-reset: steps;
}

.steps__item {
  counter-increment: steps;
  padding: var(--space-5) 0;
  border-bottom: 1px solid var(--color-border);
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: var(--space-4);
  align-items: start;
}

.steps__item:first-child {
  border-top: 1px solid var(--color-border);
}

.steps__item::before {
  content: counter(steps);
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--color-red);
}

.steps__title {
  display: block;
  font-weight: 600;
  margin-bottom: var(--space-1);
}

.steps__text {
  color: var(--color-gray);
  font-size: 0.95rem;
}

/* ==========================================================================
   Components: Price Box
   ========================================================================== */

.price-box {
  display: inline-block;
  background: linear-gradient(135deg, var(--color-yellow-light) 0%, var(--color-yellow) 50%, var(--color-yellow-dark) 100%);
  padding: var(--space-10) var(--space-15);
  text-align: center;
  transform: rotate(-1.5deg);
  box-shadow: 0 4px 20px rgba(255, 200, 0, 0.2);
}

.price-box__amount {
  font-family: var(--font-serif);
  font-size: var(--text-3xl);
  font-weight: 800;
  line-height: 1;
}

.price-box__period {
  font-size: 0.95rem;
  color: var(--color-black);
  opacity: 0.7;
  margin-bottom: var(--space-6);
}

.price-box__note {
  font-size: 0.8rem;
  color: var(--color-black);
  opacity: 0.6;
  margin-top: var(--space-3);
}

@media (max-width: 600px) {
  .price-box {
    padding: var(--space-8) var(--space-10);
  }
}

/* ==========================================================================
   Components: Features List
   ========================================================================== */

.features-list {
  list-style: none;
  text-align: left;
  max-width: 320px;
  margin: var(--space-10) auto 0;
}

.features-list__item {
  padding: var(--space-2) 0;
  font-size: 0.95rem;
  color: var(--color-gray);
  border-bottom: 1px solid var(--color-border);
}

.features-list__item:last-child {
  border-bottom: none;
}

/* ==========================================================================
   Components: FAQ
   ========================================================================== */

.faq__item {
  padding: var(--space-5) 0;
  border-bottom: 1px solid var(--color-border);
}

.faq__item:first-child {
  border-top: 1px solid var(--color-border);
}

.faq__question {
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.faq__answer {
  color: var(--color-gray);
  font-size: 0.95rem;
}

/* ==========================================================================
   Components: Footer
   ========================================================================== */

.footer {
  padding: var(--space-10) 0;
  border-top: 1px solid var(--color-border);
  text-align: center;
  background: var(--color-cream);
}

.footer__text {
  color: var(--color-gray);
  font-size: var(--text-sm);
}

.footer__links {
  margin-top: var(--space-4);
}

.footer__link {
  color: var(--color-red);
  text-decoration: none;
}

.footer__link:hover {
  color: var(--color-red-hover);
}

.footer__separator {
  color: var(--color-gray);
  margin: 0 var(--space-2);
}

/* ==========================================================================
   Components: Divider
   ========================================================================== */

.divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 0;
}

/* ==========================================================================
   Utilities
   ========================================================================== */

.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-10 { margin-bottom: var(--space-10); }

.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-10 { margin-top: var(--space-10); }

.max-w-sm { max-width: 320px; }
.max-w-md { max-width: 480px; }
.max-w-lg { max-width: 560px; }
.max-w-xl { max-width: 600px; }

/* ==========================================================================
   Additional Design Tokens
   ========================================================================== */

:root {
  /* Semantic Colors */
  --color-success: #22A06B;
  --color-success-bg: #E3FCEF;
  --color-warning: #D97706;
  --color-warning-bg: #FEF3C7;
  --color-error: #DE350B;
  --color-error-bg: #FFEBE6;
  --color-info: #0065FF;
  --color-info-bg: #DEEBFF;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.15);

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.2s ease;
  --transition-slow: 0.3s ease;

  /* Z-index */
  --z-dropdown: 100;
  --z-modal: 200;
  --z-tooltip: 300;
}

/* ==========================================================================
   Components: Form Elements
   ========================================================================== */

/* Input */
.input {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--color-black);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.input:focus {
  outline: none;
  border-color: var(--color-red);
  box-shadow: 0 0 0 3px rgba(214, 64, 0, 0.1);
}

.input::placeholder {
  color: var(--color-gray);
  opacity: 0.7;
}

.input:disabled {
  background: var(--color-cream-dark);
  cursor: not-allowed;
  opacity: 0.6;
}

.input--error {
  border-color: var(--color-error);
}

.input--error:focus {
  box-shadow: 0 0 0 3px rgba(222, 53, 11, 0.1);
}

/* Input sizes */
.input--sm {
  padding: 8px 12px;
  font-size: var(--text-sm);
}

.input--lg {
  padding: 16px 20px;
  font-size: var(--text-lg);
}

/* Textarea */
.textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--color-black);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  resize: vertical;
  min-height: 120px;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.textarea:focus {
  outline: none;
  border-color: var(--color-red);
  box-shadow: 0 0 0 3px rgba(214, 64, 0, 0.1);
}

/* Select */
.select {
  width: 100%;
  padding: 12px 40px 12px 16px;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--color-black);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666666' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  transition: border-color var(--transition-fast);
}

.select:focus {
  outline: none;
  border-color: var(--color-red);
  box-shadow: 0 0 0 3px rgba(214, 64, 0, 0.1);
}

/* Label */
.label {
  display: block;
  font-weight: 500;
  font-size: var(--text-sm);
  margin-bottom: var(--space-2);
  color: var(--color-black);
}

.label--required::after {
  content: ' *';
  color: var(--color-error);
}

/* Help text */
.help-text {
  font-size: var(--text-xs);
  color: var(--color-gray);
  margin-top: var(--space-1);
}

.help-text--error {
  color: var(--color-error);
}

/* Form group */
.form-group {
  margin-bottom: var(--space-6);
}

/* Checkbox & Radio */
.checkbox,
.radio {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  cursor: pointer;
  font-size: var(--text-sm);
}

.checkbox input,
.radio input {
  width: 18px;
  height: 18px;
  margin: 0;
  cursor: pointer;
  accent-color: var(--color-red);
}

/* Toggle Switch */
.toggle {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  cursor: pointer;
}

.toggle__input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle__switch {
  position: relative;
  width: 48px;
  height: 26px;
  background: var(--color-border);
  border-radius: 13px;
  transition: background var(--transition-fast);
}

.toggle__switch::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: var(--color-white);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast);
}

.toggle__input:checked + .toggle__switch {
  background: var(--color-red);
}

.toggle__input:checked + .toggle__switch::after {
  transform: translateX(22px);
}

.toggle__input:focus + .toggle__switch {
  box-shadow: 0 0 0 3px rgba(214, 64, 0, 0.1);
}

.toggle__label {
  font-size: var(--text-sm);
  color: var(--color-black);
}

/* Search Input */
.search {
  position: relative;
}

.search__input {
  width: 100%;
  padding: 12px 16px 12px 44px;
  font-family: var(--font-sans);
  font-size: 1rem;
  color: var(--color-black);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition-fast);
}

.search__input:focus {
  outline: none;
  border-color: var(--color-red);
  box-shadow: 0 0 0 3px rgba(214, 64, 0, 0.1);
}

.search__icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-gray);
  pointer-events: none;
}

/* ==========================================================================
   Components: Badges & Tags
   ========================================================================== */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  font-size: 0.8rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-gray);
}

.badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.badge--default {
  color: var(--color-gray);
  border-color: var(--color-border);
}

.badge--primary {
  color: var(--color-red);
  border-color: var(--color-red);
}

.badge--success {
  color: var(--color-success);
  border-color: var(--color-success);
}

.badge--warning {
  color: var(--color-warning);
  border-color: var(--color-warning);
}

.badge--error {
  color: var(--color-error);
  border-color: var(--color-error);
}

.badge--info {
  color: var(--color-info);
  border-color: var(--color-info);
}

/* Badge without dot */
.badge--no-dot::before {
  display: none;
}

/* Tag (removable) */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: var(--text-xs);
  background: var(--color-cream-dark);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}

.tag__remove {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border: none;
  background: transparent;
  color: var(--color-gray);
  cursor: pointer;
  border-radius: 50%;
  transition: background var(--transition-fast);
}

.tag__remove:hover {
  background: var(--color-border);
  color: var(--color-black);
}

/* ==========================================================================
   Components: Alerts
   ========================================================================== */

.alert {
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}

.alert__icon {
  flex-shrink: 0;
  margin-top: 2px;
}

.alert__content {
  flex: 1;
}

.alert__title {
  font-weight: 600;
  margin-bottom: var(--space-1);
}

.alert--success {
  background: var(--color-success-bg);
  color: var(--color-success);
}

.alert--warning {
  background: var(--color-warning-bg);
  color: var(--color-warning);
}

.alert--error {
  background: var(--color-error-bg);
  color: var(--color-error);
}

.alert--info {
  background: var(--color-info-bg);
  color: var(--color-info);
}

/* ==========================================================================
   Components: Avatar
   ========================================================================== */

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-cream-dark);
  color: var(--color-gray);
  font-weight: 600;
  font-size: var(--text-sm);
  overflow: hidden;
}

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

.avatar--sm {
  width: 32px;
  height: 32px;
  font-size: var(--text-xs);
}

.avatar--lg {
  width: 56px;
  height: 56px;
  font-size: 1rem;
}

.avatar--xl {
  width: 80px;
  height: 80px;
  font-size: var(--text-xl);
}

/* Avatar group */
.avatar-group {
  display: flex;
}

.avatar-group .avatar {
  border: 2px solid var(--color-cream);
  margin-left: -12px;
}

.avatar-group .avatar:first-child {
  margin-left: 0;
}

/* ==========================================================================
   Components: Table
   ========================================================================== */

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.table th,
.table td {
  padding: var(--space-3) var(--space-4);
  text-align: left;
  border-bottom: 1px solid var(--color-border);
}

.table th {
  font-weight: 600;
  color: var(--color-gray);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--color-cream-dark);
}

.table tbody tr:hover {
  background: var(--color-cream-dark);
}

.table--striped tbody tr:nth-child(even) {
  background: var(--color-cream-dark);
}

/* ==========================================================================
   Components: Tabs
   ========================================================================== */

.tabs {
  display: flex;
  gap: var(--space-1);
  border-bottom: 1px solid var(--color-border);
}

.tabs__item {
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-gray);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color var(--transition-fast), border-color var(--transition-fast);
  margin-bottom: -1px;
}

.tabs__item:hover {
  color: var(--color-black);
}

.tabs__item--active {
  color: var(--color-red);
  border-bottom-color: var(--color-red);
}

.tabs__content {
  padding: var(--space-6) 0;
}

/* Pills variant */
.tabs--pills {
  border-bottom: none;
  background: var(--color-cream-dark);
  padding: var(--space-1);
  border-radius: var(--radius-sm);
  gap: var(--space-1);
}

.tabs--pills .tabs__item {
  border-bottom: none;
  border-radius: var(--radius-sm);
  margin-bottom: 0;
}

.tabs--pills .tabs__item--active {
  background: var(--color-white);
  color: var(--color-black);
  box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   Components: Modal
   ========================================================================== */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(17, 17, 17, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
  z-index: var(--z-modal);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.modal-overlay--open {
  opacity: 1;
  visibility: visible;
}

.modal {
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  background: var(--color-cream);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  transform: scale(0.95) translateY(10px);
  transition: transform var(--transition-normal);
}

.modal-overlay--open .modal {
  transform: scale(1) translateY(0);
}

.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--color-border);
}

.modal__title {
  font-size: 1.1rem;
  font-weight: 700;
}

.modal__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: var(--color-gray);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background var(--transition-fast);
}

.modal__close:hover {
  background: var(--color-cream-dark);
  color: var(--color-black);
}

.modal__body {
  padding: var(--space-6);
  overflow-y: auto;
}

.modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: var(--space-3);
  padding: var(--space-5) var(--space-6);
  border-top: 1px solid var(--color-border);
  background: var(--color-cream-dark);
}

/* Modal sizes */
.modal--sm {
  max-width: 400px;
}

.modal--lg {
  max-width: 700px;
}

.modal--full {
  max-width: 90vw;
  height: 90vh;
}

/* ==========================================================================
   Components: Dropdown
   ========================================================================== */

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown__menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  z-index: var(--z-dropdown);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity var(--transition-fast), transform var(--transition-fast), visibility var(--transition-fast);
}

.dropdown--open .dropdown__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(4px);
}

.dropdown__item {
  display: block;
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-sm);
  color: var(--color-black);
  text-align: left;
  text-decoration: none;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: background var(--transition-fast);
}

.dropdown__item:hover {
  background: var(--color-cream-dark);
}

.dropdown__item--danger {
  color: var(--color-error);
}

.dropdown__divider {
  height: 1px;
  background: var(--color-border);
  margin: var(--space-2) 0;
}

/* ==========================================================================
   Components: Tooltip
   ========================================================================== */

.tooltip {
  position: relative;
  display: inline-block;
}

.tooltip__content {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  padding: var(--space-2) var(--space-3);
  background: var(--color-black);
  color: var(--color-white);
  font-size: var(--text-xs);
  border-radius: var(--radius-sm);
  white-space: nowrap;
  z-index: var(--z-tooltip);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-fast), visibility var(--transition-fast);
}

.tooltip__content::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--color-black);
}

.tooltip:hover .tooltip__content {
  opacity: 1;
  visibility: visible;
}

/* ==========================================================================
   Components: Progress
   ========================================================================== */

.progress {
  width: 100%;
  height: 8px;
  background: var(--color-cream-dark);
  border-radius: 100px;
  overflow: hidden;
}

.progress__bar {
  height: 100%;
  background: var(--color-red);
  border-radius: 100px;
  transition: width var(--transition-slow);
}

.progress--success .progress__bar {
  background: var(--color-success);
}

.progress--warning .progress__bar {
  background: var(--color-warning);
}

/* Progress with label */
.progress-labeled {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.progress-labeled .progress {
  flex: 1;
}

.progress-labeled__value {
  font-size: var(--text-sm);
  font-weight: 500;
  min-width: 40px;
  text-align: right;
}

/* ==========================================================================
   Components: Skeleton Loader
   ========================================================================== */

.skeleton {
  background: linear-gradient(
    90deg,
    var(--color-cream-dark) 25%,
    var(--color-border) 50%,
    var(--color-cream-dark) 75%
  );
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

.skeleton--text {
  height: 1em;
  margin-bottom: var(--space-2);
}

.skeleton--text:last-child {
  width: 70%;
}

.skeleton--title {
  height: 1.5em;
  width: 60%;
  margin-bottom: var(--space-3);
}

.skeleton--avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.skeleton--image {
  width: 100%;
  height: 200px;
}

.skeleton--btn {
  width: 120px;
  height: 44px;
}

@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ==========================================================================
   Components: Empty State
   ========================================================================== */

.empty-state {
  text-align: center;
  padding: var(--space-15) var(--space-6);
}

.empty-state__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-6);
  color: var(--color-border);
}

.empty-state__title {
  font-size: 1.25rem;
  margin-bottom: var(--space-2);
}

.empty-state__text {
  color: var(--color-gray);
  max-width: 360px;
  margin: 0 auto var(--space-6);
}

/* ==========================================================================
   Components: Pagination
   ========================================================================== */

.pagination {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.pagination__item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-gray);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.pagination__item:hover {
  background: var(--color-cream-dark);
  color: var(--color-black);
}

.pagination__item--active {
  background: var(--color-red);
  color: var(--color-white);
  border-color: var(--color-red);
}

.pagination__item--active:hover {
  background: var(--color-red-hover);
  color: var(--color-white);
}

.pagination__item:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ==========================================================================
   Components: Breadcrumbs
   ========================================================================== */

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
}

.breadcrumbs__item {
  color: var(--color-gray);
  text-decoration: none;
}

.breadcrumbs__item:hover {
  color: var(--color-black);
}

.breadcrumbs__item--active {
  color: var(--color-black);
  font-weight: 500;
}

.breadcrumbs__separator {
  color: var(--color-border);
}

/* ==========================================================================
   Components: Status Indicator (Kanban)
   ========================================================================== */

.status {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 500;
}

.status__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

/* New workflow stages */
.status--novy .status__dot { background: var(--color-info); }
.status--zajem .status__dot { background: var(--color-yellow); }
.status--kontaktovano .status__dot { background: var(--color-warning); }
.status--prohlizka .status__dot { background: #9b59b6; }
.status--chci .status__dot { background: var(--color-success); }
.status--nechci .status__dot { background: var(--color-gray); }
.status--zamitnuto .status__dot { background: var(--color-gray); }
.status--nedostupny .status__dot { background: #95a5a6; }

/* ==========================================================================
   Components: Score
   ========================================================================== */

.score {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  position: relative;
}

.score--high {
  color: var(--color-black);
}

.score--high::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 6px;
  background: var(--color-success);
  opacity: 0.5;
  z-index: -1;
  transform: skewX(-6deg);
}

.score--medium {
  color: var(--color-black);
}

.score--medium::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 100%;
  height: 6px;
  background: var(--color-yellow);
  opacity: 0.6;
  z-index: -1;
  transform: skewX(-6deg);
}

.score--low {
  color: var(--color-gray);
}

.score--sm {
  font-size: 1.1rem;
}

.score--sm::after {
  height: 4px;
  bottom: 1px;
}

.score--lg {
  font-size: 2.5rem;
}

.score--lg::after {
  height: 10px;
  bottom: 4px;
}

/* ==========================================================================
   Components: Listing Card (Apartment)
   ========================================================================== */

.listing-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow var(--transition-fast), transform var(--transition-fast);
}

.listing-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.listing-card__image {
  position: relative;
  aspect-ratio: 16/10;
  background: var(--color-cream-dark);
  overflow: hidden;
}

.listing-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.listing-card__score {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
}

.listing-card__badges {
  position: absolute;
  bottom: var(--space-3);
  left: var(--space-3);
  display: flex;
  gap: var(--space-2);
}

.listing-card__body {
  padding: var(--space-4);
}

.listing-card__price {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: var(--space-1);
}

.listing-card__title {
  font-size: var(--text-sm);
  color: var(--color-gray);
  margin-bottom: var(--space-3);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.listing-card__meta {
  display: flex;
  gap: var(--space-4);
  font-size: var(--text-xs);
  color: var(--color-gray);
}

.listing-card__meta-item {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

/* ==========================================================================
   Components: Stats Grid
   ========================================================================== */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
}

@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==========================================================================
   Components: Stat Card
   ========================================================================== */

.stat-card {
  padding: var(--space-6);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
}

.stat-card__label {
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-gray);
  margin-bottom: var(--space-2);
}

.stat-card__value {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: var(--space-1);
}

.stat-card__change {
  font-size: var(--text-sm);
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.stat-card__change--up {
  color: var(--color-success);
}

.stat-card__change--down {
  color: var(--color-error);
}

/* ==========================================================================
   Components: Kanban Column
   ========================================================================== */

/* ==========================================================================
   Components: Button Group
   ========================================================================== */

.btn-group {
  display: inline-flex;
}

.btn-group .btn {
  border-radius: 0;
}

.btn-group .btn:first-child {
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.btn-group .btn:last-child {
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.btn-group .btn + .btn {
  margin-left: -1px;
}

/* ==========================================================================
   Components: Button Variants
   ========================================================================== */

.btn--secondary {
  background: var(--color-cream-dark);
  color: var(--color-black);
  border: 1px solid var(--color-border);
}

.btn--secondary:hover {
  background: var(--color-border);
  color: var(--color-black);
}

.btn--ghost {
  background: transparent;
  color: var(--color-gray);
}

.btn--ghost:hover {
  background: var(--color-cream-dark);
  color: var(--color-black);
}

.btn--danger {
  background: var(--color-error);
  color: var(--color-white);
}

.btn--danger:hover {
  background: #C62D0A;
  color: var(--color-white);
}

.btn--sm {
  padding: 8px 16px;
  font-size: var(--text-sm);
}

.btn--lg {
  padding: 18px 36px;
  font-size: var(--text-lg);
}

.btn--block {
  display: block;
  width: 100%;
  text-align: center;
}

.btn--icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
}

.btn--icon.btn--sm {
  width: 36px;
  height: 36px;
}

/* ==========================================================================
   Components: Icon
   ========================================================================== */

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
}

.icon--sm {
  width: 16px;
  height: 16px;
}

.icon--lg {
  width: 24px;
  height: 24px;
}

/* ==========================================================================
   Additional Utilities
   ========================================================================== */

.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }

.w-full { width: 100%; }
.h-full { height: 100%; }

.rounded { border-radius: var(--radius-sm); }
.rounded-md { border-radius: var(--radius-md); }
.rounded-full { border-radius: 100px; }

.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.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;
}

/* ==========================================================================
   Components: Range Slider
   ========================================================================== */

.range-slider {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--color-border);
  outline: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-red);
  cursor: pointer;
  border: 3px solid var(--color-white);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.1);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.range-slider::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-red);
  cursor: pointer;
  border: 3px solid var(--color-white);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.range-slider:focus::-webkit-slider-thumb {
  box-shadow: 0 0 0 4px rgba(214, 64, 0, 0.15);
}

/* Range with labels */
.range-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.range-field__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.range-field__label {
  font-size: var(--text-sm);
  color: var(--color-gray);
}

.range-field__value {
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-black);
  min-width: 32px;
  text-align: right;
}

.range-field__hint {
  font-size: var(--text-xs);
  color: var(--color-gray);
  margin-top: var(--space-1);
}

/* ==========================================================================
   Components: Filter Card
   ========================================================================== */

.filter-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-6);
}

.filter-card__title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.filter-card__title svg {
  color: var(--color-red);
}

.filter-card__items {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.filter-card--highlight {
  border: 2px solid var(--color-red);
}

/* Weight indicators */
.weight-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 600;
  font-size: var(--text-sm);
}

.weight--zero {
  background: var(--color-border);
  color: var(--color-gray);
}

.weight--low {
  background: #e3f2fd;
  color: #1565c0;
}

.weight--medium {
  background: #fff3e0;
  color: #e65100;
}

.weight--high {
  background: #ffebee;
  color: #c62828;
}

/* Districts input */
.districts-input {
  display: flex;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.districts-input .input {
  flex: 1;
}

.districts-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

/* Room counts grid */
.room-counts-grid {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.checkbox-card {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3) var(--space-4);
  background: var(--color-white);
  border: 2px solid var(--color-cream-dark);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
  min-width: 70px;
}

.checkbox-card input {
  display: none;
}

.checkbox-card__label {
  font-weight: 500;
  color: var(--color-gray);
}

.checkbox-card:hover {
  border-color: var(--color-gray-light);
}

.checkbox-card--active {
  border-color: var(--color-primary);
  background: var(--color-cream);
}

.checkbox-card--active .checkbox-card__label {
  color: var(--color-primary);
}

/* Tags */
.tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  background: var(--color-cream-dark);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
}

.tag__remove {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-gray);
  font-size: 1.2em;
  line-height: 1;
  padding: 0;
}

.tag__remove:hover {
  color: var(--color-red);
}

/* Badge for labels */
.badge--small {
  font-size: 0.7em;
  padding: 2px 6px;
  border-radius: 10px;
  background: var(--color-yellow);
  color: var(--color-black);
  margin-left: var(--space-2);
}

/* ==========================================================================
   Components: Option Grid (Direction buttons etc.)
   ========================================================================== */

.option-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2);
}

.option-grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.option-btn {
  padding: var(--space-3) var(--space-4);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-white);
  cursor: pointer;
  font-size: var(--text-sm);
  font-weight: 500;
  transition: all var(--transition-fast);
  text-align: center;
}

.option-btn:hover {
  border-color: var(--color-red);
}

.option-btn--selected {
  background: var(--color-red);
  border-color: var(--color-red);
  color: var(--color-white);
}

/* ==========================================================================
   Components: Filter Page Layout
   ========================================================================== */

.filters-page {
  max-width: 800px;
  margin: 0 auto;
}

.filters-page__intro {
  text-align: center;
  margin-bottom: var(--space-8);
}

.filters-page__intro p {
  color: var(--color-gray);
  max-width: 560px;
  margin: 0 auto;
}

.filters-page__grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.filters-page__actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-4);
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
  flex-wrap: wrap;
}

.filters-page__saved {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-success);
  font-size: var(--text-sm);
  font-weight: 500;
}

/* Toggle item for filters */
.toggle-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-border);
}

.toggle-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.toggle-item:first-child {
  padding-top: 0;
}

.toggle-item__label {
  font-size: var(--text-sm);
  color: var(--color-black);
}

@media (max-width: 600px) {
  .filters-page__actions {
    flex-direction: column;
  }

  .option-grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==========================================================================
   Responsive Utilities
   ========================================================================== */

/* Hide on mobile */
.hide-mobile {
  display: block;
}

/* Show only on mobile */
.show-mobile {
  display: none;
}

@media (max-width: 768px) {
  .hide-mobile {
    display: none !important;
  }
  .show-mobile {
    display: block !important;
  }

  /* Responsive table wrapper */
  .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Stack flex items on mobile */
  .flex-stack-mobile {
    flex-direction: column;
  }

  /* Full width on mobile */
  .w-full-mobile {
    width: 100% !important;
  }

  /* Responsive button group */
  .btn-group--responsive {
    flex-direction: column;
  }
  .btn-group--responsive .btn {
    border-radius: var(--radius-sm);
    margin-left: 0;
    margin-top: -1px;
  }
  .btn-group--responsive .btn:first-child {
    border-radius: var(--radius-sm);
    margin-top: 0;
  }

  /* Responsive listing cards grid */
  .listing-grid {
    grid-template-columns: 1fr !important;
  }

  /* Smaller stat cards on mobile */
  .stat-card {
    padding: var(--space-4);
  }
  .stat-card__value {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  /* Extra small screen adjustments */
  .text-sm-mobile {
    font-size: var(--text-sm) !important;
  }

  .text-xs-mobile {
    font-size: var(--text-xs) !important;
  }

  /* Compact buttons on very small screens */
  .btn {
    padding: 12px 20px;
  }
  .btn--sm {
    padding: 6px 12px;
  }

  /* Compact badges */
  .badge {
    padding: 4px 8px;
    font-size: 0.75rem;
  }

  /* Smaller headings */
  h1 {
    font-size: 1.5rem !important;
  }
  h2 {
    font-size: 1.25rem !important;
  }
}

/* ==========================================================================
   Responsive Kanban
   ========================================================================== */

/* ==========================================================================
   Responsive Tables
   ========================================================================== */

@media (max-width: 768px) {
  /* Make table scrollable */
  .table {
    min-width: 600px;
  }

  .table th,
  .table td {
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-xs);
  }
}

/* ==========================================================================
   Responsive Listing Cards
   ========================================================================== */

@media (max-width: 768px) {
  .listing-card__body {
    padding: var(--space-3);
  }

  .listing-card__price {
    font-size: 1.1rem;
  }

  .listing-card__meta {
    gap: var(--space-2);
  }
}

/* ==========================================================================
   Responsive Detail Page
   ========================================================================== */

@media (max-width: 768px) {
  .detail-grid {
    grid-template-columns: 1fr !important;
  }

  .detail-sidebar {
    position: static !important;
    margin-top: var(--space-4);
  }
}

/* ==========================================================================
   Touch-friendly Interactions
   ========================================================================== */

@media (hover: none) and (pointer: coarse) {
  /* Increase tap targets for touch devices */
  .btn--sm {
    min-height: 44px;
    min-width: 44px;
  }

  .list-action-btn {
    min-height: 44px;
    min-width: 44px;
  }

  .pagination__item {
    min-height: 44px;
    min-width: 44px;
  }

  /* Always show gallery navigation on touch devices */
  .gallery-nav {
    opacity: 0.9;
  }

  /* Disable hover effects */
  .listing-card:hover {
    transform: none;
  }
}
