/**
 * Recôncavo Prime - Custom Leaflet and Immersive Styles
 */

/* Custom Leaflet Marker Pills */
.rp-custom-marker-wrapper {
  background: transparent;
  border: none;
}

.rp-marker-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background-color: #0b192c; /* Deep Navy */
  color: #ffffff;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 700;
  border-radius: 9999px;
  box-shadow: 0 4px 14px rgba(11, 25, 44, 0.25), 0 0 0 2px rgba(197, 160, 89, 0.7); /* Gold trim */
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s ease;
}

.rp-marker-pill:hover,
.rp-marker-pill.active {
  transform: scale(1.12);
  background-color: #000000;
  box-shadow: 0 8px 24px rgba(11, 25, 44, 0.4), 0 0 0 3px #c5a059;
}

.rp-marker-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #e5c378; /* Champagne gold pulse */
  box-shadow: 0 0 6px #e5c378;
}

.rp-marker-badge360 {
  background: linear-gradient(135deg, #c5a059, #9e7b34);
  color: #0b192c;
  font-size: 9px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 9999px;
  text-transform: uppercase;
}

/* Custom Leaflet Popup */
.leaflet-popup-content-wrapper {
  padding: 0 !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  background: #ffffff !important;
  box-shadow: 0 16px 36px -6px rgba(11, 25, 44, 0.2), 0 4px 12px rgba(197, 160, 89, 0.12) !important;
  border: 1px solid rgba(226, 232, 240, 0.8) !important;
}

.leaflet-popup-content {
  margin: 0 !important;
  line-height: normal !important;
}

.leaflet-popup-tip {
  background: #ffffff !important;
}

.rp-popup-card {
  width: 260px;
  font-family: 'Inter', sans-serif;
}

.rp-popup-media {
  position: relative;
  width: 100%;
  height: 130px;
  overflow: hidden;
  background: #0b192c;
}

.rp-popup-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.rp-popup-media:hover img {
  transform: scale(1.05);
}

.rp-popup-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(11, 25, 44, 0.85);
  backdrop-filter: blur(8px);
  color: #e5c378;
  font-family: 'Montserrat', sans-serif;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
}

.rp-popup-badge-360 {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  color: #0b192c;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  gap: 3px;
}

.rp-popup-content {
  padding: 12px;
}

.rp-popup-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: #191c1e;
  margin: 0 0 4px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rp-popup-price {
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: #775a19;
  margin: 0 0 4px 0;
}

.rp-popup-specs {
  font-size: 11px;
  color: #44474c;
  margin: 0 0 10px 0;
}

.rp-popup-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  padding: 8px;
  background-color: #0b192c;
  color: #ffffff;
  border-radius: 6px;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.rp-popup-btn:hover {
  background-color: #000000;
  color: #e5c378;
}

/* Toast Notification */
.rp-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  background: #0b192c;
  color: #ffffff;
  border-left: 4px solid #c5a059;
  padding: 14px 20px;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideIn {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
