body { font-family: "Tajawal", Arial, sans-serif; background: #f9fafb; }
    select, input[type="text"], button {
      direction: rtl;
      font-family: inherit;
    }
    .menu-toggle { cursor: pointer; }
    .nav-menu { display: none; }
    .nav-menu.active { display: block; }
    /* Hide tailwind scrollbar for PDF-friendliness */
    ::-webkit-scrollbar { display: none; }
    .filter-type-btn.active { background: #2563eb; color: white; }

    /* Selection dropdown styles */
    .selection-container {
      display: none;
      position: absolute;
      z-index: 10;
      background: white;
      border: 1px solid #e5e7eb;
      border-radius: 0.375rem;
      box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
      width: 100%;
      margin-top: 0.25rem;
    }
    .selection-container.active {
      display: block;
    }
    .select-btn {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 0.5rem 1rem;
      border: 1px solid #d1d5db;
      border-radius: 0.375rem;
      background-color: white;
      cursor: pointer;
      width: 100%;
    }
    .select-btn:hover {
      background-color: #f9fafb;
    }
    .options-list {
      max-height: 250px;
      overflow-y: auto;
      list-style: none;
      padding: 0;
      margin: 0;
    }
    .option-item {
      padding: 0.5rem 1rem;
      cursor: pointer;
      transition: background-color 0.2s;
    }
    .option-item:hover {
      background-color: #f3f4f6;
    }
    .option-item.selected {
      background-color: #e5e7eb;
    }
    .option-item.hidden {
      display: none;
    }
    .result-container {
      display: none; /* Hide by default */
      min-height: 0; /* Remove min-height */
    }
    .filter-buttons-container {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 0.75rem;
      width: 100%;
    }
    .filter-type-btn {
      width: 100%;
      text-align: center;
      padding: 0.75rem 1rem;
    }
    /* New card styles */
    .filter-cards-container {
      display: grid;
      grid-template-columns: repeat(1, 1fr);
      gap: 1.5rem;
      width: 100%;
    }
    .filter-card {
      display: flex;
      flex-direction: column;
      background-color: white;
      border-radius: 0.5rem;
      overflow: hidden;
      box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
      transition: transform 0.2s, box-shadow 0.2s;
    }
    .filter-card:hover {
      transform: translateY(-2px);
      box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    }
    .filter-card-header {
      background-color: #f3f4f6;
      padding: 0.75rem 1rem;
      border-bottom: 1px solid #e5e7eb;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
    .filter-card-header h3 {
      font-weight: bold;
      font-size: 1.125rem;
      color: #1f2937;
      margin: 0;
    }
    .filter-type-badge {
      background-color: #dbeafe;
      color: #1e40af;
      padding: 0.25rem 0.75rem;
      border-radius: 9999px;
      font-size: 0.875rem;
      font-weight: 500;
    }
    .filter-card-body {
      display: flex;
      flex-direction: row;
      padding: 1rem;
    }
    .filter-card-image {
      width: 150px;
      height: 150px;
      flex-shrink: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      background-color: #f9fafb;
      border-radius: 0.375rem;
      overflow: hidden;
    }
    .filter-card-image img {
      max-width: 100%;
      max-height: 100%;
      object-fit: contain;
    }
    .no-image {
      color: #9ca3af;
      text-align: center;
      font-size: 0.875rem;
    }
    .filter-card-details {
      flex-grow: 1;
      margin-right: 1rem;
    }
    .filter-card-info p {
      margin: 0.5rem 0;
      line-height: 1.5;
    }
    .filter-card-info .filter-number {
      color: #dc2626;
      font-weight: bold;
    }
    .engine-details {
      margin-top: 0.75rem;
      padding-top: 0.75rem;
      border-top: 1px dashed #e5e7eb;
    }
    .filter-card-footer {
      background-color: #f9fafb;
      padding: 0.75rem 1rem;
      border-top: 1px solid #e5e7eb;
    }
    .vehicle-details-content p {
      margin: 0.25rem 0;
      font-size: 0.875rem;
      color: #4b5563;
    }
    /* Main section adjustments */
    .main-section {
      margin-bottom: 0; /* Remove bottom margin */
    }
    .main-section.has-results {
      margin-bottom: 2rem; /* Add margin only when results are shown */
    }
    @media (min-width: 640px) {
      .nav-menu { display: flex !important; }
      .filter-cards-container {
        grid-template-columns: repeat(2, 1fr);
      }
    }
    @media (max-width: 639px) {
      .filter-buttons-container {
        grid-template-columns: 1fr;
      }
      .filter-card-body {
        flex-direction: column;
      }
      .filter-card-image {
        width: 100%;
        margin-bottom: 1rem;
      }
      .filter-card-details {
        margin-right: 0;
      }
    }