/**
 * Site-wide Floating Visualizer Launcher Widget & Lightbox Modal Styles.
 */

/* ─── Floating Launcher Button ─────────────────────── */
.cfv-floating-launcher {
  position: fixed;
  z-index: 99998;
  display: flex;
  align-items: center;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.25s ease;
  user-select: none;
}

.cfv-floating-launcher.cfv-pos-bottom_right {
  right: 24px;
}

.cfv-floating-launcher.cfv-pos-bottom_left {
  left: 24px;
}

.cfv-floating-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  text-decoration: none;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}

/* Circular Room Thumbnail */
.cfv-floating-icon-wrap {
  position: relative;
  width: 54px;
  height: 54px;
  flex-shrink: 0;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22), 0 2px 5px rgba(0, 0, 0, 0.12);
  transition: transform 0.26s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.26s ease;
  background: #ffffff;
}

.cfv-floating-thumb {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 2.5px solid #ffffff;
  box-sizing: border-box;
}

/* Green/Navy Eye Indicator Badge */
.cfv-floating-eye-badge {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #092c48;
  color: #ffffff;
  border: 2px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, background 0.2s ease;
}

.cfv-floating-eye-badge svg {
  width: 11px;
  height: 11px;
  stroke: #ffffff;
}

/* Dark Navy Text Pill */
.cfv-floating-text {
  background: #092c48;
  color: #ffffff;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.015em;
  padding: 11px 20px 11px 18px;
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(9, 44, 72, 0.38);
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.26s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.26s ease;
  border: 1px solid rgba(255, 255, 255, 0.15);
  line-height: 1.2;
}

/* Hover & Active Interactions */
.cfv-floating-btn:hover .cfv-floating-icon-wrap {
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.cfv-floating-btn:hover .cfv-floating-eye-badge {
  background: #10b981;
  transform: scale(1.1);
}

.cfv-floating-btn:hover .cfv-floating-text {
  background: #0c385c;
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(9, 44, 72, 0.5);
}

.cfv-floating-btn:active {
  transform: scale(0.97);
}

/* ─── Lightbox Modal Container ─────────────────────── */
.cfv-floating-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
}

.cfv-floating-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(8, 20, 32, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: cfvFadeIn 0.25s ease forwards;
}

.cfv-floating-modal-dialog {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1380px;
  height: 92vh;
  max-height: 890px;
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 25px 65px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: cfvModalScale 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Modal Close Button */
.cfv-floating-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  z-index: 1000;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #e2e8f0;
  color: #092c48;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease;
  outline: none;
}

.cfv-floating-modal-close:hover {
  background: #092c48;
  color: #ffffff;
  border-color: #092c48;
  transform: rotate(90deg);
}

.cfv-floating-modal-body {
  flex: 1;
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
}

.cfv-floating-modal-body #cfv-root {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  border-radius: 0 !important;
  margin: 0 !important;
}

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

@keyframes cfvModalScale {
  from { opacity: 0; transform: scale(0.95) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

body.cfv-modal-open {
  overflow: hidden !important;
}

/* ─── Mobile Responsiveness ────────────────────────── */
@media (max-width: 768px) {
  .cfv-floating-modal {
    padding: 0;
  }
  .cfv-floating-modal-dialog {
    width: 100vw;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
  }
  .cfv-floating-launcher.cfv-pos-bottom_right {
    right: 14px;
  }
  .cfv-floating-launcher.cfv-pos-bottom_left {
    left: 14px;
  }
  .cfv-floating-text {
    font-size: 13px;
    padding: 9px 15px;
  }
  .cfv-floating-icon-wrap {
    width: 46px;
    height: 46px;
  }
  .cfv-floating-eye-badge {
    width: 18px;
    height: 18px;
  }
}
