/* Layout */

.ota-container {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;

}

.ota-row {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

/**
 * Operators Hub Styles
 * Styles for the ota_operators_hub shortcode
 * Uses color system from colors.css
 */

.ota-operators-hub {
  max-width: 980px;
  margin: 0 auto;
  margin-top: 50px !important;
}

.ota-operators-hub-title {
  margin: 0 0 24px;
  font-size: 32px;
  font-weight: 700;
  color: rgb(var(--foreground));
}

.ota-operators-hub-search {
  display: flex;
  gap: 0;
  /* flex-wrap: wrap; */
  align-items: center;
  margin-bottom: 24px;
  background: rgba(var(--primary) / 0.1);
  padding: 12px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  border: 1px solid rgb(var(--border));
}

.ota-operators-hub-input-wrapper {
  position: relative;
  flex: 1;
  /* min-width: 260px; */
}

.ota-operators-hub-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: #999;
}

.ota-operators-hub-search-icon svg {
  width: 20px;
  height: 20px;
}

.ota-operators-hub-input {
  width: 100%;
  height: 48px;
  padding: 0 14px 0 42px;
  border: 1px solid rgb(var(--border));
  border-radius: 8px 0 0 8px;
  background: rgb(var(--background));
  color: rgb(var(--foreground));
  font-size: 15px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.ota-operators-hub-input::placeholder {
  color: rgb(var(--muted));
}

.ota-operators-hub-input:focus {
  outline: none;
  border-color: rgb(var(--primary));
  box-shadow: 0 0 0 3px rgba(var(--primary) / 0.1);
}

.ota-operators-hub-submit {
  height: 48px;
  padding: 0 24px;
  border: none;
  border-radius: 0 8px 8px 0;
  background: rgb(var(--primary));
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(var(--primary) / 0.3);
  transition: all 0.3s ease;
  white-space: nowrap;
}

.ota-operators-hub-submit:hover {
  background: rgb(var(--secondary));
  box-shadow: 0 2px 8px rgba(var(--primary) / 0.4);
}

.ota-operators-hub-submit:active {
  transform: translateY(1px);
  box-shadow: 0 1px 2px rgba(var(--primary) / 0.3);
}

.ota-operators-hub-clear {
  height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid #000;
  border-radius: 10px;
  text-decoration: none;
  margin-left: 10px;
}

.ota-operators-hub-empty {
  padding: 20px;
  text-align: center;
  color: rgb(var(--muted));
}

.ota-operators-hub-loading {
  padding: 20px;
  text-align: center;
  color: rgb(var(--muted));
}

.ota-operators-hub-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.ota-operators-hub-item {
  display: block;
  border: 1px solid rgb(var(--border));
  border-radius: 12px;
  padding: 0;
  background: rgb(var(--background));
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  overflow: hidden;
}

.ota-operators-hub-item:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-color: rgb(var(--primary));
}

.ota-operators-hub-item-link {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 16px;
}

.ota-operators-hub-item-content {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.ota-operators-hub-item-logo {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  background: rgb(var(--surface));
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgb(var(--border));
}

.ota-operators-hub-item-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}

.ota-operators-hub-item-info {
  flex: 1;
  min-width: 200px;
}

.ota-operators-hub-item-title {
  font-size: 20px;
  font-weight: 600;
  color: rgb(var(--foreground));
  margin-bottom: 8px;
}

.ota-operators-hub-item-title strong {
  font-weight: 600;
}

.ota-operators-hub-item-meta {
  color: rgb(var(--muted));
  margin-top: 4px;
  font-size: 14px;
}

.ota-operators-hub-item-arrow {
  color: rgb(var(--primary));
  align-self: center;
  font-weight: 500;
  white-space: nowrap;
}

/* Routes section */
.ota-operators-hub-item-routes {
  border-top: 1px solid rgb(var(--border));
  padding: 12px 16px;
  background: rgb(var(--surface));
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ota-operators-hub-route {
  display: inline-block;
  padding: 6px 12px;
  background: rgb(var(--background));
  border: 1px solid rgb(var(--border));
  border-radius: 6px;
  color: rgb(var(--foreground));
  text-decoration: none;
  font-size: 13px;
  transition: all 0.2s ease;
  line-height: 1.4;
}

.ota-operators-hub-route:hover {
  background: rgb(var(--primary));
  color: #fff;
  border-color: rgb(var(--primary));
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(var(--primary) / 0.2);
}

/**
 * Single Operator Page Styles
 * Hero section with booking form and company information
 */

/* Hide default entry header on single operator pages */
.single-ota_operator .entry-header,
.single-ota_operator .entry-title {
  display: none !important;
}

/* Hero Section */
.ota-operator-hero {
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  min-height: 500px;
  display: flex;
  align-items: center;
  padding: 60px 40px;
  margin-top: 0;
  margin-bottom: 0;
}

.ota-operator-hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
}

.ota-operator-hero-background::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to right,
      rgba(255, 255, 255, 0.95) 0%,
      rgba(255, 255, 255, 0.85) 40%,
      rgba(255, 255, 255, 0.3) 60%,
      transparent 100%);
  z-index: 1;
}

.ota-operator-hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 40px;
}

/* Booking Form */
.ota-operator-booking-form {
  flex: 0 0 450px;
  background: #fff;
  padding: 32px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.ota-operator-search-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ota-operator-form-field {
  width: 100%;
}

.ota-operator-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.ota-operator-input-wrapper {
  position: relative;
  width: 100%;
}

.ota-operator-input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: rgb(var(--primary));
}

.ota-operator-input-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}

.ota-operator-input {
  width: 100%;
  height: 48px;
  padding: 0 14px 0 42px;
  border: 1px solid rgb(var(--border));
  border-radius: 8px;
  background: #f5f5f5;
  color: rgb(var(--foreground));
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.ota-operator-input:focus {
  outline: none;
  border-color: rgb(var(--primary));
  background: #fff;
  box-shadow: 0 0 0 3px rgba(var(--primary) / 0.1);
}

.ota-operator-submit-btn {
  width: 100%;
  height: 48px;
  padding: 0 24px;
  border: none;
  border-radius: 8px;
  background: #ff6b35;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 8px;
}

.ota-operator-submit-btn:hover {
  background: #e55a2b;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 107, 53, 0.4);
}

.ota-operator-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.ota-operator-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #ff6b35;
}

.ota-operator-checkbox label {
  font-size: 14px;
  color: rgb(var(--foreground));
  cursor: pointer;
}

/* Company Information Section */
.ota-operator-info {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px;
  background: rgb(var(--background));
}

.ota-operator-info-content {
  position: relative;
}

.ota-operator-title {
  font-size: 2rem;
  font-weight: 700;
  color: rgb(var(--foreground));
  margin: 0 0 16px;
  line-height: 1.3;
}

.ota-operator-rating {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.ota-operator-stars {
  display: flex;
  gap: 2px;
}

.ota-operator-stars .star {
  font-size: 20px;
  color: #ddd;
}

.ota-operator-stars .star.filled {
  color: #ff6b35;
}

.ota-operator-stars .star.half {
  color: #ff6b35;
  opacity: 0.7;
}

.ota-operator-rating-text {
  font-size: 16px;
  font-weight: 600;
  color: rgb(var(--foreground));
}

.ota-operator-description {
  font-size: 16px;
  line-height: 1.6;
  color: rgb(var(--muted));
  margin: 0 0 24px;
  max-width: 800px;
}

.ota-operator-contact {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.ota-operator-contact-item {
  font-size: 15px;
  color: rgb(var(--foreground));
  line-height: 1.6;
}

.ota-operator-contact-item strong {
  font-weight: 600;
  color: rgb(var(--foreground));
}

.ota-operator-logo {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 120px;
  height: 120px;
}

.ota-operator-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Responsive Design */
@media (max-width: 968px) {


  .ota-operators-hub-item-content {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-rows: auto auto;
    gap: 8px 16px;
    align-items: center;
  }

  .ota-operators-hub-item-logo {
    grid-column: 1;
    grid-row: 1 / -1;
    align-self: center;
  }

  .ota-operators-hub-item-info {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
  }

  .ota-operators-hub-item-arrow {
    grid-column: 2;
    grid-row: 2;
    align-self: start;
  }


  .ota-operators-hub-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .ota-operators-hub {
    padding: 0 20px;
  }

  .ota-operator-hero {
    min-height: auto;
    padding: 40px 20px;
  }

  .ota-operator-hero-content {
    flex-direction: column;
    gap: 24px;
  }

  .ota-operator-booking-form {
    flex: 1;
    width: 100%;
    max-width: 100%;
  }

  .ota-operator-info {
    padding: 24px 20px;
  }

  .ota-operator-logo {
    position: static;
    margin-top: 24px;
  }
}

@media (max-width: 640px) {

  .ota-operator-form-row {
    grid-template-columns: 1fr;
  }

  .ota-operator-title {
    font-size: 1.5rem;
  }
}