/* ============================================================================
   yc-it. — Domein zoeker (volledig)
   ----------------------------------------------------------------------------
   Geladen via /includes/domain-search.php (apart <link>, dus geen copy/paste
   in style.css meer nodig).
   ========================================================================= */

/* === Layout & uitlijning === */
.domain-hero {
  padding: 64px 20px 88px;
  text-align: center;
}
.domain-hero .container {
  max-width: 960px;
  margin: 0 auto;
}
.domain-hero .domain-eyebrow,
.domain-hero .domain-title,
.domain-hero .domain-lead,
.domain-hero .domain-trust {
  text-align: center;
}

.domain-eyebrow {
  margin: 0 0 20px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: var(--accent, #2d6a4f);
  text-transform: uppercase;
  font-family: var(--mono, ui-monospace, 'SF Mono', Menlo, Consolas, monospace);
}
.domain-hero .domain-title {
  margin: 0 0 16px;
  font-family: var(--display, 'Fraunces', 'Cormorant Garamond', Georgia, serif);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: #1a1a1a;
}
.domain-hero .domain-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent, #2d6a4f);
}
.domain-lead {
  margin: 0 0 36px;
  font-size: 1.05rem;
  color: var(--text-soft, #6b6357);
}

/* === Zoekbalk === */
.domain-search-form {
  margin: 0 auto 16px;
  max-width: 720px;
}
.domain-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  border: 2px solid var(--border, #e8e2d8);
  border-radius: 14px;
  padding: 6px 6px 6px 22px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  text-align: left;
}
.domain-search-box:focus-within {
  border-color: var(--accent, #2d6a4f);
  box-shadow: 0 0 0 4px rgba(45, 106, 79, 0.12);
}
.domain-search-icon {
  flex-shrink: 0;
  color: var(--text-faded, #9a9a9a);
}
.domain-search-box input {
  flex: 1;
  appearance: none;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
  font-size: 17px;
  font-weight: 500;
  padding: 16px 6px;
  color: #1a1a1a;
  min-width: 0;
}
.domain-search-box input::placeholder { color: var(--text-faded, #9a9a9a); font-weight: 400; }
.domain-search-btn {
  appearance: none;
  border: 0;
  background: var(--accent, #2d6a4f);
  color: #fff;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 24px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
  white-space: nowrap;
  min-height: 48px;
  flex-shrink: 0;
}
.domain-search-btn:hover { background: var(--accent-hover, #1f4d39); }
.domain-search-btn:active { transform: translateY(1px); }

/* === Trust strip === */
.domain-trust {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 26px;
  margin: 0 0 32px;
  font-size: 0.85rem;
  color: var(--text-faded, #8a8278);
  font-family: var(--mono, ui-monospace, 'SF Mono', Menlo, Consolas, monospace);
  letter-spacing: 0.02em;
}

/* === Resultaten container === */
#domain-results {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 880px;
  margin: 0 auto;
  text-align: left;
}
.results-empty,
.results-error,
.results-loading {
  text-align: center;
  padding: 24px 16px;
  color: var(--text-soft, #6b6357);
  font-style: italic;
}
.results-error { color: #c0392b; }

/* === Resultaat rij — basis (overschrijft oude .result-row in style.css) === */
.domain-hero .result-row {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  opacity: 1;
}
.domain-hero .result-row:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}
.result-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.result-domain {
  font-family: var(--display, 'Fraunces', 'Cormorant Garamond', Georgia, serif);
  font-size: 1.4rem;
  letter-spacing: -0.01em;
  color: #1a1a1a;
}
.result-domain strong { font-weight: 600; }
.result-domain em {
  font-style: italic;
  font-weight: 400;
  color: var(--text-soft, #6b6357);
}

/* === BESCHIKBAAR — groen === */
.result-available .result-dot {
  background: var(--accent, #2d6a4f);
  box-shadow: 0 0 0 4px rgba(45, 106, 79, 0.14);
}
.result-available .result-price {
  font-family: var(--mono, ui-monospace, 'SF Mono', Menlo, Consolas, monospace);
  font-weight: 600;
  font-size: 1rem;
  color: #1a1a1a;
  white-space: nowrap;
}
.result-available .result-price small {
  font-weight: 400;
  color: var(--text-soft, #6b6357);
}
.result-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  background: var(--accent, #2d6a4f);
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.15s ease, transform 0.1s ease;
  min-height: 44px;
  min-width: 90px;
}
.result-btn:hover {
  background: var(--accent-hover, #1f4d39);
  transform: translateY(-1px);
}

/* === BEZET — rood, opvallend === */
.domain-hero .result-row.result-bezet {
  background: linear-gradient(180deg, #fef7f6 0%, #fef0ee 100%);
  border: 1px solid #fcd5cf;
  border-left: 4px solid #dc2626;
  padding-left: 22px;
}
.result-bezet .result-dot {
  background: #dc2626;
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.14);
}
.result-bezet .result-domain {
  color: #3d2520;
}
.result-bezet .result-domain strong { color: #2a1815; }
.result-bezet .result-domain em { color: #8a5a52; }

/* BEZET pill label */
.result-status {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  color: #fff;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  border-radius: 6px;
  text-transform: uppercase;
  font-family: var(--mono, ui-monospace, 'SF Mono', Menlo, Consolas, monospace);
  box-shadow: 0 1px 3px rgba(220, 38, 38, 0.25);
  white-space: nowrap;
}

/* "Verhuis hierheen" knop in BEZET rij */
.result-verhuis-btn {
  appearance: none;
  border: 1.5px solid #dc2626;
  background: rgba(255, 255, 255, 0.7);
  color: #dc2626;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
  min-height: 40px;
  white-space: nowrap;
}
.result-verhuis-btn:hover,
.result-verhuis-btn.is-open {
  background: #dc2626;
  color: #fff;
  box-shadow: 0 2px 8px rgba(220, 38, 38, 0.28);
}
.result-verhuis-btn:hover { transform: translateY(-1px); }
.result-verhuis-btn.is-open::after {
  content: ' ▾';
  display: inline-block;
  margin-left: 4px;
}

/* === Verhuis paneel (uitklappend) === */
.verhuis-panel {
  background: linear-gradient(180deg, #fdf6f5 0%, #fcebe8 100%);
  border: 1px solid #fcd5cf;
  border-left: 4px solid #dc2626;
  border-top: 0;
  border-radius: 0 0 14px 14px;
  margin-top: -8px;
  animation: verhuisSlide 0.28s ease-out;
  overflow: hidden;
  text-align: left;
}
@keyframes verhuisSlide {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.verhuis-panel-inner { padding: 26px 30px 28px; }
.verhuis-info h4 {
  margin: 0 0 10px;
  font-family: var(--display, 'Fraunces', 'Cormorant Garamond', Georgia, serif);
  font-size: 1.3rem;
  font-weight: 500;
  color: #2a1815;
  letter-spacing: -0.01em;
}
.verhuis-info p {
  margin: 0 0 22px;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #5a4540;
}
.verhuis-info strong {
  color: #b91c1c;
  font-weight: 600;
}
.verhuis-info em {
  font-style: italic;
  color: #b91c1c;
  font-weight: 500;
  background: rgba(220, 38, 38, 0.08);
  padding: 1px 6px;
  border-radius: 4px;
}

/* === Belangrijk! waarschuwing — back-up reminder === */
.verhuis-warning {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 22px;
  padding: 14px 18px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-left: 4px solid #f59e0b;
  border-radius: 8px;
  color: #78350f;
  font-size: 0.92rem;
  line-height: 1.55;
}
.verhuis-warning-icon {
  font-size: 1.15rem;
  line-height: 1.4;
  flex-shrink: 0;
}
.verhuis-warning strong {
  color: #78350f;
  font-weight: 700;
}
.verhuis-warning em {
  font-style: italic;
  color: #92400e;
  font-weight: 600;
  background: transparent;
  padding: 0;
}

/* === Verhuis form === */
.verhuis-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: end;
}
.verhuis-input-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.verhuis-input-wrap label {
  font-size: 0.72rem;
  font-weight: 600;
  color: #6b5347;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  font-family: var(--mono, ui-monospace, 'SF Mono', Menlo, Consolas, monospace);
}
.verhuis-input-wrap input {
  appearance: none;
  border: 1.5px solid #f5c5be;
  background: #fff;
  padding: 13px 16px;
  border-radius: 8px;
  font: inherit;
  font-size: 16px;
  color: #2a2520;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  min-height: 46px;
  font-family: var(--mono, ui-monospace, 'SF Mono', Menlo, Consolas, monospace);
  letter-spacing: 0.02em;
}
.verhuis-input-wrap input:focus {
  outline: none;
  border-color: #dc2626;
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.14);
}
.verhuis-submit {
  appearance: none;
  border: 0;
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  color: #fff;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 26px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
  min-height: 46px;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.22);
}
.verhuis-submit:hover:not(:disabled) {
  background: linear-gradient(135deg, #b91c1c, #991b1b);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.32);
}
.verhuis-submit:disabled { opacity: 0.6; cursor: wait; transform: none; }

.verhuis-price {
  grid-column: 1 / -1;
  margin: 6px 0 0;
  font-size: 0.9rem;
  color: #6b5347;
  font-family: var(--mono, ui-monospace, 'SF Mono', Menlo, Consolas, monospace);
  font-weight: 500;
}
.verhuis-price small {
  color: #8a7a6e;
  margin-left: 4px;
  font-weight: 400;
}

.verhuis-error {
  grid-column: 1 / -1;
  margin: 10px 0 0;
  padding: 12px 16px;
  background: #fee2e2;
  border-left: 4px solid #dc2626;
  color: #991b1b;
  font-size: 0.9rem;
  border-radius: 6px;
  font-weight: 500;
}

/* ============================================================================
   Compact variant — voor inline gebruik op homepage, /diensten, etc.
   ========================================================================= */
.domain-hero--compact {
  padding: 64px 20px 72px;
  background: var(--bg-alt, #f7f5f2);
}
.domain-hero--compact .container { max-width: 880px; }
.domain-hero--compact .domain-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  margin-bottom: 12px;
}
.domain-hero--compact .domain-lead { margin-bottom: 28px; font-size: 1rem; }
.domain-hero--compact .domain-trust { margin-bottom: 24px; font-size: 0.82rem; }

/* ============================================================================
   Mobile (≤640px)
   ========================================================================= */
@media (max-width: 640px) {
  .domain-hero { padding: 44px 16px 60px; }
  .domain-hero--compact { padding: 44px 16px 56px; }

  .domain-search-box {
    flex-direction: column;
    padding: 12px;
    gap: 10px;
    align-items: stretch;
  }
  .domain-search-icon { display: none; }
  .domain-search-box input { padding: 12px 14px; text-align: center; }
  .domain-search-btn { width: 100%; }
  .domain-trust { gap: 14px; font-size: 0.78rem; }

  .domain-hero .result-row {
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "dot domain"
      "btn status";
    gap: 10px 14px;
    padding: 16px 18px;
  }
  .domain-hero .result-row .result-dot    { grid-area: dot; align-self: center; }
  .domain-hero .result-row .result-domain { grid-area: domain; font-size: 1.15rem; }

  .result-available {
    grid-template-areas:
      "dot domain"
      "price btn";
  }
  .result-available .result-price { grid-area: price; align-self: center; }
  .result-available .result-btn   { grid-area: btn; justify-self: end; }

  .result-bezet {
    grid-template-areas:
      "dot domain status"
      "btn btn btn";
    grid-template-columns: auto 1fr auto;
  }
  .result-bezet .result-verhuis-btn { grid-area: btn; width: 100%; }
  .result-bezet .result-status      { grid-area: status; justify-self: end; }

  .verhuis-form { grid-template-columns: 1fr; }
  .verhuis-submit { width: 100%; }
  .verhuis-panel-inner { padding: 22px 20px 24px; }
}