/*
 * Budget Travel Packages theme — the few rules the theme adds itself.
 * Everything else is the old stack's own CSS, copied unchanged.
 */

/* The [rank_math_breadcrumb] fallback (inc/documents.php). Under Rank Math's
   removal the page heroes printed the shortcode's literal text on one line;
   the trail takes exactly that line, so no hero changes height. */
.rank-math-breadcrumb p {
	margin: 0;
}

/* ==========================================================================
   One content column (client, 2026-10-26: "the tour looks good, so stretch
   the header container and all sections to match").

   The tour page's content runs edge to edge in a 1300px column. Elsewhere the
   Additional CSS rule "max-width: 1300px !important" on boxed sections and
   containers made 1300px the OUTER width, so every row's own padding or
   column gap was taken out of it: the header and the country pages sat 20px
   inside the column, classic sections 10px, the footer had no limit at all.

   Here each row may be 1300px PLUS its own padding/gap, so what is inside
   lands on the column. On screens narrower than the widened row nothing
   changes: the same padding is the screen gutter it always was.
   ========================================================================== */
:root {
	--btp-col: 1300px;
}

/* Containers: content box = the column. */
.e-con.e-parent.e-con-boxed {
	max-width: calc(var(--btp-col) + var(--padding-left, 0px) + var(--padding-right, 0px)) !important;
}

/* Classic sections: the columns' outer gap sits outside the column. */
.elementor-top-section.elementor-section-boxed > .elementor-container.elementor-column-gap-narrow   { max-width: calc(var(--btp-col) + 10px) !important; }
.elementor-top-section.elementor-section-boxed > .elementor-container.elementor-column-gap-default  { max-width: calc(var(--btp-col) + 20px) !important; }
.elementor-top-section.elementor-section-boxed > .elementor-container.elementor-column-gap-extended { max-width: calc(var(--btp-col) + 30px) !important; }
.elementor-top-section.elementor-section-boxed > .elementor-container.elementor-column-gap-wide     { max-width: calc(var(--btp-col) + 40px) !important; }
.elementor-top-section.elementor-section-boxed > .elementor-container.elementor-column-gap-wider    { max-width: calc(var(--btp-col) + 60px) !important; }
.elementor-top-section.elementor-section-boxed > .elementor-container.elementor-column-gap-widest   { max-width: calc(var(--btp-col) + 80px) !important; }

/* Header top bar: its text has 20px of inline padding. */
.elementor-1783 .elementor-element.elementor-element-cb24cd0 > .elementor-container {
	max-width: calc(var(--btp-col) + 40px) !important;
}

/* Footer: newsletter band (the purple box keeps 10px side margins) and the
   link columns (one 10px column gap) — both were full width. */
.elementor-1763 .elementor-element.elementor-element-8bbf90c > .elementor-container,
.elementor-1763 .elementor-element.elementor-element-3cead4e > .elementor-container {
	max-width: calc(var(--btp-col) + 20px);
	margin-left: auto;
	margin-right: auto;
}

/* Search results, archives and plain pages: Travel Agency floated #primary
   inside its own .container, which the theme-builder header replaced, so
   on desktop the content ran edge to edge (15px in on the left, 65px on the
   right). Its own tablet/phone rule (15px each side) stays as it was. */
@media (min-width: 1025px) {
	body > #primary.content-area,
	body > #secondary.widget-area {
		float: none;
		width: auto;
		max-width: calc(var(--btp-col) + 40px);
		margin-left: auto;
		margin-right: auto;
		padding-left: 20px;
		padding-right: 20px;
	}
}

/* --------------------------------------------------------------------------
   Sections the rules above can't read from their classes. Keyed by element
   id without the document id: the six continent pages (7003, 8777–8780,
   8785) and the three city pages (6977, 8086, 8087) are copies that share
   their ids. Measured with _tools/valign.mjs and _tools/vchain.mjs.
   -------------------------------------------------------------------------- */

/* The section's own box (a card or a tinted panel) is its edge: that box
   goes on the column, as it did before. */
.elementor .elementor-element.elementor-element-ecfd13b > .elementor-container,
.elementor .elementor-element.elementor-element-76cd854 > .elementor-container,
.elementor .elementor-element.elementor-element-8c1e6f4 > .elementor-container,
.elementor .elementor-element.elementor-element-55eac68 > .elementor-container,
.elementor .elementor-element.elementor-element-925d57c > .elementor-container,
.elementor .elementor-element.elementor-element-fb7c61e > .elementor-container,
.elementor .elementor-element.elementor-element-cee39e3 > .elementor-container,
.elementor .elementor-element.elementor-element-a695694 > .elementor-container {
	max-width: var(--btp-col) !important;
}

/* Text one gap deeper than its row — an inner section's columns, where the
   row itself has none. Every container in the section widens; the nested
   ones stop at their parent's width. */
.elementor .elementor-element.elementor-element-10565b6 .elementor-container,
.elementor .elementor-element.elementor-element-bdf8e75 .elementor-container,
.elementor .elementor-element.elementor-element-5936cb7 .elementor-container,
.elementor .elementor-element.elementor-element-edd4e40 .elementor-container,
.elementor .elementor-element.elementor-element-3062d72 .elementor-container,
.elementor .elementor-element.elementor-element-b5992f6 .elementor-container,
.elementor .elementor-element.elementor-element-fae7ba4 .elementor-container,
.elementor .elementor-element.elementor-element-5c43736 > .elementor-container,
.elementor .elementor-element.elementor-element-8ca5f31 > .elementor-container {
	max-width: calc(var(--btp-col) + 20px) !important;
}

/* Two gaps deeper (an inner section with its own padding, or a gap-less
   row holding a padded inner section). */
.elementor .elementor-element.elementor-element-a770dc5 .elementor-container,
.elementor .elementor-element.elementor-element-7aadaa2 .elementor-container,
.elementor .elementor-element.elementor-element-903af85 .elementor-container,
.elementor .elementor-element.elementor-element-87779f7 .elementor-container,
.elementor .elementor-element.elementor-element-aa4ebc1 .elementor-container,
.elementor .elementor-element.elementor-element-8422312 .elementor-container,
.elementor .elementor-element.elementor-element-40a7a28 .elementor-container {
	max-width: calc(var(--btp-col) + 40px) !important;
}

/* Three gaps deeper. */
.elementor .elementor-element.elementor-element-2b5cc75 .elementor-container {
	max-width: calc(var(--btp-col) + 60px) !important;
}

/* One side only, so only where the row is centred on the column. */
@media (min-width: 1340px) {
	/* Country/place and city heroes: the title block sits two gaps in,
	   the form or photo beside it already on the column. */
	.elementor .elementor-section.elementor-element.elementor-element-ecb3549,
	.elementor .elementor-section.elementor-element.elementor-element-bd5b9b0 {
		margin-left: -20px;
	}

	/* Legal: the text panel's 20px left padding pushed its row off centre. */
	.elementor .elementor-section.elementor-element.elementor-element-fae7ba4 {
		padding-left: 0;
	}

	/* City pages: the text column beside the photo had no right padding. */
	.elementor .elementor-element.elementor-element-a9f97fd > .elementor-widget-wrap.elementor-element-populated {
		padding-right: 10px;
	}

	/* Footer link columns: the band's 30px side padding left the widened row
	   too little room on 1340–1380px screens. */
	.elementor-1763 .elementor-section.elementor-element.elementor-element-3cead4e {
		padding-left: 0;
		padding-right: 0;
	}

	/* Contact: the message card sized to its form, 23px short of the column. */
	.elementor .elementor-element.elementor-element-55b75d2 {
		--padding-right: 0px;
	}

	.elementor .elementor-element.elementor-element-55b75d2 > .elementor-element.elementor-element-61741da {
		flex-grow: 1;
	}
}
