/* Forever Peru Test — integrated recovery v4.
 * Scoped to tour content; never changes stored Gutenberg blocks or global menus.
 * The original compiled Tailwind bundle lacks the typography plugin's .prose rules.
 */
.fpt-tour-rich-content {
  color: #475569;
  font-family: "Montserrat", ui-sans-serif, system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.85;
  overflow-wrap: anywhere;
}
.fpt-tour-rich-content > :first-child { margin-top: 0; }
.fpt-tour-rich-content > :last-child { margin-bottom: 0; }
.fpt-tour-rich-content :where(p) { margin: 0 0 1.35em; }
.fpt-tour-rich-content :where(h1,h2,h3,h4,h5,h6) {
  color: #1e293b;
  font-family: "Montserrat", ui-sans-serif, system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.35;
  text-wrap: pretty;
  margin-top: 1.6em;
  margin-bottom: .65em;
}
.fpt-tour-rich-content :where(h1) { font-size: clamp(1.8rem, 3vw, 2.3rem); }
.fpt-tour-rich-content :where(h2) { font-size: clamp(1.5rem, 2.6vw, 1.95rem); }
.fpt-tour-rich-content :where(h3) { font-size: 1.3rem; }
.fpt-tour-rich-content :where(h4) { font-size: 1.12rem; }
.fpt-tour-rich-content :where(strong,b) { color: #334155; font-weight: 700; }
.fpt-tour-rich-content :where(a) { color: #2563eb; text-decoration: underline; text-underline-offset: 2px; }
.fpt-tour-rich-content :where(a:hover,a:focus-visible) { color: #1d4ed8; }
.fpt-tour-rich-content :where(ul,ol) { margin: 1.05em 0 1.4em; padding-left: 1.6em; }
.fpt-tour-rich-content :where(ul) { list-style: disc outside; }
.fpt-tour-rich-content :where(ol) { list-style: decimal outside; }
.fpt-tour-rich-content :where(li) { display: list-item; margin: .38em 0; padding-left: .2em; }
.fpt-tour-rich-content :where(li > ul,li > ol) { margin: .4em 0; }
.fpt-tour-rich-content :where(blockquote,.wp-block-quote) {
  margin: 1.7em 0; padding: .85em 1.4em;
  border-left: 4px solid #b45309;
  background: #faf7f2; border-radius: 0 .65rem .65rem 0;
  font-style: italic;
}
.fpt-tour-rich-content :where(img,video,iframe) { max-width: 100%; height: auto; }
.fpt-tour-rich-content :where(figure,.wp-block-image,.wp-block-gallery) { margin: 1.5em 0; }
.fpt-tour-rich-content :where(figcaption,.wp-element-caption) { text-align: center; font-size: .83rem; color: #78716c; margin-top: .5rem; }
.fpt-tour-rich-content :where(.wp-block-image img) { border-radius: .6rem; }
.fpt-tour-rich-content :where(.wp-block-gallery) { display: flex; flex-wrap: wrap; gap: 1rem; }
.fpt-tour-rich-content :where(.wp-block-gallery > figure) { flex: 1 1 160px; max-width: 100%; }
.fpt-tour-rich-content :where(.wp-block-separator,hr) { border: 0; border-top: 1px solid #e7e5e4; margin: 2rem 0; }
.fpt-tour-rich-content :where(table) { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: .92em; }
.fpt-tour-rich-content :where(th,td) { padding: .75em .85em; border: 1px solid #e7e5e4; text-align: left; }
.fpt-tour-rich-content :where(th) { color: #292524; background: #faf7f2; }
.fpt-tour-rich-content :where(.wp-block-columns) { display: flex; flex-wrap: wrap; gap: 1rem; margin: 1.5em 0; }
.fpt-tour-rich-content :where(.wp-block-column) { flex: 1 1 240px; min-width: 0; }
.fpt-tour-rich-content :where(.wp-block-buttons) { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.4rem 0; }
.fpt-tour-rich-content :where(.wp-block-button__link) {
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; background: #dc2626; border-radius: 999px;
  padding: .8rem 1.4rem; text-decoration: none; font-weight: 700;
}
.fpt-tour-rich-content :where(.has-text-align-center) { text-align: center; }
.fpt-tour-rich-content :where(.has-text-align-right) { text-align: right; }
.fpt-tour-rich-content :where(.has-text-align-left) { text-align: left; }
.fpt-tour-rich-content :where(.has-small-font-size) { font-size: .85em; }
.fpt-tour-rich-content :where(.has-large-font-size) { font-size: 1.3em; }
.fpt-tour-rich-content :where(.has-x-large-font-size) { font-size: 1.65em; }
.fpt-tour-rich-content :where(.wp-block-group) { max-width: 100%; }

/* Prevent tour navigation from crushing five tabs into unreadable columns. */
.tour-content-tabs .tab-navigation { max-width: 100%; }
.tour-content-tabs .tour-tab-strip {
  display: flex; flex-wrap: nowrap; gap: .4rem;
  overflow-x: auto; overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch; scrollbar-width: thin;
}
.tour-content-tabs .tour-tab-strip > .tab-btn {
  display: inline-flex; flex: 0 0 auto; min-width: max-content;
  align-items: center; padding: .75rem 1rem;
  white-space: nowrap; gap: .4rem;
}
.tour-content-tabs .tour-tab-strip > .tab-btn .tab-text { line-height: 1.25; }
.tour-content-tabs .tab-content-container { min-width: 0; }
.tour-content-tabs .tab-content-container > .tab-content:not(.active) { display: none; }
.tour-content-tabs .tab-content-container > .tab-content.active { display: block; }
@media (max-width: 650px) {
  .fpt-tour-rich-content { font-size: .97rem; line-height: 1.75; }
  .tour-content-tabs .tour-tab-strip > .tab-btn { padding: .7rem .85rem; }
}

/* FPT V5 LOCAL — CSS original de la web publica (respaldo SQL, custom_css post #449).
 * Restauracion del Overview sin tocar Gutenberg, tours, reservas ni base de datos.
 * Se aplica al final de V4 para priorizar estilos originales de #tab-overview.
 */

/* ==================================================
   FOREVER PERU TRAVEL
   TOUR OVERVIEW — PREMIUM STYLE
   ================================================== */

/* Contenido general del Overview */
#tab-overview .prose {
    font-size: 17px;
    line-height: 1.8;
    color: #374151;
    max-width: 760px;
}

/* Párrafos */
#tab-overview .prose p {
    margin-bottom: 22px;
    line-height: 1.8;
}

/* Primer texto / frase emocional */
#tab-overview .prose p:first-child {
    font-size: 21px;
    line-height: 1.5;
    font-weight: 700;
    color: #111827;
    margin-bottom: 18px;
}

/* Subtítulos H3 */
#tab-overview .prose h3 {
    position: relative;
    font-size: 24px;
    line-height: 1.3;
    font-weight: 700;
    color: #111827;
    margin-top: 38px;
    margin-bottom: 16px;
    padding-left: 18px;
}

/* Detalle dorado Forever Peru */
#tab-overview .prose h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    width: 4px;
    height: calc(100% - 8px);
    background: #d4af37;
    border-radius: 10px;
}

/* Negritas importantes */
#tab-overview .prose strong {
    color: #111827;
    font-weight: 700;
}

/* ==================================================
   FOREVER PERU TRAVEL
   BRAND SIGNATURE — FINAL
   ================================================== */

/* Cierre emocional */
#tab-overview .prose .forever-closing {
    margin-top: 40px;
    margin-bottom: 0;
    padding: 26px 28px 14px;

    background: linear-gradient(
        135deg,
        rgba(212, 175, 55, 0.10),
        rgba(212, 175, 55, 0.025)
    );

    border-top: 1px solid rgba(212, 175, 55, 0.35);
    border-left: 4px solid #d4af37;
    border-radius: 12px 12px 0 0;

    font-size: 18px;
    line-height: 1.75;
}

/* Lema oficial */
#tab-overview .prose .forever-signature {
    margin-top: 0;
    margin-bottom: 30px;
    padding: 6px 28px 24px;

    background: linear-gradient(
        135deg,
        rgba(212, 175, 55, 0.10),
        rgba(212, 175, 55, 0.025)
    );

    border-left: 4px solid #d4af37;
    border-radius: 0 0 12px 12px;

    font-size: 13px;
    line-height: 1.5;
    font-weight: 800;
    letter-spacing: 2px;
    color: #9a7615;
}

/* Mantener el lema dorado aunque esté en negrita */
#tab-overview .prose .forever-signature strong {
    color: #9a7615;
    font-weight: 800;
}

/* ==================================================
   MOBILE
   ================================================== */

@media (max-width: 768px) {

    #tab-overview .prose {
        font-size: 16px;
        line-height: 1.7;
    }

    #tab-overview .prose p:first-child {
        font-size: 19px;
    }

    #tab-overview .prose h3 {
        font-size: 21px;
        margin-top: 30px;
        padding-left: 14px;
    }

    #tab-overview .prose .forever-closing {
        margin-top: 32px;
        padding: 21px 20px 12px;
        font-size: 17px;
    }

    #tab-overview .prose .forever-signature {
        padding: 5px 20px 21px;
        font-size: 12px;
        letter-spacing: 1.4px;
    }
}

/* FPT V6 LOCAL — restauracion literal de los estilos del formulario del
 * respaldo publico, custom_css #449. No altera componentes ni datos.
 */
/* ==================================================
   FORMULARIO DE RESERVAS — TEXTO VISIBLE
   ================================================== */

.solid-booking-container select,
.solid-booking-container input[type="date"] {
    color: #1f2937 !important;
}

/* FOREVER PERU - LEGIBILIDAD DE RESERVAS */

/* Texto general de los tres pasos */
.solid-booking-container .booking-form-v2 {
    color: #1f2937;
}

/* Datos personales, fechas y selectores */
.solid-booking-container .booking-form-v2
.form-group input:not([type="checkbox"]),
.solid-booking-container .booking-form-v2
.form-group select,
.solid-booking-container .booking-form-v2
.form-group textarea {
    color: #1f2937 !important;
}

/* Resumen de precios y confirmación */
.solid-booking-container .booking-form-v2
.bg-gray-50 {
    color: #374151 !important;
}

/* Indicaciones dentro de los campos */
.solid-booking-container .booking-form-v2
input::placeholder,
.solid-booking-container .booking-form-v2
textarea::placeholder {
    color: #6b7280 !important;
    opacity: 1;
}
