*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.cgz-body {
  font-family: 'Inter', sans-serif;
  background: linear-gradient(180deg, #f0f7ff 0%, #f8fbff 40%, #ffffff 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 3rem 1rem;
  color: #333;
}

.cgz-hero-section {
  text-align: center;
  max-width: 720px;
  margin-bottom: 2.5rem;
}

.cgz-hero-section h1 {
  font-size: 1.65rem;
  font-weight: 600;
  color: #2d3748;
  line-height: 1.4;
}

.cgz-search-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06), 0 1px 4px rgba(0, 0, 0, 0.04);
  padding: 2rem 2.25rem;
  width: 100%;
  max-width: 1200px;
}

.cgz-search-form {
  display: flex;
  align-items: flex-end;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.cgz-form-group {
  flex: 1;
  min-width: 180px;
}

.cgz-form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: #6b7280;
  margin-bottom: 0.5rem;
  letter-spacing: 0.01em;
}

.cgz-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.cgz-input-wrapper .cgz-icon {
  position: absolute;
  left: 14px;
  display: flex;
  align-items: center;
  pointer-events: none;
  color: #9ca3af;
}

.cgz-input-wrapper .cgz-icon svg {
  width: 18px;
  height: 18px;
}

.cgz-input-wrapper select,
.cgz-input-wrapper input {
  width: 100%;
  padding: 0.75rem 0.875rem 0.75rem 2.75rem;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  font-size: 0.925rem;
  font-family: 'Inter', sans-serif;
  color: #1f2937;
  background-color: #fff;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}

.cgz-input-wrapper select:hover,
.cgz-input-wrapper input:hover {
  border-color: #d1d5db;
}

.cgz-input-wrapper select:focus,
.cgz-input-wrapper input:focus {
  border-color: #e11d07;
  box-shadow: 0 0 0 3px rgba(62, 207, 177, 0.12);
}

.cgz-input-wrapper select {
  cursor: pointer;
  padding-right: 2.5rem;
}

.cgz-select-arrow {
  position: absolute;
  right: 14px;
  pointer-events: none;
  color: #9ca3af;
  display: flex;
  align-items: center;
}

.cgz-select-arrow svg {
  width: 14px;
  height: 14px;
}

/* Area input with unit badge */
.cgz-area-input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.cgz-area-input-group input {
  width: 100%;
  padding: 0.75rem 4.5rem 0.75rem 2.75rem;
  border: 1.5px solid #e5e7eb;
  border-radius: 10px;
  font-size: 0.925rem;
  font-family: 'Inter', sans-serif;
  color: #1f2937;
  background-color: #fff;
  appearance: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}

.cgz-area-input-group input:hover {
  border-color: #d1d5db;
}

.cgz-area-input-group input:focus {
  border-color: #3ecfb1;
  box-shadow: 0 0 0 3px rgba(62, 207, 177, 0.12);
}

.cgz-area-input-group .cgz-icon {
  position: absolute;
  left: 14px;
  display: flex;
  align-items: center;
  pointer-events: none;
  color: #9ca3af;
}

.cgz-area-input-group .cgz-icon svg {
  width: 18px;
  height: 18px;
}

.cgz-unit-badge {
  position: absolute;
  right: 12px;
  background: #f3f4f6;
  color: #6b7280;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.6rem;
  border-radius: 6px;
  letter-spacing: 0.03em;
  pointer-events: none;
  text-transform: uppercase;
}

/* ── Search Button ── */
.cgz-search-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 2.5rem;
  background: linear-gradient(135deg, #e11d07 0%, #e11d07 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  white-space: nowrap;
  min-height: 47px;
}

.cgz-search-btn .cgz-btn-spinner {
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: cgz-spin 0.65s linear infinite;
  display: none;
}

.cgz-search-btn.cgz-loading .cgz-btn-spinner {
  display: block;
}

.cgz-search-btn:hover {
  background: linear-gradient(135deg, #000 0%, #000 100%);
  box-shadow: 0 4px 14px rgba(62, 207, 177, 0.35);
  transform: translateY(-1px);
}

.cgz-search-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(62, 207, 177, 0.25);
}

/* ── Results Section ── */
.cgz-results-section {
  flex: 1;
  min-width: 0;
}

.cgz-results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.cgz-results-header h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #1f2937;
}

.cgz-sort-wrapper {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  gap: 0.5rem !important;
  font-size: 0.82rem !important;
  color: #6b7280 !important;
  white-space: nowrap !important;
}

.cgz-sort-wrapper span,
.cgz-sort-wrapper label {
  display: inline !important;
  float: none !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 0.82rem !important;
  font-weight: 400 !important;
  color: #6b7280 !important;
  white-space: nowrap !important;
  line-height: normal !important;
}

.cgz-sort-wrapper select {
  display: inline-block !important;
  border: 1.5px solid #e5e7eb !important;
  border-radius: 8px !important;
  padding: 0.4rem 0.7rem !important;
  font-size: 0.82rem !important;
  font-family: 'Inter', sans-serif !important;
  color: #374151 !important;
  background: #fff !important;
  cursor: pointer !important;
  outline: none !important;
  width: auto !important;
  max-width: none !important;
  height: auto !important;
  float: none !important;
  margin: 0 !important;
  -webkit-appearance: auto !important;
  appearance: auto !important;
}

.cgz-sort-wrapper select:focus {
  border-color: #3ecfb1;
}

/* ── Warehouse Card ── */
.cgz-warehouse-card {
  display: flex;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  margin-bottom: 1.25rem;
  transition: box-shadow 0.2s ease, transform 0.15s ease;
}

.cgz-warehouse-card:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.cgz-card-image {
  width: 220px;
  min-height: 180px;
  flex-shrink: 0;
  background: #e5e7eb;
  position: relative;
  overflow: hidden;
}

.cgz-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cgz-card-image .cgz-no-image {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #9ca3af;
  font-size: 0.8rem;
}

.cgz-card-image .cgz-no-image svg {
  width: 48px;
  height: 48px;
  opacity: 0.4;
}

.cgz-card-body {
  flex: 1;
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.cgz-card-info {
  flex: 1;
}

.cgz-card-info h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.35rem;
}

.cgz-card-location {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.85rem;
  color: #6b7280;
  margin-bottom: 0.85rem;
}

.cgz-card-location svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.cgz-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cgz-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  color: #4b5563;
  background: #f3f4f6;
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  font-weight: 500;
}

.cgz-tag svg {
  width: 13px;
  height: 13px;
  color: #6b7280;
}

.cgz-card-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: space-between;
  min-width: 140px;
  text-align: right;
}

.cgz-card-rate {
  font-size: 1rem;
  color: #6b7280;
  margin-bottom: 0.3rem;
}

.cgz-card-rate strong {
  font-size: 1.5rem;
  color: #1f2937;
  font-weight: 700;
}

.cgz-card-rate span {
  font-size: 0.95rem;
  color: #6b7280;
}

.cgz-rate-label {
  font-size: 0.72rem;
  color: #9ca3af;
}

.cgz-view-details-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 1.15rem;
  background: #e11d07;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: background 0.2s ease;
}

.cgz-view-details-btn:hover {
  background: #1a202c;
}

.cgz-view-details-btn svg {
  width: 14px;
  height: 14px;
}

/* ── Loading & Empty States ── */
.cgz-loading-state,
.cgz-empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: #9ca3af;
}

.cgz-loading-state .cgz-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid #e5e7eb;
  border-top-color: #3ecfb1;
  border-radius: 50%;
  animation: cgz-spin 0.7s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes cgz-spin {
  to { transform: rotate(360deg); }
}

.cgz-empty-state svg {
  width: 56px;
  height: 56px;
  color: #d1d5db;
  margin-bottom: 0.75rem;
}

.cgz-empty-state p {
  font-size: 0.95rem;
  color: #6b7280;
}

/* ── Two-Column Layout ── */
.cgz-content-area {
  display: flex;
  gap: 1.5rem;
  width: 100%;
  max-width: 1200px;
  margin-top: 2.5rem;
}

/* ── Filter Sidebar ── */
.cgz-filter-sidebar {
  width: 240px;
  flex-shrink: 0;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  padding: 1.25rem;
  align-self: flex-start;
  position: sticky;
  top: 1rem;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
}

.cgz-filter-sidebar::-webkit-scrollbar {
  width: 4px;
}

.cgz-filter-sidebar::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 4px;
}

.cgz-filter-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.75rem;
  padding-bottom: 0.6rem;
  border-bottom: 1.5px solid #e5e7eb;
}

.cgz-filter-section {
  border-bottom: 1px solid #f3f4f6;
  padding-bottom: 0.15rem;
}

.cgz-filter-section:last-child {
  border-bottom: none;
}

.cgz-filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.7rem 0;
  cursor: pointer;
  user-select: none;
}

.cgz-filter-header:hover {
  color: #3ecfb1;
}

.cgz-filter-header h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: #374151;
  transition: color 0.15s;
  margin: 0 !important;
}

.cgz-filter-header:hover h4 {
  color: #3ecfb1;
}

.cgz-filter-chevron {
  width: 16px;
  height: 16px;
  color: #9ca3af;
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.cgz-filter-section.cgz-collapsed .cgz-filter-chevron {
  transform: rotate(-90deg);
}

.cgz-filter-body {
  padding-bottom: 0.5rem;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.25s ease;
  max-height: 500px;
  opacity: 1;
}

.cgz-filter-section.cgz-collapsed .cgz-filter-body {
  max-height: 0;
  opacity: 0;
  padding-bottom: 0;
}

.cgz-filter-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0;
  cursor: pointer;
  font-size: 0.8rem;
  color: #4b5563;
  transition: color 0.15s;
}

.cgz-filter-option:hover {
  color: #1f2937;
}

.cgz-filter-option input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: #3ecfb1;
  cursor: pointer;
  flex-shrink: 0;
  margin: 0;
}

.cgz-filter-option label {
  cursor: pointer;
  line-height: 1.3;
}

/* ── Star Rating Stars ── */
.cgz-star-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cgz-stars {
  display: flex;
  gap: 1px;
}

.cgz-star-icon {
  width: 16px;
  height: 16px;
  color: #f59e0b;
}

.cgz-star-icon.cgz-empty {
  color: #d1d5db;
}

/* ── Responsive ── */
@media (max-width: 960px) {
  .cgz-content-area {
    flex-direction: column;
  }

  .cgz-filter-sidebar {
    width: 100%;
    position: static;
    max-height: none;
  }
}

@media (max-width: 768px) {
  .cgz-search-form {
    flex-direction: column;
    gap: 1rem;
  }

  .cgz-form-group {
    width: 100%;
  }

  .cgz-search-btn {
    width: 100%;
  }

  .cgz-hero-section h1 {
    font-size: 1.3rem;
  }

  .cgz-search-card {
    padding: 1.5rem;
  }

  .cgz-warehouse-card {
    flex-direction: column;
  }

  .cgz-card-image {
    width: 100%;
    min-height: 180px;
  }

  .cgz-card-body {
    flex-direction: column;
  }

  .cgz-card-meta {
    align-items: flex-start;
    text-align: left;
    flex-direction: row;
    justify-content: space-between;
    min-width: unset;
  }

  .cgz-results-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
}

/* ── Pagination ── */
.cgz-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 1.5rem;
  padding: 1rem 0;
}

.cgz-page-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.45rem 0.85rem;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  color: #374151;
  font-size: 0.85rem;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: all 0.15s ease;
}

.cgz-page-btn:hover:not(:disabled):not(.cgz-active) {
  border-color: #3ecfb1;
  color: #3ecfb1;
  background: #f0fdf9;
}

.cgz-page-btn.cgz-active {
  background: linear-gradient(135deg, #3ecfb1 0%, #38c5a7 100%);
  color: #fff;
  border-color: #3ecfb1;
  font-weight: 600;
}

.cgz-page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.cgz-page-ellipsis {
  padding: 0.4rem 0.3rem;
  color: #9ca3af;
  font-size: 0.85rem;
  user-select: none;
}

.cgz-page-info {
  width: 100%;
  text-align: center;
  font-size: 0.78rem;
  color: #9ca3af;
  margin-top: 0.5rem;
}