/**
 * Unseen Place — Map Right Panel (Place Info) Styles
 *
 * @package Unseen_Place
 * @since 3.0.0
 */

.place-info-panel {
  width: 380px;
  background: #ffffff;
  border-left: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow-y: auto;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.02);
  z-index: 10;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.place-info-panel.hidden-state {
  display: none;
}

/* Empty Placeholder state when no place is selected */
.up-panel-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 32px 24px;
  text-align: center;
  color: #64748b;
}

.up-panel-empty-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(0, 106, 78, 0.08);
  color: var(--up-color-primary, #006a4e);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.up-panel-empty-title {
  font-size: 16px;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 6px;
}

.up-panel-empty-desc {
  font-size: 13px;
  line-height: 1.5;
  color: #64748b;
  max-width: 260px;
}

/* Panel Header Media */
.up-panel-media {
  position: relative;
  height: 220px;
  background: #0f172a;
  overflow: hidden;
}

.up-panel-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.up-panel-media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, transparent 40%, rgba(0,0,0,0.7) 100%);
}

.up-panel-close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  color: #ffffff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.up-panel-close-btn:hover {
  background: rgba(0, 0, 0, 0.8);
}

.up-panel-badge-category {
  position: absolute;
  bottom: 12px;
  left: 16px;
  background: var(--up-color-primary, #006a4e);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Panel Body */
.up-panel-content {
  padding: 20px 20px 32px;
}

.up-panel-title {
  font-size: 20px;
  font-weight: 900;
  color: #0f172a;
  line-height: 1.25;
  margin: 0 0 6px;
}

.up-panel-location-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #64748b;
  margin-bottom: 12px;
}

.up-panel-rating-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  margin-bottom: 16px;
}

.up-star-rating {
  color: #f59e0b;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 2px;
}

.up-reviews-count {
  color: #94a3b8;
}

/* Quick Action Buttons */
.up-panel-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}

.up-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 6px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #334155;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
}

.up-action-btn:hover {
  background: #f8fafc;
  border-color: var(--up-color-primary, #006a4e);
  color: var(--up-color-primary, #006a4e);
}

.up-action-btn.primary {
  background: var(--up-color-primary, #006a4e);
  color: #ffffff;
  border-color: var(--up-color-primary, #006a4e);
}

.up-action-btn.primary:hover {
  background: #005840;
}

/* Excerpt & Description */
.up-panel-desc {
  font-size: 13px;
  line-height: 1.6;
  color: #475569;
  margin-bottom: 20px;
}

/* Specs Details List */
.up-specs-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #f8fafc;
  padding: 14px;
  border-radius: 12px;
  margin-bottom: 20px;
}

.up-spec-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  font-size: 12px;
}

.up-spec-label {
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 6px;
}

.up-spec-value {
  color: #0f172a;
  font-weight: 700;
  text-align: right;
}

/* Nearby Places */
.up-nearby-section {
  border-top: 1px solid #f1f5f9;
  padding-top: 18px;
  margin-top: 20px;
}

.up-nearby-heading {
  font-size: 14px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.up-nearby-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.up-nearby-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 8px;
  background: #f8fafc;
  cursor: pointer;
  transition: all 0.15s ease;
  font-size: 12px;
}

.up-nearby-item:hover {
  background: rgba(0, 106, 78, 0.08);
  color: var(--up-color-primary, #006a4e);
}

.up-nearby-distance {
  font-weight: 800;
  color: var(--up-color-primary, #006a4e);
  font-size: 11px;
}

/* Main CTA Button */
.up-btn-view-details {
  width: 100%;
  padding: 12px 18px;
  background: var(--up-color-primary, #006a4e);
  color: #ffffff;
  border-radius: 9999px;
  font-weight: 800;
  font-size: 13px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 106, 78, 0.25);
  transition: all 0.2s ease;
  border: none;
  cursor: pointer;
}

.up-btn-view-details:hover {
  background: #005840;
  transform: translateY(-1px);
}
