/* Explore Auto - Phase 2: Regional Conversion & Multi-Currency Styles */

.currency-selector {
  position: relative;
  display: inline-block;
  margin-left: 0.5rem;
  margin-right: 0.5rem;
  z-index: 1050;
}

.currency-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  background-color: #ffffff;
  color: #1e3a8a;
  border: 1.5px solid #1e3a8a;
  border-radius: 0.375rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.currency-btn:hover,
.currency-btn.active {
  background-color: #1e3a8a;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(30, 58, 138, 0.2);
}

.currency-btn .currency-chevron {
  transition: transform 0.2s ease;
}

.currency-selector.open .currency-btn .currency-chevron {
  transform: rotate(180deg);
}

.currency-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 190px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  padding: 0.35rem;
  display: none;
  flex-direction: column;
  z-index: 1060;
  animation: currencyFadeIn 0.2s ease forwards;
}

.currency-selector.open .currency-dropdown {
  display: flex;
}

@keyframes currencyFadeIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.currency-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: none;
  background: transparent;
  border-radius: 0.375rem;
  font-size: 0.85rem;
  color: #1f2937;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
  text-align: left;
}

.currency-option:hover {
  background-color: #eff6ff;
  color: #1e3a8a;
}

.currency-option.selected {
  background-color: #1e3a8a;
  color: #ffffff;
  font-weight: 600;
}

.currency-option.selected .currency-sym {
  color: #93c5fd;
}

.currency-option .opt-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.currency-option .currency-sym {
  font-size: 0.8rem;
  color: #6b7280;
  font-weight: 500;
}

/* RTL Support */
[dir="rtl"] .currency-selector {
  margin-left: 0.5rem;
  margin-right: 0.5rem;
}

[dir="rtl"] .currency-dropdown {
  right: auto;
  left: 0;
}

[dir="rtl"] .currency-option {
  text-align: right;
}

/* Mobile Nav Currency Switcher */
.mobile-currency-container {
  padding: 1rem 0.5rem 0.5rem;
  border-top: 1px solid #e5e7eb;
  margin-top: 0.75rem;
}

.mobile-currency-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.mobile-currency-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
}

.mobile-curr-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.5rem;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  background: #ffffff;
  font-size: 0.85rem;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  transition: all 0.2s;
}

.mobile-curr-pill.selected {
  background-color: #1e3a8a;
  color: #ffffff;
  border-color: #1e3a8a;
  font-weight: 700;
}

/* Car Price Highlights */
.price-value {
  transition: color 0.3s ease, transform 0.2s ease;
  font-weight: 700;
}

.price-value.updating {
  opacity: 0.3;
  transform: scale(0.96);
}

.currency-conversion-tag {
  display: inline-block;
  font-size: 0.75rem;
  color: #059669;
  background: #ecfdf5;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  margin-left: 0.35rem;
  font-weight: 500;
}

[dir="rtl"] .currency-conversion-tag {
  margin-left: 0;
  margin-right: 0.35rem;
}
