.owner-contact-dock {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(24px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 90;
}

.dock-link {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  border: 2.5px solid #fff;
  box-shadow: 0 6px 20px rgba(25, 45, 37, 0.28), 0 2px 6px rgba(0, 0, 0, 0.12);
  transition: transform 0.22s cubic-bezier(0.2, 0.9, 0.3, 1.2), box-shadow 0.22s ease;
  cursor: pointer;
  text-decoration: none;
  outline: none;
}

.dock-link:hover,
.dock-link:focus-visible {
  transform: translateX(-4px) scale(1.06);
  box-shadow: 0 10px 28px rgba(25, 45, 37, 0.38), 0 4px 10px rgba(0, 0, 0, 0.16);
}

.dock-link svg,
.dock-link img {
  display: block;
  pointer-events: none;
}

.dock-link img {
  border-radius: 50%;
  object-fit: contain;
}

/* Kênh màu sắc thương hiệu chính thức */
.dock-phone {
  background: #36c836;
}

.dock-phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.dock-phone::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid #36c836;
  animation: dock-phone-pulse 2.2s infinite ease-out;
  pointer-events: none;
  z-index: -1;
}

@keyframes dock-phone-pulse {
  0% { transform: scale(0.92); opacity: 0.9; }
  65% { transform: scale(1.36); opacity: 0; }
  100% { transform: scale(1.36); opacity: 0; }
}

.dock-zalo {
  background: #ffffff;
  border-color: #0068ff;
}

.dock-zalo img {
  width: 36px;
  height: 36px;
}

.dock-facebook {
  background: #0866ff;
}

.dock-facebook img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.dock-gmail {
  background: #ffffff;
  border-color: #ea4335;
}

.dock-gmail img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

/* Tooltip hiển thị khi hover / focus */
.dock-link[data-tooltip]::before {
  content: attr(data-tooltip);
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  background: rgba(23, 40, 31, 0.96);
  color: #ffffff;
  font-family: var(--sans, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  padding: 7px 13px;
  border-radius: 20px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.18);
  letter-spacing: 0.2px;
  z-index: 99;
}

.dock-link:hover::before,
.dock-link:focus-visible::before {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

/* Toast thông báo tương tác nổi bật */
.owner-contact-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 20px);
  opacity: 0;
  visibility: hidden;
  background: #243f30;
  color: #fff;
  padding: 13px 22px;
  border-radius: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
  font-family: var(--sans, sans-serif);
  font-size: 14.5px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 1000;
  transition: transform 0.25s ease, opacity 0.25s ease, visibility 0.25s;
  border: 1px solid rgba(255, 255, 255, 0.16);
  max-width: 90vw;
  text-align: center;
}

.owner-contact-toast.show {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

@media (max-width: 540px) {
  .owner-contact-dock {
    right: max(12px, env(safe-area-inset-right));
    bottom: max(16px, env(safe-area-inset-bottom));
    display: grid;
    grid-template-columns: repeat(2, 46px);
    gap: 8px;
  }

  .dock-link {
    width: 46px;
    height: 46px;
  }

  .dock-link svg,
  .dock-zalo img,
  .dock-gmail img {
    transform: scale(0.9);
  }

  .dock-phone img,
  .dock-facebook img {
    transform: none;
  }

  .dock-link[data-tooltip]::before {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dock-link,
  .dock-phone::after {
    transition: none;
    animation: none;
  }
}

.top-announcement-bar {
  display: none !important;
}

.top-announcement-bar a {
  color: #c9dba8;
  text-decoration: underline;
  margin-left: 4px;
  font-weight: 600;
  white-space: nowrap;
}

.top-announcement-bar a:hover {
  color: #ffffff;
}

.top-announcement-bar .announcement-close {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: 0;
  color: #aab8a3;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
}

.top-announcement-bar .announcement-close:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}

