:root {
  --dialog-image-width: 100%;   /* Adjustable image width */
  --dialog-image-height: 200px; /* Adjustable image height */
}

/* Overlay */
.dialog-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 80, 40, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  transition: opacity 0.35s ease;
  opacity: 1;
}

/* Dialog Box */
.dialog-box {
  width: 90%;
  max-width: 420px;
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
  animation: fadeIn 0.35s ease;
}

/* Header: static gradient green */
.dialog-header {
  background: linear-gradient(135deg, #006633, #00a859);
  color: #ffffff;
  padding: 16px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
}

/* Body */
.dialog-body {
  padding: 20px;
  text-align: center;
  height: auto;
}

/* Image */
.dialog-body img {
  width: var(--dialog-image-width);
  height: var(--dialog-image-height);
  border-radius: 10px;
  margin-bottom: 15px;
  object-fit: cover;
}

/* Phone */
.phone-link {
  display: block;
  font-size: 20px;
  font-weight: bold;
  color: #006633;
  text-decoration: none;
  margin: 10px 0;
}

.phone-link:hover {
  text-decoration: underline;
}

/* Footer */
.dialog-footer {
  padding: 15px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.dialog-footer button {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
}

.btn-show {
  background: #00a859;
  color: #fff;
}

.btn-hide {
  background: #e0e0e0;
  color: #333;
}

.btn-show:hover {
  background: #008c4a;
}

.btn-hide:hover {
  background: #cfcfcf;
}

/* Animations */
@keyframes fadeIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.fade-out {
  opacity: 0 !important;
  transition: opacity 0.35s ease;
}

/* Skeleton Shimmer */
.skeleton-text, .skeleton-img {
  position: relative;
  overflow: hidden;
  background-color: #e0e0e0;
  border-radius: 5px;
  display: inline-block;
  width: 100%;
  height: 1em;
  margin-bottom: 10px;
}

.skeleton-img {
  width: var(--dialog-image-width);
  height: var(--dialog-image-height);
  border-radius: 10px;
  margin-bottom: 15px;
}

/* Shimmer animation */
.skeleton-text::after,
.skeleton-img::after {
    color: yellowgreen;
  content: '';
  position: absolute;
  top: 0;
  left: -150px;
  width: 150px;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  animation: shimmer 1.5s infinite;`

}

@keyframes shimmer {
  0% { left: -150px; }
  100% { left: 100%; }
}

/* Hide skeleton when loaded */
.loaded {
  animation: none;
  background: transparent !important;
}

/* Fade-in content */
.fade-in-content {
  opacity: 0;
  transition: opacity 0.5s ease;
}

.fade-in-content.loaded {
  opacity: 1;
}
