/* ===================================================
   Red Turística — Proveedor / Tour Operador
   Scope: /red-turistica/tours/*, /red-turistica/*/
   Prefijo: rt-
   =================================================== */

/* --- Cabecera de página --- */
.rt-header {
  padding-top: 48px;
}

.container.rt-header {
  max-width: 820px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.rt-title {
  font-family: "DM Sans Medium";
  font-weight: normal;
  font-size: clamp(22px, 3vw, 28px);
  color: var(--packo-header, #1f3f4b);
  margin: 0;
  line-height: 1.2;
}

.rt-subtitle {
  font-family: "DM Sans Regular";
  font-weight: normal;
  font-size: 15px;
  color: #6b7280;
  margin: 6px 0 0;
}

/* --- Ubicación --- */
.rt-location {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 12px 0 0;
  font-family: "DM Sans Regular";
  font-size: 15px;
  color: #374151;
}

/* --- Descripción --- */
.rt-description {
  font-size: 15px;
  line-height: 1.75;
  color: #374151;
  margin-top: 16px;
}

/* --- Layout: tarjeta + lista lado a lado --- */
.rt-layout {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  max-width: 800px;
  margin: 30px auto 40px;
  justify-content: center;
}

/* --- Tarjeta del proveedor --- */
.rt-card {
  flex: 0 0 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border: 1px solid #d1d5db;
  border-radius: 16px;
  padding: 20px;
  background: #fff;
}

.rt-card__logo {
  width: 52%;
  aspect-ratio: 1 / 1;
  border-radius: 999px;
  object-fit: cover;
  display: block;
  margin: 0 auto 16px;
}

.rt-card__name {
  font-family: "DM Sans Medium";
  font-weight: normal;
  font-size: 18px;
  line-height: 1.2;
  color: var(--packo-header, #1f3f4b);
  margin: 0 0 4px;
}

.rt-card__category {
  font-family: "DM Sans Regular";
  font-size: 14px;
  color: #6b7280;
  margin: 0 0 16px;
}

.rt-card__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  margin-bottom: 12px;
}

.rt-card__wa-btn,
.rt-card__call-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px 20px;
  color: #fff;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  border: none;
  cursor: pointer;
}

.rt-card__wa-btn { background: #25d366; }
.rt-card__wa-btn:hover { background: #1ebe5d; }

.rt-card__call-btn { background: var(--packo-header-bg, #2a5a84); }
.rt-card__call-btn:hover { opacity: .92; }

.rt-card__socials {
  display: flex;
  justify-content: space-evenly;
  flex-wrap: nowrap;
  margin-top: 8px;
  width: 100%;
}

.rt-card__socials a img {
  width: 26px;
  height: 26px;
  display: block;
  margin: 0;
}

/* --- Lista de características --- */
.rt-features {
  flex: 0 0 360px;
  align-self: center;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.rt-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: #374151;
  line-height: 1.4;
}

.rt-feature img {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}

/* --- Responsive --- */
@media (max-width: 640px) {
  .rt-layout {
    flex-direction: column;
    align-items: center;
  }

  .rt-card {
    flex: 0 0 auto;
    width: 100%;
    max-width: 360px;
  }

  .rt-features {
    flex: 0 0 auto;
    width: 100%;
  }
}

/* ===================================================
   Flyers del proveedor (hasta 5, estilo Experiencias) — 2026-10-22
   Los arma js/packo-tour-detail.js desde "flyers" de red-turistica.json.
   Prefijos propios: .rt-flyers*, .rt-flyer*, .rt-flyer-box* (no chocan con .rt-card ni .rt-pill)
   =================================================== */
.rt-flyers-wrap { margin-top: 34px; padding-bottom: 10px; }
.rt-flyers__title {
  margin: 0 0 16px;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--packo-header, #1f3f4b);
  font-family: "DM Sans SemiBold";
}
.rt-flyers {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}
.rt-flyer {
  overflow: hidden;
  border-radius: 12px;
  background: #e8edf2;
  box-shadow: 0 1px 2px rgba(31, 63, 75, .14);
}
.rt-flyer__open {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}
.rt-flyer__open img { display: block; width: 100%; height: auto; transition: transform .35s ease; }
.rt-flyer__open:hover img { transform: scale(1.03); }
.rt-flyer__open:focus-visible { outline: 3px solid var(--packo-primary, #2f9ec6); outline-offset: -3px; }
.rt-flyer__bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 10px;
  background: var(--packo-header-bg, #2a5a84);
  color: #fff;
  font-size: .78rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background .2s;
}
.rt-flyer__bar:hover { background: #224870; }
.rt-flyer__bar svg { flex-shrink: 0; }

@media (max-width: 1023px) { .rt-flyers { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .rt-flyers { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .rt-flyer__bar { padding: 11px 8px; font-size: .7rem; gap: 5px; }
}

/* Visor ampliado: el flyer completo con su botón de contacto debajo */
.rt-flyer-box {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: flex;
  flex-direction: column;
  background: rgba(10, 20, 30, .97);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.rt-flyer-box[hidden] { display: none; }
.rt-flyer-box__inner { width: 100%; margin: auto 0; }
.rt-flyer-box__inner img { display: block; width: 100%; height: auto; }
.rt-flyer-box__cta:empty { display: none; }
.rt-flyer-box__cta .rt-flyer__bar { padding: 15px 16px; gap: 9px; font-size: .95rem; background: #2f9ec6; }
.rt-flyer-box__cta .rt-flyer__bar:hover { background: #298aae; }
.rt-flyer-box__cta .rt-flyer__bar.is-wa { background: #25D366; }
.rt-flyer-box__cta .rt-flyer__bar.is-wa:hover { background: #1ebe5b; }
.rt-flyer-box__cta .rt-flyer__bar svg { width: 20px; height: 20px; fill: #fff; }
.rt-flyer-box__close {
  position: fixed;
  top: max(10px, env(safe-area-inset-top));
  right: 10px;
  z-index: 1;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 50%;
  background: rgba(0, 0, 0, .6);
  color: #fff;
  cursor: pointer;
}
.rt-flyer-box__close:hover,
.rt-flyer-box__close:focus-visible { background: rgba(0, 0, 0, .85); outline: 2px solid #2f9ec6; outline-offset: 2px; }
@media (min-width: 769px) {
  .rt-flyer-box__inner { width: fit-content; max-width: 100%; margin: auto; }
  .rt-flyer-box__inner img { width: auto; max-width: 100%; max-height: calc(100vh - 80px); margin: 0 auto; }
}
