* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: #0e1b2b;
  color: #eaf2fb;
}

.site-header {
  text-align: center;
  padding: 32px 16px 16px;
}

.site-header h1 {
  margin: 0 0 6px;
  font-size: 26px;
}

.site-header p {
  margin: 0;
  color: #9db3c8;
  font-size: 14px;
}

.map-wrap {
  position: relative;
  max-width: 900px;
  margin: 24px auto 60px;
  padding: 0 16px;
}

.map {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  /* ЗАМЕНИТЕ на вашу реальную схему причала/марины */
  background-image: url("https://images.unsplash.com/photo-1519046904884-53103b34b206?w=1200");
  background-size: cover;
  background-position: center;
  border: 1px solid #24384c;
}

.pin {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  background: #2f7fe0;
  color: #ffffff;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.35);
  transition: transform 0.15s ease;
}

.pin:hover {
  transform: translate(-50%, -50%) scale(1.12);
}

.card {
  position: absolute;
  width: 280px;
  background: #14263a;
  border: 1px solid #2c465f;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.4);
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.15s ease, transform 0.15s ease;
  z-index: 10;
}

.card.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.card-close {
  position: absolute;
  top: 8px;
  right: 10px;
  background: none;
  border: none;
  color: #9db3c8;
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
}

.card-img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px;
}

.card h2 {
  margin: 0 0 2px;
  font-size: 17px;
}

.card .muted {
  margin: 0 0 10px;
  color: #9db3c8;
  font-size: 13px;
}

.card-details {
  margin: 0 0 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.card-details div {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}

.card-details dt {
  color: #9db3c8;
  font-weight: 400;
}

.card-details dd {
  margin: 0;
  font-weight: 500;
}

.card-btn {
  display: block;
  text-align: center;
  background: #2f7fe0;
  color: #ffffff;
  text-decoration: none;
  padding: 10px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
}

.card-btn:hover {
  background: #2569bd;
}

@media (max-width: 480px) {
  .card { width: 240px; }
}
