/* ============================================================
   editor-visual.css - Estilos da Barra e Interface do Editor
   Maratona Deslumbrante
   ============================================================ */

/* Barra de Ferramentas Superior Fixa */
#mdEditorBar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 54px;
  background: rgba(7, 19, 34, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(224, 190, 121, 0.35);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #FFFFFF;
  box-sizing: border-box;
}

/* Empurra o conteúdo do site para não ficar embaixo da barra quando o editor está ativo */
body.md-editor-active {
  padding-top: 54px !important;
}

body.md-editor-active #topbar {
  top: 54px !important;
}

#mdEditorBar .ed-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

#mdEditorBar .ed-badge-logo {
  background: #E0BE79;
  color: #071322;
  font-family: "IBM Plex Mono", monospace;
  font-weight: 700;
  font-size: 11px;
  padding: 3px 7px;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

#mdEditorBar .ed-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #FFFFFF;
  letter-spacing: -0.01em;
}

#mdEditorBar .ed-tag {
  background: rgba(224, 190, 121, 0.15);
  border: 1px solid rgba(224, 190, 121, 0.3);
  color: #E0BE79;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 500;
}

#mdEditorBar .ed-center {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ed-nav-group {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ed-nav-label {
  font-size: 11.5px;
  color: #A0B2C6;
  font-weight: 500;
}

.ed-page-select {
  background: #040B14;
  border: 1px solid rgba(224, 190, 121, 0.4);
  color: #E0BE79;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
  outline: none;
  font-family: inherit;
  transition: border-color .2s;
}

.ed-page-select:focus {
  border-color: #E0BE79;
  box-shadow: 0 0 0 2px rgba(224, 190, 121, 0.2);
}

.ed-page-select option {
  background: #071322;
  color: #FFFFFF;
}

.ed-mode-switch {
  display: flex;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 2px;
}

.ed-mode-btn {
  background: transparent;
  border: none;
  color: #A0B2C6;
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: all .15s ease;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.ed-mode-btn:hover {
  color: #FFFFFF;
}

.ed-mode-btn.active {
  background: #E0BE79;
  color: #071322;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

#mdEditorBar .ed-counter {
  font-size: 11.5px;
  color: #A0B0C0;
  background: rgba(255, 255, 255, 0.06);
  padding: 4px 10px;
  border-radius: 14px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

#mdEditorBar .ed-counter.has-changes {
  background: rgba(245, 158, 11, 0.2);
  color: #FBBF24;
  border: 1px solid rgba(245, 158, 11, 0.4);
  font-weight: 600;
}

#mdEditorBar .ed-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

#mdEditorBar .ed-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 6px;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  font-family: inherit;
}

#mdEditorBar .ed-btn-save {
  background: #E0BE79;
  color: #071322;
}

#mdEditorBar .ed-btn-save:hover:not(:disabled) {
  background: #E8CA8C;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(224, 190, 121, 0.3);
}

#mdEditorBar .ed-btn-save:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

#mdEditorBar .ed-btn-discard {
  background: rgba(255, 255, 255, 0.08);
  color: #C5D1DF;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

#mdEditorBar .ed-btn-discard:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #F87171;
  border-color: rgba(239, 68, 68, 0.3);
}

#mdEditorBar .ed-btn-exit {
  background: transparent;
  color: #8E9FAA;
  border: 1px solid transparent;
}

#mdEditorBar .ed-btn-exit:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.06);
}

/* Links e elementos no modo de edição */
body.md-editor-active a {
  cursor: text !important;
}

body.md-editor-active #mdEditorBar a,
body.md-editor-active #mdEditorBar button,
body.md-editor-active button.ed-btn {
  cursor: pointer !important;
}

/* Efeito de Destaque nos Elementos Editáveis */
body.md-editor-active [data-edit-key] {
  position: relative;
  transition: outline 0.15s ease, background-color 0.15s ease;
  cursor: text !important;
}

body.md-editor-active [data-edit-key]:hover {
  outline: 1.5px dashed rgba(224, 190, 121, 0.75) !important;
  outline-offset: 3px;
  background-color: rgba(224, 190, 121, 0.04);
}

body.md-editor-active [data-edit-key]:focus {
  outline: 2px solid #E0BE79 !important;
  outline-offset: 4px;
  background-color: rgba(224, 190, 121, 0.08);
}

/* Elemento com alteração não salva */
body.md-editor-active [data-edit-key].md-edited {
  outline: 2px solid #F59E0B !important;
  outline-offset: 3px;
  background-color: rgba(245, 158, 11, 0.08);
}

/* Tag flutuante com nome do campo ao focar/hover */
body.md-editor-active [data-edit-key]:hover::after {
  content: attr(data-edit-label);
  position: absolute;
  top: -22px;
  left: 0;
  background: #071322;
  color: #E0BE79;
  border: 1px solid rgba(224, 190, 121, 0.4);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 3px;
  white-space: nowrap;
  pointer-events: none;
  z-index: 999998;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

/* Modo Navegação no Editor: reativa links nativos e desativa realces */
body.md-nav-mode a {
  cursor: pointer !important;
}

body.md-nav-mode [data-edit-key] {
  cursor: inherit !important;
}

body.md-nav-mode [data-edit-key]:hover {
  outline: none !important;
  background-color: transparent !important;
}

body.md-nav-mode [data-edit-key]:hover::after {
  display: none !important;
}

body.md-nav-mode .md-img-edit-badge {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

body.md-nav-mode .door:hover .md-img-edit-badge,
body.md-nav-mode .mg-service-card:hover .md-img-edit-badge,
body.md-nav-mode .mg-service-thumb:hover .md-img-edit-badge,
body.md-nav-mode .mg-rosilda-photo:hover .md-img-edit-badge,
body.md-nav-mode .tms-card:hover .md-img-edit-badge,
body.md-nav-mode .tms-card-thumb:hover .md-img-edit-badge,
body.md-nav-mode .tms-cobertura-visual:hover .md-img-edit-badge,
body.md-nav-mode .mg-hero:hover .md-img-edit-badge.is-hero-badge,
body.md-nav-mode .rm-hero:hover .md-img-edit-badge.is-hero-badge,
body.md-nav-mode .tms-hero:hover .md-img-edit-badge.is-hero-badge,
body.md-nav-mode .fat-hero:hover .md-img-edit-badge.is-hero-badge,
body.md-nav-mode .at-hero--hub:hover .md-img-edit-badge.is-hero-badge {
  opacity: 1;
  pointer-events: auto !important;
}

/* Banner de Orientação da Galeria no Modo de Edição */
.ed-gallery-admin-banner {
  display: none;
}

body.md-editor-active .ed-gallery-admin-banner {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: linear-gradient(135deg, #09192C 0%, #06111E 100%);
  border: 1.5px solid rgba(224, 190, 121, 0.65);
  border-radius: 12px;
  padding: 18px 24px;
  margin: 0 auto 28px auto;
  max-width: 900px;
  position: relative;
  z-index: 30;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(224, 190, 121, 0.25);
}

.ed-gal-banner-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
}

.ed-gal-banner-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(224, 190, 121, 0.15);
  border: 1.5px solid rgba(224, 190, 121, 0.45);
  color: #E0BE79;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(224, 190, 121, 0.2);
}

.ed-gal-banner-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ed-gal-banner-title {
  color: #FFFFFF;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.ed-gal-banner-desc {
  color: #A0B2C6;
  font-size: 12.5px;
  line-height: 1.45;
  margin: 0;
}

.ed-gal-banner-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #E0BE79;
  color: #071322 !important;
  font-size: 12.5px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer !important;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(224, 190, 121, 0.3);
  position: relative;
  z-index: 35;
}

.ed-gal-banner-btn:hover {
  background: #E8CA8C;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(224, 190, 121, 0.45);
}

/* Badge Flutuante de Bloqueio sobre a Grelha */
.ed-gallery-lock-badge-wrap {
  display: none;
}

body.md-editor-active .ed-gallery-lock-badge-wrap {
  display: flex !important;
  justify-content: center;
  align-items: center;
  margin: -10px auto 26px auto;
  position: relative;
  z-index: 25;
  pointer-events: none;
}

.ed-gallery-lock-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(7, 19, 34, 0.95);
  border: 1.5px solid rgba(224, 190, 121, 0.6);
  border-radius: 999px;
  padding: 8px 20px;
  color: #E0BE79;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.ed-gallery-lock-pill svg {
  color: #E0BE79;
  flex-shrink: 0;
}

/* Efeito Embaçado e Bloqueado para os Filtros e Grelha de Galeria */
body.md-editor-active .mg-gal-filters,
body.md-editor-active .gal-filters,
body.md-editor-active .mg-gal-grid,
body.md-editor-active .gal-grid {
  filter: blur(5px) grayscale(40%) contrast(0.85) brightness(0.65) !important;
  opacity: 0.35 !important;
  pointer-events: none !important;
  user-select: none !important;
  cursor: not-allowed !important;
  transition: all 0.3s ease;
}

@media (max-width: 768px) {
  body.md-editor-active .ed-gallery-admin-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 16px;
    gap: 14px;
  }
  .ed-gal-banner-btn {
    width: 100%;
    justify-content: center;
  }
}

/* Notificação Toast */
.md-editor-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #09182A;
  color: #FFFFFF;
  border: 1px solid #10B981;
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
  z-index: 1000000;
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.md-editor-toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* Botão no rodapé: oculto por padrão para visitantes, só exibido para administradores logados */
.md-editor-trigger-btn {
  display: none;
  align-items: center;
  gap: 6px;
  background: rgba(224, 190, 121, 0.12);
  border: 1px solid rgba(224, 190, 121, 0.25);
  color: #E0BE79;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  margin-left: 12px;
}

.md-editor-trigger-btn.is-authenticated {
  display: inline-flex;
}

.md-editor-trigger-btn:hover {
  background: #E0BE79;
  color: #071322;
}

/* ============================================================
   BADGE DE EDIÇÃO DE IMAGEM & MODAL DE UPLOAD
   ============================================================ */
body.md-editor-active .door,
body.md-editor-active .mg-service-thumb,
body.md-editor-active .mg-gal-thumb,
body.md-editor-active .mg-rosilda-photo,
body.md-editor-active .tms-card-thumb,
body.md-editor-active .tms-cobertura-visual {
  position: relative;
}

/* Protege os fundos dos Heroes para se manterem absolutos e não quebrarem o layout */
body.md-editor-active .mg-hero-bg,
body.md-editor-active .rm-hero-bg,
body.md-editor-active .tms-hero-bg,
body.md-editor-active .fat-hero-bg,
body.md-editor-active .tms-service-hero-bg {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 1 !important;
  pointer-events: none !important;
}

body.md-editor-active .mg-hero-bg img,
body.md-editor-active .rm-hero-bg img,
body.md-editor-active .tms-hero-bg img,
body.md-editor-active .fat-hero-bg img,
body.md-editor-active .tms-service-hero-bg img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  pointer-events: none !important;
}

body.md-editor-active .mg-hero-wrap,
body.md-editor-active .rm-hero .wrap,
body.md-editor-active .tms-hero .wrap,
body.md-editor-active .fat-hero .wrap {
  position: relative !important;
  z-index: 3 !important;
}

body.md-editor-active .mg-service-thumb .md-img-edit-badge,
body.md-editor-active .mg-gal-thumb .md-img-edit-badge,
body.md-editor-active .tms-card-thumb .md-img-edit-badge,
body.md-editor-active .tms-cobertura-visual .md-img-edit-badge {
  top: 8px;
  left: 8px;
  right: 8px;
  padding: 6px 10px;
}

/* Badge flutuante sobre a imagem do card */
body.md-editor-active .md-img-edit-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  background: rgba(7, 19, 34, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1.5px solid rgba(224, 190, 121, 0.65);
  border-radius: 8px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 10;
  cursor: pointer !important;
  color: #FFFFFF;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.65);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
}

body.md-editor-active .door:hover .md-img-edit-badge,
body.md-editor-active .md-img-edit-badge:hover {
  background: #071322;
  border-color: #E0BE79;
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.85);
}

/* Badge especial para Imagem de Fundo de Hero */
body.md-editor-active .md-img-edit-badge.is-hero-badge {
  top: clamp(80px, 9vw, 96px);
  right: clamp(16px, 3vw, 28px);
  left: auto;
  bottom: auto;
  width: auto;
  min-width: 240px;
  max-width: 320px;
  z-index: 50 !important;
  pointer-events: auto !important;
  cursor: pointer !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.85);
  background: rgba(7, 19, 34, 0.95);
  border: 1.5px solid #E0BE79;
}

body.md-editor-active .md-img-edit-badge svg {
  color: #E0BE79;
  flex-shrink: 0;
}

body.md-editor-active .md-img-badge-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: left;
}

body.md-editor-active .md-img-badge-title {
  font-size: 12.5px;
  font-weight: 600;
  color: #FFFFFF;
  letter-spacing: -0.01em;
}

body.md-editor-active .md-img-badge-meta {
  font-size: 11px;
  color: #E0BE79;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, monospace;
  font-weight: 500;
}

body.md-editor-active .md-img-edit-badge.md-edited {
  border-color: #F59E0B;
  background: rgba(245, 158, 11, 0.15);
}

/* Modal de Edição de Imagem */
.md-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 11, 20, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.md-modal-backdrop[hidden] {
  display: none !important;
}

.md-modal-card {
  background: #071322;
  border: 1px solid rgba(224, 190, 121, 0.35);
  border-radius: 12px;
  width: 100%;
  max-width: 540px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #FFFFFF;
  animation: mdModalFadeIn 0.25s ease-out;
}

@keyframes mdModalFadeIn {
  from { opacity: 0; transform: scale(0.96) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.md-modal-header {
  padding: 20px 24px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.md-modal-title-group .md-modal-eyebrow {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #E0BE79;
  font-weight: 600;
  display: block;
  margin-bottom: 4px;
}

.md-modal-title-group h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  color: #FFFFFF;
}

.md-modal-close {
  background: transparent;
  border: none;
  color: #8A9AA8;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  transition: color 0.15s ease;
}

.md-modal-close:hover {
  color: #FFFFFF;
}

.md-modal-body {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.md-size-guidance {
  background: rgba(224, 190, 121, 0.08);
  border: 1px solid rgba(224, 190, 121, 0.25);
  border-radius: 8px;
  padding: 12px 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.md-size-guidance svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.md-size-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.md-size-info strong {
  font-size: 12.5px;
  color: #E0BE79;
  font-weight: 600;
}

.md-size-info small {
  font-size: 11.5px;
  color: #A0B0C0;
  line-height: 1.4;
}

.md-img-preview-container {
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.45);
  border: 1px dashed rgba(224, 190, 121, 0.25);
  border-radius: 8px;
  padding: 16px;
  min-height: 180px;
}

.md-preview-wrapper {
  max-width: 220px;
  max-height: 220px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(224, 190, 121, 0.4);
}

.md-preview-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.md-upload-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.md-file-btn {
  background: rgba(224, 190, 121, 0.15);
  border: 1px solid rgba(224, 190, 121, 0.45);
  color: #E0BE79;
  padding: 12px 18px;
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.md-file-btn:hover {
  background: #E0BE79;
  color: #071322;
}

.md-or-divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: #6A7A8A;
  font-size: 11px;
}

.md-or-divider::before, .md-or-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.md-or-divider span {
  padding: 0 10px;
}

.md-input-url {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  padding: 10px 14px;
  color: #FFFFFF;
  font-size: 12.5px;
  outline: none;
  transition: border-color 0.2s ease;
}

.md-input-url:focus {
  border-color: #E0BE79;
}

.md-modal-footer {
  padding: 16px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  background: rgba(0, 0, 0, 0.25);
}

/* ========================================================
   ATALHOS PARA EDIÇÃO DE PÁGINAS INTERNAS (REMODELAÇÕES & SERRALHARIA)
   ======================================================== */
.ed-card-page-btn {
  display: none !important;
}

body.md-editor-active .ed-card-page-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
  padding: 8px 14px;
  background: rgba(224, 190, 121, 0.12);
  border: 1px solid rgba(224, 190, 121, 0.5);
  border-radius: 6px;
  color: #E0BE79 !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer !important;
  transition: all 0.2s ease;
  width: 100%;
  box-sizing: border-box;
}

body.md-editor-active .ed-card-page-btn:hover {
  background: #E0BE79;
  color: #071322 !important;
  border-color: #E0BE79;
  transform: translateY(-1px);
}

/* Posicionamento relativo para os containers de imagem */
body.md-editor-active .thumb-box,
body.md-editor-active .service-hero-visual,
body.md-editor-active .photo-item,
body.md-editor-active .rm-card,
body.md-editor-active .tms-service-hero-visual,
body.md-editor-active .tms-gallery-item {
  position: relative !important;
}


