/* ── Google SERP Location Changer — styles.css ───────────────────────────────
   Tool-specific styles only. All layout/typography/buttons/cards handled by MDB.
   Covers: searchable select, location autocomplete, ads checkbox, device radio.
   ─────────────────────────────────────────────────────────────────────────── */

/* ── Searchable Select ───────────────────────────────────────────────────── */
.searchable-select { position: relative; }

.ss-trigger {
  cursor: pointer;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid #dee2e6;
  border-radius: 4px;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: border-color 0.15s;
}
.ss-trigger:hover { border-color: #adb5bd; }
.ss-trigger.open { border-color: #198754; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.ss-trigger .ss-arrow { 
  margin-left: auto;
  font-size: 10px;
  transition: transform 0.2s; 
}
.ss-trigger.open .ss-arrow { transform: rotate(180deg); }

.ss-flag { font-size: 18px; line-height: 1; }
.ss-text { flex: 1; font-size: 14px; }
.ss-text.placeholder { color: #6c757d; }

.ss-panel {
  position: absolute;
  top: 100%; left: 0; right: 0;
  background: #fff;
  border: 1px solid #198754;
  border-top: none;
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
  z-index: 500;
  display: none;
  flex-direction: column;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.ss-panel.open { display: flex; }

.ss-search {
  width: 100%;
  padding: 8px 12px;
  border: none;
  border-bottom: 1px solid #dee2e6;
  font-size: 13px;
  outline: none;
}
.ss-search:focus { background: #f8f9fa; }

.ss-list {
  overflow-y: auto;
  max-height: 220px;
}
.ss-list::-webkit-scrollbar { width: 4px; }
.ss-list::-webkit-scrollbar-thumb { background: #dee2e6; border-radius: 2px; }

.ss-option {
  padding: 8px 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  border-bottom: 1px solid rgba(0,0,0,0.04);
  transition: background 0.1s;
}
.ss-option:last-child { border-bottom: none; }
.ss-option:hover,
.ss-option.ss-focused { background: #f8f9fa; }
.ss-option.ss-selected { background: #d1e7dd; color: #198754; font-weight: 600; }

.ss-option-flag { font-size: 16px; line-height: 1; }
.ss-option-label { flex: 1; }
.ss-option-sub { font-size: 11px; }

.ss-footer {
  padding: 6px 12px;
  font-size: 11px;
  color: #6c757d;
  border-top: 1px solid #dee2e6;
  background: #f8f9fa;
}

.ss-empty {
  padding: 16px;
  text-align: center;
  color: #6c757d;
  font-size: 13px;
  font-style: italic;
}

/* ── Location Autocomplete ───────────────────────────────────────────────── */
.loc-spinner {
  position: absolute;
  right: 36px; top: 50%;
  transform: translateY(-50%);
  width: 14px; height: 14px;
  border: 2px solid #dee2e6;
  border-top-color: #198754;
  border-radius: 50%;
  animation: locSpin 0.7s linear infinite;
  display: none;
}
.loc-spinner.active { display: block; }
@keyframes locSpin { to { transform: translateY(-50%) rotate(360deg); } }

.loc-clear {
  position: absolute;
  right: 10px; top: 50%;
  transform: translateY(-50%);
  color: #adb5bd;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  padding: 2px 5px;
  display: none;
  transition: color 0.15s;
}
.loc-clear:hover { color: #6c757d; }
.loc-clear.visible { display: block; }

.loc-dropdown {
  position: absolute;
  top: calc(100% + 3px);
  left: 0; right: 0;
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  z-index: 400;
  max-height: 260px;
  overflow-y: auto;
  display: none;
}
.loc-dropdown.open { display: block; }
.loc-dropdown::-webkit-scrollbar { width: 4px; }
.loc-dropdown::-webkit-scrollbar-thumb { background: #dee2e6; border-radius: 2px; }

.loc-item {
  padding: 8px 12px;
  cursor: pointer;
  font-size: 13.5px;
  border-bottom: 1px solid rgba(0,0,0,0.04);
  transition: background 0.1s;
}
.loc-item:last-child { border-bottom: none; }
.loc-item:hover,
.loc-item.focused { background: #f8f9fa; }
.loc-item.selected { background: #d1e7dd; }

/* ── Ads Checkbox ────────────────────────────────────────────────────────── */
.ads-checkbox-custom {
  width: 18px; height: 18px;
  border: 2px solid #adb5bd;
  border-radius: 4px;
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 3px;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ads-checkbox-custom.checked {
  background: #198754;
  border-color: #198754;
}
.ads-checkbox-custom.checked::after {
  content: '✓';
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

/* ── Device Radio ────────────────────────────────────────────────────────── */
.device-option {
  cursor: pointer;
  color: #adb5bd;
  font-size: 13px;
  font-weight: 500;
  transition: color 0.15s;
  user-select: none;
}
.device-option.active { color: #212529; font-weight: 600; }

.radio-custom {
  width: 15px; height: 15px;
  border: 2px solid #adb5bd;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.15s;
}
.device-option.active .radio-custom { border-color: #198754; }
.device-option.active .radio-custom::after {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #198754;
  display: block;
}

/* ── URL display ─────────────────────────────────────────────────────────── */
#url-display { font-size: 12px; }