/**
 * Marina Pointe - Horizontal Popover Styles
 * CSS styles for horizontal unit marker popovers with position-aware animations
 * 
 * @package Marina Pointe
 * @author Danny Breckenridge
 * @agency Clear pH Design
 * @website https://clearph.com
 * @version 1.0
 */

/* Horizontal Popover Styles for Marina Pointe */

.unit-marker {
  width: 40px;
  height: 40px;
  position: absolute;
  cursor: pointer;
  background-color: rgba(211, 195, 156, 1);
  border-radius: 50%;
  border: 1px solid var(--gold, #cfae5f);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transition: transform 0.3s, background-color 0.3s;
  z-index: 2;
  text-align: center;
  padding: 5px;
}

.unit-marker:hover {
  transform: scale(1.1);
  background-color: var(--gold, #cfae5f);
}

.unit-marker:hover .bed-bath-label,
.unit-marker:hover .bed-bath-value {
  color: white;
}

/* Horizontal popover styles */
.horizontal-popover {
  position: fixed;
  background-color: var(--primary-color, #1a202c);
  color: var(--text-color, #ffffff);
  padding: 15px 20px;
  width: 280px;
  z-index: 1;
  visibility: hidden;
  opacity: 0;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  pointer-events: none;
  border-radius: 4px;
}

/* Animation styles for popovers */
.horizontal-popover.from-right {
  transform: translateX(-100%) translateY(-50%);
  transition: opacity 0.3s ease-out, transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), visibility 0s linear 0.3s;
}

.horizontal-popover.from-left {
  transform: translateX(100%) translateY(-50%);
  transition: opacity 0.3s ease-out, transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), visibility 0s linear 0.3s;
}

.horizontal-popover.from-right.active {
  transform: translateX(-50%) translateY(-50%);
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.3s ease-out, transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), visibility 0s linear 0s;
}

.horizontal-popover.from-left.active {
  transform: translateX(50%) translateY(-50%);
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.3s ease-out, transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), visibility 0s linear 0s;
}

.horizontal-popover .model-name {
  color: var(--accent-color, #a0552a);
  margin-bottom: 10px;
  font-family: "Quantum", "Oranienbaum", serif;
  font-size: 20px;
}

.horizontal-popover .unit-details {
  display: grid;
  grid-template-columns: auto auto auto auto;
  grid-gap: 10px;
  justify-content: space-between;
}

.horizontal-popover .detail-group {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.horizontal-popover .detail-label {
  font-size: 10px;
  text-transform: uppercase;
  color: var(--accent-color, #a0552a);
  margin-bottom: 5px;
}

.horizontal-popover .detail-value {
  font-family: "Quantum", "Oranienbaum", serif;
  font-size: 16px;
  color: white;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .horizontal-popover {
    width: 220px;
  }

  .horizontal-popover .unit-details {
    grid-template-columns: auto auto;
    grid-row-gap: 15px;
  }
}