/* A Thousand Sunrises — base styles for booking components.
   Themes restyle through these variables; they rarely need to override selectors. */
:root {
	--ats-primary: #EE344E;
	--ats-primary-strong: #D42A43;
	--ats-on-primary: #fff;
	--ats-secondary: #AFBA00;
	--ats-sun: #F5C712;
	--ats-ink: #222;
	--ats-muted: #5c5c5c;
	--ats-surface: #fff;
	--ats-field: #fff;
	--ats-line: #dcdcdc;
	--ats-radius: 12px;
	--ats-radius-btn: 999px;
	--ats-font: inherit;
	--ats-wa: #1fa855;
	--ats-shadow: 0 24px 60px -20px rgba(0, 0, 0, .35);
	--ats-mbar-h: 64px;
}

.ats-sr, .ats-hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ats-icon { flex: none; }

/* Buttons */
.ats-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: .75em 1.4em; border: 2px solid transparent; border-radius: var(--ats-radius-btn); font: 600 1rem/1.1 var(--ats-font); text-decoration: none; cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .2s; }
.ats-btn:active { transform: translateY(1px); }
.ats-btn--primary { background: var(--ats-primary); color: var(--ats-on-primary); }
.ats-btn--primary:hover, .ats-btn--primary:focus-visible { background: var(--ats-primary-strong); color: var(--ats-on-primary); }
.ats-btn--ghost { background: transparent; color: var(--ats-ink); border-color: currentColor; }
.ats-btn--whatsapp { background: var(--ats-wa); color: #fff; }
.ats-btn--whatsapp:hover { background: #178a45; color: #fff; }
.ats-btn--block { width: 100%; }
.ats-btn[disabled] { opacity: .6; cursor: progress; }
.ats-btn:focus-visible, .ats-form :focus-visible { outline: 3px solid var(--ats-sun); outline-offset: 2px; }

/* Forms */
.ats-form { font-family: var(--ats-font); color: var(--ats-ink); }
.ats-form__title { font-weight: 700; font-size: 1.15rem; margin: 0 0 .75rem; }
.ats-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem 1rem; margin-bottom: 1rem; }
.ats-field { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.ats-field.ats-span-2, .ats-form--compact .ats-field:not(.ats-half) { grid-column: 1 / -1; }
.ats-form--compact .ats-grid { grid-template-columns: 1fr 1fr; }
.ats-field label { font-size: .8rem; font-weight: 600; letter-spacing: .01em; color: var(--ats-muted); }
.ats-form input, .ats-form select, .ats-form textarea, .ats-tripbar input, .ats-tripbar select {
	width: 100%; min-height: 46px; padding: .6rem .8rem; border: 1px solid var(--ats-line); border-radius: calc(var(--ats-radius) * .6);
	background: var(--ats-field); color: var(--ats-ink); font: 400 1rem/1.3 var(--ats-font); box-sizing: border-box; appearance: none;
}
.ats-form select, .ats-tripbar select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='2' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .8rem center; padding-right: 2.2rem; }
.ats-form textarea { min-height: 90px; resize: vertical; }
.ats-form input:focus, .ats-form select:focus, .ats-form textarea:focus { border-color: var(--ats-primary); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--ats-primary) 22%, transparent); }
.ats-form__note { margin: .75rem 0 0; font-size: .82rem; color: var(--ats-muted); text-align: center; }
.ats-form__note a { color: inherit; font-weight: 600; }
.ats-form__status:not(:empty) { margin-top: .75rem; font-size: .9rem; }
.ats-form__status.is-error, .ats-error { color: #b3261e; }
.ats-success { padding: 1.25rem; border-radius: var(--ats-radius); background: color-mix(in srgb, var(--ats-secondary) 16%, var(--ats-surface)); color: var(--ats-ink); }
.ats-success__title { font-weight: 700; font-size: 1.2rem; margin: 0 0 .4rem; }

/* Steps */
.ats-steps__nav { display: flex; gap: .5rem; list-style: none; margin: 0 0 1rem; padding: 0; counter-reset: s; }
.ats-steps__nav li { flex: 1; display: flex; align-items: center; gap: .5rem; font-size: .8rem; font-weight: 600; color: var(--ats-muted); padding-bottom: .5rem; border-bottom: 3px solid var(--ats-line); }
.ats-steps__nav span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--ats-line); color: var(--ats-ink); font-size: .75rem; }
.ats-steps__nav li.is-current, .ats-steps__nav li.is-done { color: var(--ats-ink); border-color: var(--ats-primary); }
.ats-steps__nav li.is-current span, .ats-steps__nav li.is-done span { background: var(--ats-primary); color: var(--ats-on-primary); }
.ats-step { border: 0; margin: 0; padding: 0; min-width: 0; }
.ats-form--steps:not(.is-stepped) .ats-steps__nav, .ats-form--steps:not(.is-stepped) .ats-step__actions button[type=button] { display: none; }
.ats-step__actions { display: flex; gap: .75rem; justify-content: flex-end; }
.ats-step__actions .ats-btn--primary { flex: 1; }

/* Trip bar */
.ats-tripbar { display: flex; align-items: stretch; gap: .5rem; padding: .5rem; background: var(--ats-surface); border-radius: calc(var(--ats-radius) * 1.4); box-shadow: var(--ats-shadow); font-family: var(--ats-font); color: var(--ats-ink); }
.ats-tripbar__cell { flex: 1.4; display: flex; flex-direction: column; justify-content: center; gap: .15rem; padding: .35rem .9rem; border-radius: var(--ats-radius); min-width: 0; }
.ats-tripbar__cell + .ats-tripbar__cell { border-left: 1px solid var(--ats-line); }
.ats-tripbar__cell--sm { flex: .6; }
.ats-tripbar__cell span { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ats-muted); }
.ats-tripbar input, .ats-tripbar select { border: 0; padding: 0 2rem 0 0; min-height: 30px; background-color: transparent; font-weight: 600; }
.ats-tripbar input:focus, .ats-tripbar select:focus { outline: none; }
.ats-tripbar__cell:focus-within { background: color-mix(in srgb, var(--ats-primary) 7%, transparent); }
.ats-tripbar .ats-btn { min-height: 56px; padding-inline: 1.8rem; }
@media (max-width: 760px) {
	.ats-tripbar { flex-direction: column; }
	.ats-tripbar__cell + .ats-tripbar__cell { border-left: 0; border-top: 1px solid var(--ats-line); }
}

/* Contact links */
.ats-contact { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.ats-contact--stack { flex-direction: column; }
.ats-contact__link { display: inline-flex; align-items: center; gap: .5rem; color: inherit; text-decoration: none; font-weight: 500; }
.ats-contact__link:hover span { text-decoration: underline; }

/* CTA band (themes restyle heavily) */
.ats-band { padding: clamp(2.5rem, 6vw, 4.5rem) 1.25rem; background: var(--ats-ink); color: #fff; }
.ats-band__inner { max-width: 1200px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 3rem; }
.ats-band__copy { flex: 1 1 420px; }
.ats-band__eyebrow { margin: 0 0 .5rem; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ats-sun); }
.ats-band__title { margin: 0 0 .5rem; font-size: clamp(1.6rem, 3.2vw, 2.4rem); line-height: 1.15; color: inherit; }
.ats-band__copy p:last-child { margin: 0; opacity: .85; max-width: 52ch; }
.ats-band__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; }
.ats-band__call { display: inline-flex; align-items: center; gap: .5rem; color: inherit; font-weight: 600; text-decoration: none; }

/* Modal */
.ats-modal { width: min(680px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: calc(var(--ats-radius) * 1.5); background: var(--ats-surface); color: var(--ats-ink); box-shadow: var(--ats-shadow); overflow: auto; }
.ats-modal::backdrop { background: rgba(10, 10, 10, .62); backdrop-filter: blur(4px); }
.ats-modal[open] { animation: ats-pop .22s ease-out; }
@keyframes ats-pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.ats-modal__panel { position: relative; padding: clamp(1.25rem, 4vw, 2rem); }
.ats-modal__close { position: absolute; top: .75rem; right: .75rem; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: color-mix(in srgb, var(--ats-ink) 8%, transparent); color: var(--ats-ink); cursor: pointer; }
.ats-modal__head { margin-bottom: 1rem; padding-right: 2.5rem; }
.ats-modal__eyebrow { margin: 0 0 .25rem; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ats-primary-strong); }
.ats-modal__title { margin: 0; font-size: clamp(1.35rem, 3vw, 1.75rem); line-height: 1.2; color: inherit; }
.ats-modal__tour { margin: .5rem 0 0; display: inline-block; padding: .3rem .7rem; border-radius: 999px; background: color-mix(in srgb, var(--ats-secondary) 22%, transparent); font-size: .85rem; font-weight: 600; }
.ats-modal-open { overflow: hidden; }
@media (max-width: 560px) { .ats-grid { grid-template-columns: 1fr 1fr; } .ats-field:not(.ats-half) { grid-column: 1 / -1; } }

/* Floating WhatsApp */
.ats-float-wa { position: fixed; right: 20px; bottom: 20px; z-index: 90; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: var(--ats-wa); color: #fff; box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .45); transition: transform .2s; }
.ats-float-wa:hover { transform: scale(1.06); color: #fff; }
.ats-float-wa .ats-icon { width: 30px; height: 30px; }

/* Mobile action bar */
.ats-mbar { display: none; }
@media (max-width: 860px) {
	.ats-mbar { position: fixed; inset: auto 0 0 0; z-index: 95; display: grid; grid-template-columns: 1fr 1fr 2fr; gap: 6px; height: var(--ats-mbar-h); padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); background: var(--ats-surface); box-shadow: 0 -6px 24px -10px rgba(0, 0, 0, .3); transition: transform .25s; font-family: var(--ats-font); box-sizing: content-box; }
	.ats-mbar.is-hidden { transform: translateY(110%); }
	.ats-mbar a { display: flex; align-items: center; justify-content: center; gap: .4rem; border-radius: calc(var(--ats-radius) * .8); color: var(--ats-ink); background: color-mix(in srgb, var(--ats-ink) 6%, transparent); font-weight: 600; font-size: .9rem; text-decoration: none; }
	.ats-mbar a:nth-child(2) { color: var(--ats-wa); }
	.ats-mbar .ats-mbar__quote { background: var(--ats-primary); color: var(--ats-on-primary); }
	.has-ats-mbar { padding-bottom: calc(var(--ats-mbar-h) + 16px + env(safe-area-inset-bottom)); }
	.has-ats-mbar .ats-float-wa { display: none; }
}

/* Reveal */
.ats-reveal [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.ats-reveal [data-reveal].is-in { opacity: 1; transform: none; }
.ats-img-missing { display: block; width: 100%; height: 100%; min-height: 200px; background: linear-gradient(135deg, var(--ats-sun), var(--ats-primary)); }
.ats-form--steps .ats-field:not(.ats-half) { grid-column: 1 / -1; }
@media (min-width: 561px) { .ats-form--steps .ats-step[data-step="1"] .ats-field:has(select[name="date"]), .ats-form--steps .ats-step[data-step="1"] .ats-field:has(select[name="budget"]) { grid-column: auto; } }
