/* Cactus Tours — boxed layout requested by the management (25/11/2026):
   light-blue page background (#679ACC, chosen 25/11), website centred in a white frame. Added on top of the original design.
   The original theme already limited the page to 1400px but left-aligned it on wide screens;
   the frame keeps that 1400px width (so the menu and sections look exactly as before) and centres it. */
html, body { background: #679ACC !important; }
body { max-width: none !important; margin: 0 !important; }
.ctm-site { max-width: 1400px; margin: 0 auto; background: #fff; box-shadow: 0 0 40px rgba(0, 0, 0, .25); overflow-x: clip; position: relative; }

/* Phone fixes (25/11/2026) — found by scanning all 72 pages at 375px */
@media (max-width: 767px) {
  /* wide tables (biodiversity list, climate tables) scroll sideways inside the page instead of being cut off */
  .elementor-widget-text-editor table, .elementor-widget-html table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .ctm-site td, .ctm-site th { font-size: 13px !important; line-height: 1.4; padding: 5px 4px !important; }
  /* embedded forms and videos never wider than the screen */
  .ctm-site iframe { max-width: 100% !important; }
  .ctm-site .elementor-widget-container:has(> iframe) { margin-left: 0 !important; margin-right: 0 !important; }
  /* WordPress galleries (lemur page) fit the screen */
  .ctm-site .gallery { max-width: 100%; display: flex; flex-wrap: wrap; }
  .ctm-site .gallery .gallery-item { max-width: 50% !important; width: 50% !important; box-sizing: border-box; padding: 4px; margin: 0 !important; }
  .ctm-site .gallery img { width: 100%; height: auto; }
}

/* Homepage title: two lines, moved slightly right and down (management 25/11/2026) */
@media (min-width: 768px) {
  .elementor-33 .elementor-element-bc55e6d > .elementor-widget-container { padding-right: 12px !important; margin-top: 60px !important; }
}
@media (max-width: 767px) {
  .elementor-33 .elementor-element-bc55e6d > .elementor-widget-container { margin-top: 24px !important; }
}

/* Tablet / iPad (769–1024px): the header menu button was pushed off the right edge (no menu visible).
   Banner shrinks a little, menu button gets its own 70px column. */
@media (min-width: 769px) and (max-width: 1024px) {
  .elementor-element-74b7142e { flex: 1 1 auto !important; width: auto !important; min-width: 0; }
  .elementor-element-177db177 { flex: 0 0 70px !important; width: 70px !important; justify-content: center; align-items: center; }
}
@media (min-width: 768px) and (max-width: 1024px) {
  /* homepage title keeps a margin from the right edge */
  .elementor-33 .elementor-element-bc55e6d > .elementor-widget-container { padding-right: 32px !important; }
  /* long e-mail addresses in narrow side lists wrap instead of running off the page */
  .ctm-site .elementor-icon-list-text { overflow-wrap: anywhere; }
  /* tour cards inside tabs (Our tours page) wrap to the available width */
  .ctm-site .e-n-tabs-content .e-con-inner { max-width: 100% !important; width: 100% !important; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)) !important; }
  .ctm-site .e-n-tabs-content .elementor-widget-call-to-action { width: auto !important; max-width: 100% !important; }
  /* WordPress galleries fit the column */
  .ctm-site .gallery, .ctm-site .gallery .gallery-item { max-width: 100% !important; }
  .ctm-site .gallery img { max-width: 100%; height: auto; }
}

/* Phone/tablet menu sub-lists (rebuilt from the desktop mega menu, 26/11/2026) */
.ctm-mobile-sub { display: flex; flex-direction: column; gap: 2px; margin: 2px 0 10px 18px; padding-left: 12px; border-left: 2px solid #9EC62E; }
.ctm-mobile-sub[hidden] { display: none; }
.ctm-mobile-sub a { font-family: Montserrat, sans-serif; font-size: 15px; line-height: 1.35; color: #7F441B; text-decoration: none; padding: 7px 4px; }
.ctm-mobile-sub a:hover, .ctm-mobile-sub a:focus { color: #FF5E05; }
[data-ctm-sub][aria-expanded="true"] { color: #FF5E05 !important; }

/* Enquiry page on phones: shorter lemur banner so the form starts on the first screen (26/11/2026) */
@media (max-width: 767px) {
  .elementor-15756 > .elementor-top-section:first-child { height: 200px !important; min-height: 0 !important; padding: 0 !important; background-position: center 30% !important; }
  .elementor-15756 > .elementor-top-section:first-child > .elementor-container { min-height: 0 !important; height: 100%; }
  .elementor-15756 > .elementor-top-section:first-child .elementor-widget-wrap { min-height: 0 !important; padding: 0 !important; }
}

/* ===== SEO discovery sections in the site design (26/11/2026) =====
   Wildlife tours, Tailor-made holidays, and the "Plan your Madagascar journey" blocks (Our tours, About us, …) */
.ctm-site .ctm-seo-section { max-width: 1140px; margin: 40px auto; padding: 32px 28px; background: #F6F4EF; border-top: 4px solid #9EC62E; border-radius: 0; color: #333; font-family: Montserrat, sans-serif; font-size: 15px; line-height: 1.75; }
.ctm-site .ctm-seo-section h1, .ctm-site .ctm-seo-section h2 { font-family: Montserrat, sans-serif; color: #7F441B; font-weight: 600; letter-spacing: .2px; }
.ctm-site .ctm-seo-section h2 { font-size: 26px; margin: 26px 0 14px; }
.ctm-site .ctm-seo-section h2:first-child { margin-top: 0; }
.ctm-site .ctm-seo-section h3 { font-family: Montserrat, sans-serif; font-size: 19px; font-weight: 600; margin: 14px 0 8px; text-align: center; }
.ctm-site .ctm-seo-section h3 a { color: #7F441B; text-decoration: none; }
.ctm-site .ctm-seo-section a { color: #7F441B; text-decoration: underline; text-decoration-color: #FF9901; text-underline-offset: 3px; }
.ctm-site .ctm-seo-section a:hover { color: #FF5E05; }
.ctm-site .ctm-seo-grid { gap: 22px; margin: 22px 0 28px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.ctm-site .ctm-seo-grid article.ctm-card { background: #fff; border: 1px solid #E4DCCB; border-radius: 6px; padding: 0 0 18px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 2px 10px rgba(127, 68, 27, .08); transition: box-shadow .2s, transform .2s; }
.ctm-site .ctm-seo-grid article.ctm-card:hover { box-shadow: 0 8px 22px rgba(127, 68, 27, .16); transform: translateY(-2px); }
.ctm-site .ctm-seo-grid article.ctm-card > p { padding: 0 18px; margin: 0 0 14px; text-align: center; font-size: 14px; line-height: 1.65; flex: 1; }
.ctm-site .ctm-seo-grid article.ctm-card > h3 { padding: 0 14px; }
.ctm-site .ctm-card-img { display: block; text-decoration: none !important; }
.ctm-site .ctm-card-img { background: #F6F4EF; }
.ctm-site .ctm-card-img img { display: block; width: 100%; height: auto; aspect-ratio: 330 / 180; object-fit: contain; }
.ctm-site .ctm-card-more { align-self: center; display: inline-block; padding: 7px 22px; border: 1px solid #7F441B; border-radius: 3px; color: #7F441B !important; text-decoration: none !important; font-size: 13px; font-weight: 500; }
.ctm-site .ctm-card-more:hover { background: #7F441B; color: #fff !important; }
.ctm-site .ctm-btn { display: inline-block; background: #9EC62E; color: #fff !important; text-decoration: none !important; text-transform: uppercase; font-weight: 600; font-size: 14px; letter-spacing: .5px; padding: 12px 28px; border-radius: 3px; }
.ctm-site .ctm-btn:hover { background: #7F441B; }
.ctm-site .ctm-seo-cta { text-align: center; margin: 28px 0 4px; }
/* banner + brown title strip on the two full pages, like the other information pages */
.ctm-site .ctm-banner { margin: 0; }
.ctm-site .ctm-banner-photo { display: block; width: 100%; height: auto; }
.ctm-site .ctm-banner-title { background: #7F441B; padding: 14px 24px; }
.ctm-site .ctm-banner-title h1 { margin: 0 auto; max-width: 1140px; color: #fff; font-family: Montserrat, sans-serif; font-size: 32px; font-weight: 600; line-height: 1.25; }
.ctm-site .ctm-seo-page { margin-top: 0; border-top: 0; background: #fff; }

@media (max-width: 767px) {
  .ctm-site .ctm-seo-section { margin: 24px 12px; padding: 24px 16px; }
  .ctm-site .ctm-seo-page { margin: 0 4px; }
  .ctm-site .ctm-banner-title h1 { font-size: 24px; }
  .ctm-site .ctm-seo-section h2 { font-size: 22px; }
}

/* Info cards (questions & answers) on Wildlife tours / Tailor-made holidays (26/11/2026) */
.ctm-site .ctm-info-band { background: #F6F4EF; margin: 34px -28px 8px; padding: 34px 28px; border-top: 4px solid #9EC62E; }
.ctm-site .ctm-info-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.ctm-site .ctm-info { display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 1px solid #E4DCCB; border-radius: 6px; padding: 22px 22px 18px; box-shadow: 0 2px 10px rgba(127, 68, 27, .06); }
.ctm-site .ctm-info-icon { flex: 0 0 52px; width: 52px; height: 52px; border-radius: 50%; background: #9EC62E; color: #fff; display: flex; align-items: center; justify-content: center; }
.ctm-site .ctm-info-icon svg { width: 28px; height: 28px; }
.ctm-site .ctm-info-body { min-width: 0; }
.ctm-site .ctm-seo-section .ctm-info h2 { font-size: 19px; line-height: 1.3; margin: 4px 0 10px; text-align: left; }
.ctm-site .ctm-info p { margin: 0 0 8px; font-size: 14.5px; line-height: 1.7; }
.ctm-site .ctm-seo-section .ctm-info a { font-weight: 600; text-decoration: none; color: #7F441B; border-bottom: 1px solid rgba(255, 153, 1, .55); }
.ctm-site .ctm-seo-section .ctm-info a:hover { color: #FF5E05; border-bottom-color: #FF5E05; }
.ctm-site .ctm-info:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (max-width: 900px) { .ctm-site .ctm-info-grid { grid-template-columns: 1fr; } }
@media (max-width: 767px) {
  .ctm-site .ctm-info-band { margin: 26px -16px 6px; padding: 24px 14px; }
  .ctm-site .ctm-info { padding: 18px 16px 14px; gap: 12px; }
  .ctm-site .ctm-info-icon { flex-basis: 42px; width: 42px; height: 42px; } .ctm-site .ctm-info-icon svg { width: 22px; height: 22px; }
}

/* Partnerships page: intro + icon cards + closing call-to-action (26/11/2026) */
.ctm-site .ctm-partnerships-copy .ctm-partner-intro { max-width: 900px; margin: 0 auto 10px; text-align: center; }
.ctm-site .ctm-partnerships-copy .ctm-partner-intro p { font-size: 16px; line-height: 1.8; }
.ctm-site .ctm-partner-band { margin: 26px 0; border-radius: 6px; }
.ctm-site .ctm-partnerships-copy .ctm-info { margin: 0; }
.ctm-site .ctm-partnerships-copy .ctm-info h2 { font-family: Montserrat, sans-serif; color: #7F441B; font-size: 19px; line-height: 1.3; font-weight: 600; margin: 4px 0 10px; text-align: left; }
.ctm-site .ctm-partnerships-copy .ctm-info p { font-size: 14.5px; line-height: 1.7; margin: 0 0 8px; }
.ctm-site .ctm-partnerships-copy .ctm-partner-cta { background: #7F441B; color: #fff; border-radius: 6px; padding: 30px 28px; text-align: center; margin: 10px 0 0; }
.ctm-site .ctm-partnerships-copy .ctm-partner-cta h2 { color: #fff !important; margin-top: 0; }
.ctm-site .ctm-partnerships-copy .ctm-partner-cta p, .ctm-site .ctm-partnerships-copy .ctm-partner-cta a:not(.ctm-partnerships-button) { color: #fff !important; }
.ctm-site .ctm-partnerships-copy .ctm-partner-cta .ctm-partnerships-actions a { display: inline-block; background: #9EC62E; color: #fff !important; padding: 12px 28px; border-radius: 3px; text-transform: uppercase; font-weight: 600; text-decoration: none; }
/* Homepage call-to-action card in "Plan your Madagascar journey" */
.ctm-site .ctm-info-cta { margin-top: 18px; border-left: 4px solid #9EC62E; }
.ctm-site .ctm-info-cta h3 { text-align: left !important; color: #7F441B; font-size: 20px; margin: 4px 0 8px; }
.ctm-site .ctm-info-cta .ctm-cta-row { margin-top: 12px; }
@media (max-width: 767px) { .ctm-site .ctm-info-cta { flex-direction: column; } }
.ctm-site .ctm-partnerships-copy .ctm-info-grid { grid-template-columns: 1fr; gap: 16px; }
.ctm-site .ctm-partnerships-copy .ctm-info-band { margin-left: 0; margin-right: 0; padding: 22px 16px; }
