/* HEAD CONTENT */
.content {
  margin-top: 88px;
}

.head_content {
  background-color: #f3f9ff91;
  padding: 30px 0;
}

.wrapper_archive_review {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 132px;
}

.main-heading {
  font-size: 75px;
  font-weight: 550;
  line-height: 1.1;
  margin: 24px 0;
  color: #188ffe;
}

@media (max-width: 768px) {
  .main-heading {
    font-size: 48px;
  }
}

@media (max-width: 480px) {
  .main-heading {
    font-size: 36px;
  }
}

/* MAIN CONTENT */
.main_content {
  background: white;
  border-radius: 16px 16px 0 0;
  position: relative;
  z-index: 10;
  margin-bottom: 40px;
}

/* ========================================
      FILTER & SORT SECTION - NEW DESIGN
    ======================================== */
.main_top {
  display: flex;
  align-items: center;
  padding: 20px 0;
  gap: 15px;
}

/* Filter & Sort Container */
.filter-sort-section {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  width: 100%;
  justify-content: space-between;
}

/* Common Button Styles */
.filter-toggle-btn,
.sort-toggle-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: white;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: #334155;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.filter-toggle-btn:hover,
.sort-toggle-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.filter-toggle-btn.active,
.sort-toggle-btn.active {
  border-color: #188ffe;
  background: #f0f9ff;
}

.filter-icon,
.sort-icon {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.filter-icon svg,
.sort-icon svg {
  width: 18px;
  height: 18px;
}

.filter-label,
.sort-label {
  font-size: 14px;
  font-weight: 500;
}

.filter-count {
  background: #188ffe;
  color: white;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  min-width: 20px;
  text-align: center;
}

.filter-arrow,
.sort-arrow {
  font-size: 10px;
  transition: transform 0.3s;
  flex-shrink: 0;
}

.filter-toggle-btn.active .filter-arrow,
.sort-toggle-btn.active .sort-arrow {
  transform: rotate(180deg);
}

/* ========================================
      FILTER DROPDOWN
    ======================================== */
.filter-dropdown-menu {
  position: absolute;
  top: 70px;
  left: auto;
  background: white;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.06);
  min-width: 520px;
  max-width: 580px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.filter-dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Filter Header */
.filter-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid #f1f5f9;
}

.filter-menu-header span {
  font-size: 15px;
  font-weight: 600;
  color: #0f172a;
}

.filter-reset-btn {
  font-size: 13px;
  color: #188ffe;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 6px;
  transition: all 0.2s;
  font-weight: 500;
}

.filter-reset-btn:hover {
  background: #eff6ff;
  color: #2563eb;
}

.filter-reset-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Filter Body */
.filter-menu-body {
  padding: 16px;
  max-height: fit-content;
  overflow: visible;
}

/* Filter Groups - Compact Layout */
.filter-group {
  margin-bottom: 16px;
}

.filter-group:last-child {
  margin-bottom: 0;
}

.filter-group-title {
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  padding: 6px 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: #f8fafc;
  border-radius: 6px;
  margin-bottom: 8px;
}

/* Filter Options Grid - All in one row */
.filter-options-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* Filter Options - Compact Pills */
.filter-option {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s;
  border: 1px solid #e2e8f0;
  background: white;
  white-space: nowrap;
}

.filter-option:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.filter-option input[type="checkbox"] {
  appearance: none;
  width: 16px;
  height: 16px;
  border: 2px solid #cbd5e1;
  border-radius: 4px;
  margin-right: 8px;
  cursor: pointer;
  position: relative;
  transition: all 0.2s;
  flex-shrink: 0;
}

.filter-option input[type="checkbox"]:hover {
  border-color: #94a3b8;
}

.filter-option input[type="checkbox"]:checked {
  border-color: #188ffe;
  background: #188ffe;
}

.filter-option:has(input[type="checkbox"]:checked) {
  background: #f0f9ff;
  border-color: #188ffe;
  box-shadow: 0 0 0 2px rgba(68, 157, 240, 0.1);
}

.sort-option:has(input[type="radio"]:checked) {
  background: #f0f9ff;
  border-color: #188ffe;
}

.filter-option input[type="checkbox"]:checked::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 12px;
  font-weight: bold;
}

.filter-option-label {
  font-size: 13px;
  color: #334155;
  user-select: none;
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 4px;
}

.filter-option-label .rating-stars {
  color: #fbbf24;
  font-size: 13px;
  letter-spacing: 0px;
}

.filter-option input[type="checkbox"]:checked ~ .filter-option-label {
  font-weight: 500;
  color: #0f172a;
}

/* Filter Footer */
.filter-menu-footer {
  padding: 12px;
  border-top: 1px solid #f1f5f9;
}

.filter-apply-btn {
  width: 100%;
  padding: 12px 20px;
  background: #188ffe;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.filter-apply-count {
  background: rgba(255, 255, 255, 0.25);
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  display: none;
}

.filter-apply-btn:has(.filter-apply-count:not(:empty)) .filter-apply-count {
  display: block;
}

.filter-apply-btn:hover {
  background: #3b82f6;
  transform: translateY(-1px);
}

.filter-apply-btn:active {
  transform: translateY(0);
}

/* ========================================
      SORT DROPDOWN - ALIGN RIGHT
    ======================================== */
.sort-dropdown-wrapper {
  position: relative;
}

.sort-dropdown-menu {
  position: absolute;
  top: 55px;
  right: 0;
  left: auto;
  background: white;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1), 0 2px 8px rgba(0, 0, 0, 0.06);
  min-width: 480px;
  max-width: 520px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

/* Ensure dropdown stays within viewport on small screens */
@media (max-width: 1024px) {
  .sort-dropdown-menu {
    right: 0;
    left: auto;
    min-width: 400px;
  }
}

.sort-dropdown-menu.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Sort Body - Compact Grid */
.sort-menu-body {
  padding: 12px;
  max-height: fit-content;
  overflow: visible;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

/* Sort Groups - Compact */
.sort-group {
  margin-bottom: 0;
}

.sort-group-title {
  font-size: 10px;
  font-weight: 600;
  color: #64748b;
  padding: 6px 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: #f8fafc;
  border-radius: 6px;
  margin-bottom: 6px;
}

/* Sort Options - Compact Pills */
.sort-option {
  display: flex;
  align-items: center;
  padding: 8px 10px;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s;
  margin-bottom: 4px;
  border: 1px solid transparent;
}

.sort-option:hover {
  background: #f8fafc;
  border-color: #e2e8f0;
}

.sort-option input[type="radio"] {
  appearance: none;
  width: 16px;
  height: 16px;
  border: 2px solid #cbd5e1;
  border-radius: 50%;
  margin-right: 8px;
  cursor: pointer;
  position: relative;
  transition: all 0.2s;
  flex-shrink: 0;
}

.sort-option input[type="radio"]:hover {
  border-color: #94a3b8;
}

.sort-option input[type="radio"]:checked {
  border-color: #188ffe;
  background: white;
}

.sort-option input[type="radio"]:checked::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 7px;
  height: 7px;
  background: #188ffe;
  border-radius: 50%;
}

.sort-option-label {
  font-size: 13px;
  color: #334155;
  user-select: none;
  flex: 1;
  font-weight: 400;
}

.sort-option input[type="radio"]:checked ~ .sort-option-label {
  font-weight: 500;
  color: #0f172a;
}

/* Scrollbar - Hide on desktop when not needed */
.filter-menu-body::-webkit-scrollbar,
.sort-menu-body::-webkit-scrollbar {
  width: 0px;
  display: none;
}

.filter-menu-body,
.sort-menu-body {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

/* Show scrollbar only on mobile when content overflows */
@media (max-width: 480px) {
  .filter-menu-body::-webkit-scrollbar,
  .sort-menu-body::-webkit-scrollbar {
    width: 4px;
    display: block;
  }

  .filter-menu-body,
  .sort-menu-body {
    scrollbar-width: thin;
  }

  .filter-menu-body::-webkit-scrollbar-track,
  .sort-menu-body::-webkit-scrollbar-track {
    background: #f8fafc;
    border-radius: 2px;
  }

  .filter-menu-body::-webkit-scrollbar-thumb,
  .sort-menu-body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 2px;
  }

  .filter-menu-body::-webkit-scrollbar-thumb:hover,
  .sort-menu-body::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
  }
}

/* ========================================
      RESULTS & GRID
    ======================================== */
.results-count {
  font-size: 14px;
  color: #64748b;
  margin-bottom: 20px;
}

.providers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* ========================================
   PROVIDER CARD - NEW DESIGN LIKE IMAGE
   ======================================== */

.provider-card {
  background: white;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s;
  position: relative;
  border: 2px solid #f1f1f1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}

.provider-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  border-color: #188ffe;
}

/* ========================================
   CARD HEADER - THUMBNAIL SECTION
   ======================================== */
.card-header {
  position: relative;
  height: 180px;
  overflow: hidden;
  padding: 10px;
}

.card-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background-repeat: no-repeat;
  border-radius: 10px;
}

/* Category Badge (Premium/Budget/Mid-range) */
.category-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  padding: 5px 15px;
  border-radius: 50px;
  font-size: 14px;
  z-index: 2;
  text-transform: capitalize;
}

/* Premium Badge - Yellow */
.category-badge.premium {
  background: #ffc50f;
  color: #ffffff;
}

/* Budget Badge - Brown */
.category-badge.budget {
  background: #b6771d;
  color: white;
}

/* Mid-range Badge - Green */
.category-badge.mid-range {
  background: #b6ceb4;
  color: #ffffff;
}

/* Logo Circle - Overlapping Thumbnail */
.provider-logo {
  position: absolute;
  bottom: -40px;
  left: 24px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: white;
  border: 4px solid white;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 3;
}

.provider-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ========================================
   CARD BODY
   ======================================== */
.card-body {
  padding: 0 10px;
  flex: 1;
}

.provider-name {
  font-size: 24px;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 12px;
  line-height: 1.2;
}

/* Rating Section */
.rating-section-reviews {
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 2px solid #6b72801f;
}

.stars {
  display: flex;
  gap: 2px;
  color: #fbbf24;
  font-size: 20px;
}

.rating-score-review {
  font-size: 20px;
  color: #0f172a;
}

.review-count {
  font-size: 14px;
  color: #64748b;
  font-weight: 400;
}

/* Hide Perfect For section in new design */
.perfect-for-section {
  display: none;
}

/* ========================================
   CARD FOOTER - PRICE & BUTTON
   ======================================== */
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px;
  margin-top: auto;
}

.pricing {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.starting-label {
  font-size: 13px;
  color: #94a3b8;
  font-weight: 400;
}

.price {
  font-size: 20px;
  /* font-weight: 700; */
  color: #0f172a;
  /* line-height: 1; */
}

.price-unit {
  color: #64748b;
}

.view-details-btn {
  padding: 2px 10px;
  background: linear-gradient(90deg, #188ffe, #c0e1ff);
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 12px;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.view-details-btn:hover {
  background: #2563eb;
  transform: translateX(4px);
}

.view-details-btn span {
  font-size: 18px;
  transition: transform 0.3s;
}

.view-details-btn:hover span {
  transform: translateX(4px);
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 1024px) {
  .provider-logo {
    width: 70px;
    height: 70px;
    bottom: -35px;
  }

  .provider-name {
    font-size: 22px;
  }

  .rating-score {
    font-size: 22px;
  }
}

@media (max-width: 768px) {
  .provider-logo {
    width: 60px;
    height: 60px;
    bottom: -30px;
    left: 20px;
  }

  .provider-name {
    font-size: 20px;
  }

  .stars {
    font-size: 18px;
  }

  .rating-score {
    font-size: 20px;
  }

  .review-count {
    font-size: 13px;
  }

  .view-details-btn {
    padding: 10px 20px;
    font-size: 14px;
  }

  .category-badge {
    padding: 6px 16px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .provider-logo {
    width: 56px;
    height: 56px;
    bottom: -28px;
    left: 16px;
    border: 3px solid white;
  }

  .provider-name {
    font-size: 18px;
    margin-bottom: 10px;
  }

  .stars {
    font-size: 16px;
  }

  .rating-score {
    font-size: 18px;
  }

  .review-count {
    font-size: 12px;
  }

  .card-footer {
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
  }

  .pricing {
    width: 100%;
  }

  .view-details-btn {
    width: 100%;
    justify-content: center;
    padding: 12px;
  }

  .category-badge {
    top: 12px;
    left: 12px;
    padding: 6px 14px;
    font-size: 12px;
  }
}

/* ========================================
      RESPONSIVE
    ======================================== */
@media (max-width: 1024px) {
  .content {
    margin-top: 78px;
  }

  .main_top {
    top: 78px;
  }

  .providers-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .wrapper_archive_review {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 20px;
  }
}

@media (max-width: 768px) {
  .main_top {
    flex-wrap: wrap;
  }

  .filter-sort-section {
    width: 100%;
    justify-content: space-between;
  }

  .filter-toggle-btn,
  .sort-toggle-btn {
    flex: 1;
  }

  .filter-dropdown-menu {
    left: 0;
    right: 0;
    min-width: 100%;
    max-width: 100%;
  }

  .filter-options-grid {
    flex-wrap: wrap;
  }

  .sort-dropdown-menu {
    right: 0;
    left: 0;
    min-width: 100%;
    max-width: 100%;
  }

  .sort-menu-body {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .providers-grid {
    grid-template-columns: 1fr;
  }

  .main_top {
    padding: 16px 0;
    gap: 12px;
  }

  .filter-toggle-btn,
  .sort-toggle-btn {
    padding: 12px 16px;
    font-size: 14px;
  }

  /* Mobile - Keep flex wrap for filters */
  .filter-options-grid {
    flex-wrap: wrap;
    gap: 6px;
  }

  .filter-option {
    padding: 8px 10px;
  }

  .filter-option-label {
    font-size: 12px;
  }

  /* Mobile - Single column for sort */
  .sort-menu-body {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .sort-option {
    padding: 10px 12px;
  }

  /* Mobile Fullscreen Dropdowns */
  .filter-dropdown-menu,
  .sort-dropdown-menu {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    min-width: 100%;
    max-width: 100%;
    border-radius: 16px 16px 0 0;
    max-height: 70vh;
    transform: translateY(100%);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  }

  .filter-dropdown-menu.show,
  .sort-dropdown-menu.show {
    transform: translateY(0);
  }

  /* Mobile Backdrop */
  .filter-dropdown-menu::before,
  .sort-dropdown-menu::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
  }

  .filter-dropdown-menu.show::before,
  .sort-dropdown-menu.show::before {
    opacity: 1;
    pointer-events: auto;
  }

  .filter-menu-header {
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
    border-bottom: 1.5px solid #f1f5f9;
  }

  .filter-menu-body,
  .sort-menu-body {
    max-height: calc(74vh - 130px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background-color: #fff;
  }

  .filter-menu-footer {
    position: sticky;
    bottom: 0;
    background: white;
    z-index: 10;
    border-top: 1.5px solid #f1f5f9;
    padding: 16px 20px 20px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
  }
}

/* Footer Content */
/* .footer_content {
  padding: 80px 20px;
}

.footer_box {
  padding: 40px 60px;
  text-align: center;
  background: #fbfdff;
  border: 2px solid #f8f8f8;
  border-radius: 20px;
}

.help-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  background: #dbeafe;
  color: #188ffe;
  border-radius: 11px;
  font-size: 12px;
  font-weight: 300;
  margin-bottom: 24px;
  border: 1px solid;
}

.help-badge svg {
  width: 16px;
  height: 16px;
}

.help-heading {
  font-size: 50px;
  font-weight: 510;
  line-height: 1.2;
  color: #0f172a;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.help-description {
  font-size: 20px;
  line-height: 1.6;
  color: #64748b;
  max-width: 700px;
  margin: 0 auto 40px;
}

.cta-buttons {
  display: inline-flex;
  width: 50%;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
}

.btn-primary {
  background: linear-gradient(145deg, #188ffe, #68b5f5);
  color: white;
  box-shadow: 0 4px 12px rgba(68, 157, 240, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(145deg, #2563eb, #188ffe);
  box-shadow: 0 6px 20px rgba(68, 157, 240, 0.4);
  transform: translateY(-2px);
}

.btn-secondary {
  background: white;
  color: #334155;
  border: 2px solid #e2e8f0;
}

.btn-secondary:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  transform: translateY(-2px);
}

.btn svg {
  width: 18px;
  height: 18px;
}

@media (max-width: 768px) {
  .footer_content {
    padding: 60px 20px;
  }

  .help-heading {
    font-size: 40px;
  }

  .help-description {
    font-size: 18px;
  }

  .cta-buttons {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .help-heading {
    font-size: 32px;
  }

  .help-description {
    font-size: 16px;
  }

  .btn {
    padding: 14px 24px;
    font-size: 15px;
  }
} */

span.-review {
  font-size: 26px;
}

i.fa-solid.fa-angles-right {
  font-size: 12px;
}
