/* ByeByeViajes additions on top of the template (style.css). */

/* Privacy tick box under every form */
.privacy-consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 12px 0 16px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--paragraph-color);
  cursor: pointer;
  text-align: left;
}
.privacy-consent input {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  flex: none;
  accent-color: var(--main-color-one);
}
.privacy-consent a {
  color: var(--main-color-one);
  text-decoration: underline;
}

/* A Google map waits for a click (no Google cookies before it) */
.map-consent {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 300px;
  padding: 24px;
  text-align: center;
  background: #f3f5f8;
  border-radius: 6px;
}
.map-consent p {
  margin: 0;
  max-width: 340px;
}
.service-location-map .map-consent {
  min-height: 300px;
}

/* Legal pages */
.legal-page h2 {
  font-size: 24px;
  margin: 32px 0 12px;
}
.legal-page h2:first-child {
  margin-top: 0;
}
.legal-page ul {
  padding-left: 20px;
}
.legal-page li {
  margin-bottom: 6px;
}
.legal-page a {
  color: var(--main-color-one);
}

/* Footer */
.footer-area .footer-legal-links {
  margin-top: 18px;
}
.footer-area .footer-agency-code {
  color: rgba(255, 255, 255, 0.75);
  margin-top: 16px;
  padding-bottom: 48px;
}
.footer-area a[href^='mailto:'],
.footer-area a[href^='tel:'] {
  color: inherit;
}

/* No automatic hyphenation: it broke the email address ("byebyeviajes.-com") and short lines. */
p {
  -webkit-hyphens: manual;
  hyphens: manual;
  overflow-wrap: break-word;
}
.footer-area .widget-contact span,
.contact-info span {
  overflow-wrap: normal;
}

/* Partner logos: a tidy grid of same-height boxes */
.footer-partners {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px 16px;
  margin: 6px 0 24px;
  padding: 0;
  list-style: none;
}
.footer-partners li {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 52px;
}
.footer-partners li a,
.footer-partners li span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  transition: opacity 0.3s ease;
}
.footer-partners li a:hover {
  opacity: 0.7;
}
.footer-partners img {
  width: auto !important;
  height: auto !important;
  max-width: 100%;
  max-height: 52px;
  object-fit: contain;
}

/* Trip photo gallery keeps the photos' landscape shape on every screen
   (the fixed 750px height made a tall, cropped strip on phones). */
.destinations-details-main-slider .d-details-main-slider-item img {
  width: 100%;
  height: auto;
  aspect-ratio: 1350 / 750;
  object-fit: cover;
}
@media (max-width: 991px) {
  .destinations-details-main-slider-controls .slider-nav {
    margin-bottom: 14px;
  }
}

/* Contact page: on phones the map sits above the address card, with a gap */
@media (max-width: 991px) {
  .contact-info-area .map-consent,
  .contact-info-area iframe {
    margin-bottom: 24px;
  }
}
.map-consent p {
  line-height: 1.6;
}

/* Photos inside trip, experience and blog texts */
.content-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}
.notion-asset-wrapper {
  margin: 1.25rem 0;
}

/* Phones: form fields at 16px, or iPhone Safari zooms the page in when one is tapped */
@media (max-width: 991px) {
  input:not([type='checkbox']):not([type='radio']),
  textarea,
  select {
    font-size: 16px !important;
  }
}

/* Quote box inside trip and blog texts: space around it; on phones the quote mark sits whole inside the box */
.tp-blockquote {
  margin: 1.25rem 0 !important;
}
@media (max-width: 767px) {
  .tp-blockquote {
    padding-top: 52px !important;
  }
  .tp-blockquote:after {
    left: 22px;
    top: 12px;
    font-size: 32px;
    z-index: 1;
    opacity: 1;
  }
}

/* Trip and experience pages up to 1280px (where the template drops its -70px overlap): the gallery starts 30px under the banner, not 120px below it */
@media (max-width: 1280px) {
  .tour-details-area.mg-top--70,
  .destinations-details-page.mg-top--70 {
    margin-top: 30px !important;
  }
}
