/* Company Profile Page - Responsive */

@media (max-width: 1220px) {
  .module-wk_transportexpress-company #columns.container,
  .wk-te-company-page,
  .wk-te-company-hero,
  .wk-te-routes-layout {
    width: 100%;
  }

  .wk-te-company-hero {
    grid-template-columns: minmax(0, 1fr) 280px;
  }

  .wk-te-routes-layout {
    grid-template-columns: 256px minmax(0, 1fr);
  }
}

@media (max-width: 900px) {
  .wk-te-company-container {
    padding: 14px;
  }

  .wk-te-company-name {
    height: auto;
    font-size: 28px;
    line-height: 1.2;
  }

  .wk-te-company-logo {
    width: 42px;
    height: 42px;
  }

  .wk-te-company-hero,
  .wk-te-routes-layout {
    grid-template-columns: 1fr;
  }

  .wk-te-gallery.has-thumbs {
    grid-template-columns: 120px minmax(0, 1fr);
  }

  .wk-te-gallery-thumbs {
    height: auto;
  }

  .wk-te-gallery-thumb {
    width: 120px;
    height: 90px;
  }

  .wk-te-gallery-main {
    height: 360px;
  }

  .wk-te-routes-filter,
  .wk-te-routes-panel,
  .wk-te-routes-list,
  .wk-te-route-row,
  .wk-te-no-routes {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .module-wk_transportexpress-company :is(#columns, #center_column) {
    padding: 0;
  }

  .wk-te-company-page {
    padding: 0;
  }

  .wk-te-company-container {
    gap: 0;
    padding: 0;
  }

  .wk-te-company-name {
    gap: 12px;
    width: 100%;
    height: auto;
    margin: 0;
    padding: 16px 32px;
    font-size: 24px;
    line-height: 32px;
  }

  .wk-te-company-logo {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    font-size: 16px;
  }

  .wk-te-company-hero {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
  }

  .wk-te-company-rating-box {
    order: -1;
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
    height: auto;
    padding: 16px 32px;
    border: 0;
  }

  .wk-te-rating-score {
    gap: 5px;
    padding: 0;
  }

  .wk-te-rating-score svg,
  .wk-te-affiliate-badge img {
    width: 20px;
    height: 20px;
  }

  .wk-te-affiliate-badge img {
    width: 18px;
    height: 18px;
  }

  .wk-te-rating-value {
    font-size: 20px;
    line-height: 24px;
  }

  .wk-te-rating-count {
    width: auto;
    padding: 0 0 0 6px;
    border: 0;
    color: #7b8794;
    font-size: 13px;
    line-height: 20px;
  }

  .wk-te-rating-actions,
  .wk-te-rating-author {
    display: none;
  }

  .wk-te-affiliate-badge {
    margin-left: 8px;
  }

  .wk-te-gallery,
  .wk-te-gallery.has-thumbs {
    grid-template-columns: 1fr;
    gap: 10px;
    width: 100%;
  }

  .wk-te-gallery-thumbs {
    order: 2;
    justify-content: center;
    flex-direction: row;
    gap: 5px;
    width: 100%;
    margin-top: -2px;
    overflow-x: auto;
  }

  .wk-te-gallery-thumb {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #d6d6d6;
  }

  .wk-te-gallery-thumb.is-active {
    outline: 0;
    background: #1ca89e;
  }

  .wk-te-gallery-thumb img {
    display: none;
  }

  .wk-te-gallery-main {
    height: 240px;
    border-radius: 0;
    touch-action: pan-y;
  }

  .wk-te-gallery-main img {
    transition: opacity 0.18s ease, transform 0.18s ease;
    will-change: opacity, transform;
  }

  .wk-te-gallery-main.is-gallery-changing img {
    opacity: 0.55;
  }

  .wk-te-gallery-main.is-sliding-next img {
    transform: translateX(-18px);
  }

  .wk-te-gallery-main.is-sliding-prev img {
    transform: translateX(18px);
  }

  .wk-te-company-description {
    width: 100%;
    padding: 0 16px;
    color: #555;
    overflow-wrap: anywhere;
  }

  .wk-te-company-description p {
    margin: 0;
    padding: 16px;
  }

  .wk-te-company-description p + p {
    margin-top: 28px;
  }

  .wk-te-company-routes h2,
  .wk-te-company-policies h2,
  .wk-te-reviews-section h2 {
    padding: 16px 16px 12px;
    font-size: 20px;
    line-height: 28px;
  }

  .wk-te-company-routes,
  .wk-te-company-policies {
    background: #f9fafb;
  }

  .wk-te-company-routes {
    padding: 16px;
  }

  .wk-te-routes-layout {
    gap: 12px;
    padding: 0 16px;
  }

  .wk-te-routes-filter,
  .wk-te-routes-panel {
    min-height: 0;
    border: 0;
    border-radius: 0;
  }

  .wk-te-filter-title,
  .wk-te-filter-label-row,
  .wk-te-routes-toolbar {
    display: none;
  }

  .wk-te-filter-group {
    width: 100%;
    min-height: 0;
    margin: 0 0 8px;
    padding: 0;
    border: 0;
  }

  .wk-te-filter-select {
    width: 100%;
    height: 42px;
    padding: 0 12px;
    border: 1px solid #d5d5d5;
    border-radius: 8px;
    color: #677684;
    font-size: 13px;
  }

  .wk-te-routes-list {
    gap: 10px;
    min-height: 0;
    padding: 0;
  }

  .wk-te-route-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 12px;
    min-height: 116px;
    padding: 16px;
    border: 1px solid #d5d5d5;
    border-radius: 10px;
    box-shadow: none;
  }

  .wk-te-route-info {
    grid-column: 1 / -1;
  }

  .wk-te-route-cities {
    color: #0e1a25;
    font-size: 15px;
    line-height: 21px;
    white-space: normal;
  }

  .wk-te-route-meta {
    gap: 5px;
    margin-top: 5px;
    color: #6b7c8c;
    font-size: 11px;
    line-height: 16px;
  }

  .wk-te-route-pricing {
    align-self: end;
    text-align: left;
  }

  .wk-te-route-price {
    font-size: 21px;
    line-height: 26px;
  }

  .wk-te-route-per {
    color: #6b7c8c;
    font-size: 11px;
    line-height: 15px;
  }

  .wk-te-book-btn {
    align-self: end;
    width: 82px;
    height: 36px;
    padding: 8px;
    border-radius: 6px;
    font-size: 11px;
    line-height: 16px;
  }

  .wk-te-company-policies {
    align-self: stretch;
    width: 100%;
    max-width: none;
    min-height: 0;
    gap: 12px;
    margin: 0;
    padding: 16px 32px;
    border: 0;
    border-radius: 0;
    background: #fff;
    box-sizing: border-box;
  }

  .wk-te-company-policies h2 {
    padding: 0;
  }

  .wk-te-policies-content {
    width: 100%;
    margin: 0;
    padding: 16px;
    border: 1px solid #d5d5d5;
    border-radius: 10px;
    color: #555;
    font-size: 12px;
    box-sizing: border-box;
  }

  .wk-te-policies-content p {
    margin: 0;
  }
}
