/* =================== Contacts Page =================== */

/* ---- Base ---- */
body.contacts-page {
  background: #000;
  margin: 0;
  overflow: hidden;
  height: 100dvh;
}

/* ---- Phase 1: Intro ---- */
.contacts-intro {
  position: fixed;
  inset: 0;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 30;
  transition: opacity 0.85s ease;
  pointer-events: none;
}

.contacts-intro.hidden {
  opacity: 0;
}

.contacts-intro__glow {
  position: absolute;
  width: 340px;
  height: 70px;
  background: radial-gradient(ellipse at center, rgba(113, 205, 179, 0.25) 0%, transparent 70%);
  filter: blur(24px);
  opacity: 0;
  animation: contactsFadeIn 1.1s ease 0.6s forwards;
}

.contacts-intro__title {
  position: relative;
  font-size: 40px;
  font-weight: 700;
  color: #fff;
  text-align: center;
  letter-spacing: 0.01em;
  margin: 0;
  opacity: 0;
  animation: contactsFadeIn 1.1s ease 0.6s forwards;
}

@media (min-width: 768px) {
  .contacts-intro__title {
    font-size: 100px;
  }

  .contacts-intro__glow {
    width: 700px;
    height: 120px;
  }
}

@keyframes contactsFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ---- Phase 2: Main section ---- */
.contacts-main {
  position: fixed;
  inset: 0;
  opacity: 0;
  transition: opacity 0.85s ease;
  pointer-events: none;
}

.contacts-main.visible {
  opacity: 1;
  pointer-events: auto;
}

/* ---- Map ---- */
.contacts-map {
  position: absolute;
  inset: 0;
  z-index: 0;
}

#contacts-leaflet-map {
  width: 100%;
  height: 100%;
  filter: brightness(1.1);
}

/* Leaflet attribution */
.leaflet-control-attribution {
  display: none !important;
}

/* Leaflet zoom controls */
.leaflet-top.leaflet-left {
  top: 80px;
  left: 16px;
}

.leaflet-control-zoom {
  border: none !important;
  box-shadow: none !important;
}

.leaflet-control-zoom a {
  background: rgba(0, 0, 0, 0.55) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #fff !important;
  transition: background 0.2s !important;
}

.leaflet-control-zoom a:hover {
  background: rgba(255, 255, 255, 0.15) !important;
  color: #fff !important;
}

/* Draggable cursor */
#contacts-leaflet-map {
  cursor: grab;
}

.leaflet-dragging #contacts-leaflet-map {
  cursor: grabbing;
}

/* Gradient overlays on top of map */
.contacts-gradient-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 220px;
  background: linear-gradient(to bottom, #000 0%, transparent 100%);
  z-index: 2;
  pointer-events: none;
}

.contacts-gradient-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 520px;
  background: linear-gradient(to top, #000 54%, transparent 100%);
  z-index: 2;
  pointer-events: none;
}

/* ---- Marker ---- */
.contacts-marker-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}

.contacts-marker-label {
  font-size: 12px;
  font-weight: 500;
  color: #fff;
  font-family: Inter, Helvetica, Arial, sans-serif;
  white-space: nowrap;
  margin-bottom: 3px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.85);
}

.contacts-marker-pin {
  width: 10px;
  height: 10px;
  background: #fff;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: 0 1px 5px rgba(0,0,0,0.5);
  flex-shrink: 0;
}

/* ---- Contact Panel ---- */
.contacts-panel {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding: 0 16px 28px;
}

.contacts-panel__inner {
  display: flex;
  flex-direction: column;
  gap: 18px;
  border-top: 1px solid #2a2a2a;
  padding-top: 20px;
}

/* Row: info + icon */
.contacts-panel__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.contacts-panel__text {
  font-size: 16px;
  line-height: 20px;
  color: #fff;
  text-decoration: none;
  font-family: Helvetica, Arial, sans-serif;
}

a.contacts-panel__text:hover {
  color: #71cdb3;
}

.contacts-panel__icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  color: #fff;
  opacity: 0.7;
  transition: opacity 0.2s;
  flex-shrink: 0;
}

.contacts-panel__icon-btn:hover {
  opacity: 1;
}

.contacts-panel__icon-btn svg,
.contacts-panel__icon svg {
  width: 20px;
  height: 20px;
  display: block;
}

.contacts-panel__icon {
  display: flex;
  align-items: center;
  color: #fff;
  opacity: 0.6;
  flex-shrink: 0;
}

/* Social icons row */
.contacts-panel__socials {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.contacts-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  color: #fff;
  opacity: 0.85;
  transition: opacity 0.2s;
  text-decoration: none;
}

.contacts-social-link:hover {
  opacity: 1;
}

.contacts-social-link svg {
  width: 35px;
  height: 35px;
  display: block;
}

/* Get Directions button */
.contacts-directions-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 24px;
  border-radius: 41px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  font-family: Helvetica, Arial, sans-serif;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.contacts-directions-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.contacts-directions-btn svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

/* Copied toast */
.contacts-copy-toast {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: rgba(113, 205, 179, 0.9);
  color: #000;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 100px;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
  z-index: 100;
  white-space: nowrap;
}

.contacts-copy-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* =================== Desktop Layout =================== */
@media (min-width: 768px) {
  body.contacts-page {
    overflow: hidden;
  }

  .contacts-gradient-bottom {
    height: 320px;
    background: linear-gradient(to top, #000 30%, transparent 100%);
  }

  /* Full-width bottom bar, no card */
  .contacts-panel {
    bottom: 0;
    left: 0;
    right: 0;
    transform: none;
    width: 100%;
    padding: 0;
  }

  .contacts-panel__inner {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 96px;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    border-top: 1px solid #27272a;
    border-radius: 20px 20px 0 0;
    padding: 32px 0;
  }

  /* Left column: socials + Get Directions */
  .contacts-panel__bottom-row {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 320px;
    order: 1;
    align-items: stretch;
  }

  .contacts-panel__socials {
    justify-content: space-between;
    gap: 0;
    flex: none;
  }

  .contacts-directions-btn {
    width: 100%;
    max-width: none;
    flex: none;
    box-sizing: border-box;
  }

  /* Right column: address + phone + email stacked */
  .contacts-panel__info-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 320px;
    order: 2;
  }

  .contacts-panel__info-col {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .contacts-panel__label {
    display: none;
  }
}

/* =================== Mobile-only layout =================== */
@media (max-width: 767px) {
  .contacts-panel__info-grid {
    display: contents;
  }

  .contacts-panel__info-col {
    display: contents;
  }

  .contacts-panel__label {
    display: none;
  }

  .contacts-panel__bottom-row {
    display: contents;
  }

  .contacts-panel {
    padding: 0;
    border-radius: 20px 20px 0 0;
    border-top: 1px solid #27272a;
    background: #000;
  }

  .contacts-panel__inner {
    border-top: none;
    padding: 20px 32px 28px;
    gap: 20px;
  }

  .contacts-panel__socials {
    border-top: 1px solid rgba(255, 255, 255, 0.09);
    padding-top: 10px;
  }

  .contacts-directions-btn {
    width: 100%;
    box-sizing: border-box;
  }
}
