/* ============================
   Partners Page — partners.css
   ============================ */

/* Hero */
.pt-hero {
  background: linear-gradient(135deg, #0D1B3D 0%, #1a3260 60%, #0f2a50 100%);
  padding: 72px 0 56px;
  text-align: center;
}
.pt-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  color: #fff;
  margin: 8px 0 16px;
}
.pt-hero p {
  color: rgba(255,255,255,.7);
  font-size: 1.05rem;
  max-width: 520px;
  margin: 0 auto 32px;
  line-height: 1.65;
}

/* Search bar */
.pt-search-bar {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 14px;
  padding: 6px 6px 6px 16px;
  max-width: 640px;
  margin: 0 auto;
  gap: 8px;
  box-shadow: 0 8px 32px rgba(0,0,0,.25);
}
.pt-search-icon { color: #9CA3AF; flex-shrink: 0; }
.pt-search-bar input {
  flex: 1;
  border: none;
  outline: none;
  font-size: 1rem;
  color: #0D1B3D;
  background: transparent;
  padding: 8px 0;
}
.pt-search-bar select {
  border: none;
  border-left: 1px solid #E5E8EE;
  padding: 8px 12px;
  font-size: .9rem;
  color: #374151;
  background: transparent;
  outline: none;
  cursor: pointer;
  border-radius: 0 10px 10px 0;
}

/* Layout */
.pt-body { background: #F2F4F7; min-height: 70vh; }
.pt-layout {
  display: grid;
  grid-template-columns: 380px 1fr;
  height: calc(100vh - 200px);
  min-height: 500px;
}

/* Sidebar */
.pt-sidebar {
  background: #fff;
  border-right: 1px solid #E5E8EE;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.pt-sidebar-head {
  padding: 16px 20px;
  font-size: .85rem;
  font-weight: 600;
  color: #6B7280;
  border-bottom: 1px solid #E5E8EE;
  flex-shrink: 0;
}
.pt-list {
  flex: 1;
  overflow-y: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Partner card */
.pt-card {
  background: #fff;
  border: 1px solid #E5E8EE;
  border-radius: 14px;
  padding: 16px;
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s, transform .2s;
  outline: none;
}
.pt-card:hover, .pt-card:focus { border-color: #22D3A5; box-shadow: 0 4px 16px rgba(34,211,165,.15); }
.pt-card.is-active { border-color: #22D3A5; background: #F0FDF9; }
.pt-card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.pt-avatar {
  width: 40px; height: 40px; border-radius: 12px;
  background: linear-gradient(135deg, #22D3A5, #2563EB);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 1.1rem;
  flex-shrink: 0;
}
.pt-name { font-weight: 700; font-size: .95rem; color: #0D1B3D; }
.pt-tag {
  display: inline-block;
  font-size: .72rem; font-weight: 600;
  background: #EEF9F6; color: #22D3A5;
  border-radius: 20px; padding: 1px 8px;
  margin-top: 2px;
}
.pt-card-body { display: flex; flex-direction: column; gap: 6px; }
.pt-row {
  display: flex; align-items: flex-start; gap: 6px;
  font-size: .83rem; color: #6B7280;
}
.pt-row svg { flex-shrink: 0; margin-top: 1px; color: #22D3A5; }
.pt-row a { color: #2563EB; text-decoration: none; }
.pt-row a:hover { text-decoration: underline; }

/* Map */
.pt-map { z-index: 0; }

/* Map pin */
.map-pin {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, #22D3A5, #2563EB);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 3px 10px rgba(0,0,0,.25);
  transition: transform .2s;
}
.map-pin-active {
  width: 46px; height: 46px;
  background: linear-gradient(135deg, #f59e0b, #ef4444);
  box-shadow: 0 4px 16px rgba(239,68,68,.4);
  transform: scale(1.15);
}
.map-popup { font-family: 'Noto Sans Thai', sans-serif; font-size: .9rem; min-width: 160px; }
.map-popup b { display: block; color: #0D1B3D; margin-bottom: 4px; }
.map-popup a { color: #2563EB; }

/* Empty state */
.pt-empty {
  text-align: center;
  padding: 48px 20px;
  color: #9CA3AF;
}
.pt-empty p { margin: 12px 0 0; font-size: .9rem; }

/* Responsive */
@media (max-width: 900px) {
  .pt-layout { grid-template-columns: 1fr; grid-template-rows: 320px 1fr; height: auto; }
  .pt-map { height: 320px; order: -1; }
  .pt-list { max-height: 60vh; }
}
@media (max-width: 600px) {
  .pt-hero { padding: 48px 0 40px; }
  .pt-search-bar { flex-wrap: wrap; border-radius: 12px; padding: 8px; }
  .pt-search-bar select { border-left: none; border-top: 1px solid #E5E8EE; width: 100%; }
}
