/* --- START OF FILE room-hover-card.css --- */

/* Room Hover Card Styles */
.room-hover-card {
  display: none; /* Initially hidden */
  position: fixed;
  z-index: 1000;
  width: 90%; /* Start with 90% width */
  max-width: 550px; /* Slightly narrower max based on screenshot proportions */
  max-height: 90vh; /* Limit height relative to viewport */
  overflow-y: auto; /* Enable scrolling if content overflows vertically */
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  font-family: inherit;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #333; /* Default text color */
}

/* Add a semi-transparent overlay behind the hover card */
body.hover-card-active::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5); /* Overlay */
  z-index: 999; /* Behind the card */
}

/* --- Content Styles --- */

.hover-card-content {
  position: relative;
  padding: 20px;
}

.close-hover-card {
  position: absolute !important;
  top: 10px !important;
  right: 10px !important;
  background: #009cbf !important; /* Teal color from screenshot */
  border: none !important;
  width: 30px !important;
  height: 30px !important;
  font-size: 20px !important;
  font-weight: bold !important;
  cursor: pointer !important;
  color: white !important;
  z-index: 1001 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  line-height: 1 !important;
  border-radius: 6px !important;
}

.close-hover-card:hover {
  background: #007a94 !important; /* Darker teal */
}

/* Header Section */
.hover-card-header {
  margin-bottom: 15px;
  padding-bottom: 10px;
  padding-right: 35px; /* Space for close button */
  border-bottom: 1px solid #eee;
}

.hover-card-header h3 {
  margin: 0;
  color: #331673; /* Dark purple */
  font-size: 22px;
  font-weight: bold;
  line-height: 1.3;
}

.hover-card-header p { /* Subtitle like "Soho" */
  margin: 4px 0 0;
  color: #ff008e; /* Pink */
  font-size: 16px;
  font-weight: bold;
}

/* Image Section */
.hover-card-image {
  width: 100%;
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
}

.hover-card-image img {
  width: 100%;
  height: auto;
  max-height: 220px;
  display: block;
  object-fit: cover;
}

/* Info Section (3 columns) */
.hover-card-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 15px;
  text-align: center;
}

.info-item {
  padding: 10px;
  background-color: #f9f9f9;
  border-radius: 8px;
}

.info-label {
  font-size: 14px;
  font-weight: bold;
  color: #331673; /* Dark purple */
  margin-bottom: 5px;
}

.info-value {
  font-size: 15px;
  color: #ff008e; /* Pink */
  font-weight: bold;
}

/* Description Section */
.hover-card-description {
  margin-bottom: 15px;
  padding: 15px;
  background-color: #f9f9f9;
  border-radius: 8px;
}

.description-label {
  font-weight: bold;
  color: #331673; /* Dark purple */
  margin-bottom: 5px;
}

.description-text {
  font-size: 14px;
  line-height: 1.5;
  color: #333;
}

/* Map Section */
.hover-card-map {
  width: 100%;
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
}

.map-wrapper {
  position: relative;
  display: block;
}

.map-image {
  width: 100%;
  height: auto;
  max-height: 180px;
  display: block;
  object-fit: cover;
}

.map-address-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 8px 15px;
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  z-index: 1;
}

/* Footer Section */
.hover-card-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  margin-top: 15px;
}

.view-map-link {
  color: #331673; /* Dark purple */
  text-decoration: underline;
  font-size: 14px;
}

.view-map-link:hover {
  color: #ff008e; /* Pink */
}

.book-now-btn {
  background-color: #009cbf !important; /* Teal */
  color: white !important;
  border: none !important;
  border-radius: 8px !important;
  padding: 12px 20px !important;
  font-size: 16px !important;
  font-weight: bold !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  width: 100% !important;
  max-width: 220px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  text-align: center !important;
}

.book-now-btn:hover {
  background-color: #007a94 !important; /* Darker teal */
}

/* Trigger styles */
.room-hover-trigger {
  cursor: pointer;
}

.room-hover-trigger:hover {
  opacity: 0.9;
}

/* Mobile Styles */
.room-hover-card.mobile-view {
  width: 100%;
  max-width: 100%;
  height: 100vh;
  max-height: 100vh;
  top: 0;
  left: 0;
  transform: none;
  border-radius: 0;
}

/* Mobile adjustments */
@media (max-width: 767px) {
  .hover-card-content {
    padding: 15px;
  }
  
  .hover-card-header h3 {
    font-size: 18px;
  }
  
  .hover-card-header p {
    font-size: 14px;
  }
  
  .hover-card-image img {
    max-height: 180px;
  }
  
  /* Mobile-specific info section styling to match the design */
  .hover-card-info {
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 0;
    gap: 0;
    margin-bottom: 15px;
  }
  
  .info-item {
    padding: 15px 10px;
    background-color: transparent;
    border-radius: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .info-label {
    font-size: 14px;
    color: #331673; /* Dark purple */
    margin-bottom: 5px;
  }
  
  .info-value {
    font-size: 15px;
    color: #ff008e; /* Pink */
  }
  
  /* Mobile description styling */
  .hover-card-description {
    padding: 15px;
    background-color: #f9f9f9;
    margin-bottom: 15px;
  }
  
  .description-label {
    display: inline;
    margin-right: 5px;
  }
  
  .description-text {
    display: inline;
    font-size: 14px;
  }
  
  /* Mobile map styling */
  .map-address-overlay {
    position: relative;
    background-color: #f9f9f9;
    color: #333;
    padding: 10px 15px;
    text-align: center;
    font-weight: normal;
  }
  
  .map-image {
    max-height: 200px;
  }
  
  .book-now-btn {
    padding: 12px 20px !important;
    font-size: 16px !important;
    width: 100% !important;
    max-width: none !important;
  }
}

/* Small screen adjustments */
@media (max-width: 400px) {
  .hover-card-content {
    padding: 12px;
  }
  
  .info-item {
    padding: 10px 5px;
  }
  
  .info-label {
    font-size: 13px;
  }
  
  .info-value {
    font-size: 14px;
  }
  
  .map-image {
    max-height: 180px;
  }
}

/* --- END OF FILE room-hover-card.css --- */