/**
 * GWP Modern Timetable - Responsive Styles
 * Mobile-first responsive design using Total Theme accent color
 * Text styling inherits from theme customizer
 */

:root {
  /* Use Total Theme accent color variables */
  --gwp-accent: var(--wpex-accent, #2c87f0);
  --gwp-accent-hover: var(--wpex-accent-alt, #2c87f0);

  /* Use Total Theme surface and background colors */
  --gwp-bg-primary: transparent;
  --gwp-bg-secondary: var(--wpex-gray-100, #f7f7f7);
  --gwp-bg-card: var(--wpex-white, #fff);
  --gwp-bg-skeleton: var(--wpex-gray-200, #eeeeee);

  /* Use Total Theme border colors */
  --gwp-border-light: var(--wpex-gray-200, #eeeeee);
  --gwp-border-medium: var(--wpex-gray-300, #e0e0e0);

  /* Shadows */
  --gwp-shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --gwp-shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --gwp-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);

  /* Spacing */
  --gwp-space-xs: 0.25rem;
  --gwp-space-sm: 0.5rem;
  --gwp-space-md: 1rem;
  --gwp-space-lg: 1.5rem;
  --gwp-space-xl: 2rem;
  --gwp-space-2xl: 3rem;

  /* Border Radius */
  --gwp-radius-sm: 0.25rem;
  --gwp-radius-md: 0.5rem;
  --gwp-radius-lg: 0.75rem;
  --gwp-radius-xl: 1rem;

  /* Transitions */
  --gwp-transition: all 0.15s ease-in-out;
  --gwp-transition-slow: all 0.3s ease-in-out;
}

/* Base Styles - inherit font from theme */
.gwp-modern-timetable {
  background-color: var(--gwp-bg-primary);
  transition: var(--gwp-transition);
}

.gwp-modern-timetable * {
  box-sizing: border-box;
}

/* Loading & Skeleton States */
.gwp-mt-loading {
  padding: var(--gwp-space-lg);
}

.gwp-mt-skeleton {
  display: grid;
  gap: var(--gwp-space-md);
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.gwp-mt-skeleton-card {
  background: var(--gwp-bg-card);
  border-radius: var(--gwp-radius-lg);
  padding: var(--gwp-space-lg);
  border: 1px solid var(--gwp-border-light);
}

.gwp-mt-skeleton-line {
  height: 1rem;
  background: linear-gradient(90deg, var(--gwp-bg-skeleton) 25%, transparent 50%, var(--gwp-bg-skeleton) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: var(--gwp-radius-sm);
  margin-bottom: var(--gwp-space-sm);
}

.gwp-mt-skeleton-line.short {
  width: 60%;
}

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

/* Filters Section */
.gwp-mt-filters {
  background: var(--gwp-bg-secondary);
  border-radius: var(--gwp-radius-lg);
  padding: var(--gwp-space-lg);
  margin-bottom: var(--gwp-space-xl);
  border: 1px solid var(--gwp-border-light);
  transition: var(--gwp-transition);
}

/* Hide mobile header on desktop */
.gwp-mt-mobile-filter-header {
  display: none;
}

/* Show filter body by default on desktop */
.gwp-mt-mobile-filter-body {
  display: block;
}

/* Mobile Filter System */
@media (max-width: 768px) {
  .gwp-mt-filters {
    position: sticky;
    top: 10px;
    z-index: 1000;
    margin-bottom: var(--gwp-space-md);
    padding: var(--gwp-space-sm);
    background: var(--gwp-bg-card);
    border: 2px solid var(--gwp-accent);
    box-shadow: var(--gwp-shadow-lg);
    border-radius: var(--gwp-radius-xl);
  }

  /* Show mobile header on mobile */
  .gwp-mt-mobile-filter-header {
    display: flex;
  }

  .gwp-mt-filters.collapsed {
    padding: var(--gwp-space-xs) var(--gwp-space-sm);
  }

  .gwp-mt-mobile-filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--gwp-space-sm);
  }

  .gwp-mt-mobile-filter-toggle {
    display: flex;
    align-items: center;
    gap: var(--gwp-space-xs);
    background: var(--gwp-accent);
    color: white;
    border: none;
    border-radius: var(--gwp-radius-lg);
    padding: var(--gwp-space-xs) var(--gwp-space-sm);
    cursor: pointer;
    transition: var(--gwp-transition);
    min-width: 90px;
  }

  .gwp-mt-mobile-filter-toggle:hover {
    background: var(--gwp-accent-hover);
    transform: translateY(-1px);
  }

  .gwp-mt-mobile-filter-toggle:active {
    transform: translateY(0);
  }

  .gwp-mt-filter-icon {
    transition: transform 0.3s ease;
  }

  .gwp-mt-filters.expanded .gwp-mt-filter-icon {
    transform: rotate(180deg);
  }

  .gwp-mt-mobile-filter-status {
    background: var(--gwp-bg-secondary);
    padding: 2px 6px;
    border-radius: var(--gwp-radius-sm);
    min-width: 60px;
    text-align: center;
    opacity: 0.7;
  }

  .gwp-mt-mobile-filter-status.active {
    background: var(--gwp-accent);
    color: white;
    opacity: 1;
  }

  .gwp-mt-mobile-filter-body {
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.3s ease;
    max-height: 0;
    opacity: 0;
  }

  .gwp-mt-filters.expanded .gwp-mt-mobile-filter-body {
    max-height: 500px;
    opacity: 1;
  }

  .gwp-mt-search-wrapper {
    margin-bottom: var(--gwp-space-sm);
  }

  .gwp-mt-search {
    padding: var(--gwp-space-sm);
  }

  .gwp-mt-filter-row {
    flex-direction: column;
    gap: var(--gwp-space-sm);
  }

  .gwp-mt-filter {
    width: 100%;
    min-width: unset;
    padding: var(--gwp-space-sm);
  }

  .gwp-mt-clear-filters {
    width: 100%;
    padding: var(--gwp-space-sm);
    margin-top: var(--gwp-space-xs);
  }

  /* Hide desktop elements on mobile */
  .gwp-mt-filters:not(.expanded) .gwp-mt-search-wrapper,
  .gwp-mt-filters:not(.expanded) .gwp-mt-filter-row {
    display: none;
  }
}

.gwp-mt-search-wrapper {
  position: relative;
  margin-bottom: var(--gwp-space-md);
}

.gwp-mt-search {
  width: 100%;
  padding: var(--gwp-space-sm) var(--gwp-space-sm) var(--gwp-space-sm) 2.5rem;
  border: 2px solid var(--gwp-border-medium);
  border-radius: var(--gwp-radius-md);
  background: var(--gwp-bg-card);
  transition: var(--gwp-transition);
}

.gwp-mt-search:focus {
  outline: none;
  border-color: var(--gwp-accent);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.gwp-mt-search-icon {
  position: absolute;
  left: var(--gwp-space-md);
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.5;
  pointer-events: none;
}

.gwp-mt-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gwp-space-md);
  align-items: center;
}

.gwp-mt-filter {
  flex: 1;
  min-width: 150px;
  padding: var(--gwp-space-sm);
  border: 2px solid var(--gwp-border-medium);
  border-radius: var(--gwp-radius-md);
  background: var(--gwp-bg-card);
  transition: var(--gwp-transition);
}

.gwp-mt-filter:focus {
  outline: none;
  border-color: var(--gwp-accent);
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.gwp-mt-clear-filters {
  padding: var(--gwp-space-sm) var(--gwp-space-lg);
  background: var(--gwp-accent);
  color: white;
  border: none;
  border-radius: var(--gwp-radius-md);
  cursor: pointer;
  transition: var(--gwp-transition);
  white-space: nowrap;
}

.gwp-mt-clear-filters:hover {
  background: var(--gwp-accent-hover);
  transform: translateY(-1px);
}

.gwp-mt-clear-filters:active {
  transform: translateY(0);
}

/* Results Info */
.gwp-mt-results-info {
  margin-bottom: var(--gwp-space-lg);
}

.gwp-mt-count {
  font-weight: 600;
}

/* View All Button */
.gwp-mt-view-all-container {
  text-align: center;
  margin: var(--gwp-space-xl) 0;
  padding: var(--gwp-space-lg) 0;
  border-top: 1px dashed var(--gwp-border-medium);
}

.gwp-mt-view-all {
  background: var(--gwp-accent);
  color: white;
  border: none;
  border-radius: var(--gwp-radius-lg);
  padding: var(--gwp-space-sm) var(--gwp-space-xl);
  font-weight: 600;
  cursor: pointer;
  transition: var(--gwp-transition);
  box-shadow: var(--gwp-shadow-md);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: var(--gwp-space-xs);
}

.gwp-mt-view-all:hover {
  transform: translateY(-2px);
  box-shadow: var(--gwp-shadow-lg);
  background: var(--gwp-accent-hover);
}

.gwp-mt-view-all:active {
  transform: translateY(0);
}

.gwp-mt-view-all-text {
  font-weight: 600;
}

.gwp-mt-hidden-indicator {
  opacity: 0.9;
  font-size: 0.9em;
}

/* Cards Layout */
.gwp-mt-cards-container {
  display: flex;
  flex-direction: column;
  gap: var(--gwp-space-sm);
}

.gwp-mt-day-group {
  position: relative;
}

.gwp-mt-day-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--gwp-space-sm);
  padding: var(--gwp-space-md) var(--gwp-space-md);
  background: var(--gwp-accent);
  color: white;
  border-radius: var(--gwp-radius-md);
  box-shadow: var(--gwp-shadow-md);
}

.gwp-mt-day-header-actions {
  display: flex;
  align-items: center;
  position: relative;
  min-width: 120px;
  justify-content: flex-end;
  flex-shrink: 0;
}

.gwp-mt-day-count,
.gwp-mt-day-view-all {
  position: absolute;
  right: 0;
  transition: opacity 0.2s ease-in-out;
}

.gwp-mt-day-header-actions .gwp-mt-day-count {
  opacity: 1;
}

.gwp-mt-day-header-actions .gwp-mt-day-view-all {
  opacity: 0;
  pointer-events: none;
}

.gwp-mt-day-header-actions.gwp-mt-filtered .gwp-mt-day-count {
  opacity: 0;
  pointer-events: none;
}

.gwp-mt-day-header-actions.gwp-mt-filtered .gwp-mt-day-view-all {
  opacity: 1;
  pointer-events: auto;
}

.gwp-mt-day-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}

.gwp-mt-day-count {
  background: rgba(255, 255, 255, 0.2);
  padding: var(--gwp-space-xs) var(--gwp-space-sm);
  border-radius: var(--gwp-radius-md);
  font-weight: 600;
  backdrop-filter: blur(10px);
}

.gwp-mt-day-view-all {
  background: rgba(255, 255, 255, 0.9);
  color: var(--gwp-accent);
  border: none;
  border-radius: var(--gwp-radius-md);
  padding: var(--gwp-space-xs) var(--gwp-space-sm);
  font-weight: 600;
  cursor: pointer;
  transition: var(--gwp-transition);
}

.gwp-mt-day-view-all:hover {
  background: white;
  transform: translateY(-1px);
}

.gwp-mt-cards {
  display: grid;
  gap: var(--gwp-space-lg);
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.gwp-mt-layout-cards .gwp-mt-table-wrapper {
  display: none;
}

.gwp-mt-card {
  background: var(--gwp-bg-card);
  border: 1px solid var(--gwp-border-light);
  border-radius: var(--gwp-radius-lg);
  padding: var(--gwp-space-sm);
  transition: var(--gwp-transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.gwp-mt-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--gwp-shadow-lg);
  border-color: var(--gwp-accent);
}

.gwp-mt-card:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
  border-color: var(--gwp-accent);
}

.gwp-mt-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gwp-accent);
  opacity: 0;
  transition: var(--gwp-transition);
}

.gwp-mt-card:hover::before {
  opacity: 1;
}

.gwp-mt-card-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: var(--gwp-space-sm);
  gap: var(--gwp-space-sm);
}

.gwp-mt-activity-title {
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
  flex: 1;
}

.gwp-mt-cost {
  background: var(--gwp-accent);
  color: white;
  padding: var(--gwp-space-xs) var(--gwp-space-sm);
  border-radius: var(--gwp-radius-md);
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.gwp-mt-location {
  margin-bottom: var(--gwp-space-sm);
  font-style: italic;
  opacity: 0.7;
}

.gwp-mt-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--gwp-space-sm);
  opacity: 0.8;
}

.gwp-mt-ages {
  font-weight: 500;
}

.gwp-mt-time {
  font-weight: 600;
}

/* Custom fields */
.gwp-mt-custom-field {
  margin-top: var(--gwp-space-sm);
  padding-top: var(--gwp-space-sm);
  border-top: 1px solid var(--gwp-border-light);
}

/* Table Layout */
.gwp-mt-layout-table .gwp-mt-cards {
  display: none;
}

.gwp-mt-table-wrapper {
  border-radius: var(--gwp-radius-lg);
  border: 1px solid var(--gwp-border-light);
  background: var(--gwp-bg-card);
  margin-top: var(--gwp-space-md);
  overflow: hidden;
}

.gwp-mt-table {
  width: 100%;
  border-collapse: collapse;
}

.gwp-mt-table th {
  background: var(--gwp-bg-secondary);
  padding: var(--gwp-space-sm);
  text-align: left;
  font-weight: 600;
  border-bottom: 2px solid var(--gwp-border-medium);
  opacity: 0.7;
}

.gwp-mt-table td {
  padding: var(--gwp-space-sm);
  border-bottom: 1px solid var(--gwp-border-light);
}

.gwp-mt-table tr:hover {
  background: var(--gwp-bg-secondary);
}

.gwp-mt-table tr:last-child td {
  border-bottom: none;
}

/* Hide day headers when parameter is set (use !important to override JS inline styles) */
.gwp-mt-hide-day-headers.gwp-mt-layout-cards .gwp-mt-day-header {
  display: none !important;
}

/* Hide day separators in table layout on desktop only (keep visible on mobile) */
@media (min-width: 769px) {
  .gwp-mt-hide-day-headers.gwp-mt-layout-table .gwp-mt-day-separator {
    display: none !important;
  }
}

/* Day Separators in Table */
.gwp-mt-day-separator {
  background: transparent !important;
}

.gwp-mt-day-separator-cell {
  padding: var(--gwp-space-md) !important;
  border: none !important;
  background: var(--gwp-accent) !important;
  box-shadow: var(--gwp-shadow-md) !important;
}

.gwp-mt-day-separator-content {
  padding: 0px var(--gwp-space-xs);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
}

.gwp-mt-day-separator-actions {
  display: flex;
  align-items: center;
  position: relative;
  min-width: 120px;
  justify-content: flex-end;
}

.gwp-mt-day-separator-count,
.gwp-mt-separator-view-all {
  position: absolute;
  right: 0;
  transition: opacity 0.2s ease-in-out;
}

.gwp-mt-day-separator-actions .gwp-mt-day-separator-count {
  opacity: 1;
}

.gwp-mt-day-separator-actions .gwp-mt-separator-view-all {
  opacity: 0;
  pointer-events: none;
}

.gwp-mt-day-separator-actions.gwp-mt-filtered .gwp-mt-day-separator-count {
  opacity: 0;
  pointer-events: none;
}

.gwp-mt-day-separator-actions.gwp-mt-filtered .gwp-mt-separator-view-all {
  opacity: 1;
  pointer-events: auto;
}

.gwp-mt-day-separator-title {
  font-size: 1rem;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.gwp-mt-day-separator-count {
  background: rgba(255, 255, 255, 0.2);
  padding: var(--gwp-space-xs) var(--gwp-space-sm);
  border-radius: var(--gwp-radius-md);
  font-weight: 600;
  backdrop-filter: blur(10px);
}

.gwp-mt-separator-view-all {
  background: rgba(255, 255, 255, 0.9);
  color: var(--gwp-accent);
  border: none;
  border-radius: var(--gwp-radius-md);
  padding: var(--gwp-space-xs) var(--gwp-space-sm);
  font-weight: 600;
  cursor: pointer;
  transition: var(--gwp-transition);
}

.gwp-mt-separator-view-all:hover {
  background: white;
  transform: translateY(-1px);
}

.gwp-mt-activity-row {
  border-left: 3px solid transparent;
  transition: var(--gwp-transition);
}

.gwp-mt-activity-row:hover {
  border-left-color: var(--gwp-accent);
  background: var(--gwp-bg-secondary) !important;
}

.gwp-mt-date-cell {
  font-weight: 600;
  opacity: 0.7;
}

/* Responsive Table - Mobile First Approach */
@media (max-width: 768px) {
  .gwp-mt-table-wrapper {
    border: none;
    background: transparent;
  }

  .gwp-mt-table {
    border: 0;
  }

  .gwp-mt-table thead {
    border: none;
    clip: rect(0 0 0 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
  }

  .gwp-mt-table tr {
    background: var(--gwp-bg-card);
    border: 1px solid var(--gwp-border-light);
    border-radius: var(--gwp-radius-md);
    display: block;
    margin-bottom: var(--gwp-space-sm);
    padding: var(--gwp-space-sm);
    box-shadow: var(--gwp-shadow-sm);
    transition: var(--gwp-transition);
  }

  .gwp-mt-table tr:hover {
    box-shadow: var(--gwp-shadow-md);
    transform: translateY(-1px);
    background: var(--gwp-bg-card);
  }

  .gwp-mt-table td {
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3px 0;
    text-align: right;
    line-height: 1.3;
  }

  .gwp-mt-table td:last-child {
    border-bottom: none;
  }

  .gwp-mt-table td:before {
    content: attr(data-label);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    flex: 1;
    text-align: left;
    opacity: 0.7;
  }

  /* Hide the date column on mobile since it's redundant with day headers */
  .gwp-mt-table td:first-child {
    display: none;
  }

  /* Day separators on mobile */
  .gwp-mt-day-separator {
    display: block !important;
    background: transparent !important;
    border: none !important;
    margin-bottom: var(--gwp-space-xs) !important;
    padding: 0 !important;
  }

  .gwp-mt-day-separator-cell {
    display: block !important;
    background: var(--gwp-accent) !important;
    color: white !important;
    border-radius: var(--gwp-radius-md) !important;
    padding: var(--gwp-space-sm) var(--gwp-space-sm) !important;
    text-align: center !important;
    box-shadow: var(--gwp-shadow-md) !important;
    margin-bottom: var(--gwp-space-sm) !important;
  }

  .gwp-mt-day-separator-content {
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: var(--gwp-space-xs) !important;
  }

  .gwp-mt-day-separator-title {
    flex: 1;
    text-align: left !important;
  }

  .gwp-mt-day-separator-actions {
    flex-shrink: 0 !important;
  }
}

/* Empty State */
.gwp-mt-empty {
  text-align: center;
  padding: var(--gwp-space-2xl);
  opacity: 0.6;
}

.gwp-mt-empty h3 {
  margin: 0 0 var(--gwp-space-sm) 0;
}

.gwp-mt-empty p {
  margin: 0;
}

/* No Activities Available State */
.gwp-mt-no-activities {
  text-align: center;
  padding: var(--gwp-space-2xl);
  background: var(--gwp-bg-secondary);
  border-radius: var(--gwp-radius-lg);
  border: 2px dashed var(--gwp-border-medium);
  margin-top: var(--gwp-space-xl);
}

.gwp-mt-no-activities .gwp-mt-empty-icon {
  font-size: 4rem;
  margin-bottom: var(--gwp-space-lg);
  opacity: 0.5;
}

.gwp-mt-no-activities h3 {
  margin: 0 0 var(--gwp-space-sm) 0;
  color: var(--gwp-accent);
}

.gwp-mt-no-activities p {
  margin: 0;
  opacity: 0.8;
}

/* Error State */
.gwp-mt-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgb(239, 68, 68);
  border-radius: var(--gwp-radius-md);
  padding: var(--gwp-space-lg);
  color: rgb(185, 28, 28);
  text-align: center;
  font-weight: 500;
}

/* Hidden elements */
[style*="display: none"] {
  display: none !important;
}

/* Responsive Breakpoints */

/* Mobile optimizations */
@media (max-width: 640px) {
  .gwp-mt-cards {
    gap: var(--gwp-space-md);
  }

  .gwp-mt-card {
    padding: var(--gwp-space-sm);
  }

  .gwp-mt-activity-title {
    line-height: 1.2;
  }

  .gwp-mt-cost {
    padding: 2px 6px;
  }

  .gwp-mt-location {
    margin-bottom: var(--gwp-space-xs);
  }

  .gwp-mt-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }

  .gwp-mt-day-header {
    padding: var(--gwp-space-md);
  }
}

/* Small tablets */
@media (min-width: 640px) {
  .gwp-mt-cards {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  }

  .gwp-mt-filter-row {
    flex-wrap: nowrap;
  }
}

/* Medium tablets */
@media (min-width: 768px) {
  .gwp-modern-timetable {
    padding: var(--gwp-space-lg);
  }

  .gwp-mt-cards {
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: var(--gwp-space-xl);
  }

  .gwp-mt-filters {
    padding: var(--gwp-space-xl);
  }

  .gwp-mt-search-wrapper {
    max-width: 400px;
  }
}

/* Large tablets & small desktops */
@media (min-width: 1024px) {
  .gwp-mt-cards {
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  }

  .gwp-mt-filter-row {
    justify-content: flex-start;
  }

  .gwp-mt-filter {
    flex: 0 1 200px;
  }

  .gwp-mt-search-wrapper {
    max-width: 500px;
  }
}

/* Large desktops */
@media (min-width: 1280px) {
  .gwp-mt-cards {
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
  }
}

/* Extra large screens */
@media (min-width: 1536px) {
  .gwp-modern-timetable {
    max-width: 1400px;
    margin: 0 auto;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .gwp-mt-card {
    border-width: 2px;
  }

  .gwp-mt-search,
  .gwp-mt-filter {
    border-width: 2px;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .gwp-mt-card:hover {
    transform: none;
  }
}

/* Print styles */
@media print {
  .gwp-mt-filters,
  .gwp-mt-results-info {
    display: none;
  }

  .gwp-mt-cards {
    display: block;
  }

  .gwp-mt-card {
    break-inside: avoid;
    margin-bottom: var(--gwp-space-lg);
    box-shadow: none;
    border: 1px solid #000;
  }
}
