* {
  box-sizing: border-box;
}

body {
  background: #ffffff;
  color: #363636;
  font-family: BlinkMacSystemFont, -apple-system, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  margin: 0;
}

.detail-header {
  align-items: center;
  background-color: #0A85C2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 76px;
}

.detail-header h1 {
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.125;
  margin: 1rem;
  padding: 0.25rem;
  text-align: center;
}

.detail-page {
  padding: 0 1rem 1rem;
}

.detail-columns {
  display: flex;
  gap: 1rem;
  padding: 1rem;
}

.detail-left {
  flex: 0 0 40%;
  margin-right: 1rem;
}

.detail-right {
  flex: 1 1 auto;
  min-width: 0;
}

.detail-box {
  background: #ffffff;
  border-radius: 6px;
  box-shadow: 0 0.5em 1em -0.125em rgba(10, 10, 10, 0.1), 0 0 0 1px rgba(10, 10, 10, 0.02);
  color: #4a4a4a;
  display: block;
  margin-bottom: 1rem;
  padding: 1.25rem;
}

.detail-promo {
  align-content: center;
  align-items: center;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.detail-promo a {
  color: #363636;
  text-align: center;
  text-decoration: none;
  width: 100%;
}

.detail-promo p {
  margin: 0 0 0.75rem;
}

.detail-promo img {
  display: block;
  margin: 0 auto;
  max-width: 32vw;
  width: 100%;
}

.detail-contact h2 {
  color: #363636;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.125;
  margin: 0;
  padding: 1rem 1rem 0;
}

.detail-contact form {
  padding: 1rem 0 0;
}

.detail-contact label {
  color: #363636;
  display: block;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.detail-contact input,
.detail-contact textarea {
  background: #ffffff;
  border: 1px solid #dbdbdb;
  border-radius: 4px;
  color: #363636;
  display: block;
  font: inherit;
  margin-top: 0.35rem;
  max-width: 100%;
  min-height: 2.5em;
  padding: calc(0.5em - 1px) calc(0.75em - 1px);
  width: 100%;
}

.detail-contact textarea {
  min-height: 120px;
  resize: vertical;
}

.detail-actions {
  display: flex;
  justify-content: flex-end;
}

.detail-actions button,
.detail-itinerary {
  background: transparent;
  border: 1px solid #0A85C2;
  border-radius: 4px;
  color: #0A85C2;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  gap: 0.5rem;
  padding: calc(0.5em - 1px) 1em;
  text-decoration: none;
}

.detail-actions button:hover,
.detail-itinerary:hover {
  background: #0A85C2;
  color: #ffffff;
}

.detail-actions button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.detail-message {
  border-radius: 4px;
  font-size: 0.875rem;
  margin: 1rem 0 0;
  padding: 0.75rem 1rem;
}

.detail-message[hidden] {
  display: none;
}

.detail-message.is-success {
  background: #E5F2FA;
  color: #0A85C2;
}

.detail-message.is-danger {
  background: #FCEEF2;
  color: #D4587A;
}

.detail-viewer {
  align-items: center;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 120px);
  padding: 0.75rem;
  position: relative;
}

.detail-viewer-toolbar {
  align-items: flex-start;
  display: flex;
  justify-content: center;
  min-height: 52px;
  position: relative;
  width: 100%;
}

.detail-pager {
  align-items: center;
  display: flex;
  gap: 0.5rem;
}

.detail-pager button {
  background: #ffffff;
  border: 1px solid #dbdbdb;
  border-radius: 4px;
  color: #363636;
  height: 2em;
  width: 2em;
}

.detail-pager span {
  background: #f5f5f5;
  border-radius: 4px;
  display: inline-flex;
  font-weight: 700;
  padding: 1rem;
}

.detail-toolbar-actions {
  align-items: center;
  display: flex;
  gap: 0.5rem;
  position: absolute;
  right: 0;
}

.detail-whatsapp {
  align-items: center;
  background: #25d366;
  border: 1px solid #25d366;
  border-radius: 4px;
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 600;
  gap: 0.5rem;
  padding: calc(0.5em - 1px) 1em;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.detail-whatsapp:hover {
  background: #1ebe5d;
  border-color: #1ebe5d;
  color: #ffffff;
}

.detail-whatsapp .fa {
  font-size: 1.1em;
}

.detail-itinerary {
  align-items: center;
  position: static;
}

.detail-viewer iframe {
  border: 0;
  flex: 1 1 auto;
  min-height: 780px;
  width: 100%;
}

.detail-pdf-container {
  flex: 1 1 auto;
  min-height: 780px;
  width: 100%;
  overflow-y: auto;
  background: #f5f5f5;
  display: flex;
  justify-content: center;
  padding: 10px 0;
}

.detail-pdf-container canvas {
  display: block;
  max-width: 100%;
  height: auto;
}

.detail-empty,
.detail-loading,
.detail-empty-page {
  color: #4a4a4a;
  font-weight: 700;
  padding: 2rem;
  text-align: center;
}

@media (max-width: 980px) {
  .detail-columns {
    flex-direction: column;
    padding: 0.75rem 0;
  }

  .detail-left {
    flex-basis: auto;
    margin-right: 0;
  }

  .detail-promo img {
    max-width: 100%;
  }

  .detail-viewer-toolbar {
    align-items: center;
    flex-direction: column;
    gap: 0.75rem;
  }

  .detail-toolbar-actions {
    position: static;
    flex-wrap: wrap;
    justify-content: center;
  }

  .detail-viewer iframe {
    min-height: 70vh;
  }

  .detail-pdf-container {
    min-height: 60vh;
  }
}

@media (max-width: 620px) {
  .detail-header h1 {
    font-size: 1.1rem;
  }

  .detail-page {
    padding: 0.5rem;
  }

  .detail-promo img {
    max-width: 100%;
  }

  .detail-pdf-container {
    min-height: 50vh;
    padding: 5px 0;
  }

  .detail-viewer-toolbar {
    padding: 0.5rem;
    gap: 0.5rem;
  }

  .detail-contact label {
    font-size: 0.85rem;
  }
}
