﻿/*
Theme Name:     listinghive Child
Description:    Thème enfant de listinghive
Author:         Daniel Bertoni
Author URI:     http://www.devncom.com
Template:       listinghive
Version:        0.1.0
*/

.header-hero--large {
  padding: 0 !important;
}

/* === TFD GEO LOADER — spinner DOM unique (Web + AppMySite) === */

/* Assure une boîte pour la flèche */
.hp-field--location a[title="Locate Me"] .hp-icon {
  position: relative;
  display: inline-block;
  width: 16px;
  height: 16px;
  line-height: 16px;
}

/* En état loading : masquer la flèche, montrer le spinner */
.hp-field--location.tfd-geo-loading a[title="Locate Me"] .hp-icon {
  color: transparent !important; /* masque la flèche font-awesome */
}

/* Form */
.hp-form {
  color: #333;
}

/* Conteneur spinner */
.tfd-spinner {
  position: absolute;
  inset: 0;            /* occupe exactement la place de l’icône */
  display: inline-block;
  pointer-events: none;
}

/* SVG : rotation CSS (compatible WebView) */
.tfd-spinner-svg {
  width: 16px;
  height: 16px;
  display: block;
  margin: 0;
  animation: tfd-spin 0.8s linear infinite;
  transform-origin: 50% 50%;
}

/* Cercle de fond (discret) */
.tfd-spinner-track {
  stroke: rgba(0,0,0,0.08);
}

/* Arc visible (couleur Add’N List) */
.tfd-spinner-arc {
  stroke: #f59e0b;              /* orange */
  stroke-dasharray: 90 126;     /* 90px visibles, 126 masqués (périmètre ≈ 2πr = 125.6) */
}

/* Rotation */
@keyframes tfd-spin {
  to { transform: rotate(360deg); }
}

/* =========================================
   SOCIAL LOGIN – VERSION PROPRE (CENTRÉE)
   - Google + Facebook cohérents
   - Open Sans partout
   - Taille 15px partout
   - Icônes 18px, spacing uniforme
========================================= */

.hp-social-links {
  --sl-font: "Open Sans", Arial, Helvetica, sans-serif;
  --sl-font-size: 15px;
  --sl-font-weight: 500;
  --sl-letter-spacing: 0.2px;
  --sl-icon: 18px;
  --sl-gap: 10px;

  position: relative;
  margin-bottom: 35px;
  padding-bottom: 20px;
}

/* Séparateur OR */
.hp-social-links::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(0, 0, 0, 0.18);
}

.hp-social-links::after {
  content: "OR";
  position: absolute;
  bottom: -9px;
  left: 50%;
  transform: translateX(-50%);
  background: #ffffff; /* fond modal */
  padding: 0 14px;

  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #777;
  font-weight: 600;
  font-family: var(--sl-font);
}

/* Base boutons (Google + FB) */
.hp-social-links > a {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: var(--sl-gap) !important;

  height: 50px;
  border-radius: 6px;

  font-family: var(--sl-font) !important;
  font-size: var(--sl-font-size) !important;
  font-weight: var(--sl-font-weight) !important;
  letter-spacing: var(--sl-letter-spacing) !important;
  line-height: 1 !important;

  transition: background 0.2s ease;
}

/* ===== Google (lien GSI) ===== */
.hp-social-links > a.gsi-material-button {
  background: #ffffff;
  border: 2px solid #d0d5da;
  color: #202124;
}

.hp-social-links > a.gsi-material-button:hover {
  background: #f1f3f4;
}

/* Google : wrapper interne = groupe centré (inline-flex) */
.hp-social-links > a.gsi-material-button .gsi-material-button-content-wrapper {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: var(--sl-gap) !important;
  width: auto !important;        /* IMPORTANT */
  margin: 0 auto !important;     /* IMPORTANT */
  padding: 0 !important;
}

/* Google : icône + texte propres */
.hp-social-links > a.gsi-material-button .gsi-material-button-icon,
.hp-social-links > a.gsi-material-button .gsi-material-button-contents {
  margin: 0 !important;
  padding: 0 !important;
}

.hp-social-links > a.gsi-material-button .gsi-material-button-icon {
  line-height: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.hp-social-links > a.gsi-material-button .gsi-material-button-icon svg {
  width: var(--sl-icon) !important;
  height: var(--sl-icon) !important;
  display: block !important;
}

.hp-social-links > a.gsi-material-button .gsi-material-button-contents {
  font-family: var(--sl-font) !important;
  font-size: var(--sl-font-size) !important;
  font-weight: var(--sl-font-weight) !important;
  letter-spacing: var(--sl-letter-spacing) !important;
  line-height: 1 !important;
}

/* ===== Facebook ===== */
.hp-social-links > a.hp-social-links__item--facebook {
  background: #1877f2;
  border: 2px solid #1877f2;
  color: #ffffff;
}

.hp-social-links > a.hp-social-links__item--facebook:hover {
  background: #1669d9;
}

/* Facebook : icône + texte propres */
.hp-social-links > a.hp-social-links__item--facebook > img {
  width: var(--sl-icon) !important;
  height: var(--sl-icon) !important;
  margin: 0 !important;
  flex: 0 0 var(--sl-icon) !important;
}

.hp-social-links > a.hp-social-links__item--facebook > span {
  margin: 0 !important;
  padding: 0 !important;
  font-family: var(--sl-font) !important;
  font-size: var(--sl-font-size) !important;
  font-weight: var(--sl-font-weight) !important;
  letter-spacing: var(--sl-letter-spacing) !important;
  line-height: 1 !important;
}
