/**
 * Geschichtenhaus Mattersburg Kiosk - Compact Layout
 * Optimized for small touchscreens
 */

/* ==================== Font Imports ==================== */
@font-face {
  font-display: swap;
  font-family: 'Crimson Pro';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/crimson-pro-v28-latin_latin-ext-regular.woff2') format('woff2');
}

@font-face {
  font-display: swap;
  font-family: 'Crimson Pro';
  font-style: normal;
  font-weight: 600;
  src: url('../fonts/crimson-pro-v28-latin_latin-ext-600.woff2') format('woff2');
}

@font-face {
  font-display: swap;
  font-family: 'Crimson Pro';
  font-style: normal;
  font-weight: 700;
  src: url('../fonts/crimson-pro-v28-latin_latin-ext-700.woff2') format('woff2');
}

@font-face {
  font-display: swap;
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 300;
  src: url('../fonts/outfit-v15-latin_latin-ext-300.woff2') format('woff2');
}

@font-face {
  font-display: swap;
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/outfit-v15-latin_latin-ext-regular.woff2') format('woff2');
}

@font-face {
  font-display: swap;
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 500;
  src: url('../fonts/outfit-v15-latin_latin-ext-500.woff2') format('woff2');
}

@font-face {
  font-display: swap;
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 600;
  src: url('../fonts/outfit-v15-latin_latin-ext-600.woff2') format('woff2');
}

/* ==================== Variables ==================== */
:root {
  --color-primary: #1a1a1a;
  --color-secondary: #4a4a4a;
  --color-tertiary: #8a8a8a;
  --color-accent: #8b6f47;
  --color-accent-light: #b8986f;
  
  --bg-cream: #f8f6f2;
  --bg-white: #ffffff;
  --bg-paper: #fdfcfa;
  
  --border-color: #e8e4dd;
  --shadow-soft: rgba(0, 0, 0, 0.08);
  
  --font-heading: 'Crimson Pro', Georgia, serif;
  --font-body: 'Outfit', -apple-system, sans-serif;
  
  /* Compact spacing */
  --spacing-xs: 6px;
  --spacing-sm: 10px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
}

/* ==================== Touchscreen Behavior ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  cursor: default;
}

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: var(--font-body);
  color: var(--color-primary);
  background: var(--bg-cream);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

/* ==================== Layout ==================== */
.video-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 60%;
  height: 100%;
  overflow: hidden;
  background: #000;
}

#background-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.3) 100%);
  pointer-events: none;
}

.info-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 40%;
  height: 100%;
  background: var(--bg-paper);
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 32px var(--shadow-soft);
  overflow-y: auto;
  overflow-x: hidden;
}

/* ==================== Panel Header - COMPACT ==================== */
.panel-header {
  padding: var(--spacing-md) var(--spacing-lg) var(--spacing-sm);
  border-bottom: 2px solid var(--border-color);
  background: linear-gradient(to bottom, var(--bg-white), var(--bg-paper));
  flex-shrink: 0;
}

.site-title {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: -0.3px;
  margin-bottom: 2px;
}

.site-subtitle {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 400;
  color: var(--color-tertiary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ==================== State Container ==================== */
.state-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: var(--spacing-lg) var(--spacing-md);
  overflow-y: auto;
  animation: fadeInUp 0.5s ease-out;
}

.state-container.hidden {
  display: none;
}

/* ==================== Initialization State - COMPACT ==================== */
.init-state {
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: var(--spacing-md);
}

.init-icon {
  margin-bottom: var(--spacing-md);
}

.init-icon svg {
  width: 50px;
  height: 50px;
  color: var(--color-accent);
}

.init-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: var(--spacing-md);
}

.init-log {
  width: 100%;
  max-width: 400px;
  text-align: left;
  background: var(--bg-cream);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: var(--spacing-sm);
  max-height: 200px;
  overflow-y: auto;
}

.log-entry {
  font-family: 'Courier New', monospace;
  font-size: 11px;
  color: var(--color-secondary);
  padding: 3px 0;
  border-bottom: 1px solid var(--border-color);
}

.log-entry:last-child {
  border-bottom: none;
}

.log-entry.success { color: #4a9d5f; }
.log-entry.error { color: #c94a4a; font-weight: 600; }
.log-entry.ready { color: var(--color-accent); font-weight: 600; }



/* ==================== Menu State - FULL SCREEN HORIZONTAL SPLIT ==================== */
.menu-state {
  padding: 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-paper);
  z-index: 1000;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
}

/* Top Half: Text Instructions (Full Width) */
.menu-instructions {
  flex: 0 0 40%; /* Takes exactly 50% of height */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: var(--spacing-xl) var(--spacing-lg);
  background: var(--bg-paper);
  border-bottom: 3px solid var(--border-color);
}

.instruction-title {
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--spacing-md);
  letter-spacing: -0.5px;
}

.instruction-text {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 400;
  color: var(--color-secondary);
  line-height: 1.6;
  margin-bottom: var(--spacing-md);
}

.instruction-hint {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--color-tertiary);
  padding: var(--spacing-md) var(--spacing-lg);
  background: var(--bg-cream);
  border-radius: 40px;
  border: 2px solid var(--border-color);
}

.pulse-indicator {
  width: 12px;
  height: 12px;
  background: var(--color-accent);
  border-radius: 50%;
  animation: pulseGlow 2s ease-in-out infinite;
}

/* Bottom Half: Instruction Video (Full Width) */
.menu-video-container {
  flex: 1; /* Takes remaining 50% of height */
  position: relative;
  overflow: hidden;
  background: #000;
}

.instruction-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Optional: Add subtle play indicator */
.menu-video-container::after {
  content: '';
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

/* Hide old menu icon */
.menu-icon {
  display: none;
}

/* Hide video container and adjust panel when in other states */
.menu-state:not(.hidden) ~ .video-container {
  display: none; /* Hide left video when menu is active */
}

/* ==================== Browse State - FULL SCREEN THUMBNAIL GRID ==================== */
/* Shown instead of the menu when no ESP32/reader is connected */
.browse-state {
  padding: 0;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-paper);
  z-index: 1000;
  flex-direction: column;
  align-items: stretch;
  overflow: hidden;
}

.browse-header {
  flex-shrink: 0;
  text-align: center;
  padding: var(--spacing-lg) var(--spacing-lg) var(--spacing-md);
  border-bottom: 2px solid var(--border-color);
  background: linear-gradient(to bottom, var(--bg-white), var(--bg-paper));
}

.browse-title {
  font-family: var(--font-heading);
  font-size: 34px;
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: -0.5px;
  margin-bottom: 4px;
}

.browse-text {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  color: var(--color-secondary);
}

.browse-scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: var(--spacing-lg);
  -webkit-overflow-scrolling: touch;
}

.browse-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: var(--spacing-lg) var(--spacing-md);
  max-width: 1400px;
  margin: 0 auto;
}

.browse-tile {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  padding: 0;
  background: none;
  border: none;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.browse-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 8px;
  background: #000;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 14px var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.browse-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.browse-thumb-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--bg-cream) 0%, var(--border-color) 100%);
  color: var(--color-accent);
}

.browse-thumb-placeholder svg {
  width: 44%;
  height: 44%;
  opacity: 0.75;
}

.browse-tile:active .browse-thumb {
  transform: scale(0.96);
  box-shadow: 0 2px 6px var(--shadow-soft);
}

.browse-tile:focus-visible .browse-thumb {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}

.browse-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 2px;
}

.browse-name {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-primary);
}

.browse-year {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--color-accent);
}

.browse-empty {
  text-align: center;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--color-tertiary);
  padding: var(--spacing-xl);
}

.browse-empty.hidden {
  display: none;
}

/* Back button in the building view (only when opened from the browse grid) */
.building-back {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-accent);
  background: var(--bg-cream);
  border: 1px solid var(--border-color);
  border-radius: 40px;
  padding: 8px 16px 8px 12px;
  margin-bottom: var(--spacing-md);
  cursor: pointer;
  flex-shrink: 0;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.2s ease, transform 0.1s ease;
}

.building-back:active {
  background: var(--border-color);
  transform: scale(0.97);
}

.building-back.hidden {
  display: none;
}

.building-back-arrow {
  font-size: 16px;
  line-height: 1;
}

/* Placeholder in the media area when a house has no video and no photos */
.slide-empty {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-md);
  background: linear-gradient(160deg, #2a2622 0%, #171513 100%);
  color: var(--color-accent-light);
}

.slide-empty.hidden {
  display: none;
}

.slide-empty svg {
  width: 120px;
  height: 120px;
  opacity: 0.6;
}

.slide-empty span {
  font-family: var(--font-body);
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}


/* ==================== Building State - COMPACT ==================== */
.building-state {
  justify-content: flex-start;
  padding: var(--spacing-md);
  animation: slideInRight 0.5s ease-out;
}

.building-year {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  color: var(--color-accent);
  background: var(--bg-cream);
  padding: 4px 10px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--spacing-sm);
  border: 1px solid var(--border-color);
}

.building-name {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.1;
  margin-bottom: var(--spacing-md);
  letter-spacing: -0.5px;
}

.building-description {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 300;
  color: var(--color-secondary);
  line-height: 1.6;
  flex: 1;
  overflow-y: auto;
}

.building-description p {
  margin-bottom: var(--spacing-sm);
}

.building-description strong {
  font-weight: 600;
  color: var(--color-primary);
}

.building-description em {
  font-style: italic;
  color: var(--color-accent);
}

.building-description ul {
  list-style: none;
  margin: var(--spacing-sm) 0;
  padding-left: var(--spacing-sm);
}

.building-description li {
  position: relative;
  padding-left: var(--spacing-md);
  margin-bottom: var(--spacing-xs);
  font-size: 13px;
}

.building-description li::before {
  content: '◆';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-size: 8px;
}

.building-description h3 {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  color: var(--color-primary);
  margin: var(--spacing-md) 0 var(--spacing-sm);
}

.building-footer {
  margin-top: var(--spacing-md);
  padding-top: var(--spacing-sm);
  border-top: 1px solid var(--border-color);
  flex-shrink: 0;
}

.remove-hint {
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--color-tertiary);
  text-align: center;
  font-weight: 500;
}

/* ==================== Error State - COMPACT ==================== */
.error-state {
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: var(--spacing-lg) var(--spacing-md);
}

.error-icon {
  margin-bottom: var(--spacing-md);
}

.error-icon svg {
  width: 50px;
  height: 50px;
  color: #c94a4a;
  animation: shake 0.5s ease-in-out;
}

.error-title {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  color: #c94a4a;
  margin-bottom: var(--spacing-sm);
}

.error-message {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-secondary);
  margin-bottom: var(--spacing-lg);
  padding: var(--spacing-sm);
  background: var(--bg-cream);
  border-radius: 6px;
  border-left: 3px solid #c94a4a;
}

.retry-button {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 24px;
  background: var(--color-accent);
  color: white;
  border: none;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.retry-button:active {
  background: var(--color-accent-light);
  transform: scale(0.98);
}

/* ==================== Panel Footer - COMPACT ==================== */
.panel-footer {
  padding: var(--spacing-sm) var(--spacing-md);
  border-top: 1px solid var(--border-color);
  background: var(--bg-white);
  flex-shrink: 0;
}

.status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--color-tertiary);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-tertiary);
  transition: all 0.3s ease;
}

.status-connecting .status-dot {
  background: var(--color-accent);
  animation: pulse 1.5s ease-in-out infinite;
}

.status-connected .status-dot {
  background: #4a9d5f;
}

.status-error .status-dot {
  background: #c94a4a;
}

.status-warning .status-dot {
  background: #d4a017;
  animation: pulse 2s ease-in-out infinite;
}

/* ==================== Animations ==================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-15px); }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-8px); }
  75% { transform: translateX(8px); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

@keyframes pulseGlow {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(139, 111, 71, 0.7);
  }
  50% {
    opacity: 0.6;
    box-shadow: 0 0 0 8px rgba(139, 111, 71, 0);
  }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ==================== Responsive ==================== */
@media (max-width: 1024px) {
  .video-container { width: 50%; }
  .info-panel { width: 50%; }
  .building-name { font-size: 28px; }
}

@media (max-width: 768px) {
  .video-container {
    width: 100%;
    height: 40%;
  }
  .info-panel {
    width: 100%;
    height: 60%;
    top: 40%;
  }
  .building-name { font-size: 24px; }
  .building-description { font-size: 13px; }
}

/* ==================== Video Container State Management ==================== */

/* Hide main video container when menu or browse grid is visible */
body:has(.menu-state:not(.hidden)) .video-container,
body:has(.browse-state:not(.hidden)) .video-container {
  display: none;
}

/* Show main video container when building is visible */
body:has(.building-state:not(.hidden)) .video-container {
  display: block;
}

/* Hide main video container during initialization */
body:has(.init-state:not(.hidden)) .video-container {
  opacity: 0.3; /* Dim it during init */
}

/* ==================== Slideshow: photos share the view with the video ==================== */
.slide-photo {
  position: absolute;
  inset: 0;
  background: #000;
  z-index: 2;
}

.slide-photo.hidden {
  display: none;
}

.slide-photo.fade-in {
  animation: slideFade 0.8s ease-out;
}

.slide-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;   /* historic photos: never crop, letterbox instead */
  display: block;
}

.slide-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 40px var(--spacing-xl) var(--spacing-lg);
  background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.45) 60%, rgba(0,0,0,0) 100%);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.slide-caption:has(.slide-caption-year:empty):has(.slide-caption-text:empty) {
  display: none;
}

.slide-caption-year {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--color-accent-light);
}

.slide-caption-year:empty {
  display: none;
}

.slide-caption-text {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.3;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

.slide-dots {
  position: absolute;
  top: var(--spacing-lg);
  left: var(--spacing-xl);
  display: flex;
  gap: 8px;
  z-index: 3;
}

.slide-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  transition: background 0.3s ease, transform 0.3s ease;
}

.slide-dot.active {
  background: #fff;
  transform: scale(1.3);
}

.building-year.hidden {
  display: none;
}

@keyframes slideFade {
  from { opacity: 0; }
  to { opacity: 1; }
}
/* ==================== Visitor comments (building view) ==================== */
.visitor-block {
  flex-shrink: 0;
  margin-top: var(--spacing-md);
  padding-top: var(--spacing-sm);
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.visitor-block.hidden { display: none; }

.visitor-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.visitor-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  color: var(--color-primary);
}

.visitor-count {
  font-size: 11px;
  color: var(--color-tertiary);
}

.visitor-count:empty { display: none; }

.visitor-block-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 180px;
  overflow-y: auto;
}

.visitor-comment {
  background: var(--bg-cream);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  border-top-left-radius: 3px;
  padding: 6px 10px;
}

.visitor-comment.fresh {
  border-color: var(--color-accent-light);
  animation: fadeInUp 0.3s ease-out;
}

.visitor-comment-meta {
  font-size: 10px;
  color: var(--color-tertiary);
  margin-bottom: 2px;
}

.visitor-comment-text {
  font-size: 13px;
  color: var(--color-secondary);
  white-space: pre-wrap;
  word-wrap: break-word;
}

.visitor-empty {
  font-size: 12px;
  color: var(--color-tertiary);
}

.visitor-empty.hidden { display: none; }

.visitor-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.visitor-form input[type="text"],
.visitor-form textarea {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--color-primary);
  padding: 7px 10px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: var(--bg-white);
  width: 100%;
  -webkit-user-select: text;
  user-select: text;
  cursor: text;
}

.visitor-form input[type="text"]:focus,
.visitor-form textarea:focus {
  outline: none;
  border-color: var(--color-accent);
}

.visitor-form textarea { resize: none; line-height: 1.4; }

/* Honeypot – off screen for humans */
.visitor-form .hp {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.visitor-form-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.visitor-send {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  padding: 7px 14px;
  background: var(--color-accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.visitor-send:disabled { opacity: 0.5; }
.visitor-send:active { background: var(--color-accent-light); }

.visitor-form-msg {
  font-size: 11px;
  color: var(--color-accent);
}

.visitor-qr {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.visitor-qr.hidden { display: none; }

.visitor-qr img {
  width: 72px;
  height: 72px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: #fff;
}

.visitor-qr-text {
  display: flex;
  flex-direction: column;
  font-size: 11px;
  color: var(--color-tertiary);
}

.visitor-qr-text strong {
  font-size: 12px;
  color: var(--color-secondary);
  font-weight: 600;
}