/* Shared styles for index and registry listing pages */

/* Page hero */
.page-hero { padding: 80px 0 48px; text-align: center; }
.page-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(0,151,178,.08); border: 1px solid rgba(0,151,178,.2);
  border-radius: 30px; padding: 6px 16px; font-size: .8rem; font-weight: 600;
  color: var(--color-teal); text-transform: uppercase; letter-spacing: .07em; margin-bottom: 20px;
}
.page-hero h1 { font-size: clamp(2rem,5vw,3rem); margin-bottom: 16px; }
.page-hero h1 span {
  background: var(--gradient-river);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.page-hero p { color: var(--text-secondary); font-size: 1.05rem; max-width: 540px; margin: 0 auto 28px; line-height: 1.7; }

/* Wrapper */
.registry-wrapper { max-width: 1100px; margin: 0 auto; padding: 0 24px 80px; }

/* Search */
.registry-search-row { margin-bottom: 20px; }
.search-wrap { position: relative; display: flex; align-items: center; }
.search-icon { position: absolute; left: 18px; color: var(--text-muted); pointer-events: none; flex-shrink: 0; }
#registry-search {
  width: 100%; height: 54px; padding: 0 48px 0 52px; font-size: 1rem;
  border-radius: var(--radius-lg); border: 1.5px solid var(--border-glass);
  background: rgba(255,255,255,.85); backdrop-filter: blur(8px);
  transition: border-color .2s, box-shadow .2s; color: var(--text-primary);
}
#registry-search:focus {
  outline: none; border-color: var(--color-teal);
  box-shadow: 0 0 0 3px rgba(0,151,178,.12);
}
#registry-search::placeholder { color: var(--text-muted); }
.search-clear-btn {
  position: absolute; right: 14px; background: none; border: none; cursor: pointer;
  color: var(--text-muted); padding: 4px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: color .15s, background .15s;
}
.search-clear-btn:hover { color: var(--text-primary); background: rgba(0,0,0,.06); }
.search-clear-btn[hidden] { display: none; }

/* Controls */
.registry-controls-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 16px; flex-wrap: wrap;
}
.results-bar { font-size: .9rem; color: var(--text-secondary); font-weight: 500; min-height: 22px; }
.results-bar strong { color: var(--text-primary); }
.controls-right { display: flex; align-items: center; gap: 10px; }
.sort-select {
  height: 36px; padding: 0 10px; font-size: .85rem; border-radius: var(--radius-md);
  border: 1px solid var(--border-glass); background: rgba(255,255,255,.85);
  color: var(--text-primary); cursor: pointer;
}
.sort-select:focus { outline: none; border-color: var(--color-teal); }
.view-toggle {
  display: flex; border: 1px solid var(--border-glass);
  border-radius: var(--radius-md); overflow: hidden; background: rgba(255,255,255,.85);
}
.view-btn {
  width: 36px; height: 36px; background: none; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); transition: background .15s, color .15s;
}
.view-btn + .view-btn { border-left: 1px solid var(--border-glass); }
.view-btn.active { background: var(--color-teal); color: #fff; }
.view-btn:hover:not(.active) { background: rgba(0,0,0,.04); color: var(--text-primary); }

/* Category pills */
.category-pills-wrap { margin-bottom: 16px; }
.category-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pill {
  display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
  padding: 7px 14px; border-radius: 100px; font-size: .82rem; font-weight: 600;
  cursor: pointer; border: 1.5px solid var(--border-glass);
  background: rgba(255,255,255,.8); color: var(--text-secondary);
  transition: border-color .15s, background .15s, color .15s, box-shadow .15s;
  flex-shrink: 0; line-height: 1;
}
.pill:hover { border-color: rgba(0,151,178,.4); color: var(--color-teal); background: rgba(0,151,178,.04); }
.pill.pill--active {
  background: var(--gradient-river); border-color: transparent;
  color: #fff; box-shadow: 0 2px 10px rgba(0,151,178,.3);
}
.pill-emoji { font-size: .95rem; line-height: 1; }

/* Active chips */
.active-chips-row { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.chips-label { font-size: .8rem; color: var(--text-muted); font-weight: 500; }
.filter-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px 5px 12px; border-radius: 100px;
  background: rgba(0,151,178,.1); border: 1px solid rgba(0,151,178,.3);
  color: var(--color-teal); font-size: .82rem; font-weight: 600;
}
.chip-dismiss {
  background: none; border: none; cursor: pointer; color: var(--color-teal);
  display: flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; border-radius: 50%; transition: background .15s; padding: 0;
}
.chip-dismiss:hover { background: rgba(0,151,178,.2); }

/* Grid */
.listings-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.listings-grid--list { grid-template-columns: 1fr; gap: 16px; }
@media (max-width: 900px) { .listings-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px) { .listings-grid { grid-template-columns: 1fr; } }

/* Cards */
.listing-card {
  padding: 22px 20px 18px; transition: var(--transition-fast);
  border: 1px solid var(--border-glass); display: flex; flex-direction: column;
  min-width: 0; position: relative; overflow: hidden;
}
.listing-card:hover {
  border-color: rgba(0,151,178,.25);
  box-shadow: 0 8px 30px rgba(0,0,0,.08); transform: translateY(-2px);
}
.card-bg-icon {
  position: absolute; right: -20px; top: -20px;
  width: 130px; height: 130px; pointer-events: none; user-select: none;
  color: var(--color-teal); opacity: .07;
}
.card-bg-icon svg { width: 100%; height: 100%; }
.card-logo {
  position: absolute; right: 0; top: 0;
  width: 180px; height: 180px;
  object-fit: contain; object-position: center;
  pointer-events: none; user-select: none;
  opacity: 1;
  border-radius: 0 var(--radius-lg) 0 var(--radius-lg);
}
.listing-card.has-custom-colors .listing-name,
.listing-card.has-custom-colors .listing-link,
.listing-card.has-custom-colors .listing-hours { color: var(--card-font, inherit); }
.listing-card-top {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 8px; margin-bottom: 10px; min-width: 0;
}
.listing-type-badge {
  display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 20px;
  font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  background: rgba(0,151,178,.08); color: var(--color-teal);
  border: 1px solid rgba(0,151,178,.2); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; max-width: 85%;
}
.coupon-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--color-pink); flex-shrink: 0; margin-top: 5px;
}
.listing-name {
  font-size: 1.05rem; font-weight: 700; color: var(--text-primary);
  margin: 0 0 12px; line-height: 1.3;
  line-clamp: 2;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.listing-contacts { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; flex: 1; min-width: 0; }
.listing-link {
  display: inline-flex; align-items: center; gap: 5px; font-size: .8rem;
  color: var(--text-secondary); text-decoration: none;
  background: rgba(0,0,0,.025); border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm); padding: 5px 10px; transition: var(--transition-fast);
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.listing-link:hover { color: var(--color-teal); border-color: rgba(0,151,178,.3); background: rgba(0,151,178,.04); }
.listing-hours {
  font-size: .85rem; color: var(--text-secondary); white-space: pre-line;
  background: rgba(0,0,0,.025); border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm); padding: 10px 14px; margin-bottom: 12px; line-height: 1.6;
}
.listing-hours-label { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); margin-bottom: 4px; }
.listings-grid:not(.listings-grid--list) .listing-hours { display: none; }
.coupon-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: linear-gradient(135deg,rgba(124,58,237,.08),rgba(124,58,237,.04));
  border: 1px dashed rgba(124,58,237,.3); border-radius: var(--radius-sm);
  padding: 6px 10px; font-size: .8rem; color: var(--color-pink); font-weight: 600;
}
.coupon-chip svg { stroke: var(--color-pink); flex-shrink: 0; }
.coupon-code-text { font-family: monospace; background: rgba(124,58,237,.1); padding: 2px 6px; border-radius: 4px; font-size: .75rem; }

/* Boost card variants */
.boost-icon {
  position: absolute; top: 10px; right: 10px; z-index: 4;
  width: 28px; height: 28px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  box-shadow: 0 2px 6px rgba(249,115,22,.35);
  color: #fff;
  pointer-events: none;
}
.boost-icon svg { width: 14px; height: 14px; display: block; fill: currentColor; }

.boost-btn {
  position: absolute; top: 10px; right: 10px;
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  border: none; cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: .85rem; line-height: 1; box-shadow: 0 2px 6px rgba(249,115,22,.35);
  transition: transform .15s, box-shadow .15s; z-index: 2; color: #fff;
}
.boost-btn svg { width: 14px; height: 14px; display: block; fill: currentColor; }
.boost-btn:hover { transform: scale(1.15); box-shadow: 0 4px 12px rgba(249,115,22,.5); }
.boost-btn:focus-visible { outline: 2px solid #f59e0b; outline-offset: 2px; }

.boost-badge {
  position: absolute; top: 10px; left: 10px; z-index: 2;
  display: inline-flex; align-items: center; gap: 4px;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  color: #fff; font-size: .65rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .06em; padding: 3px 8px; border-radius: 20px;
  box-shadow: 0 1px 4px rgba(249,115,22,.4); pointer-events: none;
}
.boost-badge svg { width: 11px; height: 11px; display: block; fill: currentColor; }

.listing-card--boosted {
  border-color: rgba(249,115,22,.35) !important;
  box-shadow: 0 0 0 1px rgba(249,115,22,.2), 0 4px 20px rgba(249,115,22,.1);
}
.listing-card--boosted:hover {
  border-color: rgba(249,115,22,.55) !important;
  box-shadow: 0 0 0 1px rgba(249,115,22,.3), 0 8px 30px rgba(249,115,22,.15) !important;
}
.boost-logo-wrap { text-align: center; margin-bottom: 10px; }
.boost-logo { max-height: 56px; max-width: 100%; object-fit: contain; border-radius: 6px; }
.boost-custom-text {
  margin-top: 10px; font-size: .8rem; color: var(--text-secondary);
  font-style: italic; border-top: 1px dashed var(--border-glass); padding-top: 8px;
  line-height: 1.5;
}

/* Empty/loading */
.empty-state {
  text-align: center; padding: 64px 24px; color: var(--text-secondary);
  border: 1px dashed var(--border-glass); border-radius: var(--radius-lg); background: rgba(0,0,0,.02);
}
.empty-state svg { width: 48px; height: 48px; stroke: var(--text-muted); margin-bottom: 16px; }
.empty-state h3 { color: var(--text-primary); margin-bottom: 8px; }
.loading-state { text-align: center; padding: 64px; color: var(--text-muted); }

/* CTA */
.cta-register-banner { margin-top: 48px; padding: 40px; text-align: center; background: var(--gradient-glow); border: 1px solid rgba(0,151,178,.15); }
.cta-register-banner h2 { font-size: 1.4rem; margin-bottom: 10px; }
.cta-register-banner p { color: var(--text-secondary); margin-bottom: 24px; font-size: .95rem; }

@media (max-width: 600px) {
  .registry-controls-row { flex-direction: column; align-items: flex-start; }
  .controls-right { width: 100%; justify-content: space-between; }
  .listing-card { padding: 16px 14px; }
  .registry-wrapper { padding-left: 16px; padding-right: 16px; }
}

/* Boost modal */
.boost-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(7,10,19,.72); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 16px; opacity: 0; visibility: hidden;
  transition: opacity .2s, visibility .2s;
}
.boost-overlay.open { opacity: 1; visibility: visible; }
.boost-modal {
  background: var(--color-midnight, #070a13);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px; width: 100%; max-width: 540px;
  max-height: 90vh; overflow-y: auto;
  padding: 32px; position: relative;
  transform: translateY(16px); transition: transform .2s;
}
.boost-overlay.open .boost-modal { transform: translateY(0); }
.boost-modal-close {
  position: absolute; top: 16px; right: 16px;
  background: none; border: none; cursor: pointer; color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%; transition: background .15s, color .15s;
}
.boost-modal-close:hover { background: rgba(255,255,255,.08); color: var(--text-primary); }
.boost-modal-title { font-size: 1.3rem; font-weight: 700; margin-bottom: 4px; }
.boost-modal-subtitle { font-size: .88rem; color: var(--text-secondary); margin-bottom: 20px; }
.boost-business-name {
  font-size: 1rem; font-weight: 700; color: var(--color-teal);
  background: rgba(0,151,178,.08); border: 1px solid rgba(0,151,178,.2);
  border-radius: var(--radius-md); padding: 10px 14px; margin-bottom: 18px;
}
.boost-perks {
  list-style: none; padding: 0; margin: 0 0 20px;
  display: flex; flex-direction: column; gap: 8px;
}
.boost-perks li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: .875rem; color: var(--text-secondary);
}
.boost-perks li .perk-icon {
  flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(0,151,178,.12); color: var(--color-teal);
  display: flex; align-items: center; justify-content: center; margin-top: 1px;
}
.boost-price-callout {
  background: linear-gradient(135deg, rgba(249,115,22,.1), rgba(245,158,11,.08));
  border: 1px solid rgba(249,115,22,.25); border-radius: var(--radius-md);
  padding: 14px 18px; margin-bottom: 22px; display: flex; align-items: center; gap: 12px;
}
.boost-price-amount { font-size: 1.6rem; font-weight: 800; color: #f97316; }
.boost-price-label { font-size: .8rem; color: var(--text-secondary); line-height: 1.4; }
.boost-form-section { margin-bottom: 18px; }
.boost-form-label {
  display: block; font-size: .8rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; color: var(--text-secondary); margin-bottom: 8px;
}
.boost-form-row { display: flex; gap: 12px; align-items: flex-start; }
.boost-color-group { display: flex; align-items: center; gap: 8px; flex: 1; }
.boost-color-input {
  width: 38px; height: 38px; border-radius: 8px; border: 1px solid var(--border-glass);
  cursor: pointer; padding: 2px; background: none;
}
.boost-color-preview {
  flex: 1; height: 38px; border-radius: 8px; border: 1px dashed var(--border-glass);
  font-size: .8rem; display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); transition: background .2s, color .2s;
}
.boost-file-label {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; border: 1.5px dashed var(--border-glass);
  border-radius: var(--radius-md); cursor: pointer; font-size: .85rem;
  color: var(--text-secondary); transition: border-color .15s, color .15s;
}
.boost-file-label:hover { border-color: var(--color-teal); color: var(--color-teal); }
.boost-file-label input { display: none; }
.boost-logo-preview {
  width: 60px; height: 60px; object-fit: contain; border-radius: 8px;
  border: 1px solid var(--border-glass); display: none;
}
.boost-email-note {
  font-size: .78rem; color: var(--text-muted); margin-top: 6px; line-height: 1.5;
}
.boost-email-note a { color: var(--color-teal); text-decoration: none; }
.boost-email-note a:hover { text-decoration: underline; }
.boost-custom-textarea {
  width: 100%; min-height: 72px; resize: vertical; font-family: inherit;
  font-size: .88rem; line-height: 1.6; padding: 10px 12px;
  border-radius: var(--radius-md); border: 1.5px solid var(--border-glass);
  background: rgba(255,255,255,.04); color: var(--text-primary);
  transition: border-color .2s;
}
.boost-custom-textarea:focus { outline: none; border-color: var(--color-teal); }
.boost-email-input {
  width: 100%; height: 42px; padding: 0 12px; font-size: .9rem;
  border-radius: var(--radius-md); border: 1.5px solid var(--border-glass);
  background: rgba(255,255,255,.04); color: var(--text-primary);
  transition: border-color .2s;
}
.boost-email-input:focus { outline: none; border-color: var(--color-teal); }
.boost-submit-btn {
  width: 100%; padding: 14px; font-size: 1rem; font-weight: 700;
  border: none; border-radius: var(--radius-md); cursor: pointer;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  color: #fff; box-shadow: 0 4px 14px rgba(249,115,22,.35);
  transition: opacity .2s, box-shadow .2s; margin-top: 8px;
}
.boost-submit-btn:hover:not(:disabled) { opacity: .92; box-shadow: 0 6px 20px rgba(249,115,22,.5); }
.boost-submit-btn:disabled { opacity: .6; cursor: not-allowed; }
.boost-error {
  font-size: .85rem; color: #ef4444; margin-top: 10px;
  padding: 10px 14px; background: rgba(239,68,68,.08);
  border: 1px solid rgba(239,68,68,.2); border-radius: var(--radius-md);
}
.boost-error[hidden] { display: none; }
.boost-divider { border: none; border-top: 1px solid rgba(255,255,255,.07); margin: 20px 0; }
