/* Terra rail — dashboard navigation (desktop side rail, mobile tab bar) and shortlist. */
:root { --tr-w: 248px; --tr-top: 0px; }
.admin-bar { --tr-top: 32px; }
@media (max-width: 782px) { .admin-bar { --tr-top: 46px; } }

.terra-rail {
	position: fixed; z-index: 90; top: var(--tr-top); left: 0; bottom: 0; width: var(--tr-w);
	box-sizing: border-box; padding: 26px 18px 20px; display: flex; flex-direction: column; gap: 22px; overflow-y: auto;
	background: #07090E; border-right: 1px solid rgba(255,255,255,0.09); font-family: Poppins, sans-serif;
}
.tr-logo { display: flex; align-items: center; gap: 10px; padding: 0 6px; font: 800 22px Montserrat, sans-serif; letter-spacing: -0.02em; color: #fff; text-decoration: none; }
.tr-logo b {
	width: 30px; height: 30px; border-radius: 9px; display: block;
	background: conic-gradient(from 200deg, #FFC107, #FF7043, #7a3cff, #467FF7, #FFC107);
	-webkit-mask: radial-gradient(circle at 50% 50%, transparent 6px, #000 7px); mask: radial-gradient(circle at 50% 50%, transparent 6px, #000 7px);
}
.tr-nav { display: flex; flex-direction: column; gap: 3px; }
.tr-item {
	display: flex; align-items: center; gap: 11px; min-height: 42px; padding: 0 12px; border-radius: 10px;
	font-size: 13.5px; color: #C8D5DC; text-decoration: none; transition: background-color .2s, color .2s;
}
.tr-item svg { flex: none; color: #8FA3AE; }
.tr-label { flex: 1; }
a.tr-item:hover { background: rgba(255,255,255,0.04); color: #fff; }
.tr-item.is-on { background: rgba(255,193,7,0.10); color: #fff; box-shadow: inset 2px 0 0 #FFC107; }
.tr-item.is-on svg { color: #FFC107; }
.tr-item.is-soon { color: #6E7F89; cursor: default; }
.tr-item.is-soon svg { color: #4C5A63; }
.tr-badge { font: 400 10px "Space Mono", monospace; letter-spacing: .06em; text-transform: uppercase; color: #8FA3AE; border: 1px solid rgba(255,255,255,0.09); border-radius: 6px; padding: 2px 6px; }
.tr-badge.is-new { color: #0B0F16; background: #FFC107; border-color: #FFC107; }
.tr-count { font: 700 11px "Space Mono", monospace; color: #26C6DA; }
.tr-sub { display: flex; flex-direction: column; gap: 2px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,0.07); }
.tr-sub a { padding: 7px 12px; font-size: 12.5px; color: #8FA3AE; text-decoration: none; border-radius: 8px; }
.tr-sub a:hover { color: #fff; }
.tr-card { margin-top: auto; padding: 16px; border-radius: 14px; background: #0B0F16; border: 1px solid rgba(255,255,255,0.09); }
.tr-card strong { display: block; font: 600 13px Poppins, sans-serif; color: #fff; margin-bottom: 6px; }
.tr-card p { margin: 0; font-size: 12px; line-height: 1.5; color: #C8D5DC; }
.tr-card span { display: inline-block; margin-top: 10px; font: 400 10.5px "Space Mono", monospace; letter-spacing: .06em; color: #FFC107; }
.terra-rail a:focus-visible, .terra-tabs :is(a, button):focus-visible, .terra-save:focus-visible { outline: 2px solid #26C6DA; outline-offset: 2px; }

/* Desktop: page sits beside the rail; header loses its logo and links (they live in the rail). */
@media (min-width: 1024px) {
	body.has-terra-rail { padding-left: var(--tr-w); }
	.has-terra-rail .elementor-location-header .t-navlink,
	.has-terra-rail .elementor-location-header .elementor-element-17a424c9 { display: none !important; }
	.has-terra-rail .elementor-location-header > .e-con { justify-content: flex-end; }
}

/* Mobile and tablet: bottom tab bar; full rail opens as a sheet from "More". */
.terra-tabs { display: none; }
@media (max-width: 1023px) { .terra-tabs { display: grid; } }
.terra-tabs {
	position: fixed; z-index: 95; left: 0; right: 0; bottom: 0; grid-template-columns: repeat(4, 1fr);
	padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: rgba(7,9,14,0.96); border-top: 1px solid rgba(255,255,255,0.09);
	backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.terra-tabs a, .terra-tabs button {
	position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 52px;
	font: 500 10.5px Poppins, sans-serif; color: #8FA3AE; text-decoration: none; background: none; border: 0; border-radius: 10px; cursor: pointer;
}
.terra-tabs .is-on { color: #FFC107; }
.terra-tabs i { position: absolute; top: 4px; left: 54%; font: 700 9.5px "Space Mono", monospace; font-style: normal; color: #0B0F16; background: #26C6DA; border-radius: 999px; padding: 1px 5px; }
@media (max-width: 1023px) {
	body.has-terra-rail { padding-bottom: 72px; }
	.has-terra-rail .elementor-location-header .t-navlink { display: none !important; }
	.terra-rail { transform: translateX(-102%); transition: transform .25s ease; width: min(84vw, 300px); box-shadow: 0 0 0 100vmax rgba(0,0,0,0); bottom: 0; }
	body.terra-rail-open .terra-rail { transform: none; box-shadow: 0 0 0 100vmax rgba(0,0,0,0.55); }
	body.terra-rail-open { overflow: hidden; }
}
@media (prefers-reduced-motion: reduce) { .terra-rail { transition: none; } }

/* Shortlist buttons */
.terra-save {
	display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; cursor: pointer;
	font: 500 12px Poppins, sans-serif; color: #C8D5DC; background: rgba(255,255,255,0.04);
	border: 1px solid rgba(255,255,255,0.12); border-radius: 999px; transition: all .2s;
}
.terra-save:hover { color: #fff; border-color: rgba(255,193,7,0.6); }
.terra-save.is-on { color: #0B0F16; background: #FFC107; border-color: #FFC107; }
.terra-save.is-on svg { fill: currentColor; }
.terra-save.is-overlay { position: absolute; top: 12px; right: 12px; z-index: 3; background: rgba(7,9,14,0.75); backdrop-filter: blur(6px); }
.terra-save.is-overlay.is-on { background: #FFC107; }
.terra-save.is-row { margin-bottom: 8px; }

/* Shortlist page */
.terra-shortlist { max-width: 72rem; margin: 0 auto; padding: 3rem clamp(1rem, 4vw, 2.5rem) 4rem; font-family: Poppins, sans-serif; color: #F1F1F1; }
.ts-eyebrow { margin: 0; font: 500 11px Poppins, sans-serif; letter-spacing: .18em; text-transform: uppercase; color: #FFC107; }
.ts-title { margin: .4rem 0 .6rem; font: 800 clamp(2rem, 4vw, 2.8rem)/1.1 Montserrat, sans-serif; letter-spacing: -0.02em; color: #fff; }
.ts-lead { max-width: 40rem; margin: 0 0 2rem; color: #C8D5DC; line-height: 1.6; }
.ts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.ts-card { display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; background: #0B0F16; border: 1px solid rgba(255,255,255,0.09); }
.ts-card img, .ts-noimg { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: #141923; }
.ts-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; }
.ts-price { margin: 0; font: 800 20px Montserrat, sans-serif; color: #fff; }
.ts-body h3 { margin: 0; font: 500 14px Poppins, sans-serif; }
.ts-body h3 a { color: #C8D5DC; text-decoration: none; }
.ts-body h3 a:hover { color: #FFC107; }
.ts-facts { margin: 0; font: 400 11px "Space Mono", monospace; color: #8FA3AE; }
.ts-remove { align-self: flex-start; margin-top: 8px; padding: 0; font: 400 12px Poppins, sans-serif; color: #8FA3AE; background: none; border: 0; text-decoration: underline; cursor: pointer; }
.ts-grid.is-locked .ts-card { opacity: .55; }
.ts-lock { grid-column: 1 / -1; margin: 0; font: 400 12px "Space Mono", monospace; color: #26C6DA; }
.ts-empty { padding: 2rem; border-radius: 16px; border: 1px dashed rgba(38,198,218,0.45); background: rgba(38,198,218,0.05); color: #C8D5DC; text-align: center; }
.ts-form { margin-top: 1rem; padding: 1.5rem; border-radius: 18px; border: 1px solid rgba(255,193,7,0.35); background: linear-gradient(180deg, rgba(255,193,7,0.08), rgba(255,112,67,0.03)), #0B0F16; }
.ts-form h2 { margin: 0 0 .25rem; font: 800 1.35rem Montserrat, sans-serif; color: #fff; }
.ts-form > p { margin: 0 0 1.2rem; color: #8FA3AE; font-size: .85rem; }
.ts-fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.ts-fields label { display: flex; flex-direction: column; gap: .4rem; font-size: .68rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: #FFC107; }
.ts-fields em { font-style: normal; color: #8FA3AE; letter-spacing: .04em; text-transform: none; }
.ts-fields input, .ts-fields textarea {
	font: 400 .85rem Poppins, sans-serif; letter-spacing: 0; text-transform: none; color: #F1F1F1; background: rgba(255,255,255,0.05);
	border: 1px solid rgba(255,255,255,0.12); border-radius: 10px; padding: .65rem .75rem; min-height: 44px; box-sizing: border-box;
}
.ts-fields :is(input, textarea):focus-visible, .ts-consent input:focus-visible { outline: 2px solid #26C6DA; outline-offset: 2px; }
.ts-wide { grid-column: 1 / -1; }
.ts-hp { position: absolute !important; left: -9999px; }
.ts-consent { display: flex; gap: .6rem; align-items: flex-start; margin: 1rem 0; font-size: .82rem; color: #C8D5DC; }
.ts-consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: #26C6DA; }
.ts-consent a { color: #26C6DA; }
.ts-form button[type="submit"] { font: 600 .9rem Poppins, sans-serif; color: #0B0F16; background: #FFC107; border: 0; border-radius: 10px; padding: .8rem 1.5rem; min-height: 44px; cursor: pointer; }
.ts-form button[type="submit"]:hover { background: #FF7043; }
.ts-form button[disabled] { opacity: .6; cursor: wait; }
.ts-msg { margin: .8rem 0 0; font-size: .82rem; color: #FF7043; }
@media (max-width: 767px) { .ts-fields { grid-template-columns: 1fr; } }
main:has(.terra-shortlist) .page-header { display: none; }
main:has(.terra-shortlist) { max-width: none; padding: 0; }

body.has-terra-rail { background-color: #0B0F16; }
.ts-fields label { justify-content: flex-end; }

/* Solid buttons: amber-to-ember gradient sweep on hover (matches the t-btn-amber class). */
body .terra-filter .tf-submit, body .ts-form button[type="submit"] {
	color: #0B0F16; white-space: nowrap; background-color: #FFC107;
	background-image: linear-gradient(110deg, #FFC107 0%, #FFC107 45%, #FF9A3C 70%, #FF7043 100%);
	background-size: 250% 100%; background-position: 0% 50%;
	transition: background-position .45s ease, box-shadow .3s ease, transform .2s ease;
}
body .terra-filter .tf-submit:hover, body .ts-form button[type="submit"]:hover,
body .terra-filter .tf-submit:focus-visible, body .ts-form button[type="submit"]:focus-visible {
	color: #0B0F16; background-color: #FFC107;
	background-image: linear-gradient(110deg, #FFC107 0%, #FFC107 45%, #FF9A3C 70%, #FF7043 100%);
	background-size: 250% 100%; background-position: 100% 50%;
	box-shadow: 0 8px 24px rgba(255,112,67,0.35); transform: translateY(-1px);
}
@media (prefers-reduced-motion: reduce) { .terra-filter .tf-submit, .ts-form button[type="submit"] { transition: none; } }

/* Shortlist button over photos: solid dark glass so it reads on any image. */
body .terra-save.is-overlay {
	color: #FFFFFF; background: rgba(7, 9, 14, 0.82); border: 1px solid rgba(255, 255, 255, 0.35);
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
	text-shadow: none; min-height: 40px; padding: 0 14px; font-weight: 600;
}
body .terra-save.is-overlay:hover { background: rgba(7, 9, 14, 0.95); border-color: #FFC107; color: #FFFFFF; }
body .terra-save.is-overlay.is-on { color: #0B0F16; background: #FFC107; border-color: #FFC107; }
