:root {
  --frs-bg: #ffffff;
  --frs-surface: #ffffff;
  --frs-surface-soft: #f8fafc;
  --frs-border: #e2e8f0;
  --frs-text: #0f172a;
  --frs-text-soft: #475569;
  --frs-text-muted: #64748b;
  --frs-red: #d32323;
  --frs-red-soft: #ef4444;
  --frs-blue: #2563eb;
  --frs-green: #1f7a3d;
  --frs-shadow: 0 18px 40px rgba(15, 23, 42, 0.07);
  --frs-shadow-soft: 0 10px 24px rgba(15, 23, 42, 0.05);
  --frs-radius-xl: 24px;
  --frs-radius-lg: 18px;
  --frs-radius-md: 14px;
}

.frs-reviews-widget,
.frs-reviews-widget * {
  box-sizing: border-box;
}

.frs-master-wrapper {
  width: 100% !important;
  max-width: 100% !important;
  margin: 36px auto;
  padding: 0 24px;
  font-family: Inter, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

#frs-main-unified-container {
  width: 100%;
  background:
    radial-gradient(circle at top right, rgba(211, 35, 35, 0.045), transparent 26%),
    linear-gradient(180deg, #ffffff 0%, #fcfdff 100%);
  color: var(--frs-text);
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 28px;
  padding: 30px;
  box-shadow: var(--frs-shadow);
}

.frs-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
  flex-wrap: wrap;
}

.frs-city-selector-container {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.frs-city-selector-container label {
  font-size: 14px;
  font-weight: 700;
  color: var(--frs-text-soft);
  letter-spacing: 0.01em;
}

.frs-select-custom-wrapper {
  position: relative;
  min-width: 240px;
}

#frs-city-select {
  width: 100%;
  min-width: 240px;
  padding: 14px 44px 14px 16px;
  border: 1px solid var(--frs-border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--frs-text);
  font-size: 15px;
  font-weight: 600;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

#frs-city-select:hover {
  border-color: #cbd5e1;
}

#frs-city-select:focus {
  border-color: rgba(211, 35, 35, 0.55);
  box-shadow: 0 0 0 4px rgba(211, 35, 35, 0.08);
}

.frs-select-custom-wrapper::after {
  content: "▼";
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 10px;
  color: var(--frs-red);
  pointer-events: none;
}

.frs-topbar-badge {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(211, 35, 35, 0.06);
  color: #b91c1c;
  border: 1px solid rgba(211, 35, 35, 0.12);
  font-size: 13px;
  font-weight: 700;
}

.frs-grid-three-columns {
  display: grid;
  grid-template-columns: 0.88fr 1.24fr 1.08fr;
  gap: 22px;
  align-items: stretch;
}

.frs-glass-card {
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: var(--frs-radius-xl);
  padding: 24px;
  box-shadow: var(--frs-shadow-soft);
}

.frs-eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--frs-red);
}

.frs-subtitle {
  margin: 0 0 18px;
  color: var(--frs-text-soft);
  font-size: 15px;
  line-height: 1.65;
}

.frs-rating-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.big-rating {
  font-size: 58px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--frs-text);
}

.header-stars {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stars-gold {
  color: #f59e0b;
  font-size: 16px;
  letter-spacing: 0.08em;
}

.small-text {
  margin: 0;
  color: var(--frs-text-muted);
  font-size: 12px;
}

.frs-rating-bars {
  width: 100%;
}

.bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.bar-row span {
  width: 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--frs-text-soft);
}

.bar-bg {
  position: relative;
  flex: 1;
  height: 8px;
  background: #e9eef5;
  border-radius: 999px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 999px;
  background: #d8e0ea;
}

.red-fill {
  background: linear-gradient(90deg, #d32323 0%, #ef4444 100%);
}

.soft-fill {
  background: linear-gradient(90deg, #f87171 0%, #fca5a5 100%);
}

.frs-reviews-feed-side {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.frs-block-header h3 {
  margin: 4px 0 0;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 800;
  color: var(--frs-text);
}

.frs-reviews-list {
  margin-top: 18px;
  padding-right: 4px;
  flex: 1;
  overflow-y: auto;
  max-height: 278px;
}

.frs-reviews-list::-webkit-scrollbar {
  width: 6px;
}

.frs-reviews-list::-webkit-scrollbar-thumb {
  background: #d7dee8;
  border-radius: 999px;
}

.single-review {
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  border: 1px solid #e8edf3;
  border-radius: 18px;
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.single-review p {
  margin: 0;
  font-size: 14px;
  line-height: 1.65;
  color: var(--frs-text-soft);
}

.frs-inline-review-link {
  display: inline-flex;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--frs-red);
  text-decoration: none;
}

.frs-inline-review-link:hover {
  text-decoration: underline;
}

.rev-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.rev-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  flex-shrink: 0;
  overflow: hidden;
}

.rev-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.g-bg {
  background: linear-gradient(135deg, #4285f4 0%, #2563eb 100%);
}

.y-bg {
  background: linear-gradient(135deg, #d32323 0%, #ef4444 100%);
}

.rev-info {
  font-size: 13px;
}

.rev-info strong {
  display: block;
  color: var(--frs-text);
  margin-bottom: 4px;
}

.rev-info .platform {
  color: var(--frs-text-muted);
  font-weight: 500;
}

.rev-info .time {
  color: #94a3b8;
  font-size: 12px;
  margin-left: 6px;
}

.frs-button-group {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.frs-cta-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 16px;
  border-radius: 14px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #ffffff !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.frs-cta-btn:hover {
  transform: translateY(-2px);
  filter: saturate(1.03);
}

.btn-google {
  background: linear-gradient(135deg, #1f7a3d 0%, #2ea44f 100%);
  box-shadow: 0 10px 20px rgba(46, 164, 79, 0.16);
}

.btn-yelp {
  background: linear-gradient(135deg, #d32323 0%, #ef4444 100%);
  box-shadow: 0 10px 20px rgba(239, 68, 68, 0.16);
}

.frs-map-side {
  min-height: 100%;
}

.frs-map-frame {
  position: relative;
  height: 100%;
  min-height: 330px;
  border-radius: var(--frs-radius-xl);
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: var(--frs-shadow-soft);
  background: #ffffff;
}

.map-overlay {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 5;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  color: var(--frs-text);
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 14px;
  padding: 10px 14px;
  font-size: 12px;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.frs-unified-divider {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, #e2e8f0 15%, #e2e8f0 85%, transparent 100%);
  margin: 34px 0 28px;
}

.frs-areas-header {
  max-width: 940px;
  margin-bottom: 22px;
}

.frs-areas-tagline {
  display: block;
  margin-bottom: 8px;
  color: var(--frs-red);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.frs-areas-header h2 {
  margin: 0 0 12px;
  font-size: 31px;
  line-height: 1.2;
  font-weight: 800;
  color: var(--frs-text);
  letter-spacing: -0.02em;
}

.frs-areas-header p {
  margin: 0;
  color: var(--frs-text-soft);
  font-size: 15px;
  line-height: 1.75;
}

.frs-cities-text-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.city-text-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 14px;
  border-radius: 14px;
  text-decoration: none !important;
  border: 1px solid #e6ebf2;
  background: rgba(255, 255, 255, 0.88);
  font-size: 14px;
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.02);
}

.city-text-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.05);
}

.active-red {
  color: #b91c1c !important;
  font-weight: 800;
}

.active-red:hover {
  background: rgba(211, 35, 35, 0.04);
  border-color: rgba(211, 35, 35, 0.18);
}

.general-blue {
  color: var(--frs-blue) !important;
  font-weight: 700;
}

.general-blue:hover {
  background: rgba(37, 99, 235, 0.04);
  border-color: rgba(37, 99, 235, 0.16);
}

.frs-loading-card,
.frs-error-card {
  border-style: dashed;
}

.frs-info-card {
  border-style: dashed;
  background: #ffffff;
  border-color: #e2e8f0;
}

.frs-error-card {
  background: #fff5f5;
  border-color: #fecaca;
}

@media (max-width: 1200px) {
  .frs-grid-three-columns {
    grid-template-columns: 1fr 1fr;
  }

  .frs-map-side {
    grid-column: 1 / -1;
  }

  .frs-map-frame {
    min-height: 320px;
  }

  .frs-cities-text-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 992px) {
  .frs-master-wrapper {
    padding: 0 16px;
  }

  #frs-main-unified-container {
    padding: 24px;
    border-radius: 22px;
  }

  .frs-grid-three-columns {
    grid-template-columns: 1fr;
  }

  .frs-cities-text-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .frs-areas-header h2 {
    font-size: 27px;
  }
}

@media (max-width: 768px) {
  .frs-topbar {
    align-items: stretch;
  }

  .frs-city-selector-container {
    flex-direction: column;
    align-items: flex-start;
  }

  .frs-select-custom-wrapper,
  #frs-city-select {
    width: 100%;
    min-width: 100%;
  }

  .frs-rating-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .frs-button-group {
    flex-direction: column;
  }

  .frs-cities-text-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .frs-block-header h3 {
    font-size: 22px;
  }
}

@media (max-width: 480px) {
  .frs-master-wrapper {
    margin: 22px auto;
    padding: 0 12px;
  }

  #frs-main-unified-container {
    padding: 18px;
    border-radius: 18px;
  }

  .frs-glass-card {
    padding: 18px;
    border-radius: 18px;
  }

  .big-rating {
    font-size: 48px;
  }

  .frs-cities-text-list {
    grid-template-columns: 1fr;
  }

  .frs-map-frame {
    min-height: 280px;
  }

  .map-overlay {
    top: 10px;
    left: 10px;
    right: 10px;
    font-size: 11px;
  }
}
