/**
 * Roadside Tribute redesign — Customify child
 * Colors from client mockup: navy, gold, cream, sky accent.
 */

:root {
	/* Matched from client mockup */
	--rt-navy: #0b2c55;
	--rt-navy-deep: #071f3d;
	--rt-menu: #0b2c55;
	--rt-gold: #b18648;
	--rt-gold-hover: #9a733c;
	--rt-cream: #f7f5f1;
	--rt-header-bg: #ffffff;
	--rt-sky: #4f84b0;
	--rt-text: #243447;
	--rt-muted: #5f6f80;
	--rt-white: #ffffff;
	--rt-border: #e6e0d6;
	--rt-radius: 14px;
	--rt-radius-pill: 999px;
	--rt-shadow: 0 12px 40px rgba(11, 44, 85, 0.12);
	--rt-font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
	--rt-font-sans: "Source Sans 3", "Segoe UI", sans-serif;
	--rt-max: 1120px;
}

.roadside-theme {
	font-family: var(--rt-font-sans);
	color: var(--rt-text);
	background: var(--rt-cream);
}

.roadside-theme h1,
.roadside-theme h2,
.roadside-theme h3,
.rt-hero__title,
.rt-section__title,
.rt-card__title {
	font-family: var(--rt-font-serif);
	font-weight: 600;
	color: var(--rt-navy);
	letter-spacing: 0.01em;
}

.roadside-page {
	overflow-x: hidden;
}

/* —— Header —— */
.rt-header {
	position: sticky;
	top: 0;
	z-index: 1000;
	background: var(--rt-header-bg);
	border-bottom: 1px solid rgba(11, 44, 85, 0.08);
	overflow: visible;
}

.rt-header__inner,
.rt-nav,
.rt-nav__list {
	overflow: visible;
}

.rt-header__inner {
	max-width: 1240px;
	margin: 0 auto;
	padding: 0.7rem 1.75rem;
	display: grid;
	grid-template-columns: minmax(160px, 1fr) auto minmax(160px, 1fr);
	align-items: center;
	column-gap: 1.25rem;
}

.rt-header__brand {
	justify-self: start;
}

.rt-logo img {
	display: block;
	height: 46px;
	width: auto;
	max-width: 240px;
}

.rt-nav {
	display: flex;
	justify-content: center;
	justify-self: center;
}

.rt-nav__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: nowrap;
	gap: 0 1.75rem;
	align-items: center;
	justify-content: center;
}

.rt-nav__list > li {
	margin: 0;
	padding: 0;
	position: relative;
}

.rt-nav__list > li > a {
	color: var(--rt-menu);
	text-decoration: none;
	font-family: var(--rt-font-sans);
	font-size: 0.95rem;
	font-weight: 500;
	letter-spacing: 0.01em;
	line-height: 1.2;
	padding: 0.55rem 0.05rem;
	border-bottom: 2px solid transparent;
	white-space: nowrap;
	display: inline-block;
	transition: color 0.15s, border-color 0.15s;
}

.rt-nav__list > li > a:hover,
.rt-nav__list > li > a:focus {
	color: var(--rt-sky);
	border-bottom-color: var(--rt-sky);
}

.rt-nav__list > .current-menu-item > a,
.rt-nav__list > .current_page_item > a {
	color: var(--rt-menu);
	border-bottom-color: var(--rt-menu);
}

/* Parent items with children — subtle caret like mockup spacing */
.rt-nav__list > .menu-item-has-children {
	position: relative;
}

.rt-nav__list > .menu-item-has-children > a {
	position: relative;
	padding-right: 0.85rem;
}

.rt-nav__list > .menu-item-has-children > a::after {
	content: "";
	position: absolute;
	right: 0;
	top: 50%;
	width: 0;
	height: 0;
	margin-top: -1px;
	border-left: 3.5px solid transparent;
	border-right: 3.5px solid transparent;
	border-top: 4px solid var(--rt-menu);
	opacity: 0.55;
}

/* Desktop dropdown */
.rt-nav__list ul.sub-menu {
	list-style: none;
	margin: 0;
	padding: 0.5rem 0;
	position: absolute;
	top: calc(100% + 0.4rem);
	left: 0;
	min-width: 260px;
	max-width: 320px;
	background: #ffffff;
	border-radius: 12px;
	box-shadow: 0 16px 40px rgba(15, 39, 64, 0.18);
	border: 1px solid rgba(26, 58, 92, 0.1);
	display: none;
	z-index: 1100;
}

.rt-nav__list ul.sub-menu .sub-menu {
	top: 0;
	left: calc(100% + 0.2rem);
}

/* Keep dropdowns on-screen near the right edge */
.rt-nav__list > .menu-item-has-children:nth-last-child(-n+2) > ul.sub-menu {
	left: auto;
	right: 0;
}

.rt-nav__list > .menu-item-has-children:hover > ul.sub-menu,
.rt-nav__list > .menu-item-has-children:focus-within > ul.sub-menu,
.rt-nav__list > .menu-item-has-children.is-open > ul.sub-menu,
.rt-nav__list .menu-item-has-children:hover > ul.sub-menu,
.rt-nav__list .menu-item-has-children:focus-within > ul.sub-menu,
.rt-nav__list .menu-item-has-children.is-open > ul.sub-menu {
	display: block;
}

.rt-nav__list ul.sub-menu li {
	margin: 0;
	width: 100%;
	position: relative;
}

.rt-nav__list ul.sub-menu a {
	display: block;
	padding: 0.75rem 1.1rem;
	font-size: 0.92rem;
	font-weight: 500;
	color: #1a3a5c !important;
	border-bottom: 0 !important;
	white-space: normal;
	line-height: 1.35;
	background: transparent;
}

.rt-nav__list ul.sub-menu a:hover,
.rt-nav__list ul.sub-menu a:focus {
	background: #eef4f9 !important;
	color: #0f2740 !important;
}

.rt-nav__subtoggle {
	display: none;
	position: absolute;
	right: 0;
	top: 0.55rem;
	width: 36px;
	height: 36px;
	border: 0;
	background: transparent;
	cursor: pointer;
	padding: 0;
}

.rt-nav__subtoggle::before {
	content: "";
	display: block;
	width: 0;
	height: 0;
	margin: 0 auto;
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
	border-top: 6px solid var(--rt-navy);
	transition: transform 0.2s;
}

.rt-nav__subtoggle[aria-expanded="true"]::before {
	transform: rotate(180deg);
}

.rt-nav__toggle {
	display: none;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	background: none;
	border: 0;
	padding: 0.45rem;
	cursor: pointer;
	margin: 0;
}

.rt-nav__toggle span:not(.screen-reader-text) {
	display: block;
	width: 22px;
	height: 2px;
	background: var(--rt-navy);
	border-radius: 1px;
}

.rt-header__actions {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 0.75rem;
	justify-self: end;
}

.rt-icon-btn {
	color: var(--rt-menu);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.45rem;
	border-radius: 50%;
}

.rt-icon-btn:hover {
	background: rgba(11, 44, 85, 0.07);
	color: var(--rt-menu);
}

.rt-header__cta {
	background: var(--rt-navy) !important;
	color: #fff !important;
	border-color: var(--rt-navy) !important;
	box-shadow: none;
}

/* —— Buttons —— */
.rt-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.45rem;
	font-family: var(--rt-font-sans);
	font-weight: 600;
	font-size: 0.95rem;
	text-decoration: none;
	border-radius: var(--rt-radius-pill);
	padding: 0.75rem 1.35rem;
	border: 2px solid transparent;
	cursor: pointer;
	transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}

.rt-btn:hover {
	transform: translateY(-1px);
}

.rt-btn--sm {
	padding: 0.55rem 1.1rem;
	font-size: 0.88rem;
}

.rt-btn--primary {
	background: var(--rt-navy);
	color: var(--rt-white);
}

.rt-btn--primary:hover {
	background: var(--rt-navy-deep);
	color: var(--rt-white);
}

.rt-btn--ghost {
	background: rgba(255, 255, 255, 0.92);
	color: var(--rt-navy);
	border-color: var(--rt-navy);
}

.rt-btn--ghost:hover {
	background: var(--rt-white);
	color: var(--rt-navy);
}

.rt-btn--gold {
	background: var(--rt-gold);
	color: var(--rt-navy-deep);
	border: 0;
	white-space: nowrap;
}

.rt-btn--gold:hover {
	background: var(--rt-gold-hover);
	color: var(--rt-navy-deep);
}

.rt-btn--outline {
	background: transparent;
	color: var(--rt-navy);
	border-color: var(--rt-navy);
	padding: 0.55rem 1.15rem;
}

.rt-btn--outline:hover {
	background: var(--rt-navy);
	color: var(--rt-white);
}

/* —— Hero —— */
.rt-hero {
	position: relative;
	min-height: clamp(420px, 68vh, 640px);
	display: flex;
	align-items: flex-end;
	background-image: var(--rt-hero-image);
	background-size: cover;
	background-position: center 40%;
	padding: 4rem 1.25rem 7rem;
}

.rt-hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		105deg,
		rgba(247, 243, 235, 0.92) 0%,
		rgba(247, 243, 235, 0.72) 42%,
		rgba(247, 243, 235, 0.15) 70%,
		rgba(15, 39, 64, 0.25) 100%
	);
}

.rt-hero__content {
	position: relative;
	z-index: 1;
	max-width: var(--rt-max);
	width: 100%;
	margin: 0 auto;
	max-width: 560px;
	margin-left: max(1.25rem, calc((100% - var(--rt-max)) / 2 + 1.25rem));
}

.rt-hero__title {
	font-size: clamp(2.5rem, 5.2vw, 3.75rem);
	line-height: 1.12;
	margin: 0 0 0.85rem;
	color: var(--rt-navy);
	font-weight: 600;
}

.rt-hero__accent {
	color: var(--rt-sky);
	font-style: italic;
	font-weight: 600;
}

.rt-hero__rule {
	display: block;
	width: 48px;
	height: 3px;
	background: var(--rt-gold);
	border-radius: 2px;
	margin: 0 0 1rem;
}

.rt-hero__text {
	font-size: 1.05rem;
	line-height: 1.6;
	color: var(--rt-muted);
	margin: 0 0 1.6rem;
	max-width: 34rem;
}

.rt-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.85rem;
}

/* —— Search bar (mockup: icon-in-input + placeholder + hint) —— */
.rt-search {
	position: relative;
	z-index: 5;
	max-width: var(--rt-max);
	margin: -3.25rem auto 0;
	padding: 0 1.25rem;
}

.rt-search__form {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	background: var(--rt-white);
	padding: 0.9rem 0.9rem 0.75rem;
	border-radius: 16px;
	box-shadow: 0 16px 48px rgba(11, 44, 85, 0.14);
}

.rt-search__fields {
	display: grid;
	grid-template-columns: 1.15fr 1fr 1fr;
	flex: 1 1 auto;
	min-width: 0;
	gap: 0.75rem;
	align-items: start;
}

.rt-search__field {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	margin: 0;
	min-width: 0;
	padding: 0;
	cursor: text;
}

.rt-search__control {
	display: flex;
	align-items: center;
	flex-wrap: nowrap;
	gap: 0.55rem;
	min-width: 0;
	width: 100%;
	min-height: 2.95rem;
	padding: 0.65rem 0.85rem;
	border: 1px solid #d5dde6;
	border-radius: 10px;
	background: #fff;
	position: relative;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.rt-search__control > .rt-search__icon {
	flex: 0 0 auto;
}

.rt-search__control > .snear,
.rt-search__control > input:not(.flatpickr-input):not(.gdlm-location-suggestions *) {
	flex: 1 1 auto;
	min-width: 0;
}

/* GeoDirectory location suggestions (same as old search) */
.rt-search .gdlm-location-suggestions,
.rt-search .gd-suggestions-dropdown {
	position: absolute !important;
	left: 0 !important;
	right: 0 !important;
	top: calc(100% + 6px) !important;
	bottom: auto !important;
	z-index: 10060 !important;
	width: 100%;
	min-width: 100%;
	max-height: 280px;
	overflow: auto;
	margin: 0 !important;
	padding: 0.35rem 0 !important;
	border: 1px solid #d7dee6 !important;
	border-radius: 10px !important;
	background: #fff !important;
	box-shadow: 0 12px 28px rgba(11, 44, 85, 0.16) !important;
	transform: none !important;
	inset: auto 0 auto 0;
	display: none;
}

.rt-search .gdlm-location-suggestions.show,
.rt-search .gdlm-location-suggestions[data-rt-open="1"] {
	display: block !important;
}

.rt-search .gdlm-location-suggestions ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.rt-search .gdlm-location-suggestions li,
.rt-search .gdlm-location-suggestions .dropdown-item,
.rt-search .gdlm-location-suggestions a {
	display: flex;
	align-items: center;
	gap: 0.55rem;
	padding: 0.55rem 0.85rem !important;
	margin: 0 !important;
	color: #243447 !important;
	font-size: 0.92rem;
	line-height: 1.35;
	text-decoration: none !important;
	white-space: normal;
	cursor: pointer;
}

.rt-search .gdlm-location-suggestions li:hover,
.rt-search .gdlm-location-suggestions li:focus,
.rt-search .gdlm-location-suggestions .dropdown-item:hover,
.rt-search .gdlm-location-suggestions .dropdown-item.active,
.rt-search .gdlm-location-suggestions a:hover {
	background: #e8f2fb !important;
	color: #0b2c55 !important;
}

.rt-search__field:focus-within .rt-search__control {
	border-color: var(--rt-sky);
	box-shadow: 0 0 0 3px rgba(79, 132, 176, 0.15);
}

.rt-search__icon {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.1rem;
	height: 1.1rem;
	color: #7a8b9c;
	line-height: 0;
	align-self: center;
}

.rt-search__icon svg {
	display: block;
}

.rt-search .rt-search__field input[type="search"],
.rt-search .rt-search__field input[type="text"],
.rt-search .rt-search__field input,
.rt-search .rt-search__field input.rt-search__date-alt {
	appearance: none;
	-webkit-appearance: none;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	outline: none !important;
	padding: 0 !important;
	margin: 0 !important;
	background: transparent !important;
	background-color: transparent !important;
	width: 100%;
	min-width: 0;
	min-height: 0 !important;
	height: auto !important;
	font-family: var(--rt-font-serif);
	font-size: 1.05rem;
	font-weight: 500;
	line-height: 1.3;
	color: var(--rt-navy);
}

.rt-search .rt-search__field input.flatpickr-input[type="hidden"],
.rt-search .rt-search__field input.flatpickr-input:not(.rt-search__date-alt) {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	border: 0 !important;
}

.rt-search .flatpickr-calendar {
	z-index: 10050;
}

.rt-search .rt-search__field input:focus,
.rt-search .rt-search__field input[type="search"]:focus,
.rt-search .rt-search__field input[type="text"]:focus {
	outline: none !important;
	box-shadow: none !important;
	border: 0 !important;
}

.rt-search .rt-search__field input::placeholder {
	color: #8a97a6;
	opacity: 1;
	font-family: var(--rt-font-serif);
	font-weight: 500;
}

.rt-search .rt-search__field input::-webkit-search-decoration,
.rt-search .rt-search__field input::-webkit-search-cancel-button,
.rt-search .rt-search__field input::-webkit-search-results-button,
.rt-search .rt-search__field input::-webkit-search-results-decoration {
	display: none;
	-webkit-appearance: none;
}

.rt-search__hint {
	display: block;
	padding: 0 0.15rem;
	font-family: var(--rt-font-sans);
	font-size: 0.78rem;
	line-height: 1.35;
	color: #8a97a6;
	font-weight: 400;
}

.rt-search button.rt-search__submit[type="submit"],
.rt-search button.rt-search__submit,
.rt-search .rt-search__submit {
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	flex: 0 0 auto;
	align-self: flex-start;
	min-width: 10.75rem;
	min-height: 2.95rem;
	height: 2.95rem !important;
	padding: 0 1.25rem !important;
	border: 0 !important;
	border-radius: 10px !important;
	background: #b18648 !important;
	background-color: #b18648 !important;
	background-image: none !important;
	color: #fff !important;
	font-family: var(--rt-font-serif);
	font-size: 1.05rem;
	font-weight: 600;
	line-height: 1;
	cursor: pointer;
	white-space: nowrap;
	box-shadow: none !important;
	text-decoration: none !important;
	text-transform: none !important;
	letter-spacing: normal !important;
	transition: background 0.2s, transform 0.15s;
}

.rt-search button.rt-search__submit:hover,
.rt-search .rt-search__submit:hover {
	background: #9a733c !important;
	background-color: #9a733c !important;
	background-image: none !important;
	color: #fff !important;
	transform: translateY(-1px);
}

.rt-search .rt-search__submit svg {
	flex: 0 0 auto;
	stroke: currentColor;
}

/* —— Sections —— */
.rt-featured {
	max-width: var(--rt-max);
	margin: 0 auto;
	padding: 3.5rem 1.25rem;
}

.rt-section__head {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	align-items: center;
	gap: 1.25rem 1.75rem;
	margin-bottom: 1.85rem;
}

.rt-section__intro {
	min-width: 0;
}

.rt-section__eyebrow {
	margin: 0 0 0.45rem;
	font-family: var(--rt-font-sans);
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--rt-gold);
}

.rt-section__title {
	font-size: clamp(1.75rem, 3vw, 2.35rem);
	margin: 0;
	line-height: 1.2;
	color: var(--rt-navy);
}

.rt-section__lead {
	margin: 0.65rem 0 0;
	font-size: 1rem;
	line-height: 1.55;
	color: var(--rt-muted);
	white-space: nowrap;
}

.rt-section__title--center {
	text-align: center;
	margin-bottom: 2.5rem;
}

.rt-section__head .rt-btn--outline {
	flex: 0 0 auto;
	border-radius: var(--rt-radius-pill);
	white-space: nowrap;
}

.rt-featured__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.15rem;
}

.rt-card {
	background: var(--rt-white);
	border-radius: var(--rt-radius);
	box-shadow: 0 6px 24px rgba(15, 39, 64, 0.07);
	display: flex;
	flex-direction: row;
	align-items: stretch;
	gap: 1rem;
	padding: 1rem;
	min-height: 100%;
}

.rt-card__media {
	display: block;
	flex: 0 0 7rem;
	width: 7rem;
	align-self: center;
	aspect-ratio: 1 / 1;
	border-radius: 12px;
	overflow: hidden;
	background: #d9e2ea;
}

.rt-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.rt-card__placeholder {
	display: block;
	width: 100%;
	height: 100%;
	aspect-ratio: 1 / 1;
	background: linear-gradient(135deg, #c5d4e0, #e8eef3);
}

.rt-card__body {
	padding: 0.15rem 0.2rem 0.15rem 0;
	display: flex;
	flex-direction: column;
	flex: 1;
	min-width: 0;
}

.rt-card__title {
	font-family: var(--rt-font-serif);
	font-size: 1.22rem;
	font-weight: 600;
	margin: 0;
	line-height: 1.25;
	color: var(--rt-navy);
}

.rt-card__title a {
	color: inherit;
	text-decoration: none;
}

.rt-card__title a:hover {
	color: var(--rt-sky);
}

.rt-card__dates {
	margin: 0.2rem 0 0;
	font-size: 0.84rem;
	line-height: 1.3;
	color: var(--rt-muted);
}

.rt-card__excerpt {
	font-size: 0.9rem;
	line-height: 1.45;
	color: var(--rt-muted);
	margin: 0.4rem 0 0.65rem;
	flex: 1;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.rt-card__link {
	color: var(--rt-sky);
	font-weight: 600;
	text-decoration: none;
	font-size: 0.9rem;
	margin-top: auto;
}

.rt-card__link:hover {
	color: var(--rt-navy);
}

.rt-featured__empty {
	background: var(--rt-white);
	padding: 1.5rem;
	border-radius: var(--rt-radius);
	text-align: center;
}

/* —— How it works —— */
.rt-how {
	background: #eef4f9;
	padding: 3.75rem 1.25rem 4.5rem;
	margin: 0;
}

.rt-how__head {
	max-width: var(--rt-max);
	margin: 0 auto 2.35rem;
	text-align: center;
}

.rt-how__head .rt-section__eyebrow {
	margin-bottom: 0.55rem;
}

.rt-how__head .rt-section__title {
	margin: 0 auto;
}

.rt-how__grid {
	max-width: var(--rt-max);
	margin: 0 auto;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 2rem;
	text-align: center;
}

.rt-how__icon {
	width: 72px;
	height: 72px;
	margin: 0 auto 1rem;
	border-radius: 50%;
	background: rgba(79, 132, 176, 0.16);
	color: var(--rt-navy);
	display: flex;
	align-items: center;
	justify-content: center;
}

.rt-how__item h3 {
	font-family: var(--rt-font-serif);
	font-size: 1.35rem;
	font-weight: 600;
	color: var(--rt-navy);
	margin: 0 0 0.5rem;
}

.rt-how__item p {
	margin: 0 auto;
	max-width: 16.5rem;
	color: var(--rt-muted);
	line-height: 1.5;
	font-size: 0.98rem;
}

/* —— Footer —— */
.rt-footer {
	background: var(--rt-navy-deep);
	color: rgba(255, 255, 255, 0.85);
	padding-top: 2.5rem;
}

.rt-footer a {
	color: rgba(255, 255, 255, 0.88);
	text-decoration: none;
}

.rt-footer a:hover {
	color: var(--rt-gold);
}

.rt-footer__inner {
	max-width: var(--rt-max);
	margin: 0 auto;
	padding: 0 1.25rem 2rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	flex-wrap: wrap;
}

.rt-footer__logo {
	display: block;
	max-height: 44px;
	width: auto;
	opacity: 0.98;
}

.rt-footer__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.25rem;
}

.rt-footer__social {
	display: flex;
	gap: 0.65rem;
}

.rt-footer__social a {
	width: 36px;
	height: 36px;
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 0.7rem;
	text-transform: uppercase;
	color: rgba(255, 255, 255, 0.92);
}

.rt-footer__social a:hover {
	color: var(--rt-gold);
	border-color: var(--rt-gold);
}

.rt-footer__social svg {
	display: block;
	flex: 0 0 auto;
}

/* —— Tribute claim tab —— */
.rt-claim-tab {
	padding: 0.35rem 0 0.75rem;
}

.rt-claim-tab__intro {
	margin: 0 0 1rem;
	color: var(--rt-muted);
	font-size: 1rem;
	line-height: 1.5;
}

.rt-footer__bar {
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	max-width: var(--rt-max);
	margin: 0 auto;
	padding: 1rem 1.25rem;
	display: flex;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
	font-size: 0.85rem;
}

.rt-footer__bar p {
	margin: 0;
}

.rt-footer__bar ul {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	gap: 1rem;
}

/* —— Inner pages: keep readable with child chrome —— */
.roadside-theme:not(.roadside-front) .site-main {
	max-width: var(--rt-max);
	margin: 0 auto;
	padding: 2rem 1.25rem 3rem;
}

.roadside-theme .entry-content {
	line-height: 1.65;
}

/* —— Responsive —— */
@media (max-width: 960px) {
	.rt-search__form {
		flex-direction: column;
		padding: 0.85rem;
		gap: 0.75rem;
	}

	.rt-search__fields {
		grid-template-columns: 1fr;
		gap: 0.75rem;
	}

	.rt-search button.rt-search__submit,
	.rt-search .rt-search__submit {
		width: 100%;
		min-height: 3.1rem;
		height: 3.1rem !important;
		align-self: stretch;
	}

	.rt-featured__grid,
	.rt-how__grid {
		grid-template-columns: 1fr;
	}

	.rt-section__head {
		grid-template-columns: 1fr;
		justify-items: start;
	}

	.rt-section__lead {
		white-space: normal;
	}
}

@media (max-width: 1100px) {
	.rt-nav__list {
		gap: 0 1.15rem;
	}

	.rt-nav__list a {
		font-size: 0.88rem;
	}

	.rt-header__cta span[aria-hidden] {
		display: none;
	}
}

@media (max-width: 960px) {
	.rt-header__inner {
		display: flex;
		flex-wrap: wrap;
		gap: 0.35rem 1rem;
	}

	.rt-header__brand {
		order: 1;
	}

	.rt-header__actions {
		order: 2;
		margin-left: auto;
	}

	.rt-nav {
		order: 3;
		flex: 1 1 100%;
		justify-content: flex-start;
		justify-self: stretch;
	}

	.rt-nav__toggle {
		display: flex;
	}

	.rt-header__cta {
		display: none;
	}

	.rt-nav__list {
		display: none;
		flex-direction: column;
		align-items: stretch;
		width: 100%;
		padding: 0.65rem 0 0.35rem;
		gap: 0;
		border-top: 1px solid rgba(26, 58, 92, 0.1);
		margin-top: 0.25rem;
	}

	.rt-nav__list.is-open {
		display: flex;
	}

	.rt-nav__list > li {
		width: 100%;
		border-bottom: 1px solid rgba(26, 58, 92, 0.06);
		position: relative;
	}

	.rt-nav__list a {
		display: block;
		padding: 0.9rem 2.5rem 0.9rem 0.2rem;
		font-size: 1.02rem;
		border-bottom: 0;
		white-space: normal;
	}

	.rt-nav__list > .menu-item-has-children > a::after {
		display: none;
	}

	.rt-nav__subtoggle {
		display: block;
	}

	.rt-nav__list ul.sub-menu {
		position: static;
		box-shadow: none;
		border: 0;
		border-radius: 0;
		background: rgba(26, 58, 92, 0.05);
		min-width: 0;
		max-width: none;
		padding: 0;
		display: none;
	}

	.rt-nav__list .menu-item-has-children.is-open > ul.sub-menu {
		display: block;
	}

	.rt-nav__list ul.sub-menu a {
		padding: 0.7rem 0.75rem 0.7rem 1rem;
		font-size: 0.95rem;
		color: #1a3a5c !important;
	}

	.rt-nav__list .current-menu-item > a,
	.rt-nav__list a:hover {
		color: var(--rt-sky);
	}

	.rt-hero {
		align-items: center;
		padding: 5rem 1.25rem 6rem;
	}

	.rt-hero__content {
		margin-left: auto;
		margin-right: auto;
	}
}

/* —— Add listing: hide Submit on Step 1 —— */
#geodir-add-listing-submit.rt-submit-hidden {
	display: none !important;
}

/* —— Add listing wizard UI —— */
#geodir-add-listing-submit.rt-submit-hidden,
#geodir-add-listing-submit .rt-submit-hidden {
	display: none !important;
}

.rt-listing-wizard {
	max-width: 920px;
	margin: 0 auto 1.5rem;
	padding: 0 0.5rem;
}

.rt-listing-wizard__intro {
	margin: 0 0 1rem;
	color: var(--rt-muted, #5f6f80);
	font-size: 1rem;
	text-align: center;
}

.rt-listing-wizard .stepwizard-row {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	justify-content: center;
	align-items: stretch;
}

.rt-listing-wizard .stepwizard-step {
	flex: 1 1 200px;
	max-width: 280px;
}

.rt-listing-wizard .stepwizard-step a.btn-circle {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.35rem;
	width: 100%;
	min-height: 4.5rem;
	padding: 0.85rem 1rem;
	border-radius: 12px;
	border: 1px solid #d7dee7;
	background: #fff;
	color: var(--rt-navy, #0b2c55);
	text-align: left;
	white-space: normal;
	line-height: 1.3;
	box-shadow: 0 2px 8px rgba(11, 44, 85, 0.05);
}

.rt-listing-wizard .stepwizard-step a.btn-circle.disabled,
.rt-listing-wizard .stepwizard-step a.btn-circle[disabled] {
	opacity: 0.55;
	cursor: not-allowed;
}

.rt-listing-wizard .stepwizard-step a.btn-success,
.rt-listing-wizard .stepwizard-step a.rt-step-active {
	border-color: var(--rt-navy, #0b2c55);
	background: #eef4f9;
	color: var(--rt-navy, #0b2c55);
	box-shadow: 0 0 0 2px rgba(11, 44, 85, 0.12);
}

.rt-listing-wizard .rt-step-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.6rem;
	height: 1.6rem;
	border-radius: 50%;
	background: var(--rt-navy, #0b2c55);
	color: #fff;
	font-size: 0.8rem;
	font-weight: 700;
}

.rt-listing-wizard .rt-step-label {
	font-size: 0.92rem;
	font-weight: 600;
}

/* Package field — Free radio options (Pricing Manager), not a dropdown */
#geodirectory-add-post #package_id_row .geodir_package,
#geodirectory-add-post .geodir-pricing-field .geodir_package {
	display: block;
	margin: 0 0 0.65rem;
	padding: 0.75rem 1rem;
	border: 1px solid #d7dee7;
	border-radius: 10px;
	background: #fff;
}

#geodirectory-add-post #package_id_row .geodir_package:has(input:checked),
#geodirectory-add-post .geodir-pricing-field .geodir_package:has(input:checked) {
	border-color: var(--rt-navy, #0b2c55);
	background: #eef4f9;
	box-shadow: 0 0 0 2px rgba(11, 44, 85, 0.1);
}

#geodirectory-add-post #package_id_row .gd-radios,
#geodirectory-add-post .geodir-pricing-field .gd-radios {
	display: flex;
	align-items: flex-start;
	gap: 0.55rem;
	line-height: 1.4;
	color: var(--rt-navy, #0b2c55);
	font-weight: 600;
}

#geodirectory-add-post #package_id_row input[type="radio"],
#geodirectory-add-post .geodir-pricing-field input[type="radio"] {
	margin-top: 0.2rem;
	accent-color: var(--rt-navy, #0b2c55);
}

#geodirectory-add-post #package_id_row .geodir-price-name,
#geodirectory-add-post .geodir-pricing-field .geodir-price-name {
	font-weight: 500;
	color: var(--rt-muted, #5f6f80);
}

/* Flat step panels — no boxed heading / card chrome */
.rt-add-listing .setup-content.rt-setup-content,
.rt-add-listing .setup-content.panel {
	border: none;
	border-radius: 0;
	box-shadow: none;
	background: transparent;
	margin: 1rem 0 1.5rem;
	padding: 0;
	overflow: visible;
}

.rt-step-heading {
	display: none;
}

.rt-step-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.85rem;
	justify-content: flex-end;
	align-items: center;
	margin-top: 1.75rem;
	padding: 1.25rem 0 0;
	border-top: 1px solid #e8edf2;
}

.rt-step-actions .rt-wizard-btn,
.rt-step-actions .rt-btn-prev,
.rt-step-actions .rt-btn-continue,
.rt-step-actions .rt-confirm-submit,
.rt-step-actions .prevBtn,
.rt-step-actions .nextBtn {
	appearance: none;
	-webkit-appearance: none;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	min-height: 3rem;
	padding: 0.8rem 1.6rem;
	margin: 0;
	border-radius: 999px;
	border: 2px solid transparent;
	font-family: var(--rt-font-sans, "Source Sans 3", "Segoe UI", sans-serif);
	font-size: 0.98rem;
	font-weight: 600;
	line-height: 1.2;
	letter-spacing: 0.01em;
	text-decoration: none;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

.rt-step-actions .rt-wizard-btn--ghost,
.rt-step-actions .rt-btn-prev,
.rt-step-actions .prevBtn {
	order: 1;
	margin-right: auto;
	min-width: 8.5rem;
	background: #fff !important;
	color: var(--rt-navy, #0b2c55) !important;
	border-color: #c5d0dc !important;
	box-shadow: 0 1px 2px rgba(11, 44, 85, 0.04);
}

.rt-step-actions .rt-wizard-btn--ghost:hover,
.rt-step-actions .rt-btn-prev:hover,
.rt-step-actions .prevBtn:hover {
	background: #f3f6f9 !important;
	border-color: var(--rt-navy, #0b2c55) !important;
	color: var(--rt-navy, #0b2c55) !important;
	transform: translateY(-1px);
}

.rt-step-actions .rt-wizard-btn--primary,
.rt-step-actions .rt-btn-continue,
.rt-step-actions .rt-confirm-submit,
.rt-step-actions .nextBtn {
	order: 2;
	min-width: 11rem;
	background: var(--rt-navy, #0b2c55) !important;
	color: #fff !important;
	border-color: var(--rt-navy, #0b2c55) !important;
	box-shadow: 0 8px 20px rgba(11, 44, 85, 0.22);
}

.rt-step-actions .rt-wizard-btn--primary:hover,
.rt-step-actions .rt-btn-continue:hover,
.rt-step-actions .rt-confirm-submit:hover,
.rt-step-actions .nextBtn:hover {
	background: var(--rt-navy-deep, #071f3d) !important;
	border-color: var(--rt-navy-deep, #071f3d) !important;
	color: #fff !important;
	transform: translateY(-1px);
	box-shadow: 0 10px 24px rgba(11, 44, 85, 0.28);
}

.rt-step-actions .rt-wizard-btn--primary:focus,
.rt-step-actions .rt-wizard-btn--ghost:focus,
.rt-step-actions .rt-confirm-submit:focus,
.rt-step-actions .prevBtn:focus,
.rt-step-actions .nextBtn:focus {
	outline: 0;
	box-shadow: 0 0 0 3px rgba(79, 132, 176, 0.35);
}

.rt-step-note {
	margin-top: 0.85rem;
	color: var(--rt-muted, #5f6f80);
	font-size: 0.9rem;
	text-align: right;
}

/* Soften GD Preview link so Confirm stays the main action */
#geodirectory-add-post[data-rt-step="step-3"] #geodir-add-listing-submit {
	margin-top: 0.75rem;
	text-align: center;
}

#geodirectory-add-post[data-rt-step="step-3"] #geodir-add-listing-submit .geodir_preview_button {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.45rem 0.9rem;
	border-radius: 999px;
	border: 1px solid #d7dee7;
	background: #fff;
	color: var(--rt-sky, #4f84b0);
	font-weight: 600;
	font-size: 0.9rem;
	text-decoration: none;
}

#geodirectory-add-post[data-rt-step="step-3"] #geodir-add-listing-submit .geodir_preview_button:hover {
	border-color: var(--rt-sky, #4f84b0);
	color: var(--rt-navy, #0b2c55);
}

@media (max-width: 640px) {
	.rt-step-actions {
		flex-direction: column-reverse;
		align-items: stretch;
	}

	.rt-step-actions .rt-wizard-btn,
	.rt-step-actions .rt-btn-prev,
	.rt-step-actions .rt-btn-continue,
	.rt-step-actions .rt-confirm-submit,
	.rt-step-actions .prevBtn,
	.rt-step-actions .nextBtn,
	.rt-step-actions .btn {
		width: 100%;
		margin-right: 0;
		min-width: 0;
	}

	.rt-step-note {
		text-align: left;
	}
}
