/**
 * TourTheme – Additional compiled CSS.
 *
 * This file supplements style.css with any component-specific or
 * page-specific styles that benefit from being in a separate cache layer.
 *
 * @package TourTheme
 */

/* === CSS Custom Properties (Design Tokens) ============================= */
:root {
	--tt-primary:    #006b5e;
	--tt-secondary:  #00a896;
	--tt-background: #ffffff;
	--tt-surface:    #ffffff;
	--tt-dark:       #1a1a1a;
	--tt-light:      #f9f9f9;
	--tt-border:     #e5e5e5;
	--tt-text:       #1a1a1a;
	--tt-muted:      #888888;
	--tt-radius:     8px;
	--tt-button-radius: 4px;
	--tt-section-spacing: 3rem;
	--tt-transition: 0.2s ease;
}

/* === Front-page Section Titles ========================================= */
.section-title {
	font-size: clamp(1.5rem, 3vw, 2rem);
	margin-bottom: 1rem;
	padding-bottom: 0.5rem;
	border-bottom: 3px solid var(--tt-primary);
	display: inline-block;
}

.section-link {
	text-align: center;
	margin-top: 1.5rem;
}

.frontpage-section {
	padding-block: var(--tt-section-spacing);
}

.frontpage-section:nth-child(even) {
	background: var(--tt-light);
}

/* === Primary colour override (from Customizer) ========================= */
.btn-primary {
	background: var(--tt-primary);
}

.btn-primary:hover {
	background: color-mix(in srgb, var(--tt-primary) 85%, #000);
}

.btn-outline {
	border-color: var(--tt-primary);
	color: var(--tt-primary);
}

.btn-outline:hover {
	background: var(--tt-primary);
	color: #fff;
}

.widget-title {
	border-bottom-color: var(--tt-primary);
}

.page-numbers.current,
.page-numbers:hover {
	background: var(--tt-primary);
	border-color: var(--tt-primary);
}

.search-submit {
	background: var(--tt-primary);
}

.hero-section {
	background: linear-gradient(135deg, var(--tt-primary) 0%, var(--tt-secondary) 100%);
}

/* === Sticky header shadow on scroll ==================================== */
.site-header.scrolled {
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* === Breadcrumbs ======================================================== */
.tourtheme-breadcrumbs {
	padding-block: 0.75rem;
	border-bottom: 1px solid var(--tt-border);
	background: var(--tt-surface);
}

.tourtheme-breadcrumbs ol {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.35rem;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 0.9rem;
}

.tourtheme-breadcrumbs li {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
}

.tourtheme-breadcrumbs li:not(:last-child)::after {
	content: "›";
	color: var(--tt-muted);
}

.tourtheme-breadcrumbs span[aria-current="page"] {
	font-weight: 600;
}

/* === Post navigation =================================================== */
.post-navigation {
	margin-block: 2rem;
	padding-block: 1.5rem;
	border-top: 1px solid var(--tt-border);
	border-bottom: 1px solid var(--tt-border);
}

.post-navigation .nav-links {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 1rem;
}

.post-navigation .nav-previous,
.post-navigation .nav-next {
	display: flex;
	flex-direction: column;
}

.post-navigation .nav-next {
	text-align: end;
}

.post-navigation .nav-subtitle {
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--tt-muted);
}

/* === Destination / Hotel / Guide / Offer single meta =================== */
.destination-single .entry-thumbnail,
.hotel-single .entry-thumbnail,
.guide-single .entry-thumbnail,
.offer-single .entry-thumbnail {
	border-radius: var(--tt-radius);
	overflow: hidden;
	margin-bottom: 1.5rem;
}

/* === Star rating ======================================================= */
.hotel-stars .star.filled {
	color: #f59e0b;
}

.hotel-stars .star.empty {
	color: var(--tt-border);
}

.tourtheme-rating {
	margin-top: 0.5rem;
}

.tourtheme-rating-stars .star.filled {
	color: #f59e0b;
}

.tourtheme-rating-stars .star.empty {
	color: var(--tt-border);
}

.tourtheme-rating-text {
	margin: 0.3rem 0 0;
	font-size: 0.9rem;
	color: var(--tt-muted);
}

.tourtheme-trust-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 0.75rem;
}

.tourtheme-trust-badge {
	display: inline-flex;
	align-items: center;
	padding: 0.35rem 0.7rem;
	border-radius: 999px;
	font-size: 0.8rem;
	font-weight: 600;
	background: rgba(0, 107, 94, 0.08);
	color: var(--tt-primary);
}

.tourtheme-trust-badge.badge-recommended {
	background: rgba(16, 185, 129, 0.12);
	color: #047857;
}

.tourtheme-trust-badge.badge-most-popular {
	background: rgba(245, 158, 11, 0.14);
	color: #b45309;
}

.tourtheme-trust-badge.badge-recently-updated {
	background: rgba(59, 130, 246, 0.12);
	color: #1d4ed8;
}

.tourtheme-trust-badge.badge-community-active {
	background: rgba(139, 92, 246, 0.12);
	color: #6d28d9;
}

.tourtheme-community-proof {
	font-weight: 600;
	color: var(--tt-primary);
}

/* === Responsive tables in entry-content ================================ */
.entry-content table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 1rem;
	font-size: 0.9rem;
}

.entry-content th,
.entry-content td {
	padding: 0.6rem 0.75rem;
	border: 1px solid var(--tt-border);
	text-align: start;
}

.entry-content th {
	background: var(--tt-light);
	font-weight: 600;
}

/* === Booking inquiry form ================================================ */
.booking-inquiry {
	margin-top: 2rem;
	padding: 1.25rem;
	border: 1px solid var(--tt-border);
	border-radius: var(--tt-radius);
	background: var(--tt-surface);
}

.booking-inquiry h2 {
	margin-top: 0;
}

.booking-intro {
	color: var(--tt-muted);
}

.booking-field {
	margin-bottom: 1rem;
}

.booking-field label {
	display: block;
	margin-bottom: 0.35rem;
	font-weight: 600;
}

.booking-field input,
.booking-field textarea {
	width: 100%;
}

.booking-field-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
}

.booking-field-hidden {
	position: absolute;
	inset-inline-start: -9999px;
}

.booking-notice {
	padding: 0.65rem 0.8rem;
	border-radius: var(--tt-radius);
}

.booking-notice-success {
	background: #ebf9f2;
	color: #166534;
}

.booking-notice-error {
	background: #fef2f2;
	color: #991b1b;
}

.booking-required {
	color: #b91c1c;
	margin-inline-start: 0.25rem;
}

.booking-contact-shortcuts {
	margin-top: 1rem;
	padding-top: 1rem;
	border-top: 1px solid var(--tt-border);
}

.booking-confidence-note {
	margin: 0 0 1rem;
	padding: 0.85rem 1rem;
	border-radius: var(--tt-radius);
	background: linear-gradient(135deg, rgba(0, 107, 94, 0.08), rgba(0, 168, 150, 0.12));
	color: var(--tt-text);
	font-weight: 600;
}

.booking-contact-note {
	margin-bottom: 0.75rem;
	color: var(--tt-muted);
}

.booking-contact-list,
.frontpage-contact-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.booking-contact-list a,
.frontpage-contact-list a {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.55rem 0.85rem;
	border: 1px solid var(--tt-border);
	border-radius: var(--tt-button-radius);
	background: var(--tt-surface);
}

.booking-contact-list a:hover,
.booking-contact-list a:focus,
.frontpage-contact-list a:hover,
.frontpage-contact-list a:focus {
	border-color: var(--tt-primary);
	text-decoration: none;
}

.frontpage-cta-card {
	padding: 2rem;
	border-radius: var(--tt-radius);
	background: linear-gradient(135deg, rgba(0, 107, 94, 0.08), rgba(0, 168, 150, 0.12));
	border: 1px solid rgba(0, 107, 94, 0.15);
}

.frontpage-cta-text {
	max-width: 760px;
	color: var(--tt-text);
}

.frontpage-cta-actions {
	margin-block: 1.25rem;
}

/* === Comment rating ===================================================== */
.comment-form-tourtheme-rating label {
	display: block;
	margin-bottom: 0.35rem;
	font-weight: 600;
}

.comment-form-tourtheme-rating select {
	min-width: 220px;
}

/* === Social share ======================================================= */
.tourtheme-share {
	margin-top: 2rem;
	padding: 1rem;
	border: 1px solid var(--tt-border);
	border-radius: var(--tt-radius);
	background: var(--tt-surface);
}

.tourtheme-share-title {
	margin: 0 0 0.75rem;
	font-size: 1.05rem;
}

.tourtheme-share-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.tourtheme-share-button {
	padding: 0.45rem 0.7rem;
	border: 1px solid var(--tt-border);
	border-radius: 999px;
	background: var(--tt-light);
	font-size: 0.9rem;
	cursor: pointer;
}

.tourtheme-share-button:hover,
.tourtheme-share-button:focus {
	border-color: var(--tt-primary);
	color: var(--tt-primary);
}

.tourtheme-community-section {
	margin-top: 2rem;
	padding: 1.25rem;
	border: 1px solid var(--tt-border);
	border-radius: var(--tt-radius);
	background: var(--tt-surface);
}

.tourtheme-community-section h2 {
	margin-top: 0;
}

.tourtheme-community-summary {
	margin: 0 0 1rem;
	color: var(--tt-muted);
}

.tourtheme-community-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 1rem;
}

.tourtheme-community-card {
	padding: 1rem;
	border: 1px solid var(--tt-border);
	border-radius: var(--tt-radius);
	background: var(--tt-surface);
}

.tourtheme-community-card-header,
.tourtheme-community-meta {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 0.5rem;
}

.tourtheme-community-card-title {
	margin: 0;
	font-size: 1rem;
}

.tourtheme-community-date,
.tourtheme-community-meta,
.tourtheme-community-text {
	color: var(--tt-muted);
	font-size: 0.92rem;
}

.tourtheme-community-rating {
	margin: 0.5rem 0;
	color: #f59e0b;
}

.tourtheme-featured-review-context {
	color: var(--tt-muted);
	font-size: 0.9rem;
}

.tourtheme-community-actions {
	margin-top: 1rem;
}

.tourtheme-related-content {
	margin-top: 2rem;
}

.tourtheme-related-group + .tourtheme-related-group {
	margin-top: 1.5rem;
}

.tourtheme-related-group .card-grid {
	margin-top: 1rem;
}

/* === Map embed =========================================================== */
.tourtheme-map-embed {
	margin-top: 2rem;
}

.map-embed-frame {
	border: 1px solid var(--tt-border);
	border-radius: var(--tt-radius);
	overflow: hidden;
}

.map-embed-frame iframe {
	display: block;
	border: 0;
}

/* === Destination gallery + lightbox ===================================== */
.destination-gallery {
	margin-top: 2rem;
}

.destination-gallery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 0.75rem;
}

.destination-gallery-grid a {
	display: block;
	border-radius: var(--tt-radius);
	overflow: hidden;
}

.destination-gallery-grid img {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	transition: transform var(--tt-transition);
}

.destination-gallery-grid a:hover img {
	transform: scale(1.03);
}

.tourtheme-lightbox {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: grid;
	place-items: center;
	padding: 1rem;
	background: rgba(0, 0, 0, 0.8);
}

.tourtheme-lightbox[hidden] {
	display: none;
}

.tourtheme-lightbox-image {
	max-width: min(90vw, 1200px);
	max-height: 85vh;
	border-radius: var(--tt-radius);
}

.tourtheme-lightbox-close {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	width: 2.5rem;
	height: 2.5rem;
	border: 0;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.9);
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
}

/* === Search filters + live search ======================================= */
.tourtheme-search-filters {
	display: grid;
	gap: 1rem;
	margin-bottom: 1.5rem;
	padding: 1rem;
	border: 1px solid var(--tt-border);
	border-radius: var(--tt-radius);
	background: #fff;
}

.filter-field label,
.filter-group legend {
	display: block;
	margin-bottom: 0.35rem;
	font-weight: 600;
}

.filter-group {
	margin: 0;
	padding: 0;
	border: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1rem;
}

.filter-field-group {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
}

.tourtheme-live-search-results {
	margin: 0.35rem 0 0;
	padding: 0;
	list-style: none;
	border: 1px solid var(--tt-border);
	border-radius: var(--tt-radius);
	background: #fff;
}

.tourtheme-live-search-results li + li {
	border-top: 1px solid var(--tt-border);
}

.tourtheme-live-search-results a {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
	padding: 0.6rem 0.75rem;
	text-decoration: none;
}

.tourtheme-live-search-select {
	display: block;
	width: 100%;
	padding: 0.6rem 0.75rem;
	border: 0;
	background: transparent;
	text-align: start;
	cursor: pointer;
}

.tourtheme-live-search-select:hover,
.tourtheme-live-search-select:focus {
	background: var(--tt-light);
}

.tourtheme-live-search-type {
	color: var(--tt-muted);
	font-size: 0.85rem;
}

.tourtheme-live-search-meta {
	display: block;
	color: var(--tt-muted);
	font-size: 0.82rem;
}

.tourtheme-destination-tools,
.tourtheme-planner-smart-tools {
	margin-top: 2rem;
	padding: 1.25rem;
	border: 1px solid var(--tt-border);
	border-radius: var(--tt-radius);
	background: #fff;
}

.tourtheme-section-heading {
	margin-bottom: 1rem;
}

.tourtheme-section-heading h2 {
	margin: 0 0 0.35rem;
}

.tourtheme-section-heading p,
.tourtheme-tool-note,
.tourtheme-planner-meta {
	color: var(--tt-muted);
	font-size: 0.92rem;
}

.tourtheme-tools-grid,
.tourtheme-planner-summary-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 1rem;
}

.tourtheme-tool-card,
.tourtheme-planner-card,
.tourtheme-planner-day {
	padding: 1rem;
	border: 1px solid var(--tt-border);
	border-radius: var(--tt-radius);
	background: var(--tt-light);
}

.tourtheme-tool-card h3,
.tourtheme-planner-card h3,
.tourtheme-planner-day h2 {
	margin-top: 0;
}

.tourtheme-tool-card-accent {
	background: linear-gradient(135deg, rgba(0, 107, 94, 0.08), rgba(0, 168, 150, 0.12));
	border-color: rgba(0, 107, 94, 0.15);
}

.tourtheme-tool-list,
.tourtheme-planner-day ul {
	margin: 0;
	padding-inline-start: 1.1rem;
}

.tourtheme-planner-card ul {
	margin: 0;
	padding-inline-start: 1.1rem;
}

.tourtheme-planner-results {
	display: grid;
	gap: 1rem;
}

.tourtheme-planner-step,
.tourtheme-planner-saved,
.tourtheme-comparison-panel,
.tourtheme-decision-paths {
	margin-top: 1.5rem;
	padding: 1.25rem;
	border: 1px solid var(--tt-border);
	border-radius: var(--tt-radius);
	background: #fff;
}

.tourtheme-planner-step h2,
.tourtheme-planner-saved h2,
.tourtheme-comparison-panel h2,
.tourtheme-decision-paths h2,
.tourtheme-scenario-group h3 {
	margin-top: 0;
}

.tourtheme-decision-path-grid,
.tourtheme-comparison-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 1rem;
}

.tourtheme-scenario-group {
	padding: 1rem;
	border: 1px solid var(--tt-border);
	border-radius: var(--tt-radius);
	background: var(--tt-light);
}

.tourtheme-discovery-actions,
.tourtheme-planner-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
	margin-top: 1rem;
}

.tourtheme-comparison-highlights,
.tourtheme-comparison-list {
	margin: 0;
	padding-inline-start: 1.1rem;
}

.tourtheme-comparison-highlights {
	margin-bottom: 1rem;
}

.tourtheme-comparison-card {
	padding: 1rem;
	border: 1px solid var(--tt-border);
	border-radius: var(--tt-radius);
	background: var(--tt-light);
}

.tourtheme-planner-item-meta {
	display: block;
	color: var(--tt-muted);
	font-size: 0.82rem;
}

.tourtheme-discovery-shortcuts {
	margin: 0 0 1.5rem;
	padding: 1rem;
	border: 1px solid var(--tt-border);
	border-radius: var(--tt-radius);
	background: var(--tt-light);
}

.tourtheme-discovery-shortcuts-title {
	margin: 0 0 0.75rem;
	font-weight: 600;
}

.tourtheme-discovery-shortcuts-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

.tourtheme-no-results-help,
.tourtheme-results-loading {
	color: var(--tt-muted);
}

.tourtheme-filters-toggle {
	display: none;
	margin: 0 0 1rem;
	padding: 0.75rem 1rem;
	border: 1px solid var(--tt-border);
	border-radius: var(--tt-radius);
	background: #fff;
	font-weight: 600;
}

.tourtheme-marker-list {
	list-style: none;
	margin: 0;
	padding: 1rem;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 1rem;
}

.tourtheme-marker-card {
	padding: 1rem;
	border: 1px solid var(--tt-border);
	border-radius: var(--tt-radius);
	background: #fff;
}

.tourtheme-marker-title,
.tourtheme-marker-type,
.tourtheme-marker-coordinates,
.tourtheme-marker-actions,
.tourtheme-map-empty {
	margin: 0 0 0.75rem;
}

.tourtheme-marker-actions {
	margin-bottom: 0;
}

.tourtheme-map-empty {
	padding: 1rem;
}

body.tourtheme-lightbox-open {
	overflow: hidden;
}

@media (max-width: 600px) {
	.entry-content table {
		display: block;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}

	.booking-field-grid {
		grid-template-columns: 1fr;
	}

	.filter-field-group {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 700px) {
	.tourtheme-filters-toggle {
		display: inline-flex;
		align-items: center;
		justify-content: center;
	}
}

/* === Print styles ====================================================== */
@media print {
	.site-header,
	.site-footer,
	.widget-area,
	.comments-area,
	.post-navigation,
	.main-navigation {
		display: none !important;
	}

	body {
		font-size: 12pt;
		color: #000;
	}

	a[href]::after {
		content: " (" attr(href) ")";
	}
}
