/* ─── POI Community Section ─── */

#poi-community-section {
  margin-top: 0;
  padding-bottom: 12px;
}

.poi-community-divider {
  height: 1px;
  background: #e5e7eb;
  margin: 14px 0 10px;
}

.poi-community-header {
  font-size: 13px;
  font-weight: 700;
  color: #374151;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.poi-community-loading {
  font-size: 12px;
  color: #9ca3af;
  text-align: center;
  padding: 8px 0;
}

/* ─── Love Button (matches iOS full-width style) ─── */

.poi-love-row {
  margin-bottom: 10px;
}

.poi-love-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  background: #f3f4f6;
  border: none;
  border-radius: 12px;
  padding: 12px 16px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: #111827;
  font-family: inherit;
  transition: all 0.15s;
}

.poi-love-btn:hover {
  background: #e5e7eb;
}

.poi-love-btn.loved {
  background: #ef4444;
  color: white;
}

.poi-love-btn.loved:hover {
  background: #dc2626;
}

.poi-love-btn .love-icon {
  font-size: 18px;
  line-height: 1;
}

.poi-love-btn .love-label {
  flex: 1;
  text-align: left;
}

.poi-love-btn .love-count {
  font-weight: 600;
  font-size: 12px;
  background: rgba(0, 0, 0, 0.08);
  padding: 2px 8px;
  border-radius: 99px;
}

.poi-love-btn.loved .love-count {
  background: rgba(255, 255, 255, 0.3);
}

.poi-love-btn .love-pts {
  font-size: 11px;
  opacity: 0.5;
}

/* ─── Community Photos ─── */

.poi-community-photos {
  margin-bottom: 10px;
}

.poi-community-photos-label {
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.poi-community-photo-scroll {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.poi-community-photo-scroll::-webkit-scrollbar {
  display: none;
}

.poi-community-photo-thumb {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  cursor: pointer;
  border: 1px solid #e5e7eb;
  transition: transform 0.15s;
}

.poi-community-photo-thumb:hover {
  transform: scale(1.05);
}

.poi-community-add-photo-btn {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  border: 2px dashed #d1d5db;
  background: #f9fafb;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.15s, background 0.15s;
  gap: 2px;
}

.poi-community-add-photo-btn:hover {
  border-color: #3b82f6;
  background: #eff6ff;
}

.poi-community-add-photo-btn i {
  font-size: 16px;
  color: #9ca3af;
}

.poi-community-add-photo-btn span {
  font-size: 9px;
  color: #9ca3af;
  font-weight: 500;
}

/* ─── Confirmation (full-width) ─── */

.poi-confirm-fullrow {
  margin-bottom: 10px;
}

.poi-confirm-label {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
}

.poi-confirm-buttons {
  display: flex;
  gap: 8px;
}

.poi-confirm-btn-full {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 12px;
  border: none;
  border-radius: 12px;
  background: #f3f4f6;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  color: #111827;
  transition: all 0.15s;
}

.poi-confirm-btn-full:hover:not(:disabled) {
  background: #e5e7eb;
}

.poi-confirm-btn-full:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.poi-confirm-btn-full.active-yes {
  background: #22c55e;
  color: white;
}

.poi-confirm-btn-full.active-no {
  background: #ef4444;
  color: white;
}

.poi-confirm-btn-full i {
  font-size: 13px;
}

.poi-confirm-info {
  font-size: 11px;
  color: #9ca3af;
  margin-top: 6px;
}

/* ─── Community Accordions ─── */

.poi-accordion {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  margin-bottom: 8px;
  overflow: hidden;
}

.poi-accordion-toggle {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 10px 12px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  transition: background 0.15s;
}

.poi-accordion-toggle:hover {
  background: #f9fafb;
}

.poi-accordion-title {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
}

.poi-accordion-arrow {
  font-size: 10px;
  color: #9ca3af;
  transition: transform 0.2s;
}

.poi-accordion.open .poi-accordion-arrow {
  transform: rotate(180deg);
}

.poi-accordion-content {
  display: none;
  padding: 0 12px 10px;
}

.poi-accordion.open .poi-accordion-content {
  display: block;
}

/* ─── Category Vote Pills ─── */

.poi-category-fields {
  margin-bottom: 10px;
}

.poi-field-group {
  margin-bottom: 8px;
}

.poi-field-label {
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
  margin-bottom: 4px;
}

.poi-field-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.poi-field-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border: 1.5px solid #e5e7eb;
  border-radius: 99px;
  background: white;
  cursor: pointer;
  font-size: 11px;
  font-family: inherit;
  color: #4b5563;
  transition: all 0.15s;
}

.poi-field-pill:hover {
  border-color: #3b82f6;
}

.poi-field-pill.selected {
  border-color: #3b82f6;
  background: #eff6ff;
  color: #1d4ed8;
}

.poi-field-pill .pill-count {
  font-size: 10px;
  font-weight: 600;
  color: #9ca3af;
  margin-left: 2px;
}

.poi-field-pill.selected .pill-count {
  color: #3b82f6;
}

.poi-field-bool {
  display: flex;
  gap: 4px;
  align-items: center;
}

.poi-field-bool-btn {
  padding: 4px 10px;
  border: 1.5px solid #e5e7eb;
  border-radius: 99px;
  background: white;
  cursor: pointer;
  font-size: 11px;
  font-family: inherit;
  color: #4b5563;
  transition: all 0.15s;
}

.poi-field-bool-btn:hover {
  border-color: #3b82f6;
}

.poi-field-bool-btn.selected {
  border-color: #3b82f6;
  background: #eff6ff;
  color: #1d4ed8;
}

.poi-field-number-input {
  width: 60px;
  padding: 4px 8px;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  font-size: 12px;
  font-family: inherit;
  color: #374151;
  outline: none;
  transition: border-color 0.15s;
}

.poi-field-number-input:focus {
  border-color: #3b82f6;
}

.poi-vote-save-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 6px;
  padding: 6px 14px;
  border: none;
  border-radius: 8px;
  background: #3b82f6;
  color: white;
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s;
}

.poi-vote-save-btn:hover {
  background: #2563eb;
}

.poi-vote-save-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ─── Comments ─── */

.poi-comments-section {
  margin-bottom: 10px;
}

.poi-comments-label {
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.poi-comment-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 160px;
  overflow-y: auto;
  margin-bottom: 6px;
}

.poi-comment-item {
  font-size: 12px;
  line-height: 1.4;
  color: #374151;
  padding: 6px 8px;
  background: #f9fafb;
  border-radius: 8px;
}

.poi-comment-item .comment-author {
  font-weight: 600;
  color: #111827;
  margin-right: 4px;
}

.poi-comment-item .comment-time {
  font-size: 10px;
  color: #9ca3af;
  margin-left: 4px;
}

.poi-comment-item .comment-deleted {
  font-style: italic;
  color: #9ca3af;
}

.poi-comment-input-row {
  display: flex;
  gap: 6px;
}

.poi-comment-input {
  flex: 1;
  padding: 7px 10px;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  font-size: 12px;
  font-family: inherit;
  color: #374151;
  outline: none;
  transition: border-color 0.15s;
}

.poi-comment-input:focus {
  border-color: #3b82f6;
}

.poi-comment-send-btn {
  padding: 7px 12px;
  border: none;
  border-radius: 8px;
  background: #3b82f6;
  color: white;
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s;
  flex-shrink: 0;
}

.poi-comment-send-btn:hover {
  background: #2563eb;
}

.poi-comment-send-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ─── Reports ─── */

.poi-reports-section {
  margin-bottom: 10px;
}

.poi-report-item {
  font-size: 12px;
  padding: 8px 10px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
  margin-bottom: 6px;
}

.poi-report-item .report-type {
  font-weight: 600;
  color: #92400e;
  text-transform: capitalize;
}

.poi-report-item .report-details {
  color: #78350f;
  margin-top: 2px;
}

.poi-report-actions {
  display: flex;
  gap: 4px;
  margin-top: 4px;
}

.poi-report-confirm-btn,
.poi-report-deny-btn {
  padding: 3px 10px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: white;
  cursor: pointer;
  font-size: 11px;
  font-family: inherit;
  transition: all 0.15s;
}

.poi-report-confirm-btn:hover {
  border-color: #22c55e;
  background: #f0fdf4;
  color: #15803d;
}

.poi-report-deny-btn:hover {
  border-color: #ef4444;
  background: #fef2f2;
  color: #991b1b;
}

.poi-report-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  background: white;
  cursor: pointer;
  font-size: 11px;
  font-family: inherit;
  color: #6b7280;
  transition: all 0.15s;
}

.poi-report-btn:hover {
  border-color: #ef4444;
  color: #ef4444;
}

/* ─── Report Modal ─── */

.poi-report-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 200000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.poi-report-modal {
  background: white;
  border-radius: 16px;
  padding: 20px;
  max-width: 340px;
  width: 90%;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
  font-family: inherit;
}

.poi-report-modal h3 {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  margin: 0 0 12px;
}

.poi-report-modal label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: #374151;
  margin-bottom: 4px;
}

.poi-report-modal select,
.poi-report-modal textarea {
  width: 100%;
  padding: 8px 10px;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  font-size: 12px;
  font-family: inherit;
  color: #374151;
  outline: none;
  margin-bottom: 10px;
  transition: border-color 0.15s;
  box-sizing: border-box;
}

.poi-report-modal select:focus,
.poi-report-modal textarea:focus {
  border-color: #3b82f6;
}

.poi-report-modal textarea {
  height: 60px;
  resize: none;
}

.poi-report-modal-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.poi-report-modal-actions button {
  padding: 7px 16px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s;
}

.poi-report-modal-cancel {
  border: 1.5px solid #e5e7eb;
  background: white;
  color: #6b7280;
}

.poi-report-modal-submit {
  border: none;
  background: #ef4444;
  color: white;
}

.poi-report-modal-submit:hover {
  background: #dc2626;
}

/* ─── Points Hint ─── */

.poi-points-hint {
  font-size: 10px;
  color: #9ca3af;
  text-align: center;
  padding: 6px 0 2px;
  border-top: 1px solid #f3f4f6;
  margin-top: 6px;
}

/* ─── Sign-in Prompt ─── */

.poi-signin-prompt {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  background: #f9fafb;
  font-size: 11px;
  font-family: inherit;
  color: #9ca3af;
  cursor: pointer;
  transition: all 0.15s;
}

.poi-signin-prompt:hover {
  border-color: #3b82f6;
  color: #3b82f6;
}

/* ─── Photo Lightbox ─── */

.poi-photo-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 200000;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.poi-photo-lightbox img {
  max-width: 90%;
  max-height: 85vh;
  border-radius: 8px;
  object-fit: contain;
}
