/* ═══════════════════════════════════════════════
   COMPONENTS.CSS — Buttons, Cards, Chips, Forms
   OkaneGroup Theme v1.0.0
   ═══════════════════════════════════════════════ */

/* ═══ BOTON FRANCOGLOBAL — CSS-only expanding dark bg ═══ */
#boton-francoglobal,
.boton-francoglobal {
  display: inline-flex;
  align-items: center;
  gap: 0;
  background: var(--ok-btn-light) !important;
  color: var(--ok-dark) !important;
  padding: 5px;
  border-radius: var(--ok-radius-pill) !important;
  font-size: 15px;
  font-weight: 300 !important;
  letter-spacing: 0;
  text-transform: capitalize !important;
  border: none;
  cursor: pointer;
  font-family: var(--ok-font-primary);
  position: relative;
  overflow: hidden;
  transition: none;
}

/* Dark expanding circle — from icon side */
.boton-francoglobal::before {
  content: '';
  position: absolute;
  top: 50%;
  right: 5px;
  width: 38px;
  height: 38px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: var(--ok-dark-btn);
  transition: all 0.3s var(--ok-ease);
  z-index: 1;
}

.boton-francoglobal:hover::before {
  width: calc(100% - 10px);
  border-radius: 26px;
}

.boton-francoglobal .btn-text {
  position: relative;
  z-index: 2;
  padding-left: 16px;
  margin-right: 12px;
  color: var(--ok-dark-btn);
  transition: color 0.3s ease;
  white-space: nowrap;
  font-family: var(--ok-font-primary);
  font-size: 15px;
  font-weight: 300;
}

.boton-francoglobal:hover .btn-text {
  color: var(--ok-btn-hover-text);
}

.boton-francoglobal .btn-icon {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  color: var(--ok-btn-hover-text);
}

.boton-francoglobal .btn-icon svg {
  width: 14px;
  height: 14px;
}

/* ── Inverted variant (for dark backgrounds) ── */
.boton-francoglobal.btn-inverted {
  background: var(--ok-dark-btn) !important;
}

.boton-francoglobal.btn-inverted::before {
  background: var(--ok-btn-light);
}

.boton-francoglobal.btn-inverted .btn-text {
  color: var(--ok-cream);
}

.boton-francoglobal.btn-inverted:hover .btn-text {
  color: var(--ok-gray-text);
}

.boton-francoglobal.btn-inverted .btn-icon {
  color: var(--ok-gray-text);
}

/* ── Primary button (inherits .boton-francoglobal) ── */
.btn-primary:hover { transform: none; }
.btn-primary svg { width: 16px; height: 16px; }

/* ═══ NAVBAR ELEMENTS ═══ */
.nav-lang {
  color: var(--ok-cream-60);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 10px;
  border: 1px solid var(--ok-cream-15);
  border-radius: 3px;
  transition: all var(--ok-transition);
}

.nav-lang:hover {
  border-color: var(--ok-cream-40);
  color: var(--ok-cream);
}

.nav-search {
  color: var(--ok-cream-60);
  transition: color var(--ok-transition);
}

.nav-search:hover { color: var(--ok-cream); }

.nav-cta {
  background: var(--ok-btn-light);
  color: var(--ok-dark);
  padding: 5px;
  border-radius: var(--ok-radius-pill);
  font-size: 15px;
  font-weight: 300;
  letter-spacing: 0;
  text-transform: capitalize;
  transition: all var(--ok-transition);
}

.nav-cta.boton-francoglobal {
  padding: 5px;
  font-size: 15px;
}

.nav-cta.boton-francoglobal::before {
  top: 50%;
  right: 5px;
  width: 38px;
  height: 38px;
  transform: translateY(-50%);
  border-radius: 50%;
}

.nav-cta.boton-francoglobal:hover::before {
  width: calc(100% - 10px);
  border-radius: 26px;
}

.nav-cta.boton-francoglobal .btn-icon {
  width: 38px;
  height: 38px;
}

.nav-cta.boton-francoglobal .btn-text {
  margin-right: 12px;
  font-size: 15px;
  padding-left: 16px;
}

/* Hamburger */
.nav-hamburger {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  position: relative;
}

.nav-hamburger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ok-cream);
  transition: all var(--ok-transition);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.nav-hamburger span:nth-child(1) { top: 13px; }
.nav-hamburger span:nth-child(2) { top: 18px; }
.nav-hamburger span:nth-child(3) { top: 23px; }

/* ═══ THEME TOGGLE (moon/sun) ═══ */
.nav-theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: none;
  border: 1px solid var(--ok-cream-15);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--ok-cream-60);
  transition: all var(--ok-transition);
}
.nav-theme-toggle:hover {
  border-color: var(--ok-cream-40);
  color: var(--ok-cream);
}
.nav-theme-toggle svg { width: 14px; height: 14px; }
[data-theme="dark"] .icon-sun { display: none; }
[data-theme="light"] .icon-moon { display: none; }
[data-theme="light"] .nav-theme-toggle {
  border-color: var(--ok-beige-mid);
  color: var(--ok-gray-text);
}
[data-theme="light"] .nav-theme-toggle:hover {
  border-color: var(--ok-gray-warm);
  color: var(--ok-text-dark);
}

/* ═══ FILTER CHIPS ═══ */
.filter-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 400;
  color: var(--ok-gray-text);
  background: transparent;
  border: 1px solid var(--ok-beige-light);
  transition: all var(--ok-transition);
  white-space: nowrap;
  cursor: pointer;
  position: relative;
}

.filter-chip:first-child { border-radius: 4px 0 0 4px; }
.filter-chip:last-child { border-radius: 0 4px 4px 0; }
.filter-chip + .filter-chip { border-left: none; }

.filter-chip:hover {
  background: var(--ok-dark);
  color: var(--ok-cream);
  border-color: var(--ok-dark);
  z-index: 2;
}

.filter-chip:hover + .filter-chip { border-left-color: transparent; }

.filter-chip svg { width: 14px; height: 14px; opacity: 0.5; flex-shrink: 0; }
.filter-chip:hover svg { opacity: 0.9; }

.filter-chip.active {
  background: var(--ok-dark);
  color: var(--ok-cream);
  border-color: var(--ok-dark);
  z-index: 2;
}

.filter-divider {
  width: 1px;
  height: 20px;
  background: var(--ok-beige-light);
  margin: 0 16px;
  flex-shrink: 0;
}

.filter-search-wrap {
  position: relative;
  flex: 1;
  min-width: 200px;
}

.filter-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ok-gray-warm);
  width: 13px; height: 13px;
  pointer-events: none;
}

.filter-search {
  width: 100%;
  padding: 8px 14px 8px 34px;
  border: 1px solid var(--ok-beige-light);
  border-radius: 4px;
  font-size: 12px;
  font-family: var(--ok-font-primary);
  color: var(--ok-text-dark);
  outline: none;
  transition: border-color var(--ok-transition);
  background: transparent;
}

.filter-search::placeholder { color: var(--ok-gray-warm); }
.filter-search:focus { border-color: var(--ok-dark); }
.filter-search[readonly] { cursor: pointer; }

/* ═══ PROPERTY CARDS ═══ */
.property-card {
  border-radius: var(--ok-radius);
  overflow: hidden;
  transition: transform var(--ok-transition);
  cursor: pointer;
  background: var(--ok-white);
}

.property-card:hover { transform: translateY(-3px); }

.card-image-wrap {
  position: relative;
  height: clamp(200px, 18vw, 280px);
  overflow: hidden;
  border-radius: var(--ok-radius);
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ok-ease);
}

.property-card:hover .card-image { transform: scale(1.05); }

.card-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--ok-dark);
  color: var(--ok-cream);
  padding: 4px 12px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.card-badge.off-market {
  background: var(--ok-cream);
  color: var(--ok-dark);
}

.card-meta {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 36px 14px 12px;
  background: linear-gradient(to top, rgba(26, 23, 20, 0.6), transparent);
  display: flex;
  gap: 14px;
  align-items: center;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--ok-cream);
  font-size: 12px;
}

.meta-item svg { width: 13px; height: 13px; opacity: 0.75; }

.card-info {
  padding: 14px 4px 8px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.card-name {
  font-family: var(--ok-font-primary);
  font-size: clamp(16px, 1.4vw, 20px);
  font-weight: 600;
  color: var(--ok-text-dark);
  line-height: 1.3;
}

.card-location {
  font-size: 12px;
  color: var(--ok-gray-warm);
  margin-top: 2px;
}

.card-price { text-align: right; white-space: nowrap; }

.card-price-value {
  font-size: clamp(14px, 1.2vw, 16px);
  font-weight: 600;
  color: var(--ok-dark);
}

.card-price-currency { font-size: 12px; color: var(--ok-gray-warm); }

/* ═══ FAQ ═══ */
.faq-category { margin-bottom: 28px; }

.faq-category-title {
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--ok-gray-warm);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--ok-beige-light);
  font-weight: 500;
}

.faq-item { border-bottom: 1px solid var(--ok-beige-light); }

.faq-question {
  width: 100%;
  text-align: left;
  padding: 18px 0;
  font-size: clamp(14px, 1.2vw, 15px);
  font-weight: 400;
  color: var(--ok-text-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: color var(--ok-transition);
  line-height: 1.5;
}

.faq-question:hover { color: var(--ok-gray-text); }

.faq-icon {
  width: 24px; height: 24px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--ok-transition);
  color: var(--ok-gray-warm);
}

.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.open .faq-answer { max-height: 200px; padding-bottom: 18px; }

.faq-answer p {
  font-size: 14px;
  color: var(--ok-gray-text);
  line-height: 1.75;
  font-weight: 300;
}

/* ═══ BREADCRUMB ═══ */
.hero-breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 16px;
}

.hero-breadcrumb a,
.hero-breadcrumb span {
  font-size: 13px;
  color: var(--ok-cream-60);
  letter-spacing: 0.3px;
}

.hero-breadcrumb a:hover { color: var(--ok-cream); }
.hero-breadcrumb .sep { color: var(--ok-cream-40); }

/* ═══ STATEMENT WORDS ═══ */
.st-line {
  display: block;
  overflow: hidden;
}

.st-word {
  display: inline-block;
}

.st-word:last-child { margin-right: 0; }

.st-italic {
  font-style: italic;
  font-weight: 400;
  color: var(--ok-cream-60);
}
