/* ==========================================================================
   TourNine Travel Directory — front-end styles
   Mobile-first, brand colors from the TourNine logo (red + gold accent).
   ========================================================================== */

:root {
	--tn-primary: #C42218;
	--tn-primary-dark: #9E1B13;
	--tn-accent: #EAA22B;
	--tn-accent-dark: #C98315;
	--tn-ink: #1f2937;
	--tn-gray: #6b7280;
	--tn-gray-light: #9ca3af;
	--tn-border: #e5e7eb;
	--tn-bg-alt: #f7f9fb;
	--tn-white: #ffffff;
	--tn-radius: 12px;
	--tn-shadow: 0 4px 16px rgba(17, 24, 39, 0.08);
	--tn-max-width: 1180px;
}

/* ---- Reset & base ---- */
.tn-dir-body, .tn-dir-body * , .tn-dir-body *::before, .tn-dir-body *::after { box-sizing: border-box; }
.tn-dir-body {
	margin: 0;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	color: var(--tn-ink);
	line-height: 1.6;
	background: var(--tn-white);
	overflow-x: hidden;
}
.tn-dir-body img { max-width: 100%; height: auto; display: block; }
.tn-dir-body a { color: var(--tn-primary); text-decoration: none; }
.tn-dir-body a:hover { color: var(--tn-primary-dark); }
.tn-dir-body h1, .tn-dir-body h2, .tn-dir-body h3 { line-height: 1.25; margin: 0 0 12px; font-weight: 700; }
.tn-dir-body ul { margin: 0; padding: 0; list-style: none; }

.tn-container { max-width: var(--tn-max-width); margin: 0 auto; padding: 0 20px; }

/* ---- Buttons ---- */
.tn-btn {
	display: inline-block;
	padding: 12px 24px;
	border-radius: 999px;
	font-weight: 600;
	font-size: 15px;
	border: 2px solid transparent;
	cursor: pointer;
	text-align: center;
}
.tn-btn-primary { background: var(--tn-primary); border-color: var(--tn-primary); color: #fff; }
.tn-btn-primary:hover { background: var(--tn-primary-dark); border-color: var(--tn-primary-dark); color: #fff; }
.tn-btn-outline { background: transparent; border-color: var(--tn-primary); color: var(--tn-primary); }
.tn-btn-outline:hover { background: var(--tn-primary); color: #fff; }
.tn-btn-white { background: #fff; border-color: #fff; color: var(--tn-primary-dark); }
.tn-btn-white:hover { background: transparent; color: #fff; }
.tn-btn-block { display: block; width: 100%; margin-top: 8px; }

/* ---- Header ---- */
.tn-header { position: sticky; top: 0; z-index: 100; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,0.06); }
.tn-header-inner { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; }
.tn-logo img { height: 42px; width: auto; }
.tn-nav { display: flex; align-items: center; gap: 28px; }
.tn-nav a { color: var(--tn-ink); font-weight: 600; font-size: 15px; }
.tn-nav a.active, .tn-nav a:hover { color: var(--tn-primary); }
.tn-nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.tn-nav-toggle span { width: 24px; height: 2px; background: var(--tn-ink); display: block; }

/* "Theme Tours" / "For Agents" nav dropdowns.
   On real pointer devices (desktop) they open on hover, matching the
   requested behavior; on touch devices they open on tap (see scripts.js) -
   :hover doesn't fire reliably there so we scope it to (hover: hover). */
.tn-nav-dropdown { position: relative; }
.tn-nav-dropdown-toggle {
	background: none; border: none; cursor: pointer; font: inherit; color: var(--tn-ink);
	font-weight: 600; font-size: 15px; display: flex; align-items: center; gap: 4px; padding: 0;
}
.tn-nav-dropdown-toggle:hover { color: var(--tn-primary); }
.tn-nav-dropdown-toggle .tn-chevron { font-size: 12px; transition: transform 0.2s ease; }
.tn-nav-dropdown-open .tn-nav-dropdown-toggle .tn-chevron { transform: rotate(180deg); }
.tn-nav-dropdown-menu {
	display: none; position: absolute; top: 100%; left: 0; margin-top: 14px; background: #fff;
	border-radius: 10px; box-shadow: var(--tn-shadow); min-width: 240px; padding: 8px 0; z-index: 10;
}
.tn-nav-dropdown-open .tn-nav-dropdown-menu { display: block; }
.tn-nav-dropdown-menu a { display: block; padding: 10px 18px; font-size: 14px; font-weight: 500; white-space: nowrap; }
.tn-nav-dropdown-menu a:hover { background: var(--tn-bg-alt); color: var(--tn-primary); }

@media (hover: hover) and (pointer: fine) {
	.tn-nav-dropdown:hover .tn-nav-dropdown-menu { display: block; }
	.tn-nav-dropdown:hover .tn-nav-dropdown-toggle .tn-chevron { transform: rotate(180deg); }
}

/* "For Agents" - styled like the old CTA pill button, not a plain text link. */
.tn-nav-dropdown-cta .tn-nav-dropdown-toggle {
	background: var(--tn-primary); color: #fff; padding: 10px 20px; border-radius: 999px;
}
.tn-nav-dropdown-cta .tn-nav-dropdown-toggle:hover { background: var(--tn-primary-dark); color: #fff; }
.tn-nav-dropdown-cta .tn-nav-dropdown-menu { right: 0; left: auto; }

/* ---- Hero ---- */
.tn-hero {
	background: linear-gradient(135deg, var(--tn-primary) 0%, var(--tn-primary-dark) 100%);
	color: #fff;
	padding: 60px 0 90px;
	text-align: center;
}
.tn-hero h1 { font-size: 32px; max-width: 720px; margin: 0 auto 12px; }
.tn-hero-sub { font-size: 17px; opacity: 0.92; max-width: 560px; margin: 0 auto 32px; }
.tn-hero-search {
	background: #fff;
	border-radius: var(--tn-radius);
	padding: 16px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	max-width: 760px;
	margin: 0 auto;
	box-shadow: var(--tn-shadow);
}
.tn-hero-search-field { text-align: left; flex: 1; }
.tn-hero-search-field label { display: block; font-size: 12px; font-weight: 700; color: var(--tn-gray); text-transform: uppercase; margin-bottom: 4px; }
.tn-hero-search-field input, .tn-hero-search-field select {
	width: 100%; padding: 10px 12px; border: 1px solid var(--tn-border); border-radius: 8px; font-size: 15px; color: var(--tn-ink);
}
.tn-hero-search .tn-btn { white-space: nowrap; }

/* ---- Why strip ---- */
.tn-why-strip { background: var(--tn-bg-alt); padding: 32px 0; }
.tn-why-grid { display: flex; flex-direction: column; gap: 20px; }
.tn-why-item { display: flex; align-items: flex-start; gap: 14px; }
.tn-why-icon { font-size: 28px; }
.tn-why-item strong { display: block; margin-bottom: 2px; }
.tn-why-item p { margin: 0; color: var(--tn-gray); font-size: 14px; }

/* ---- Sections ---- */
.tn-section { padding: 56px 0; }
.tn-section-alt { background: var(--tn-bg-alt); }
.tn-section-title { font-size: 26px; text-align: center; }
.tn-section-sub { text-align: center; color: var(--tn-gray); margin: 0 0 32px; }
.tn-section-cta { text-align: center; margin-top: 28px; }
.tn-empty { text-align: center; color: var(--tn-gray); padding: 30px 0; }

/* ---- Destination grid ---- */
.tn-destination-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.tn-destination-item { position: relative; border-radius: var(--tn-radius); overflow: hidden; aspect-ratio: 4/3; }
.tn-destination-item img { width: 100%; height: 100%; object-fit: cover; }
.tn-destination-item span {
	position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 12px;
	background: linear-gradient(0deg, rgba(0,0,0,0.65), transparent);
	color: #fff; font-weight: 700; font-size: 14px;
}

/* ---- Card grid (agencies & packages) ---- */
.tn-card-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.tn-card {
	background: #fff; border: 1px solid var(--tn-border); border-radius: var(--tn-radius); overflow: hidden;
	box-shadow: var(--tn-shadow); display: flex; flex-direction: column;
}
.tn-card-image { position: relative; display: block; aspect-ratio: 16/10; overflow: hidden; background: var(--tn-bg-alt); }
.tn-card-image img { width: 100%; height: 100%; object-fit: cover; }
.tn-card-tag {
	position: absolute; top: 10px; left: 10px; background: #fff; color: var(--tn-primary-dark);
	font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px;
}
.tn-tag-featured { background: var(--tn-accent); color: #fff; }
.tn-card-body { padding: 16px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.tn-card-body h3 { font-size: 17px; margin: 0; }
.tn-card-meta { color: var(--tn-gray); font-size: 13px; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.tn-price { font-weight: 700; font-size: 18px; color: var(--tn-primary-dark); }
.tn-price small { font-weight: 400; font-size: 12px; color: var(--tn-gray); }

.tn-agency-card-head { display: flex; gap: 10px; align-items: center; }
.tn-agency-logo-sm { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 1px solid var(--tn-border); flex-shrink: 0; }
.tn-verified { color: var(--tn-primary); font-size: 13px; }

.tn-stars { color: #e5c76b; letter-spacing: 1px; }
.tn-star-empty { color: #dcdcdc; }
.tn-rating-count { color: var(--tn-gray); font-size: 13px; margin-left: 4px; }

/* ---- CTA banner ---- */
.tn-cta-banner { background: linear-gradient(135deg, var(--tn-primary) 0%, var(--tn-primary-dark) 100%); color: #fff; padding: 40px 0; }
.tn-cta-banner-inner { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; text-align: left; }
.tn-cta-banner h2 { margin: 0 0 6px; }
.tn-cta-banner p { margin: 0; opacity: 0.95; }

/* ---- Footer ---- */
.tn-footer {
	background-color: #111113;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	color: #cbd5df;
	margin-top: 40px;
}
.tn-footer-inner { padding: 56px 20px 24px; }
.tn-footer-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
.tn-footer-logo { height: 42px; width: auto; display: block; margin-bottom: 16px; }
.tn-footer-about p { max-width: 340px; line-height: 1.65; font-size: 14px; }
.tn-footer h4 { color: #fff; margin: 0 0 14px; font-size: 14px; text-transform: uppercase; letter-spacing: 0.04em; }
.tn-footer ul { list-style: none; margin: 0; padding: 0; }
.tn-footer ul li { margin-bottom: 9px; font-size: 14px; }
.tn-footer a { color: #cbd5df; text-decoration: none; }
.tn-footer a:hover { color: #fff; }
.tn-footer-social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.tn-footer-social a {
	display: inline-flex; align-items: center; justify-content: center;
	padding: 6px 14px; border: 1px solid rgba(255,255,255,0.25); border-radius: 999px; font-size: 13px;
}
.tn-footer-social a:hover { background: rgba(255,255,255,0.12); color: #fff; }
.tn-footer-contact li { display: flex; gap: 8px; align-items: flex-start; }
.tn-footer-bottom {
	border-top: 1px solid rgba(255,255,255,0.12);
	padding: 16px 0; text-align: center; font-size: 13px;
	background: rgba(0,0,0,0.28);
}
@media (min-width: 560px) {
	.tn-footer-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---- 404 page ---- */
.tn-404-inner { text-align: center; padding: 80px 20px 100px; }
.tn-404-code { font-size: 90px; font-weight: 800; color: var(--tn-primary); margin: 0; line-height: 1; }
.tn-404-inner h1 { font-size: 26px; margin: 10px 0; }
.tn-404-inner p { color: var(--tn-gray); max-width: 480px; margin: 0 auto 24px; }
.tn-404-links { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ---- Directory (archive) pages ---- */
.tn-page-title { font-size: 26px; margin: 30px 0 20px; }
.tn-directory-layout { display: flex; flex-direction: column; gap: 24px; padding-bottom: 60px; }
.tn-filters { background: var(--tn-bg-alt); border-radius: var(--tn-radius); padding: 20px; }
.tn-filter-group { margin-bottom: 14px; }
.tn-filter-group label { display: block; font-weight: 700; font-size: 13px; margin-bottom: 4px; }
.tn-filter-group input, .tn-filter-group select { width: 100%; padding: 9px 10px; border: 1px solid var(--tn-border); border-radius: 8px; }
.tn-clear-filters { display: block; text-align: center; margin-top: 10px; font-size: 13px; }
.tn-result-count { color: var(--tn-gray); margin: 0 0 16px; }
.tn-pagination { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 30px; }
.tn-pagination span, .tn-pagination a { padding: 8px 14px; border: 1px solid var(--tn-border); border-radius: 8px; color: var(--tn-ink); }
.tn-pagination .current { background: var(--tn-primary); color: #fff; border-color: var(--tn-primary); }

/* ---- Single agency / package ---- */
.tn-agency-cover { height: 220px; background-size: cover; background-position: center; }
.tn-agency-head { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: -50px; position: relative; padding-bottom: 20px; }
.tn-agency-logo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 4px solid #fff; box-shadow: var(--tn-shadow); background: #fff; }
.tn-agency-head-info { flex: 1; min-width: 200px; }
.tn-agency-head-info h1 { font-size: 24px; margin: 0 0 6px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tn-call-btn { align-self: flex-start; }

.tn-agency-body { display: flex; flex-direction: column; gap: 30px; padding: 10px 0 40px; }
.tn-block { margin-bottom: 34px; }
.tn-block h2 { font-size: 20px; border-bottom: 2px solid var(--tn-bg-alt); padding-bottom: 10px; }
.tn-chip-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tn-chip { background: var(--tn-bg-alt); color: var(--tn-ink); padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.tn-chip-accent { background: var(--tn-primary); color: #fff; }
a.tn-chip { text-decoration: none; }
a.tn-chip:hover { background: var(--tn-primary); color: #fff; }
.tn-listing-origins { align-items: center; margin: 4px 0 22px; }
.tn-chip-label { font-size: 13px; font-weight: 700; color: var(--tn-gray); margin-right: 2px; }
.tn-listing-crumb { margin: -4px 0 20px; }
.tn-listing-crumb a { font-size: 14px; font-weight: 600; color: var(--tn-primary); text-decoration: none; }
.tn-listing-crumb a:hover { text-decoration: underline; }
.tn-includes-list { display: grid; grid-template-columns: 1fr; gap: 8px; }
.tn-includes-list li { font-size: 14px; }
.tn-gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.tn-gallery-grid img { border-radius: 8px; aspect-ratio: 1/1; object-fit: cover; }

.tn-agency-sidebar { display: flex; flex-direction: column; gap: 20px; }
.tn-sidebar-box { background: var(--tn-bg-alt); border-radius: var(--tn-radius); padding: 20px; }
.tn-sidebar-box h3 { font-size: 16px; }
.tn-sidebar-box p { margin: 0 0 10px; font-size: 14px; word-break: break-word; }

/* ---- Tour Package cards + "View Full Details" popup modal ---- */
.tn-package-grid { display: grid; grid-template-columns: 1fr; gap: 20px; align-items: start; }
.tn-package-card {
	background: #fff; border: 1px solid var(--tn-border); border-radius: var(--tn-radius); overflow: hidden;
	box-shadow: var(--tn-shadow); display: flex; flex-direction: column;
}
.tn-package-card-image { position: relative; aspect-ratio: 16/10; overflow: hidden; background: var(--tn-bg-alt); }
.tn-package-card-image img { width: 100%; height: 100%; object-fit: cover; }
.tn-duration-badge {
	position: absolute; top: 10px; right: 10px; background: rgba(0,0,0,0.65); color: #fff;
	font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px;
}
.tn-package-card-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.tn-package-card-body h3 { font-size: 17px; margin: 0 0 4px; }
.tn-package-highlights { list-style: none; margin: 10px 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 4px; }
.tn-package-highlights li { font-size: 13px; color: var(--tn-gray); padding-left: 16px; position: relative; }
.tn-package-highlights li::before { content: "•"; color: var(--tn-primary); position: absolute; left: 0; font-weight: 700; }
.tn-package-price-box {
	margin-top: auto; padding-top: 12px; border-top: 1px solid var(--tn-border);
	display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap;
}
.tn-package-more-btn {
	font-size: 13px; font-weight: 700; color: #fff; white-space: nowrap; cursor: pointer;
	background: var(--tn-primary); border: none; padding: 8px 14px; border-radius: 999px;
}
.tn-package-more-btn:hover { background: var(--tn-primary-dark); }

/* Popup modal (native <dialog> - centered, dimmed backdrop, closes on Esc,
   backdrop click, or the × button; see assets/js/scripts.js). */
.tn-package-modal {
	border: none; border-radius: var(--tn-radius); padding: 0; width: min(640px, 92vw);
	max-height: 88vh; box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.tn-package-modal::backdrop { background: rgba(15, 23, 42, 0.6); }
.tn-package-modal-inner { padding: 24px; overflow-y: auto; max-height: 88vh; font-size: 18px; }
.tn-package-modal-inner h3 { font-size: 22px; margin: 0 0 8px; }
.tn-package-modal-inner h4 { font-size: 18px; margin: 18px 0 8px; }
.tn-package-modal-inner p,
.tn-package-modal-inner li,
.tn-package-modal-inner .tn-chip,
.tn-package-modal-inner .tn-card-meta { font-size: 18px; }
.tn-package-modal-image { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 8px; margin-bottom: 16px; }
.tn-modal-close {
	position: absolute; top: 12px; right: 12px; z-index: 2; width: 36px; height: 36px; border-radius: 50%;
	border: none; background: rgba(0,0,0,0.55); color: #fff; font-size: 16px; cursor: pointer;
	display: flex; align-items: center; justify-content: center;
}
.tn-modal-close:hover { background: rgba(0,0,0,0.8); }
.tn-package-agency-box {
	margin-top: 18px; padding: 14px; background: var(--tn-bg-alt); border-radius: var(--tn-radius);
	display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; font-size: 18px;
}
.tn-package-agency-actions { display: flex; gap: 8px; flex-wrap: wrap; }

@media (max-width: 599px) {
	/* Full-screen on phones so the popup never feels cramped or clipped. */
	.tn-package-modal { width: 100vw; height: 100%; max-height: 100vh; max-width: 100vw; border-radius: 0; }
	.tn-package-modal-inner { max-height: 100vh; }
}

/* ---- Forms (frontend submissions + comment form) ---- */
.tn-form-wrap { padding: 30px 0 60px; }
.tn-frontend-form h3 { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--tn-border); font-size: 17px; }
.tn-frontend-form h3:first-of-type { margin-top: 0; border-top: none; padding-top: 0; }
.tn-field { margin-bottom: 16px; }
.tn-field label { display: block; font-weight: 600; margin-bottom: 6px; font-size: 14px; }
.widefat { width: 100%; }
.tn-frontend-form input[type="text"], .tn-frontend-form input[type="email"], .tn-frontend-form input[type="tel"],
.tn-frontend-form input[type="url"], .tn-frontend-form input[type="number"], .tn-frontend-form input[type="date"],
.tn-frontend-form input[type="file"], .tn-frontend-form select, .tn-frontend-form textarea {
	width: 100%; padding: 11px 12px; border: 1px solid var(--tn-border); border-radius: 8px; font-size: 15px; font-family: inherit;
}
.tn-frontend-form .tn-checkbox-grid {
	display: grid; grid-template-columns: 1fr; gap: 10px 20px; margin: 8px 0 20px;
}
.tn-frontend-form .tn-checkbox-item { font-size: 18px; display: flex; align-items: center; gap: 8px; }
.tn-hp { position: absolute; left: -9999px; }
.tn-alert { padding: 16px 18px; border-radius: 10px; margin-bottom: 20px; }
.tn-alert-success { background: #d7f5e5; color: #0a7a3c; }
.tn-alert-error { background: #fde2e2; color: #a3231f; }
.tn-alert-error ul { margin: 8px 0 0 18px; list-style: disc; }

/* Comment / review form (native WP, lightly themed) */
#comments { margin-top: 20px; }
.comment-form input, .comment-form textarea, .comment-form select { width: 100%; padding: 10px 12px; border: 1px solid var(--tn-border); border-radius: 8px; margin-bottom: 12px; }
.comment-list { margin: 20px 0; }
.comment-list .comment { border-bottom: 1px solid var(--tn-border); padding: 16px 0; }
.comment-list .comment-author { font-weight: 700; }

/* ---- Responsive breakpoints ---- */
@media (min-width: 560px) {
	.tn-why-grid { flex-direction: row; }
	.tn-destination-grid { grid-template-columns: repeat(3, 1fr); }
	.tn-card-grid { grid-template-columns: repeat(2, 1fr); }
	.tn-package-grid { grid-template-columns: repeat(2, 1fr); }
	.tn-gallery-grid { grid-template-columns: repeat(3, 1fr); }
	.tn-includes-list { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
	.tn-hero h1 { font-size: 40px; }
	.tn-hero-search { flex-direction: row; align-items: flex-end; }
	.tn-footer-grid { grid-template-columns: repeat(3, 1fr); }
	.tn-footer-about { grid-column: 1 / -1; }
	.tn-cta-banner-inner { flex-direction: row; align-items: center; justify-content: space-between; text-align: left; }
	.tn-agency-head { padding-bottom: 30px; }
	.tn-directory-layout { flex-direction: row; align-items: flex-start; }
	.tn-filters { width: 260px; flex-shrink: 0; position: sticky; top: 90px; }
	.tn-directory-results { flex: 1; min-width: 0; }
	.tn-card-grid { grid-template-columns: repeat(3, 1fr); }
	.tn-package-grid { grid-template-columns: repeat(2, 1fr); }
	.tn-frontend-form .tn-checkbox-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
	.tn-nav-toggle { display: none; }
	.tn-nav { display: flex; }
	.tn-hero { padding: 90px 0 130px; }
	.tn-agency-body { flex-direction: row; align-items: flex-start; }
	.tn-agency-main { flex: 1; min-width: 0; }
	.tn-agency-sidebar { width: 300px; flex-shrink: 0; }
	.tn-destination-grid { grid-template-columns: repeat(4, 1fr); }
	.tn-package-grid { grid-template-columns: repeat(3, 1fr); }
	.tn-footer-grid { grid-template-columns: 1.7fr 1fr 1.2fr 1fr; }
	.tn-footer-about { grid-column: auto; }
}

/* ---- Mobile nav (below 1024px) ---- */
@media (max-width: 1023px) {
	.tn-nav-toggle { display: flex; }
	.tn-nav {
		position: absolute; top: 100%; left: 0; right: 0; background: #fff;
		flex-direction: column; align-items: stretch; gap: 0;
		box-shadow: 0 8px 16px rgba(0,0,0,0.08);
		max-height: 0; overflow: hidden; transition: max-height 0.25s ease;
	}
	.tn-nav.tn-nav-open { max-height: 600px; overflow-y: auto; }
	.tn-nav a { padding: 14px 20px; border-bottom: 1px solid var(--tn-border); }
	.tn-header-inner { position: relative; }

	/* On mobile the dropdown opens inline (indented list) instead of a flyout. */
	.tn-nav-dropdown-toggle { width: 100%; padding: 14px 20px; border-bottom: 1px solid var(--tn-border); justify-content: space-between; }
	.tn-nav-dropdown-cta .tn-nav-dropdown-toggle { background: none; color: var(--tn-ink); border-radius: 0; }
	.tn-nav-dropdown-cta .tn-nav-dropdown-toggle:hover { background: var(--tn-bg-alt); color: var(--tn-primary); }
	.tn-nav-dropdown-menu {
		display: none; position: static; box-shadow: none; border-radius: 0; margin: 0;
		background: var(--tn-bg-alt); padding: 0;
	}
	.tn-nav-dropdown-open .tn-nav-dropdown-menu { display: block; }
	.tn-nav-dropdown-menu a { padding: 12px 20px 12px 32px; border-bottom: 1px solid var(--tn-border); }
}
