/* =========================================
   Hotel POI Map — plugin stylesheet
   ========================================= */

/* --- Plugin Container --- */
.hotel-poi-map-container {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

@media (min-width: 768px) {
  .hotel-poi-map-container {
    flex-direction: row;
    align-items: stretch;
  }
}

/* --- Map canvas --- */
.hotel-poi-map-canvas {
  flex: 1;
  width: 100%;
  min-height: 320px;
  border-radius: 18px;
  overflow: hidden;
  background: #f6f7f7;
}

/* --- Sidebar --- */
.hotel-poi-map-sidebar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-height: 400px; /* On mobile limit height */
  overflow-y: auto;
  padding-right: 5px;
}

@media (min-width: 768px) {
  .hotel-poi-map-sidebar {
    width: 30%;
    min-width: 250px;
    max-height: none;
  }
}

.hotel-poi-sidebar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
  color: #1e293b;
}

.hotel-poi-sidebar-item:hover,
.hotel-poi-sidebar-item:focus {
  background: #f8fafc;
  border-color: #cbd5e1;
  transform: translateY(-2px);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  outline: none;
}

.hotel-poi-sidebar-item i {
  color: #64748b;
  font-size: 1.1em;
  width: 20px;
  text-align: center;
}

.hotel-poi-sidebar-empty {
  padding: 16px;
  color: #64748b;
  font-style: italic;
  text-align: center;
  background: #eaecf0;
  border-radius: 12px;
}

/* --- Notice / empty state --- */
.hotel-poi-map-notice {
  padding: 16px 18px;
  border: 1px solid #dcdcde;
  border-radius: 12px;
  background: #fff;
}

.hotel-poi-map-inline-notice {
  margin-top: 12px;
}

/* =========================================
   Custom marker pin
   ========================================= */
.hotel-poi-marker {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  border: 2px solid #ffffff;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.hotel-poi-marker:hover {
  transform: rotate(-45deg) scale(1.15);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}

.hotel-poi-marker i {
  transform: rotate(45deg);
  color: #ffffff;
  pointer-events: none;
}

/* =========================================
   InfoWindow
   ========================================= */
.hotel-poi-map-infowindow {
  min-width: 220px;
  max-width: 280px;
  line-height: 1.45;
}

.hotel-poi-map-infowindow strong {
  display: block;
  margin-bottom: 6px;
}

.hotel-poi-map-infowindow p {
  margin: 8px 0;
}

.hotel-poi-map-address {
  color: #50575e;
  margin-bottom: 6px;
  font-size: 0.9em;
}

/* "Apri su Maps" link */
.hotel-poi-map-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  font-weight: 600;
  font-size: 0.9em;
  text-decoration: none;
  color: #1a73e8;
}

.hotel-poi-map-link:hover {
  text-decoration: underline;
  color: #1558b0;
}

.hotel-poi-map-link i {
  font-size: 1em;
}
