/* Provider listing page styles */

/* LISTING HERO */
.listing-hero {
  border-bottom: 1px solid var(--border);
  padding: 48px 48px 40px;
}
.listing-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.listing-headline {
  font-family: 'DM Serif Display', serif;
  font-size: clamp(28px, 3vw, 40px);
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}
.listing-sub {
  color: var(--muted);
  font-size: 16px;
  margin-bottom: 28px;
}

/* SEARCH */
.search-form { max-width: 680px; }
.search-row {
  display: flex;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--card-bg);
}
.search-input {
  flex: 1;
  padding: 12px 16px;
  border: none;
  outline: none;
  font-size: 15px;
  font-family: 'DM Sans', sans-serif;
}
.search-input.location-field {
  max-width: 180px;
  border-right: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
}
.search-input.location-field::placeholder { color: var(--muted); }
  background: transparent;
  color: var(--fg);
}
.search-btn {
  padding: 0 18px;
  background: var(--accent);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.search-btn:hover { background: #155555; }

/* LISTING BODY */
.listing-body {
  display: grid;
  grid-template-columns: 220px 1fr;
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 48px 80px;
  gap: 40px;
}

/* FILTER SIDEBAR */
.filter-sidebar {
  position: sticky;
  top: 24px;
  align-self: start;
}
.filter-section { margin-bottom: 24px; }
.filter-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 12px;
}
.category-filters {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.cat-filter-btn {
  background: none;
  border: none;
  text-align: left;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
  color: var(--fg);
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: background 0.15s;
}
.cat-filter-btn:hover { background: var(--border); }
.cat-filter-btn.active {
  background: var(--accent);
  color: #fff;
}

/* PROVIDER GRID */
.provider-grid-section { flex: 1; }
.results-count {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
}
.provider-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

/* PROVIDER CARD */
.prov-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.prov-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  border-color: var(--accent);
}
.prov-card-link {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-decoration: none;
  color: var(--fg);
  flex: 1;
}
.prov-card-top {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.prov-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Serif Display', serif;
  font-size: 14px;
  flex-shrink: 0;
}
.prov-info { flex: 1; }
.prov-name {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 4px;
}
.prov-service { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.remote-badge {
  display: inline-block;
  font-size: 11px;
  background: #e6f4ea;
  color: #1a5c26;
  padding: 2px 8px;
  border-radius: 20px;
  font-weight: 500;
  margin-top: 2px;
}
.prov-bio {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  flex: 1;
}
.prov-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.prov-rating { display: flex; align-items: center; gap: 4px; font-size: 13px; }
.stars { color: #D4A843; letter-spacing: -1px; }
.rating-num { font-weight: 600; }
.rating-count { color: var(--muted); }
.prov-price {
  font-family: 'DM Serif Display', serif;
  font-size: 17px;
  color: var(--accent);
}
.prov-card-actions {
  padding: 0 20px 20px;
}
.btn-contact {
  width: 100%;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: background 0.15s;
}
.btn-contact:hover { background: #155555; }

.no-results {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
  font-size: 15px;
}
.error-msg { color: #c00; font-size: 14px; }

/* DETAIL PAGE */
.detail-hero {
  border-bottom: 1px solid var(--border);
  padding: 32px 48px 40px;
}
.detail-hero-inner { max-width: 1200px; margin: 0 auto; }
.detail-back { margin-bottom: 20px; }
.back-link { color: var(--muted); text-decoration: none; font-size: 14px; }
.back-link:hover { color: var(--accent); }
.detail-header {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.detail-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Serif Display', serif;
  font-size: 22px;
  flex-shrink: 0;
}
.detail-header-info { flex: 1; }
.detail-name {
  font-family: 'DM Serif Display', serif;
  font-size: 28px;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}
.detail-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.detail-sep { color: var(--border); }
.detail-rating { display: flex; align-items: center; gap: 6px; }
.stars-lg { color: #D4A843; font-size: 16px; }
.avail-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  padding: 2px 8px;
  border-radius: 12px;
  vertical-align: middle;
  margin-left: 10px;
}
.avail-yes { background: #e6f4ea; color: #1a5c26; }
.avail-no { background: #fce8e8; color: #b11; }
.rating-lg { font-weight: 700; font-size: 15px; }
.rating-count-lg { color: var(--muted); font-size: 14px; }
.detail-price-box {
  text-align: right;
  flex-shrink: 0;
}
.detail-rate {
  font-family: 'DM Serif Display', serif;
  font-size: 28px;
  color: var(--accent);
  margin-bottom: 12px;
}
.detail-rate span { font-size: 14px; color: var(--muted); font-family: 'DM Sans', sans-serif; }
.btn-inquire {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: background 0.15s;
  display: inline-block;
  text-decoration: none;
}
.btn-inquire:hover { background: #155555; }

/* DETAIL BODY */
.detail-body { max-width: 1200px; margin: 0 auto; padding: 0 48px 80px; }
.detail-content { max-width: 720px; }
.detail-section { margin-top: 48px; }
.detail-section-title {
  font-family: 'DM Serif Display', serif;
  font-size: 22px;
  margin-bottom: 20px;
  letter-spacing: -0.3px;
}
.detail-bio {
  font-size: 16px;
  color: var(--muted);
  line-height: 1.7;
}
.review-count { font-size: 16px; color: var(--muted); font-family: 'DM Sans', sans-serif; }

/* SERVICES */
.services-list { display: flex; flex-direction: column; gap: 0; }
.service-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.service-item:last-child { border-bottom: none; }
.service-left { flex: 1; }
.service-name { font-weight: 600; font-size: 15px; margin-bottom: 4px; }
.service-desc { font-size: 14px; color: var(--muted); margin-bottom: 4px; }
.service-duration { font-size: 13px; color: var(--muted); }
.service-price { text-align: right; flex-shrink: 0; margin-left: 24px; }
.price-flat { font-family: 'DM Serif Display', serif; font-size: 18px; color: var(--fg); }
.price-hourly { font-family: 'DM Serif Display', serif; font-size: 18px; color: var(--accent); }
.price-free { font-size: 14px; color: var(--accent); font-weight: 600; }

/* FORMS */
.inquiry-form, .review-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 13px; font-weight: 600; color: var(--fg); }
.form-input {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 15px;
  font-family: 'DM Sans', sans-serif;
  color: var(--fg);
  background: var(--card-bg);
  transition: border-color 0.15s;
}
.form-input:focus { outline: none; border-color: var(--accent); }
.form-textarea { resize: vertical; }
.btn-submit {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  align-self: flex-start;
  transition: background 0.15s;
}
.btn-submit:hover { background: #155555; }
.btn-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.form-msg { font-size: 14px; padding: 10px; border-radius: 6px; }
.form-msg.success { background: #e6f4ea; color: #1a5c26; }
.form-msg.error { background: #fce8e8; color: #b11; }

/* STAR PICKER */
.star-picker { display: flex; gap: 6px; }
.star-btn {
  background: none;
  border: none;
  font-size: 28px;
  color: #D4A843;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: transform 0.1s;
}
.star-btn:hover { transform: scale(1.15); }

/* REVIEWS */
.review-summary-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 12px;
  font-size: 15px;
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  color: var(--muted);
}
.reviews-list { display: flex; flex-direction: column; gap: 24px; }
.reviews-empty {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 32px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}
.review-eligible-box {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 20px;
}
.review-eligible-label { font-size: 14px; color: #166534; font-weight: 500; margin-bottom: 10px; }
.review-pending-notice {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 20px;
  font-size: 14px;
  color: var(--muted);
}
.review-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
}
.review-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}
.reviewer-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #d1fae5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  color: #065f46;
  flex-shrink: 0;
}
.reviewer-info { flex: 1; }
.reviewer-name { font-weight: 600; font-size: 14px; }
.review-date { font-size: 12px; color: var(--muted); }
.review-stars { font-size: 16px; color: #D4A843; letter-spacing: -1px; }
.review-comment { font-size: 15px; color: var(--muted); line-height: 1.65; }

/* CATEGORY BAR */
.category-bar {
  border-bottom: 1px solid var(--border);
  background: var(--card-bg);
  position: sticky;
  top: 0;
  z-index: 10;
}
.category-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.category-bar-inner::-webkit-scrollbar { display: none; }
.cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  color: var(--fg);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
  flex-shrink: 0;
}
.cat-chip:hover { background: var(--border); }
.cat-chip.active {
  background: var(--accent);
  color: #fff;
}

/* RESULTS HEADER */
.results-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.results-count { font-size: 14px; color: var(--muted); }
.clear-filters {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  margin-left: auto;
}
.clear-filters:hover { color: var(--accent); }
/* INQUIRY MODAL */
.inquiry-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}
.inquiry-modal {
  background: var(--card-bg, #fff);
  border: 1px solid var(--border, #e2ddd7);
  border-radius: 16px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(0,0,0,0.18);
}
.inquiry-modal-header {
  padding: 24px 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.inquiry-modal-provider {
  display: flex;
  align-items: center;
  gap: 12px;
}
.inquiry-modal-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Serif Display', serif;
  font-size: 14px;
  flex-shrink: 0;
}
.inquiry-modal-meta { flex: 1; }
.inquiry-modal-title {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 2px;
}
.inquiry-modal-sub {
  font-size: 13px;
  color: var(--muted);
}
.inquiry-modal-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  font-size: 22px;
  padding: 0;
  line-height: 1;
  flex-shrink: 0;
}
.inquiry-modal-close:hover { color: var(--fg); }
.inquiry-modal-body {
  padding: 20px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.inquiry-form-modal { display: flex; flex-direction: column; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 13px; font-weight: 600; }
.modal-input {
  border: 1px solid var(--border, #e2ddd7);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 15px;
  font-family: 'DM Sans', sans-serif;
  color: var(--fg);
  background: var(--card-bg, #fff);
  transition: border-color 0.15s;
  width: 100%;
  box-sizing: border-box;
}
.modal-input:focus { outline: none; border-color: var(--accent); }
.modal-textarea { resize: vertical; min-height: 100px; }
.btn-send {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
  transition: background 0.15s;
  width: 100%;
}
.btn-send:hover { background: #155555; }
.btn-send:disabled { opacity: 0.6; cursor: not-allowed; }
.modal-msg { font-size: 14px; padding: 10px; border-radius: 6px; }
.modal-msg.success { background: #e6f4ea; color: #1a5c26; }
.modal-msg.error { background: #fce8e8; color: #b11; }
.inquiry-modal-footer {
  padding: 0 24px 24px;
  font-size: 12px;
  color: var(--muted);
  text-align: center;
}
@media (max-width: 900px) {
  .listing-body {
    grid-template-columns: 1fr;
    padding: 24px 24px 60px;
  }
  .filter-sidebar { position: static; }
  .category-filters { flex-direction: row; flex-wrap: wrap; }
  .provider-grid { grid-template-columns: 1fr; }
  .detail-header { flex-direction: column; }
  .detail-price-box { text-align: left; display: flex; align-items: center; gap: 16px; }
  .form-row { grid-template-columns: 1fr; }
  .listing-hero, .detail-hero, .detail-body { padding-left: 24px; padding-right: 24px; }
}