/* Hive Venue Dashboard — public styling (Finder enhancer + claim + dashboard)
   v1.2: modern redesign. Mobile-first; Hive deep green + gold.
   Design tokens are scoped to the plugin wrappers so nothing leaks
   into the theme or other plugins. */

.hvd-dashboard, .hvd-claim {
  --hvd-green: #0d2b1f;
  --hvd-green-2: #14402d;
  --hvd-gold: #f7b500;
  --hvd-gold-deep: #b97e00;
  --hvd-ink: #182420;
  --hvd-muted: #5c6b62;
  --hvd-line: #e2e9e4;
  --hvd-soft: #f5f8f6;
  --hvd-radius: 16px;
  --hvd-shadow: 0 10px 30px rgba(13, 43, 31, .09);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--hvd-ink);
  line-height: 1.5;
}
.hvd-dashboard *, .hvd-claim * { box-sizing: border-box; }
.hvd-dashboard h2, .hvd-claim h2 { font-size: 26px; line-height: 1.2; margin: 0 0 8px; color: var(--hvd-green); }
.hvd-dashboard h3, .hvd-claim h3 { font-size: 19px; line-height: 1.3; margin: 0 0 12px; color: var(--hvd-green); }
.hvd-dashboard p, .hvd-claim p { margin: 0 0 12px; }

/* ---------- Hero banner (dashboard login + claim) ---------- */
.hvd-hero {
  position: relative; border-radius: var(--hvd-radius); overflow: hidden;
  background: var(--hvd-green); min-height: 210px; margin: 0 0 20px;
  display: flex; align-items: flex-end;
}
.hvd-hero--slim { min-height: 124px; }
.hvd-hero picture { position: absolute; inset: 0; display: block; }
.hvd-hero-img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.hvd-hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7, 22, 15, .12) 0%, rgba(7, 22, 15, .52) 55%, rgba(7, 22, 15, .86) 100%);
}
.hvd-hero-content { position: relative; z-index: 1; padding: 22px; width: 100%; }
.hvd-hero--slim .hvd-hero-content { padding: 18px 22px; }
.hvd-hero-title { color: #fff !important; font-size: 27px; font-weight: 800; line-height: 1.15; margin: 0; letter-spacing: -.01em; }
.hvd-hero--slim .hvd-hero-title { font-size: 23px; }
.hvd-hero-sub { color: rgba(255, 255, 255, .93); font-size: 15.5px; margin: 6px 0 0; }

/* ---------- Cards ---------- */
.hvd-card {
  background: #fff; border: 1px solid var(--hvd-line); border-radius: var(--hvd-radius);
  box-shadow: var(--hvd-shadow); padding: 22px; margin: 0 0 20px;
}
.hvd-card > :last-child { margin-bottom: 0; }

/* ---------- Notices + fine print ---------- */
.hvd-notice {
  border: 1px solid var(--hvd-line); border-left: 4px solid var(--hvd-gold);
  background: #fffbe6; padding: 13px 16px; margin: 0 0 16px; border-radius: 12px; font-size: 15px;
}
.hvd-notice.hvd-ok { border-left-color: #2e7d32; background: #eef7ee; }
.hvd-notice.hvd-warn { border-left-color: #c62828; background: #fdeeee; }
.hvd-fine { font-size: .88em; color: var(--hvd-muted); }
.hvd-locked { color: var(--hvd-muted); background: var(--hvd-soft); border: 1px dashed var(--hvd-line); border-radius: 12px; padding: 12px 14px; }

/* ---------- Forms ---------- */
.hvd-field { margin: 0 0 16px; }
.hvd-field label, .hvd-dashboard .login-username label, .hvd-dashboard .login-password label {
  display: block; font-weight: 600; font-size: 14.5px; color: var(--hvd-green); margin: 0 0 6px;
}
.hvd-dashboard input[type="text"], .hvd-dashboard input[type="password"],
.hvd-dashboard input[type="url"], .hvd-dashboard input[type="tel"],
.hvd-dashboard input[type="email"], .hvd-dashboard textarea,
.hvd-claim input[type="text"], .hvd-claim input[type="password"],
.hvd-claim input[type="email"], .hvd-claim input[type="search"] {
  width: 100%; padding: 12px 14px; font-size: 16px; color: var(--hvd-ink);
  background: #fff; border: 1.5px solid #ccd6cf; border-radius: 10px;
  appearance: none; -webkit-appearance: none;
}
.hvd-dashboard textarea, .hvd-claim textarea { line-height: 1.45; resize: vertical; }
.hvd-dashboard input:focus, .hvd-dashboard textarea:focus,
.hvd-claim input:focus, .hvd-claim textarea:focus {
  border-color: var(--hvd-gold-deep); outline: none;
  box-shadow: 0 0 0 3px rgba(247, 181, 0, .28);
}
.hvd-dashboard input[disabled], .hvd-dashboard textarea[disabled] { background: var(--hvd-soft); color: var(--hvd-muted); }

/* Buttons: deep-green primary, gold accent, outline secondary */
.hvd-btn-primary, .hvd-dashboard .login-submit input[type="submit"] {
  display: block; width: 100%; background: var(--hvd-green); color: #fff;
  border: 0; border-radius: 12px; padding: 14px 22px; min-height: 50px;
  font-size: 16px; font-weight: 700; cursor: pointer; text-align: center;
}
.hvd-btn-primary:hover, .hvd-dashboard .login-submit input[type="submit"]:hover { background: var(--hvd-green-2); }
.hvd-btn-gold {
  background: var(--hvd-gold); color: #1a1a1a; border: 0; border-radius: 12px;
  padding: 12px 20px; min-height: 50px; font-size: 16px; font-weight: 700; cursor: pointer; white-space: nowrap;
}
.hvd-btn-gold:hover { background: #ffc61a; }
.hvd-btn-outline {
  background: #fff; color: var(--hvd-green); border: 1.5px solid #ccd6cf; border-radius: 12px;
  padding: 12px 20px; min-height: 48px; font-size: 15px; font-weight: 700; cursor: pointer;
}
.hvd-btn-outline:hover { border-color: var(--hvd-green); }
.hvd-form-actions { margin: 0 0 20px; }

/* ---------- Dashboard: login card ---------- */
.hvd-login-card { padding: 24px 22px; }
.hvd-dashboard .login-username, .hvd-dashboard .login-password { margin: 0 0 16px; }
.hvd-dashboard .login-remember { margin: 0 0 16px; color: var(--hvd-muted); font-size: 14.5px; }
.hvd-dashboard .login-remember label { display: flex; align-items: center; gap: 8px; font-weight: 400; cursor: pointer; }
.hvd-dashboard .login-remember input[type="checkbox"] { width: 19px; height: 19px; accent-color: var(--hvd-green); }
.hvd-dashboard .login-submit { margin: 0 0 14px; }

/* ---------- Dashboard: owner view ---------- */
.hvd-dash-head { margin: 0 0 20px; }
.hvd-dash-head p { color: var(--hvd-muted); margin: 0; }
.hvd-status-card--featured { border: 2px solid var(--hvd-gold); box-shadow: 0 10px 30px rgba(247, 181, 0, .22); }
.hvd-status-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 10px; }
.hvd-status-head h3 { margin: 0; }
.hvd-status-pill {
  display: inline-block; background: var(--hvd-soft); color: var(--hvd-green);
  border: 1px solid var(--hvd-line); border-radius: 999px; padding: 4px 13px;
  font-size: 13px; font-weight: 700; white-space: nowrap;
}
.hvd-status-pill--featured { background: var(--hvd-gold); border-color: var(--hvd-gold); color: #1a1a1a; }
.hvd-status-line { font-size: 16.5px; margin: 0 0 4px; }
.hvd-status-period { color: var(--hvd-muted); margin: 0; }

/* Stat tiles */
.hvd-stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hvd-stat { background: var(--hvd-soft); border: 1px solid var(--hvd-line); border-radius: 12px; padding: 16px 10px; text-align: center; }
.hvd-stat-num { display: block; font-size: 31px; font-weight: 800; line-height: 1.1; color: var(--hvd-green); }
.hvd-stat-label { display: block; font-size: 12.5px; font-weight: 600; color: var(--hvd-muted); margin-top: 3px; }

/* Billing / plans */
.hvd-plans { list-style: none; margin: 0 0 12px; padding: 0; }
.hvd-plans li { padding: 12px 0; border-top: 1px solid var(--hvd-line); margin: 0; }
.hvd-plans li:first-child { border-top: 0; padding-top: 2px; }
.hvd-btn {
  display: inline-block; background: var(--hvd-gold); color: #1a1a1a !important;
  padding: 9px 18px; border-radius: 10px; text-decoration: none; font-weight: 700; margin-left: 6px;
}
.hvd-btn:hover { background: #ffc61a; }

/* ---------- Claim page ---------- */
.hvd-claim-search { display: flex; gap: 10px; align-items: stretch; margin: 0 0 6px; }
.hvd-suggest-wrap { position: relative; flex: 1 1 auto; display: block; min-width: 0; }
.hvd-claim-input { height: 100%; }
.hvd-claim-results { list-style: none; margin: 14px 0 0; padding: 0; }
.hvd-claim-results li { margin: 0; border-top: 1px solid var(--hvd-line); }
.hvd-claim-results li a { display: inline-block; padding: 11px 2px; font-weight: 600; color: var(--hvd-green-2); }
.hvd-claim-nomatch { margin: 14px 0 0; color: var(--hvd-muted); }
.hvd-claim-send { margin: 0 0 18px; }
.hvd-claim-verify .hvd-btn-primary { margin-top: 4px; }

/* Claim search type-ahead dropdown */
.hvd-suggest {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: #fff;
  border: 1px solid var(--hvd-line); border-radius: 12px;
  box-shadow: 0 16px 40px rgba(13, 43, 31, .18);
  z-index: 60; overflow: hidden; text-align: left;
}
.hvd-suggest-item { padding: 12px 14px; cursor: pointer; font-size: 15px; }
.hvd-suggest-item + .hvd-suggest-item { border-top: 1px solid var(--hvd-soft); }
.hvd-suggest-item.hvd-active, .hvd-suggest-item:hover { background: #fdf3d3; }

/* ---------- Finder page (4904) enhancer ---------- */
.hvd-badge { display: inline-block; background: #f7b500; color: #1a1a1a; border-radius: 999px;
  padding: 2px 10px; font-size: .82em; font-weight: bold; margin-bottom: 6px }
.hvd-featured-card { border: 2px solid #f7b500 !important; box-shadow: 0 2px 10px rgba(247, 181, 0, .35) }
.hvd-card-photo { width: 100%; height: 180px; object-fit: cover; border-radius: 10px; margin: 6px 0 }
.hvd-offer { font-weight: bold }
.hvd-book-btn { display: inline-block; background: #1a1a1a; color: #fff !important; padding: 8px 16px;
  border-radius: 8px; text-decoration: none; font-weight: bold }
.hvd-popup-video { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; margin: 8px 0 }
.hvd-popup-video iframe, .hvd-popup-video video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0 }
/* Claim button injected into the Finder owner box — matches the box's
   existing Call / Email button styling */
.hvd-claim-btn { display: inline-block; background: #b97e00; color: #fff !important; padding: 10px 22px;
  border-radius: 8px; text-decoration: none; font-weight: 700; margin: 0 6px 8px }

/* ---------- Wider screens ---------- */
@media (min-width: 641px) {
  .hvd-hero { min-height: 250px; }
  .hvd-hero--slim { min-height: 140px; }
  .hvd-hero-content { padding: 28px 30px; }
  .hvd-hero-title { font-size: 32px; }
  .hvd-hero--slim .hvd-hero-title { font-size: 25px; }
  .hvd-card { padding: 26px 28px; }
  .hvd-stat-grid { grid-template-columns: repeat(4, 1fr); }
  .hvd-btn-primary, .hvd-dashboard .login-submit input[type="submit"] { width: auto; min-width: 240px; }
  .hvd-login-card .hvd-btn-primary, .hvd-login-card .login-submit input[type="submit"],
  .hvd-claim-verify .hvd-btn-primary { width: 100%; }
}
