/**
 * Virtual Tour Widget Styles
 *
 * Uses IABT CSS variables for consistent branding.
 */

/* ============================================
   Base Section
   ============================================ */
.iabt-section-wrapper {
  background-color: var(--iabt-bg-soft);
}

.vt-widget {
  padding: 80px 64px;
  max-width: 1440px;
  margin: 0 auto;
}

/* ============================================
   Grid Layout
   ============================================ */
.vt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

/* ============================================
   Content
   ============================================ */
.vt-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ============================================
   Title
   ============================================ */
.vt-title {
  font-size: 42px;
  line-height: 1.2;
  font-weight: var(--iabt-font-bold);
  color: var(--iabt-text-heading);
  margin: 0 0 24px 0;
  font-family: var(--iabt-font-family, serif);
}

/* ============================================
   Description
   ============================================ */
.vt-description {
  font-size: var(--iabt-text-base);
  color: var(--iabt-text-secondary);
  line-height: 1.6;
  font-family: var(--iabt-font-family);
}

.vt-description p {
  margin: 0;
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}

.vt-description p:last-child {
  margin-bottom: 0;
}

/* ============================================
   Tour Container
   ============================================ */
.vt-tour-container {
  position: relative;
  height: 400px;
  width: 100%;
  max-width: 600px;
  place-self: center;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  background-color: var(--iabt-bg-main);
}

/* ============================================
   Shortcode Wrapper
   ============================================ */
.vt-shortcode-wrapper {
  width: 100%;
  height: 100%;
}

.vt-shortcode-wrapper > * {
  width: 100%;
  height: 100%;
}

.vt-shortcode-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Editor placeholder for shortcode preview */
.vt-editor-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--iabt-bg-soft);
  color: var(--iabt-text-secondary);
}

/* ============================================
   Fallback Image
   ============================================ */
.vt-fallback-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================
   360 Badge
   ============================================ */
.vt-badge {
  position: absolute;
  top: 24px;
  background: var(--iabt-bg-main, #ffffff);
  padding: 8px 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: var(--iabt-font-semibold);
  color: var(--iabt-text-primary);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  z-index: 10;
  font-family: var(--iabt-font-family);
}

.vt-badge-left {
  left: 24px;
}

.vt-badge-right {
  right: 24px;
}

.vt-badge-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: inherit;
}

.vt-badge-icon svg {
  width: 20px;
  height: 20px;
}

.vt-badge-text {
  white-space: nowrap;
}

/* ============================================
   Responsive - Tablet
   ============================================ */
@media (max-width: 1024px) {
  .vt-widget {
    padding: 60px 40px;
  }

  .vt-grid {
    gap: 40px;
  }

  .vt-title {
    font-size: 32px;
    margin-bottom: 16px;
  }

  .vt-tour-container {
    height: 350px;
  }
}

/* ============================================
   Responsive - Mobile
   ============================================ */
@media (max-width: 768px) {
  .vt-widget {
    padding: 40px 20px;
  }

  .vt-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .vt-title {
    font-size: 28px;
  }

  .vt-content {
    gap: 16px;
    order: 1;
  }

  .vt-tour-container {
    height: 280px;
    order: 2;
  }

  .vt-badge {
    top: 16px;
    padding: 6px 12px;
    font-size: 12px;
  }

  .vt-badge-left {
    left: 16px;
  }

  .vt-badge-right {
    right: 16px;
  }

  .vt-badge-icon svg {
    width: 16px;
    height: 16px;
  }
}

/* ============================================
   Responsive - Small Mobile
   ============================================ */
@media (max-width: 480px) {
  .vt-widget {
    padding: 32px 16px;
  }

  .vt-title {
    font-size: 24px;
  }

  .vt-tour-container {
    height: 220px;
  }

  .vt-badge {
    top: 12px;
    padding: 5px 10px;
    font-size: 11px;
    gap: 6px;
  }

  .vt-badge-left {
    left: 12px;
  }

  .vt-badge-right {
    right: 12px;
  }

  .vt-badge-icon svg {
    width: 14px;
    height: 14px;
  }
}
