/**
 * Visitor Restrictions Styles
 *
 * CSS utilities for the new CTA system:
 * - Progressive blur on results for visitors
 * - Locked/disabled elements
 * - Upgrade tooltips
 */

/* =============================================================================
   PROGRESSIVE BLUR ON RESULT ITEMS
   Applied to result lists where first 3-4 items are clear, last 1-2 are blurred
   ============================================================================= */

/* Container marker - add this class to enable progressive blur */
.visitor-blur-results {
  position: relative;
}

/* Progressive blur for list items (nth-child based) */
/* Items 1-3: fully visible */
/* Item 4: slight blur */
/* Items 5+: heavy blur */

.visitor-blur-results > *:nth-child(4) {
  filter: blur(1px);
  opacity: 0.85;
  pointer-events: none;
  user-select: none;
}

.visitor-blur-results > *:nth-child(n+5) {
  filter: blur(3px);
  opacity: 0.7;
  pointer-events: none;
  user-select: none;
}

/* Alternative: class-based blur for more control */
/* Light blur - first transition stage */
.visitor-blur-light {
  filter: blur(1px);
  opacity: 0.9;
  user-select: none;
  cursor: pointer;
}

/* Medium blur - second transition stage */
.visitor-blur-medium {
  filter: blur(2px);
  opacity: 0.75;
  user-select: none;
  cursor: pointer;
}

/* Heavy blur - fully restricted */
.visitor-blur-heavy {
  filter: blur(4px);
  opacity: 0.6;
  user-select: none;
  cursor: pointer;
}

/* For specific fields within items (e.g., blur company name but not price) */
.visitor-blur-field {
  filter: blur(3px);
  user-select: none;
}

/* =============================================================================
   MAP TOOLTIP VISITOR NOTE
   Note displayed at top of map marker tooltips for visitors
   ============================================================================= */

.visitor-tooltip-note {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 1px solid #fcd34d;
  border-radius: 6px;
  font-size: 11px;
  color: #92400e;
  line-height: 1.3;
}

.visitor-tooltip-note svg {
  flex-shrink: 0;
  color: #d97706;
}

.visitor-tooltip-note span {
  font-weight: 500;
}

/* Container class for visitor-restricted tooltips */
.visitor-restricted-tooltip {
  /* No additional styles needed, just a marker class */
}

/* =============================================================================
   LOCKED ELEMENTS
   For download buttons, specific filters, etc.
   ============================================================================= */

.visitor-locked {
  position: relative;
  cursor: not-allowed !important;
  opacity: 0.6;
  pointer-events: none;
}

/* Re-enable pointer events on the wrapper to show tooltip */
.visitor-locked-wrapper {
  cursor: not-allowed;
}

.visitor-locked-wrapper .visitor-locked {
  pointer-events: none;
}

/* Lock icon overlay */
.visitor-lock-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  margin-right: 4px;
  color: #64748b;
}

.visitor-lock-icon svg {
  width: 100%;
  height: 100%;
}

/* Button with lock - for download buttons etc */
.visitor-locked-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: not-allowed !important;
  opacity: 0.6;
  background-color: #e2e8f0 !important;
  color: #64748b !important;
  border-color: #cbd5e1 !important;
}

.visitor-locked-btn:hover {
  background-color: #e2e8f0 !important;
  cursor: not-allowed !important;
}

/* =============================================================================
   UPGRADE TOOLTIPS
   Small tooltip shown on click/hover of blurred or locked items
   ============================================================================= */

.visitor-tooltip {
  position: fixed;
  z-index: 10000;
  max-width: 280px;
  padding: 12px 14px;
  background: #fffbeb;
  color: #1f2937;
  font-size: 13px;
  line-height: 1.5;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, visibility 0.15s ease;
  pointer-events: none;
}

.visitor-tooltip.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.visitor-tooltip::before {
  content: '';
  position: absolute;
  bottom: -7px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 7px solid #e5e7eb;
}

.visitor-tooltip::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid #fffbeb;
}

.visitor-tooltip--top::before {
  bottom: auto;
  top: -7px;
  border-top: none;
  border-bottom: 7px solid #e5e7eb;
}

.visitor-tooltip--top::after {
  bottom: auto;
  top: -5px;
  border-top: none;
  border-bottom: 6px solid #fffbeb;
}

.visitor-tooltip__content {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.visitor-tooltip__icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-radius: 6px;
  flex-shrink: 0;
}

.visitor-tooltip__icon {
  width: 16px;
  height: 16px;
  color: #d97706;
}

.visitor-tooltip__body {
  flex: 1;
}

.visitor-tooltip__heading {
  margin: 0 0 4px 0;
  color: #1f2937;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}

.visitor-tooltip__text {
  margin: 0 0 8px 0;
  color: #1f2937;
  font-size: 13px;
  line-height: 1.4;
}

.visitor-tooltip__text strong {
  color: #d97706;
  font-weight: 600;
}

.visitor-tooltip__btn {
  display: inline-block;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #fff;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 5px;
  border: none;
  box-shadow: 0 2px 4px rgba(217, 119, 6, 0.3);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s ease;
}

.visitor-tooltip__btn:hover {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  box-shadow: 0 4px 8px rgba(217, 119, 6, 0.4);
}

/* =============================================================================
   RESULT COUNT INDICATOR
   Shows "Showing X of Y results" with upgrade prompt
   ============================================================================= */

.visitor-results-limit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  margin: 8px 0;
  background: #f1f5f9;
  border-radius: 6px;
  font-size: 13px;
  color: #64748b;
}

.visitor-results-limit__link {
  color: #0284c7;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}

.visitor-results-limit__link:hover {
  text-decoration: underline;
}

/* =============================================================================
   CLAIMS / MINERAL OCCURRENCES SPECIFIC
   Explorer plan required - different styling
   ============================================================================= */

.explorer-required-blur {
  filter: blur(4px);
  user-select: none;
  pointer-events: none;
}

.explorer-required-field {
  position: relative;
}

.explorer-required-field::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(4px);
  pointer-events: none;
}

/* Lock icon for explorer-required data */
.explorer-lock-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  background: #fef3c7;
  border: 1px solid #fcd34d;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  color: #92400e;
  text-transform: uppercase;
}

.explorer-lock-badge svg {
  width: 10px;
  height: 10px;
}

/* =============================================================================
   SIDEBAR / MAP PANEL SPECIFIC
   ============================================================================= */

/* For map sidebar results */
.sidebar-visitor-blur .sidebar-result-item:nth-child(n+4) {
  filter: blur(2px);
  opacity: 0.7;
  pointer-events: none;
}

/* Note at bottom of blurred results */
.visitor-blur-note {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  margin-top: 8px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 6px;
  font-size: 12px;
  color: #64748b;
}

.visitor-blur-note a {
  color: #0284c7;
  font-weight: 500;
  text-decoration: none;
}

.visitor-blur-note a:hover {
  text-decoration: underline;
}

/* =============================================================================
   ANIMATION FOR BLUR REVEAL (when user registers)
   ============================================================================= */

@keyframes blur-reveal {
  from {
    filter: blur(3px);
    opacity: 0.7;
  }
  to {
    filter: blur(0);
    opacity: 1;
  }
}

.visitor-blur-reveal {
  animation: blur-reveal 0.4s ease forwards;
}

/* =============================================================================
   DRILLING PAGE PAGINATION
   Pagination controls for commodity tables
   ============================================================================= */

.drilling-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  margin: 8px 0 16px 0;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 13px;
}

.drilling-pagination.loading {
  opacity: 0.6;
  pointer-events: none;
}

.drilling-pagination__info {
  color: #64748b;
}

.drilling-pagination__controls {
  display: flex;
  align-items: center;
  gap: 4px;
}

.drilling-pagination__pages {
  display: flex;
  align-items: center;
  gap: 2px;
}

.drilling-pagination__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
}

.drilling-pagination__btn:hover:not(:disabled) {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.drilling-pagination__btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.drilling-pagination__page {
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  color: #475569;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.drilling-pagination__page:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.drilling-pagination__page--active {
  background: #3b82f6;
  border-color: #3b82f6;
  color: white;
}

.drilling-pagination__page--active:hover {
  background: #2563eb;
  border-color: #2563eb;
}

.drilling-pagination__ellipsis {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  color: #94a3b8;
  font-size: 14px;
}

/* Disabled sorting indicator */
.sorting-disabled {
  opacity: 0.6;
  position: relative;
}

.sorting-disabled::after {
  content: '🔒';
  font-size: 10px;
  margin-left: 4px;
}

/* =============================================================================
   HIDDEN COMMODITIES INDICATOR
   Shows "N more commodities available" with signup CTA
   ============================================================================= */

.visitor-commodities-limit {
  margin: 24px 0 16px 0;
  padding: 16px 20px;
  background: linear-gradient(135deg, #fefce8 0%, #fef9c3 100%);
  border: 1px solid #fde047;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(250, 204, 21, 0.15);
}

.visitor-commodities-limit__content {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.visitor-commodities-limit__icon {
  flex-shrink: 0;
  color: #ca8a04;
}

.visitor-commodities-limit__content span {
  flex: 1;
  min-width: 200px;
  font-size: 14px;
  color: #713f12;
  line-height: 1.4;
}

.visitor-commodities-limit__content strong {
  color: #854d0e;
}

.visitor-commodities-limit__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 6px;
  box-shadow: 0 2px 4px rgba(217, 119, 6, 0.3);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.visitor-commodities-limit__link:hover {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  box-shadow: 0 4px 8px rgba(217, 119, 6, 0.4);
  transform: translateY(-1px);
}

@media (max-width: 600px) {
  .visitor-commodities-limit__content {
    flex-direction: column;
    text-align: center;
  }

  .visitor-commodities-limit__content span {
    min-width: unset;
  }

  .visitor-commodities-limit__link {
    width: 100%;
    justify-content: center;
  }
}

/* =============================================================================
   SIDEBAR CTA BANNER
   Banner shown at top of sidebar cards for visitors
   ============================================================================= */

.sidebar-visitor-cta-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 12px;
  padding: 14px 16px;
  background: #fffbeb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04);
}

.sidebar-cta-icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-radius: 8px;
  flex-shrink: 0;
  color: #d97706;
}

.sidebar-cta-content {
  flex: 1;
  min-width: 0;
}

.sidebar-cta-heading {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.3;
}

.sidebar-cta-description {
  margin: 4px 0 0 0;
  font-size: 13px;
  color: #4b5563;
  line-height: 1.5;
}

.sidebar-cta-description strong {
  color: #d97706;
  font-weight: 600;
}

.sidebar-cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.sidebar-visitor-cta-banner .sidebar-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none !important;
  white-space: nowrap;
  border: none;
  font-family: inherit;
}

.sidebar-visitor-cta-banner .sidebar-cta-btn.primary {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
  background-color: transparent !important;
  color: #fff !important;
  box-shadow: 0 2px 4px rgba(217, 119, 6, 0.3);
  border-color: transparent !important;
}

.sidebar-visitor-cta-banner .sidebar-cta-btn.primary:hover {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%) !important;
  box-shadow: 0 4px 8px rgba(217, 119, 6, 0.4);
}

.sidebar-visitor-cta-banner .sidebar-cta-btn.secondary {
  background: transparent !important;
  background-color: transparent !important;
  color: #6b7280 !important;
  padding: 8px 12px;
  text-decoration: underline !important;
  border-color: transparent !important;
}

.sidebar-visitor-cta-banner .sidebar-cta-btn.secondary:hover {
  background: rgba(0, 0, 0, 0.05) !important;
  color: #374151 !important;
}

/* =============================================================================
   CLAIMS UPGRADE BANNER
   Banner shown in claims sidebar for restricted users (guests/free)
   ============================================================================= */

.claims-upgrade-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 12px;
  padding: 14px 16px;
  background: #fffbeb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04);
}

.claims-upgrade-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-radius: 8px;
  flex-shrink: 0;
  color: #d97706;
}

.claims-upgrade-icon sl-icon {
  font-size: 18px;
}

.claims-upgrade-content {
  flex: 1;
  min-width: 0;
}

.claims-upgrade-title {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #1f2937;
  line-height: 1.3;
}

.claims-upgrade-description {
  margin: 4px 0 0 0;
  font-size: 13px;
  color: #4b5563;
  line-height: 1.5;
}

.claims-upgrade-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.claims-upgrade-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none !important;
  white-space: nowrap;
  border: none;
  font-family: inherit;
}

.claims-upgrade-btn.primary {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
  background-color: transparent !important;
  color: #fff !important;
  box-shadow: 0 2px 4px rgba(217, 119, 6, 0.3);
  border-color: transparent !important;
}

.claims-upgrade-btn.primary:hover {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%) !important;
  box-shadow: 0 4px 8px rgba(217, 119, 6, 0.4);
}

.claims-upgrade-btn.secondary {
  background: transparent !important;
  background-color: transparent !important;
  color: #6b7280 !important;
  padding: 8px 12px;
  text-decoration: underline !important;
  border-color: transparent !important;
}

.claims-upgrade-btn.secondary:hover {
  background: rgba(0, 0, 0, 0.05) !important;
  color: #374151 !important;
}

.claims-upgrade-description strong {
  color: #d97706;
  font-weight: 600;
}

/* Claims bucket blurred state - allows expansion but blurs content */
.claims-bucket-blurred .details-content {
  filter: blur(4px);
  user-select: none;
  pointer-events: none;
}

/* Claims blur field wrapper - keeps blurred content and lock icon together */
.claims-blur-wrapper {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  max-width: 100%;
}

/* Claims blur field - for blurring specific fields (owner names, dates) */
.claims-blur-field {
  filter: blur(4px);
  user-select: none;
  display: inline-block;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: calc(100% - 18px); /* Leave room for lock icon */
}

/* Lock icon displayed next to blurred claims fields */
.claims-lock-icon {
  font-size: 10px;
  margin-left: 2px;
  opacity: 0.7;
  flex-shrink: 0;
}

/* Restricted claims table - shows cursor indicator for restricted rows */
.claims-restricted-table tr[data-tenureid] {
  cursor: pointer;
}

.claims-restricted-table tr[data-tenureid]:hover {
  background-color: rgba(217, 119, 6, 0.1) !important; /* Amber tint to indicate restricted */
}

/* =============================================================================
   CLAIMS SANDBOX PREVIEW MODE
   Modal and UI for sandbox preview functionality
   ============================================================================= */

/* Modal Overlay */
.claims-sandbox-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.claims-sandbox-modal-overlay.visible {
  opacity: 1;
}

/* Modal Container */
.claims-sandbox-modal {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  width: 90%;
  max-width: 420px;
  max-height: 90vh;
  overflow: hidden;
  position: relative;
  transform: scale(0.95) translateY(10px);
  transition: transform 0.2s ease;
}

.claims-sandbox-modal-overlay.visible .claims-sandbox-modal {
  transform: scale(1) translateY(0);
}

/* Close Button */
.claims-sandbox-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: none;
  background: #f3f4f6;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  transition: all 0.15s ease;
  z-index: 1;
}

.claims-sandbox-modal-close:hover {
  background: #e5e7eb;
  color: #374151;
}

/* Modal Header */
.claims-sandbox-modal-header {
  padding: 32px 24px 24px;
  text-align: center;
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border-bottom: 1px solid #fde68a;
}

.claims-sandbox-modal-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: #fff;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3);
}

.claims-sandbox-modal-title {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
  color: #1f2937;
}

.claims-sandbox-modal-subtitle {
  margin: 0;
  font-size: 14px;
  color: #6b7280;
}

/* Modal Content */
.claims-sandbox-modal-content {
  padding: 24px;
}

.claims-sandbox-modal-description {
  margin: 0 0 20px;
  font-size: 14px;
  color: #4b5563;
  line-height: 1.6;
}

.claims-sandbox-modal-description strong {
  color: #d97706;
  font-weight: 600;
}

/* Region Cards */
.claims-sandbox-region-cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.claims-sandbox-region-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
  width: 100%;
}

.claims-sandbox-region-card:hover {
  background: #fffbeb;
  border-color: #fcd34d;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.1);
}

.claims-sandbox-region-flag {
  font-size: 28px;
  line-height: 1;
}

.claims-sandbox-region-info {
  flex: 1;
  min-width: 0;
}

.claims-sandbox-region-name {
  font-size: 15px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 2px;
}

.claims-sandbox-region-desc {
  font-size: 13px;
  color: #6b7280;
}

.claims-sandbox-region-arrow {
  color: #9ca3af;
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

.claims-sandbox-region-card:hover .claims-sandbox-region-arrow {
  color: #d97706;
  transform: translateX(4px);
}

/* Modal Footer */
.claims-sandbox-modal-footer {
  padding: 16px 24px;
  background: #f9fafb;
  border-top: 1px solid #e5e7eb;
  text-align: center;
}

.claims-sandbox-modal-upgrade-note {
  margin: 0;
  font-size: 13px;
  color: #6b7280;
}

.claims-sandbox-upgrade-link {
  color: #d97706;
  font-weight: 600;
  text-decoration: none;
}

.claims-sandbox-upgrade-link:hover {
  text-decoration: underline;
}

/* =============================================================================
   CLAIMS SANDBOX EXIT BUTTON
   Floating button shown during preview mode
   ============================================================================= */

.claims-sandbox-exit-button {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  z-index: 10000;
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
}

.claims-sandbox-exit-button.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

.claims-sandbox-exit-content {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px 12px 10px 16px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.claims-sandbox-exit-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.claims-sandbox-exit-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 1px solid #fcd34d;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #92400e;
}

.claims-sandbox-exit-region {
  font-size: 13px;
  color: #4b5563;
  font-weight: 500;
}

.claims-sandbox-info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: #6b7280;
  cursor: help;
  position: relative;
  transition: color 0.15s ease;
}

.claims-sandbox-info-icon:hover {
  color: #374151;
}

.claims-sandbox-info-icon svg {
  width: 16px;
  height: 16px;
}

/* Custom tooltip for info icon */
.claims-sandbox-info-icon::after {
  content: attr(data-tooltip);
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  width: 280px;
  padding: 10px 12px;
  background: #1f2937;
  color: #f9fafb;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  pointer-events: none;
  z-index: 10001;
  text-align: left;
}

.claims-sandbox-info-icon::before {
  content: '';
  position: absolute;
  top: calc(100% + 2px);
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-bottom-color: #1f2937;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  pointer-events: none;
  z-index: 10001;
}

.claims-sandbox-info-icon:hover::after,
.claims-sandbox-info-icon:hover::before {
  opacity: 1;
  visibility: visible;
}

.claims-sandbox-exit-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  cursor: pointer;
  transition: all 0.15s ease;
}

.claims-sandbox-exit-btn:hover {
  background: #e5e7eb;
  border-color: #d1d5db;
}

.claims-sandbox-exit-btn svg {
  flex-shrink: 0;
}

/* Active sandbox mode indicator - amber border is now rendered as a map layer */

/* Mobile responsive */
@media (max-width: 480px) {
  .claims-sandbox-modal {
    width: 95%;
    max-width: none;
    margin: 16px;
  }

  .claims-sandbox-modal-header {
    padding: 24px 20px 20px;
  }

  .claims-sandbox-modal-content {
    padding: 20px;
  }

  .claims-sandbox-exit-button {
    top: 10px;
    left: 10px;
    right: 10px;
    transform: translateX(0) translateY(-20px);
  }

  .claims-sandbox-exit-button.visible {
    transform: translateX(0) translateY(0);
  }

  .claims-sandbox-exit-content {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  .claims-sandbox-exit-info {
    width: 100%;
    justify-content: center;
  }

  .claims-sandbox-exit-btn {
    width: 100%;
    justify-content: center;
  }
}

/* =============================================================================
   CLAIMS SANDBOX BOTTOM CTA BAR
   Fixed bar at bottom of map during preview mode
   ============================================================================= */

.claims-sandbox-bottom-cta {
  position: absolute;
  bottom: 0;
  right: 0;
  height: 56px;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.08);
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.3s ease, transform 0.3s ease, left 0.3s ease;
  pointer-events: none;
}

/* Shift basemap switcher up when bottom CTA is visible */
.claims-sandbox-active .basemap-switcher-widget {
  bottom: 66px; /* 56px bar height + 10px original offset */
  transition: bottom 0.3s ease;
}

.claims-sandbox-bottom-cta.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.claims-sandbox-bottom-cta__text {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: #4b5563;
}

.claims-sandbox-bottom-cta__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-radius: 6px;
  color: #92400e;
}

.claims-sandbox-bottom-cta__icon svg {
  width: 14px;
  height: 14px;
}

.claims-sandbox-bottom-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.3);
}

.claims-sandbox-bottom-cta__btn:hover {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.4);
  transform: translateY(-1px);
}

.claims-sandbox-bottom-cta__btn svg {
  width: 16px;
  height: 16px;
}

/* Mobile responsive */
@media (max-width: 640px) {
  .claims-sandbox-bottom-cta {
    padding: 0 16px;
    height: 52px;
  }

  .claims-sandbox-bottom-cta__text {
    font-size: 12px;
  }

  .claims-sandbox-bottom-cta__btn {
    padding: 8px 14px;
    font-size: 13px;
  }
}

/* =============================================================================
   SIDEBAR FLOATING CTA
   Floating banner that appears when top CTA scrolls out of view
   Uses the same .sidebar-visitor-cta-banner styles as the top banner
   ============================================================================= */

.sidebar-floating-cta {
  position: absolute;
  bottom: 60px; /* Above sponsor widget (min-height: 50px + padding) */
  left: 0;
  right: 0;
  padding: 0 12px;
  z-index: 100;
  pointer-events: none;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.sidebar-floating-cta.is-visible {
  pointer-events: auto;
  opacity: 1;
  transform: translateY(0);
}

/* Add enhanced shadow to floating banner to distinguish from content */
.sidebar-floating-cta .sidebar-visitor-cta-banner {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15), 0 2px 6px rgba(0, 0, 0, 0.08);
  margin: 0; /* Remove default margin since parent has padding */
}
