/*==============================================================================
// File:        comparison-matrix.css
// Package:     Joomla / Zenbase
// Synopsis:    Comparison Matrix component styles
//============================================================================*/

.comparison-matrix-section {
  background: #000;
  padding: 60px 0;
  color: #fff;
}

.comparison-matrix-section .section-title {
  color: #fff;
  text-align: center;
  font-family: 'fustatregular', sans-serif;
  font-weight: 800;
  font-size: 40px;
  line-height: 44px;
  margin-bottom: 20px;
}

.comparison-matrix-section .section-subtitle {
  color: #fff;
  text-align: center;
  font-family: 'fustatregular', sans-serif;
  font-weight: 800;
  font-size: 24px;
  line-height: 26px;
  margin-bottom: 20px;
}

.comparison-matrix-section .section-subtitle2 {
  color: #fff;
  text-align: center;
  font-family: 'fustatregular', sans-serif;
  font-weight: 700;
  font-size: 18px;
  line-height: normal;
  margin-bottom: 43px;
  max-width: 1022px;
  margin-left: auto;
  margin-right: auto;
}

.comparison-matrix-wrapper {
  position: relative;
}

/* Top Bar: Buttons above Legend */
.comparison-matrix-top-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  border-bottom: 1px solid #e9ecef;
  gap: 20px;
  margin-bottom: 30px;
  padding-bottom: 20px;
}

/* Buttons container at top of panel */
.comparison-matrix-top-bar .comparison-matrix-top-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Legend / Key section - inside white panel */
.comparison-matrix-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 0;
  margin-top: 20px;
}

/* Legend in top bar - centered */
.comparison-matrix-top-bar .comparison-matrix-legend {
  justify-content: center;
  margin-top: 0;
  width: 100%;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'fustatregular', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: #000000;
}

.legend-item .legend-text {
  font-size: 14px;
  line-height: 24px;
  font-weight: 600;
}

.legend-item .legend-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.legend-item .legend-icon img {
  width: 100%;
  height: 100%;
}

.legend-item .legend-icon.legend-star {
  background: #95C623;
  border-radius: 50%;
}

.legend-item .legend-icon.legend-star img {
  /* White star on green circular background - scaled down to not touch edges */
  filter: none;
  padding: 4px;
  box-sizing: border-box;
}

.legend-item .legend-icon.legend-check svg {
  /* Green checkmark #95C623 (no circle background in legend) */
  display: block;
  width: 100%;
  height: 100%;
}


/* Download button - inside white panel (top bar only) */
.comparison-matrix-download {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin-top: 20px;
}

/* Top buttons - fit content width */
.comparison-matrix-top-bar .btn-download-comparison,
.comparison-matrix-top-bar .btn-dates-prices {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'fustatmedium', sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  padding: 7px 13px;
  border-radius: 28px;
  transition: all 0.2s ease;
  white-space: nowrap;
  cursor: pointer;
  width: auto;
}

.comparison-matrix-top-bar .btn-download-comparison {
  color: #000000;
  background: transparent;
  border: 1px solid #000000;
}

.comparison-matrix-top-bar .btn-download-comparison:hover {
  background: #f8f9fa;
  color: #000000;
}

.comparison-matrix-top-bar .btn-dates-prices {
  color: #000000;
  background: #FE7720;
  border: 1px solid #FE7720;
}

.comparison-matrix-top-bar .btn-dates-prices:hover {
  background: #CD5334;
  border-color: #CD5334;
}

.comparison-matrix-top-bar .btn-download-comparison img,
.comparison-matrix-top-bar .btn-dates-prices svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

/* Bottom Buttons Section */
.comparison-matrix-bottom-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 0;
  margin-top: 30px;
  flex-wrap: wrap;
}

.comparison-matrix-bottom-buttons .btn-download-comparison,
.comparison-matrix-bottom-buttons .btn-dates-prices {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'fustatmedium', sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  padding: 7px 13px;
  border-radius: 28px;
  transition: all 0.2s ease;
  white-space: nowrap;
  cursor: pointer;
}

.comparison-matrix-bottom-buttons .btn-download-comparison {
  color: #000000;
  background: transparent;
  border: 1px solid #000000;
}

.comparison-matrix-bottom-buttons .btn-download-comparison:hover {
  background: #f8f9fa;
  color: #000000;
}

.comparison-matrix-bottom-buttons .btn-dates-prices {
  color: #000000;
  background: #FE7720;
  border: 1px solid #FE7720;
}

.comparison-matrix-bottom-buttons .btn-dates-prices:hover {
  background: #CD5334;
  border-color: #CD5334;
}

.comparison-matrix-bottom-buttons .btn-download-comparison img,
.comparison-matrix-bottom-buttons .btn-dates-prices svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

/* Hide/Show toggle button - in black section */
.comparison-matrix-toggle-wrapper {
  text-align: center;
  margin-bottom: 60px;
}

/* Bottom toggle - hidden by default, shown when panel is open */
.comparison-matrix-toggle-wrapper.comparison-matrix-toggle-bottom {
  display: none;
  margin-top: 40px;
  margin-bottom: 0;
}

.comparison-matrix-toggle-wrapper.comparison-matrix-toggle-bottom.visible {
  display: block;
}

.btn-toggle-comparison {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #FFFFFF;
  color: #000000;
  border: 1px solid #000000;
  padding: 9px 17px;
  border-radius: 28px;
  font-family: 'fustatregular', sans-serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.5;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  max-width: 1022px;
  margin: 0 auto;
}

.btn-toggle-comparison:hover {
  background: #F8F9FA;
  border-color: #000000;
}

.btn-toggle-comparison .toggle-icon {
  width: 24px;
  height: 24px;
  color: #000000;
  transition: transform 0.3s ease;
}

.btn-toggle-comparison.open .toggle-icon {
  transform: rotate(180deg);
}

/* Panel wrapper for table - white background */
.comparison-matrix-panel {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 40px;
  display: none; /* Initially hidden */
  padding: 35px 30px;
}

.comparison-matrix-panel.show {
  display: block;
}

/* Table wrapper for horizontal scroll on mobile */
.comparison-matrix-wrapper .table-responsive {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0;
}

/* Base grid styles */
.comparison-matrix-grid {
  width: 100%;
  background: #fff;
}

/* Grid header */
.grid-header {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1.5fr; /* Default 3 columns for mobile/tablet */
  column-gap: 25px;
  padding-bottom: 30px;
}

.header-cell {
  min-height: 156px;
  display: flex;
  align-items: flex-end;
  font-family: 'fustatregular', sans-serif;
  width: 100%; /* Fill full column width */
  min-width: 0; /* Allow shrinking for word breaking */
}

.header-cell.feature-column {
  font-weight: 800;
  font-size: 24px;
  line-height: 26px;
  color: #000000;
  border-bottom: 1px solid #000000;
  align-items: flex-end;
}

.header-cell.evertrek-column {
  align-items: center;
}

.header-cell.evertrek-column .brand-header {
  background: #E3E8EE;
  border-radius: 10px;
  border-bottom: 10px solid #FE7720;
  padding: 0 6px;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.header-cell.competitor-column {
  align-items: center;
}

.header-cell.competitor-column .competitor-column-header {
  background: #E3E8EE;
  border-radius: 10px;
  padding: 20px 10px;
  width: 100%;
  height: 100%;
}

/* Grid rows */
.grid-row {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1.5fr; /* Default 3 columns for mobile/tablet */
  column-gap: 25px;
  border-bottom: 1px solid #909090;
  align-items: start; /* Align all cells to top of row */
}

.grid-row:last-child {
  border-bottom: 1px solid #909090;
}

/* Section header rows */
.grid-row.section-header {
  display: block;
  background: #E3E8EE;
  border-bottom: 1px solid #909090;
}

.section-header-content {
  padding: 8px 10px;
  font-family: 'fustatregular', sans-serif;
  font-weight: 800;
  font-size: 24px;
  line-height: 26px;
  color: #000000;
  text-align: center;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-header-text {
  flex: 1;
  text-align: center;
}

.section-toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
}

.section-toggle-icon img {
  width: 100%;
  height: 100%;
}

/* Rotate arrow when section is collapsed */
.grid-row.section-header.collapsed .section-toggle-icon {
  transform: rotate(-180deg);
}

/* Hide section rows when collapsed */
.grid-row.section-row.collapsed {
  display: none !important;
}

.grid-cell {
  padding: 10px;
  font-family: 'fustatregular', sans-serif;
  font-size: 14px;
  line-height: normal;
  align-self: stretch; /* Ensure cells fill full row height */
  min-width: 0; /* Allow grid cells to shrink below content size for word breaking */
}

.grid-cell.feature-label {
  font-weight: 700;
  font-size: 18px;
  line-height: 22px;
  color: #000000;
  padding: 10px 0;
  display: flex;
  align-items: flex-start; /* Align text to top when wrapping */
  width: 100%; /* Fill full column width */
  min-width: 0; /* Allow shrinking for word breaking */
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word; /* Force breaking of long words */
  hyphens: auto;
}

.grid-cell.evertrek-cell {
  padding: 0;
  position: relative;
  width: 100%; /* Fill full column width */
  min-width: 0; /* Allow shrinking for word breaking */
}

.grid-cell.evertrek-cell .evertrek-cell-inner {
  background: rgba(149, 198, 35, 0.2);
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%; /* Fill parent width */
}

.grid-cell.evertrek-cell .cell-content {
  padding: 10px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  flex: 1;
}

/* Cells with exclusive bar should have 6px top padding */
.grid-cell.evertrek-cell:has(.exclusive-bar) .cell-content {
  padding-top: 6px;
}

/* Center-align content when there's no icon (EXCEPT trip-length and price rows) */
.grid-cell.evertrek-cell .cell-content:not(:has(span[class^="badge-"], span[class^="icon-"])) {
  justify-content: center;
  text-align: center;
}

.grid-cell.evertrek-cell .cell-content:not(:has(span[class^="badge-"], span[class^="icon-"])) .feature-text {
  width: 100%;
}

/* Force left-align for trek-specialist, trip-length and price rows regardless of icon */
.grid-row[data-feature*="trek-specialist"] .grid-cell.evertrek-cell .cell-content,
.grid-row[data-feature*="trip-length"] .grid-cell.evertrek-cell .cell-content,
.grid-row[data-feature*="price"] .grid-cell.evertrek-cell .cell-content {
  justify-content: flex-start;
  text-align: left;
}

/* Exclusive bar for star icon cells */
.grid-cell.evertrek-cell .exclusive-bar {
  background: #95C623;
  height: 17px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.grid-cell.evertrek-cell .exclusive-bar span {
  font-family: 'fustatregular', sans-serif;
  font-weight: 600;
  font-size: 12px;
  line-height: normal;
  color: #000000;
  text-align: center;
}

.grid-cell.evertrek-cell .badge-star,
.grid-cell.evertrek-cell .badge-check,
.grid-cell.evertrek-cell .icon-blank {
  display: block;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
}

.grid-cell.evertrek-cell .badge-star,
.grid-cell.evertrek-cell .badge-check {
  background: #95C623;
  border-radius: 60px;
}

/* Blank icon - invisible but holds space */
.grid-cell.evertrek-cell .icon-blank {
  visibility: hidden;
}

.grid-cell.evertrek-cell .badge-star img,
.grid-cell.evertrek-cell .badge-check img {
  width: 100%;
  height: 100%;
  display: block;
}

.grid-cell.evertrek-cell .badge-star img {
  /* White star on green circular background - scaled down to not touch edges */
  filter: none;
  padding: 4px;
  box-sizing: border-box;
}

.grid-cell.evertrek-cell .badge-check img.icon-check-green {
  /* White check icon - scaled down to not touch edges */
  filter: brightness(0) invert(1);
  padding: 3px;
  box-sizing: border-box;
}

.grid-cell.evertrek-cell .icon-remove,
.grid-cell.evertrek-cell .icon-close {
  display: block;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
}

.grid-cell.evertrek-cell .icon-remove img,
.grid-cell.evertrek-cell .icon-close img {
  width: 100%;
  height: 100%;
  display: block;
}

.grid-cell.evertrek-cell .icon-remove img {
  /* Orange color is in the SVG itself (#fe7720) */
}

.grid-cell.evertrek-cell .icon-close img {
  filter: invert(35%) sepia(85%) saturate(2500%) hue-rotate(340deg) brightness(95%) contrast(95%);
}

.grid-cell.evertrek-cell .feature-text {
  flex: 1;
  font-family: 'fustatregular', sans-serif;
  font-weight: 600;
  font-size: 14px;
  line-height: 18px;
  color: #000000;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
}

.grid-cell.competitor-cell {
  text-align: left;
  padding: 10px;
  width: 100%; /* Fill full column width */
  min-width: 0; /* Allow shrinking for word breaking */
}

.grid-cell.competitor-cell > div {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  width: 100%; /* Fill parent width */
}

/* Center-align competitor cell content when there's no icon (EXCEPT trip-length and price rows) */
.grid-cell.competitor-cell > div:not(:has(span[class^="badge-"], span[class^="icon-"])) {
  justify-content: center;
  text-align: center;
}

.grid-cell.competitor-cell > div:not(:has(span[class^="badge-"], span[class^="icon-"])) .feature-text {
  width: 100%;
}

/* Force left-align for trip-length and price rows in competitor cells */
.grid-row[data-feature*="trip-length"] .grid-cell.competitor-cell > div,
.grid-row[data-feature*="price"] .grid-cell.competitor-cell > div {
  justify-content: flex-start;
  text-align: left;
}

.grid-cell.competitor-cell .icon-check,
.grid-cell.competitor-cell .icon-remove,
.grid-cell.competitor-cell .icon-close,
.grid-cell.competitor-cell .badge-star,
.grid-cell.competitor-cell .icon-blank {
  display: block;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

/* Blank icon - invisible but holds space */
.grid-cell.competitor-cell .icon-blank {
  visibility: hidden;
}

.grid-cell.competitor-cell .badge-star {
  background: #95C623;
  border-radius: 50%;
  width: 24px;
  height: 24px;
}

.grid-cell.competitor-cell .icon-check svg,
.grid-cell.competitor-cell .icon-remove img,
.grid-cell.competitor-cell .icon-close img,
.grid-cell.competitor-cell .badge-star img {
  width: 100%;
  height: 100%;
  display: block;
}

.grid-cell.competitor-cell .icon-remove img {
  /* Orange color is in the SVG itself (#fe7720) */
}

.grid-cell.competitor-cell .icon-close img {
  filter: invert(35%) sepia(85%) saturate(2500%) hue-rotate(340deg) brightness(95%) contrast(95%);
}

.grid-cell.competitor-cell .feature-text {
  flex: 1;
  font-family: 'fustatregular', sans-serif;
  font-weight: 400;
  font-size: 14px;
  line-height: normal;
  color: #000000;
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* Empty state when no competitor selected */
.grid-cell.competitor-cell:empty::after {
  content: '';
  display: block;
}

/* Brand header in Evertrek column */
.brand-header {
  gap: 10px;
}

.brand-header .brand-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-header .brand-logo-text {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 85px;
  height: 13px;
  flex-shrink: 0;
}

.brand-header .brand-logo-text img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-header .brand-logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  flex-shrink: 0;
}

.brand-header .brand-logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-header .brand-subtitle {
  font-family: 'fustatregular', sans-serif;
  font-size: 16px;
  font-weight: 600;
  line-height: normal;
  color: #000000;
  text-align: center;
  flex-shrink: 0;
  min-width: 100%;
}

/* Competitor column header layout */
.competitor-column-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.competitor-column-name {
  font-family: 'fustatregular', sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  color: #000000;
  text-align: center;
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.competitor-column-name .competitor-add-icon {
  width: 60px;
  height: 60px;
  display: block;
  flex-shrink: 0;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.competitor-column-name .competitor-add-icon:hover {
  opacity: 0.7;
}

/* Only show pointer cursor when icon is present */
.competitor-column-name:has(.competitor-add-icon) {
  cursor: pointer;
}

/* Competitor select dropdown - clean approach using no-styling class */
/* Override Bootstrap's width: 100% for comparison matrix selects */
.comparison-matrix-panel .competitor-select.no-styling {
  width: 152px !important;
  max-width: 152px !important;
  padding: 6px 12px;
  font-family: 'fustatregular', sans-serif;
  font-size: 14px;
  font-weight: 400;
  border: 1px solid #CED4DA;
  border-radius: 4px;
  background: #FFFFFF;
  color: #6C757D;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236C757D' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px 12px;
  padding-right: 30px;
  box-sizing: border-box;
}

.comparison-matrix-panel .competitor-select.no-styling:focus {
  outline: none;
  border-color: #80bdff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.comparison-matrix-panel .competitor-select.no-styling option {
  padding: 8px;
}

/* Footer inside white panel */
.comparison-matrix-footer {
  padding: 0;
  padding-top: 20px;
  margin-top: 20px;
  background: #fff;
}

.comparison-matrix-footer .footer-content {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  max-width: 100%;
}

.comparison-matrix-footer p {
  margin: 0;
  font-family: 'fustatregular', sans-serif;
  font-weight: 400;
  line-height: 1.5;
  font-size: 14px;
  color: #000000;
}

.comparison-matrix-footer p.footer-updated {
  flex: 1;
  text-align: left;
}

.comparison-matrix-footer p.footer-disclaimer {
  flex: 3;
  text-align: right;
}

.comparison-matrix-footer p a {
  color: #007bff;
  text-decoration: none;
}

.comparison-matrix-footer p a:hover {
  text-decoration: underline;
}

/* Feature Badges Section */
.feature-badges-section {
  margin-top: 0;
  padding: 0;
}

/* Closed state badges - hide when panel is open */
.feature-badges-section.feature-badges-closed.hidden {
  display: none;
}

/* Open state badges - hidden by default, show when panel is open */
.feature-badges-section.feature-badges-open {
  display: none;
  margin-top: 60px;
}

.feature-badges-section.feature-badges-open.visible {
  display: block;
}

.feature-badges-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0 60px;
  max-width: 1022px;
  margin: 0 auto;
}

.feature-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
}

.feature-badge-icon {
  width: 78px;
  height: 78px;
  flex-shrink: 0;
  color: #FE7720;
}

.feature-badge-icon img {
  width: 100%;
  height: 100%;
}

.feature-badge-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.feature-badge-title {
  font-family: 'fustatregular', sans-serif;
  font-size: 24px;
  font-weight: 800;
  line-height: 26px;
  color: #fff;
}

.feature-badge-text {
  font-family: 'fustatregular', sans-serif;
  font-size: 18px;
  font-weight: 600;
  line-height: normal;
  color: #fff;
}

/* Responsive grid utilities */
.d-none.d-lg-grid-cell {
  display: none;
}

@media (min-width: 992px) {
  /* Desktop: Show all 5 columns */
  .grid-header {
    grid-template-columns: 2fr repeat(4, 1.5fr);
  }

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

  .d-none.d-lg-grid-cell {
    display: block !important;
  }
}

/* Small tablet/large mobile: Show 3 columns at 577px-767px */
@media (min-width: 577px) and (max-width: 767px) {
  /* Show only 3 columns: Feature, EverTrek, Competitor 1 */
  .grid-header {
    grid-template-columns: 2fr 1.5fr 1.5fr;
  }

  .grid-row {
    grid-template-columns: 2fr 1.5fr 1.5fr;
    align-items: start;
  }

  /* Hide competitor columns 2 and 3, keep column 1 visible */
  .header-cell.competitor-column-2,
  .header-cell.competitor-column-3,
  .grid-cell.competitor-cell[data-column="2"],
  .grid-cell.competitor-cell[data-column="3"] {
    display: none !important;
  }
}

/* Tablet: Show 3 columns (EverTrek + 1 competitor) at 768px-991px */
@media (min-width: 768px) and (max-width: 991px) {
  /* Show only 3 columns: Feature, EverTrek, Competitor 1 */
  .grid-header {
    grid-template-columns: 2fr 1.5fr 1.5fr;
  }

  .grid-row {
    grid-template-columns: 2fr 1.5fr 1.5fr;
    align-items: start; /* Maintain alignment on tablet */
  }

  /* Hide competitor columns 2 and 3 on tablet */
  .header-cell.competitor-column-2,
  .header-cell.competitor-column-3,
  .grid-cell.competitor-cell[data-column="2"],
  .grid-cell.competitor-cell[data-column="3"] {
    display: none !important;
  }
}

/* Responsive styles */
@media (max-width: 991px) {
  .comparison-matrix-table thead th.feature-column {
    min-width: 120px;
  }

  .comparison-matrix-table thead th.evertrek-column {
    min-width: 150px;
  }

  .comparison-matrix-table thead th.competitor-column {
    min-width: 130px;
  }

  .brand-header .brand-logo-icon {
    width: 42px;
    height: 42px;
  }

  .brand-header .brand-subtitle {
    font-size: 14px;
  }

  .feature-badges-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px 40px;
  }

  .feature-badge-icon {
    width: 78px;
    height: 78px;
  }

  .feature-badge-icon img {
    width: 100%;
    height: 100%;
  }

  .feature-badge-title {
    font-size: 20px;
    line-height: 24px;
  }

  .feature-badge-text {
    font-size: 16px;
  }

  .feature-badges-section.feature-badges-open {
    margin-top: 40px;
  }

  /* Center footer text on tablet */
  .comparison-matrix-footer .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }

  .comparison-matrix-footer p.footer-updated,
  .comparison-matrix-footer p.footer-disclaimer {
    flex: 0 0 auto;
    width: 100%;
    text-align: center;
  }
}

@media (max-width: 576px) {
  .comparison-matrix-section {
    padding: 40px 0;
  }

  .comparison-matrix-section .section-title {
    font-size: 28px;
    line-height: 32px;
  }

  .comparison-matrix-section .section-subtitle {
    font-size: 20px;
    line-height: 24px;
  }

  .comparison-matrix-section .section-subtitle2 {
    font-size: 16px;
  }

  .btn-toggle-comparison {
    font-size: 16px;
    padding: 8px 15px;
  }

  .comparison-matrix-toggle-wrapper {
    margin-bottom: 40px;
  }

  .comparison-matrix-toggle-wrapper.comparison-matrix-toggle-bottom {
    margin-top: 30px;
  }

  .comparison-matrix-panel {
    padding-top: 20px;
  }

  .comparison-matrix-top-bar {
    padding: 15px;
    margin-bottom: 20px;
    border-bottom: none;
  }

  /* 2x2 legend layout on mobile - icons above text */
  .comparison-matrix-legend {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 12px;
    font-size: 12px;
  }

  .legend-item {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 11px;
    gap: 4px;
  }

  /* Top buttons - stack vertically on mobile, fit-content width */
  .comparison-matrix-top-bar .comparison-matrix-top-buttons {
    flex-direction: column-reverse;
    gap: 20px;
    width: 100%;
    align-items: center;
  }

  .comparison-matrix-top-bar .btn-download-comparison,
  .comparison-matrix-top-bar .btn-dates-prices {
    width: auto;
    justify-content: center;
    font-size: 14px;
  }

  /* Bottom buttons - stack vertically on mobile, fit-content width */
  .comparison-matrix-bottom-buttons {
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
    align-items: center;
  }

  .comparison-matrix-bottom-buttons .btn-download-comparison,
  .comparison-matrix-bottom-buttons .btn-dates-prices {
    width: auto;
    justify-content: center;
    font-size: 14px;
  }

  .comparison-matrix-footer .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 8px;
  }

  .comparison-matrix-footer p.footer-updated,
  .comparison-matrix-footer p.footer-disclaimer {
    flex: 0 0 auto;
    width: 100%;
    text-align: center;
    font-size: 13px;
  }

  .comparison-matrix-grid {
    font-size: 13px;
  }

  /* Mobile: Show only 2 columns */
  .grid-header {
    grid-template-columns: 1fr 1fr;
    column-gap: 0;
  }

  .header-cell {
    padding: 0 10px;
    font-size: 13px;
    height: 170px;
  }

  .header-cell.feature-column {
    display: none;
  }

  .header-cell.evertrek-column {
    min-height: auto;
    padding-left: 0;
  }

  .header-cell.competitor-column {
    min-height: auto;
    padding-right: 0;
  }

  .grid-cell {
    padding: 15px 10px;
    font-size: 13px;
  }

  /* Mobile layout: Feature label as full-width header above 2-column data */
  .grid-row.section-row {
    display: flex !important;
    flex-wrap: wrap;
    grid-template-columns: none;
    column-gap: 0;
    border-bottom: 1px solid #909090;
  }

  .grid-cell.feature-label {
    width: 100% !important;
    flex: 0 0 100%;
    text-align: center !important;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    padding: 20px 10px 15px;
    border-bottom: none;
  }

  .grid-cell.evertrek-cell {
    width: 50% !important;
    flex: 0 0 50%;
    padding: 0;
    border-bottom: none;
  }

  .grid-cell.competitor-cell {
    width: 50% !important;
    flex: 0 0 50%;
    padding: 10px;
    border-bottom: none;
  }

  .grid-cell.competitor-cell:nth-child(4),
  .grid-cell.competitor-cell:nth-child(5) {
    display: none !important;
  }

  /* Hide columns 2 and 3 on mobile - will be shown on desktop via d-lg-grid-cell */

  /* Section header text left-aligned on mobile */
  .section-header-text {
    text-align: left;
  }

  /* Mobile: Stack icons above text and center-align */
  .grid-cell.evertrek-cell .cell-content,
  .grid-cell.competitor-cell > div {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
  }

  /* Mobile: Keep trip-length and price left-aligned even on mobile */
  .grid-row[data-feature*="trip-length"] .grid-cell.evertrek-cell .cell-content,
  .grid-row[data-feature*="trip-length"] .grid-cell.competitor-cell > div,
  .grid-row[data-feature*="price"] .grid-cell.evertrek-cell .cell-content,
  .grid-row[data-feature*="price"] .grid-cell.competitor-cell > div {
    align-items: flex-start;
    text-align: left;
  }

  .brand-header {
    gap: 6px;
  }

  .brand-header .brand-logo-text {
    width: 104px;
    height: 16px;
  }

  .brand-header .brand-logo-icon {
    width: 63px;
    height: 63px;
  }

  .brand-header .brand-subtitle {
    font-size: 16px;
    line-height: normal;
    font-weight: 600;
  }

  .competitor-select {
    font-size: 13px;
    padding: 6px 10px;
  }

  .competitor-column-name .competitor-add-icon {
    width: 48px;
    height: 48px;
  }

  .feature-badges-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .feature-badge-icon {
    width: 78px;
    height: 78px;
  }

  .feature-badge-icon img {
    width: 100%;
    height: 100%;
  }

  .feature-badge-title {
    font-size: 18px;
    line-height: 22px;
  }

  .feature-badge-text {
    font-size: 14px;
  }

  .feature-badges-section.feature-badges-open {
    margin-top: 30px;
  }
}

/* Hidden Features
============================================================================== */
/* Hide specific rows by feature ID */
.grid-row[data-feature="price"] {
  display: none !important;
}

