/**
 * Tour Package Manager - Public styles
 * Clean palette: white, gray (no solid black)
 */

/* Variables */
:root {
	--tpm-primary: #333333;
	--tpm-primary-hover: #555555;
	--tpm-teal: #404040;
	--tpm-teal-dark: #2d2d2d;
	--tpm-text: #555555;
	--tpm-text-dark: #333333;
	--tpm-border: #e5e7eb;
	--tpm-bg: #ffffff;
	--tpm-bg-muted: #f5f5f5;
	--tpm-radius: 8px;
	--tpm-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
	--tpm-font: "Noto Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Container */
.tpm-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 1rem;
}

/* Row 1: Country search */
.tpm-row-1 {
	margin-bottom: 1.5rem;
}

.tpm-country-search label {
	display: block;
	margin-bottom: 0.5rem;
	font-weight: 600;
}

.tpm-country-search select {
	width: 100%;
	max-width: 300px;
	padding: 0.75rem 1rem;
	font-size: 1rem;
	border: 1px solid var(--tpm-border);
	border-radius: var(--tpm-radius);
}

/* Tour cards */
.tpm-tour-cards {
	margin-bottom: 2rem;
}

.tpm-tour-cards-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
}

.tpm-tour-card {
	cursor: pointer;
	border: 2px solid var(--tpm-border);
	border-radius: var(--tpm-radius);
	overflow: hidden;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.tpm-tour-card:hover {
	border-color: var(--tpm-primary);
	box-shadow: var(--tpm-shadow);
}

.tpm-tour-card-image,
.tpm-tour-card-slider {
	aspect-ratio: 16/10;
	overflow: hidden;
	background: var(--tpm-bg);
}

.tpm-tour-card-image img,
.tpm-tour-card-slider img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.tpm-tour-card-slider {
	position: relative;
}

.tpm-tour-card-flag {
	position: absolute;
	top: 0.5rem;
	left: 0.5rem;
	z-index: 2;
	font-size: 3rem;
	line-height: 1;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.tpm-tour-card-slider-track {
	position: relative;
	width: 100%;
	height: 100%;
}

.tpm-tour-card-slider-track img {
	position: absolute;
	top: 0;
	left: 0;
	opacity: 0;
	transition: opacity 0.5s ease;
}

.tpm-tour-card-slider-track img.active {
	opacity: 1;
}

.tpm-tour-card-content {
	padding: 1rem;
}

.tpm-tour-card-content h3 {
	margin: 0 0 0.5rem;
	font-size: 1.125rem;
}

.tpm-tour-card-content .tpm-duration {
	margin: 0.25rem 0;
	font-size: 0.875rem;
	color: #6b7280;
}

/* Row 2: Gallery + Info */
.tpm-row-2 {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
	margin-bottom: 2rem;
}

.tpm-col-gallery {
	flex: 1;
}

.tpm-gallery-main {
	aspect-ratio: 16/10;
	background: var(--tpm-bg);
	border-radius: var(--tpm-radius);
	overflow: hidden;
	margin-bottom: 0.5rem;
}

.tpm-gallery-main img,
.tpm-gallery-main video {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.tpm-gallery-thumbs {
	display: flex;
	gap: 0.5rem;
	flex-wrap: wrap;
}

.tpm-gallery-thumb {
	width: 60px;
	height: 40px;
	cursor: pointer;
	border-radius: 4px;
	overflow: hidden;
	border: 2px solid transparent;
}

.tpm-gallery-thumb:hover,
.tpm-gallery-thumb.active {
	border-color: var(--tpm-primary);
}

.tpm-gallery-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.tpm-tour-info .tpm-duration {
	color: #6b7280;
	font-size: 0.875rem;
	margin-bottom: 0.25rem;
}

.tpm-tour-info .tpm-title {
	margin: 0 0 0.5rem;
	font-size: 1.5rem;
}

.tpm-tour-info .tpm-country {
	margin: 0.5rem 0;
}

/* Price box - base/discounted price in tour info */
.tpm-price-box {
	margin: 1rem 0;
	padding: 1rem 1.25rem;
	background: var(--tpm-bg-muted);
	border: 2px solid var(--tpm-primary);
	border-radius: var(--tpm-radius);
}

.tpm-tour-info .tpm-price-box .tpm-price {
	margin: 0;
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--tpm-text-dark);
}

.tpm-tour-info .tpm-price-box .tpm-original-price {
	font-size: 0.875rem;
	font-weight: 500;
	color: #9ca3af;
	margin-right: 0.75rem;
	text-decoration: line-through;
}

.tpm-tour-info .tpm-price-box .tpm-promo-price {
	font-size: 2rem;
	font-weight: 700;
	color: var(--tpm-primary);
}

/* Rates - special styling */
.tpm-rate {
	font-size: 1.25rem;
	font-weight: 600;
	color: var(--tpm-primary, #2563eb);
}

.tpm-total.tpm-rate {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 1.125rem;
	padding: 0.75rem;
	background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(37, 99, 235, 0.04));
	border: 1px solid rgba(37, 99, 235, 0.2);
	border-radius: var(--tpm-radius);
}

.tpm-total .tpm-rate-value {
	font-size: 1.5rem;
	font-weight: 700;
}

.tpm-main-details {
	margin: 1rem 0;
	padding: 1rem 0;
	border-top: 1px solid var(--tpm-border);
}


.tpm-limited-seats {
	margin: 0 0 0.5rem;
	font-size: 0.8125rem;
	color: #dc2626;
	font-style: italic;
}

.tpm-pdf-link {
	display: inline-block;
	margin-top: 1rem;
	padding: 0.75rem 1.5rem;
	font-size: 1rem;
	font-weight: 600;
	text-decoration: none;
	text-align: center;
	border-radius: var(--tpm-radius);
	transition: background 0.2s, transform 0.1s;
}

.tpm-pdf-link:hover {
	transform: translateY(-1px);
}

.tpm-pdf-link.tpm-btn-primary {
	background: var(--tpm-primary);
	color: white;
	border: 2px solid var(--tpm-primary);
}

.tpm-pdf-link.tpm-btn-primary:hover {
	background: var(--tpm-primary-hover);
	border-color: var(--tpm-primary-hover);
	color: white;
}

/* Activity Details per Day - accordion */
.tpm-activity-details-accordion {
	margin-bottom: 1rem;
	border: 1px solid var(--tpm-border);
	border-radius: var(--tpm-radius);
	overflow: hidden;
}

.tpm-accordion-toggle {
	width: 100%;
	padding: 1rem 1.25rem;
	text-align: left;
	font-size: 1rem;
	font-weight: 600;
	background: var(--tpm-bg);
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	transition: background 0.2s;
}

.tpm-accordion-toggle:hover {
	background: #f3f4f6;
}

.tpm-accordion-toggle::after {
	content: '−';
	font-size: 1.25rem;
	line-height: 1;
}

.tpm-accordion-toggle:not(.active)::after {
	content: '+';
}

.tpm-accordion-toggle[aria-expanded="false"] + .tpm-accordion-content {
	display: none;
}

.tpm-accordion-content {
	padding: 1rem 1.25rem;
	border-top: 1px solid var(--tpm-border);
	background: #fff;
}

.tpm-day-detail-card {
	margin-bottom: 1.5rem;
	padding: 1rem;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
}

.tpm-day-detail-card:last-child {
	margin-bottom: 0;
}

.tpm-day-detail-card h4 {
	margin: 0 0 0.75rem;
	font-size: 1rem;
}

.tpm-day-detail-card p {
	margin: 0.25rem 0;
	font-size: 0.9375rem;
}

.tpm-day-photo {
	max-width: 100%;
	height: auto;
	border-radius: 4px;
}

.tpm-day-details-content {
	margin-top: 0.75rem;
	font-size: 0.9375rem;
	line-height: 1.6;
}

.tpm-optional-inline {
	display: none;
}

.tpm-optional-inline.tpm-optional-visible {
	display: block;
}

.tpm-optional-inline.tpm-optional-visible.tpm-optional-card {
	display: flex;
}

/* Optional tour/activity cards - small highlighted cards in activity list */
.tpm-optional-card {
	list-style: none;
	margin: 0.75rem 0;
	padding: 0;
	border: 1px solid var(--tpm-border);
	border-radius: var(--tpm-radius);
	overflow: hidden;
	background: linear-gradient(135deg, #fafbfc 0%, #f5f7fa 100%);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
	transition: border-color 0.2s, box-shadow 0.2s;
}

.tpm-optional-card:hover {
	border-color: var(--tpm-primary);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tpm-optional-card-inner {
	display: flex;
	align-items: stretch;
	min-height: 0;
}

.tpm-optional-card-thumb {
	flex-shrink: 0;
	width: 80px;
	min-height: 60px;
	background: var(--tpm-bg-muted);
}

.tpm-optional-card-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.tpm-optional-card-body {
	flex: 1;
	padding: 0.75rem 1rem;
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}

.tpm-optional-card-badge {
	display: inline-block;
	font-size: 0.6875rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--tpm-primary);
	background: rgba(51, 51, 51, 0.08);
	padding: 0.2rem 0.5rem;
	border-radius: 4px;
	align-self: flex-start;
	margin-bottom: 0.125rem;
}

.tpm-optional-card-title {
	display: block;
	font-size: 0.9375rem;
	color: var(--tpm-text-dark);
}

.tpm-optional-card-desc {
	margin: 0;
	font-size: 0.8125rem;
	color: var(--tpm-text);
	line-height: 1.4;
}

.tpm-optional-card-price {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--tpm-primary);
	margin-top: 0.25rem;
}

.tpm-no-details {
	margin: 0;
	color: #6b7280;
	font-style: italic;
}

/* Row 3: Panel + Details */
.tpm-row-3 {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.tpm-config-panel {
	background: var(--tpm-bg);
	padding: 1.5rem;
	border-radius: var(--tpm-radius);
	border: 1px solid var(--tpm-border);
}

.tpm-config-panel .tpm-field-section {
	margin-bottom: 1.25rem;
	padding-top: 1.25rem;
	border-top: 1px solid var(--tpm-border);
}

.tpm-config-panel .tpm-field-section:first-child {
	padding-top: 0;
	border-top: none;
}

.tpm-section-header {
	margin: 0 0 0.75rem;
	font-size: 0.8125rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--tpm-text);
	border-left: 3px solid var(--tpm-primary);
	padding-left: 0.75rem;
	line-height: 1.3;
}

.tpm-section-header-inline {
	display: inline;
	margin-right: 0.5rem;
	margin-bottom: 0;
}

.tpm-field-section.tpm-total {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.tpm-savings {
	width: 100%;
	margin-top: 0.5rem;
	padding: 0.5rem 0.75rem;
	background: rgba(34, 197, 94, 0.1);
	border: 1px solid rgba(34, 197, 94, 0.3);
	border-radius: 4px;
	font-size: 0.9375rem;
	color: #15803d;
	font-weight: 600;
}

.tpm-config-panel .tpm-field {
	margin-bottom: 1rem;
}

.tpm-config-panel .tpm-field-section.tpm-total .tpm-rate-value {
	font-size: 1.5rem;
	font-weight: 700;
}

.tpm-config-panel label.tpm-sublabel {
	font-weight: 400;
	font-size: 0.9375rem;
	margin-top: 0.5rem;
}

.tpm-config-panel label {
	display: block;
	margin-bottom: 0.5rem;
	font-weight: 500;
}

.tpm-config-panel input[type="text"],
.tpm-config-panel input[type="number"],
.tpm-config-panel input[type="date"],
.tpm-config-panel select {
	width: 100%;
	padding: 0.5rem 0.75rem;
	border: 1px solid var(--tpm-border);
	border-radius: 4px;
}

.tpm-age-group {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.tpm-age-group label {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	margin-right: 0;
	flex-wrap: nowrap;
}

.tpm-age-group input.tpm-age-qty {
	width: 2.8em;
	min-width: 2.8em;
	max-width: 2.8em;
	padding: 0.25em 0.25em;
	text-align: center;
	font-variant-numeric: tabular-nums;
}

.tpm-age-group-text {
	white-space: nowrap;
}

.tpm-age-rate {
	font-size: 0.8125rem;
	color: var(--tpm-text);
	font-weight: normal;
}

/* Promo age groups - prominent display */
.tpm-age-group-item.tpm-age-group-promo {
	display: flex;
	align-items: center;
	flex-wrap: nowrap;
	gap: 0.5rem;
	padding: 0.5rem 0.75rem;
	background: linear-gradient(135deg, #fef3c7 0%, #fef9c3 100%);
	border: 2px solid #f59e0b;
	border-radius: var(--tpm-radius);
	box-shadow: 0 1px 3px rgba(245, 158, 11, 0.2);
}

.tpm-age-group-item.tpm-age-group-promo::before {
	content: "Promo";
	display: inline-block;
	font-size: 0.625rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: #b45309;
	background: #fff;
	padding: 0.2rem 0.5rem;
	border-radius: 4px;
	border: 1px solid #f59e0b;
	margin-right: 0.25rem;
}

.tpm-age-group-item .tpm-original-price {
	text-decoration: line-through;
	color: #9ca3af;
	margin-right: 0.35rem;
}

.tpm-age-group-item .tpm-promo-price {
	font-weight: 700;
	color: var(--tpm-primary);
}

/* Optional tours & activities selection panel - card layout */
#tpm-optional-tours {
	display: flex;
	flex-direction: column;
	gap: 0.75rem;
}

.tpm-optional-select-card {
	display: block;
	cursor: pointer;
	margin: 0;
	border: 2px solid var(--tpm-border);
	border-radius: var(--tpm-radius);
	overflow: hidden;
	background: var(--tpm-bg);
	transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.tpm-optional-select-card:hover {
	border-color: var(--tpm-primary);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.tpm-optional-select-card:has(input:checked),
.tpm-optional-select-card.tpm-optional-select-checked {
	border-color: var(--tpm-primary);
	background: linear-gradient(135deg, #fafbfc 0%, #f0f4f8 100%);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tpm-optional-select-card input[type="checkbox"] {
	position: absolute;
	opacity: 0;
	pointer-events: none;
}

.tpm-optional-select-card-inner {
	display: flex;
	align-items: stretch;
	min-height: 0;
	padding: 0.75rem;
	padding-left: 2.5rem;
	position: relative;
}

.tpm-optional-select-card-inner::before {
	content: "";
	position: absolute;
	left: 0.75rem;
	top: 50%;
	transform: translateY(-50%);
	width: 1.25rem;
	height: 1.25rem;
	border: 2px solid var(--tpm-border);
	border-radius: 4px;
	background: var(--tpm-bg);
	transition: border-color 0.2s, background 0.2s;
}

.tpm-optional-select-card:has(input:checked) .tpm-optional-select-card-inner::before,
.tpm-optional-select-card.tpm-optional-select-checked .tpm-optional-select-card-inner::before {
	border-color: var(--tpm-primary);
	background: var(--tpm-primary);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='white' d='M10.28 2.28L3.989 8.575 1.695 6.28A1 1 0 00.28 7.695l3 3a1 1 0 001.414 0l7-7A1 1 0 0010.28 2.28z'/%3E%3C/svg%3E");
	background-size: 10px;
	background-repeat: no-repeat;
	background-position: center;
}

.tpm-optional-select-card-thumb {
	flex-shrink: 0;
	width: 72px;
	min-height: 54px;
	border-radius: 6px;
	overflow: hidden;
	background: var(--tpm-bg-muted);
	margin-right: 0.75rem;
}

.tpm-optional-select-card-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.tpm-optional-select-card-body {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	min-width: 0;
}

.tpm-optional-select-card-badge {
	display: inline-block;
	font-size: 0.625rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--tpm-primary);
	align-self: flex-start;
}

.tpm-optional-select-card-title {
	display: block;
	font-size: 0.9375rem;
	color: var(--tpm-text-dark);
	line-height: 1.3;
}

.tpm-optional-select-card-day {
	font-size: 0.8125rem;
	color: var(--tpm-text);
}

.tpm-optional-select-card-desc {
	margin: 0;
	font-size: 0.8125rem;
	color: var(--tpm-text);
	line-height: 1.4;
}

.tpm-optional-select-card-price {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--tpm-primary);
	margin-top: 0.125rem;
}

.tpm-optional-qty-row {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	margin-top: 0.5rem;
}

.tpm-optional-qty-label {
	font-size: 0.8125rem;
	color: var(--tpm-text);
}

.tpm-config-panel .tpm-optional-qty-row input.tpm-opt-qty {
	width: 2.8em;
	min-width: 2.8em;
	max-width: 2.8em;
	padding: 0.25em 0.25em;
	text-align: center;
	font-variant-numeric: tabular-nums;
}

.tpm-optional-tours label,
.tpm-optional-activities label {
	display: block;
	margin-bottom: 0.5rem;
	font-weight: normal;
}

.tpm-total {
	margin-top: 1.5rem;
	padding-top: 1rem;
	border-top: 1px solid var(--tpm-border);
	font-size: 1.25rem;
}

.tpm-btn {
	display: inline-block;
	padding: 0.75rem 1.5rem;
	font-size: 1rem;
	font-weight: 600;
	border: none;
	border-radius: var(--tpm-radius);
	cursor: pointer;
	margin-top: 1rem;
}

.tpm-btn-primary {
	background: var(--tpm-primary);
	color: white;
}

.tpm-btn-primary:hover {
	background: var(--tpm-primary-hover);
}

/* Tabbed content */
.tpm-tabbed-content .tpm-tabs {
	display: flex;
	gap: 0;
	border-bottom: 1px solid var(--tpm-border);
	margin-bottom: 1rem;
}

.tpm-tabbed-content .tpm-tab {
	padding: 0.75rem 1.25rem;
	background: var(--tpm-bg);
	border: 1px solid var(--tpm-border);
	border-bottom: none;
	margin-bottom: -1px;
	cursor: pointer;
	border-radius: var(--tpm-radius) var(--tpm-radius) 0 0;
}

.tpm-tabbed-content .tpm-tab.active {
	background: white;
	border-bottom: 1px solid white;
}

.tpm-tabbed-content .tpm-tab[data-tab="important"] {
	color: #b91c1c;
	border-color: #fecaca;
}

.tpm-tabbed-content .tpm-tab[data-tab="important"]:hover {
	background: #fef2f2;
	color: #991b1b;
}

.tpm-tabbed-content .tpm-tab[data-tab="important"].active {
	background: #fef2f2;
	color: #b91c1c;
	border-color: #fecaca;
	border-bottom-color: #fef2f2;
}

.tpm-tabbed-content .tpm-tab-content {
	display: none;
	padding: 1rem 0;
}

.tpm-tabbed-content .tpm-tab-content.active {
	display: block;
}

/* Hotel directory */
.tpm-hotel-directory {
	padding: 1rem 0;
}

.tpm-hotel-filter {
	margin-bottom: 1.5rem;
}

.tpm-hotel-filter select {
	padding: 0.5rem 1rem;
	border: 1px solid var(--tpm-border);
	border-radius: var(--tpm-radius);
}

.tpm-hotel-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
}

.tpm-hotel-card {
	border: 1px solid var(--tpm-border);
	border-radius: var(--tpm-radius);
	overflow: hidden;
	background: white;
	box-shadow: var(--tpm-shadow);
}

.tpm-hotel-card-image img {
	width: 100%;
	height: 200px;
	object-fit: cover;
}

.tpm-hotel-card-content {
	padding: 1rem;
}

.tpm-hotel-card-title {
	margin: 0 0 0.5rem;
	font-size: 1.125rem;
}

.tpm-hotel-card-country,
.tpm-hotel-card-address,
.tpm-hotel-card-price {
	margin: 0.25rem 0;
	font-size: 0.875rem;
	color: #6b7280;
}

.tpm-hotel-card-contacts {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1rem;
	margin: 0.25rem 0;
	font-size: 0.875rem;
	color: #6b7280;
}

.tpm-contact {
	white-space: nowrap;
}

.tpm-hotel-card-amenities {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 0.5rem;
}

.tpm-amenity {
	background: var(--tpm-bg);
	padding: 0.25rem 0.5rem;
	border-radius: 4px;
	font-size: 0.75rem;
}

.tpm-hotel-card-link {
	display: block;
	text-decoration: none;
	color: inherit;
}

.tpm-hotel-card-link:hover {
	opacity: 0.95;
}

/* Hotel selector (QR code / dropdown page) */
.tpm-hotel-selector {
	padding: 1rem 0 2rem;
}

.tpm-hotel-selector-dropdown {
	margin-bottom: 1.5rem;
}

.tpm-hotel-selector-dropdown label {
	display: block;
	margin-bottom: 0.5rem;
	font-weight: 600;
}

.tpm-hotel-select {
	padding: 0.5rem 1rem;
	font-size: 1rem;
	min-width: 280px;
	max-width: 100%;
	border: 1px solid var(--tpm-border);
	border-radius: var(--tpm-radius);
}

.tpm-hotel-selector-placeholder {
	color: #6b7280;
	font-style: italic;
	padding: 2rem 0;
}

.tpm-hotel-selector-content {
	max-width: 960px;
	margin: 0 auto;
}

.tpm-hotel-summary {
	background: #ffffff;
	border-radius: var(--tpm-radius);
	box-shadow: var(--tpm-shadow);
	overflow: hidden;
	border: 1px solid var(--tpm-border);
}

.tpm-hotel-summary-image {
	width: 100%;
	aspect-ratio: 16/9;
	background: #e5e7eb;
}

.tpm-hotel-summary-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.tpm-hotel-summary-content {
	padding: 1.25rem 1.5rem 1.5rem;
	text-align: left;
}

.tpm-hotel-summary-title {
	margin: 0 0 0.25rem;
	font-size: 1.5rem;
}

.tpm-hotel-summary-country {
	margin: 0;
	font-size: 0.95rem;
	color: #6b7280;
}

.tpm-hotel-summary-address {
	margin: 0.5rem 0 0.25rem;
	font-size: 0.9rem;
	color: #4b5563;
}

.tpm-hotel-summary-price {
	margin: 0.25rem 0;
	font-size: 0.95rem;
	color: var(--tpm-text-dark);
}

.tpm-hotel-summary-price strong {
	font-weight: 600;
}

.tpm-hotel-summary-contacts {
	margin-top: 0.5rem;
	font-size: 0.85rem;
	color: #6b7280;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1rem;
}

.tpm-hotel-summary-contacts span {
	white-space: nowrap;
}

/* Hotel layout (header + hero + services + packages) */
.tpm-hotel-layout {
	width: 100%;
	max-width: 100%;
	margin: 0;
	padding: 0;
	font-family: var(--tpm-font);
	color: var(--tpm-text);
}

.tpm-hotel-layout-header {
	background: #e8e8e8;
	color: var(--tpm-text-dark);
	padding: 2rem 1.5rem;
	border-bottom: 1px solid var(--tpm-border);
}

.tpm-hotel-layout-header-inner {
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1rem;
	flex-wrap: wrap;
}

.tpm-hotel-layout-header-label {
	margin: 0;
	font-weight: 600;
	font-size: 1rem;
}

.tpm-hotel-layout-header .tpm-hotel-select {
	padding: 0.5rem 2rem 0.5rem 1rem;
	font-size: 1rem;
	min-width: 260px;
	max-width: 100%;
	border: 1px solid var(--tpm-border);
	border-radius: 999px;
	background: #fff;
	color: var(--tpm-text-dark);
	appearance: auto;
	cursor: pointer;
}

.tpm-hotel-layout-placeholder {
	padding: 4rem 1.5rem;
	text-align: center;
	color: var(--tpm-text);
	background: var(--tpm-bg-muted);
	margin: 1.5rem;
	border-radius: var(--tpm-radius);
	border: 1px solid var(--tpm-border);
}

.tpm-hotel-layout-hero {
	position: relative;
	width: 100%;
	min-height: 320px;
	background: #4a4a4a;
	overflow: hidden;
}

.tpm-hotel-layout-hero-slider {
	position: absolute;
	inset: 0;
}

.tpm-hotel-layout-hero-slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	transition: opacity 1s ease-in-out;
	pointer-events: none;
}

.tpm-hotel-layout-hero-slide.tpm-hero-slide-active {
	opacity: 1;
	pointer-events: auto;
	z-index: 1;
}

.tpm-hotel-layout-hero-slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.tpm-hotel-layout-hero-overlay {
	position: absolute;
	inset: 0;
	z-index: 2;
	display: flex;
	align-items: center;
	padding: 2rem 1.5rem;
}

.tpm-hotel-layout-hero-content {
	max-width: 500px;
	padding: 1.75rem 2rem;
	background: #fff;
	border: 1px solid var(--tpm-border);
	border-radius: var(--tpm-radius);
	box-shadow: var(--tpm-shadow);
	color: var(--tpm-text-dark);
}

.tpm-hotel-layout-hero-title {
	margin: 0 0 0.75rem;
	font-size: 1.75rem;
	font-weight: 700;
	line-height: 1.2;
	color: var(--tpm-text-dark);
	letter-spacing: -0.02em;
}

.tpm-hotel-layout-hero-address {
	margin: 0.5rem 0 1rem;
	padding-bottom: 1rem;
	font-size: 0.9rem;
	line-height: 1.5;
	color: var(--tpm-text);
	border-bottom: 1px solid var(--tpm-border);
}

.tpm-hotel-layout-hero-rates {
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	margin: 0 0 1rem;
	padding: 1rem 1.25rem;
	background: var(--tpm-bg-muted);
	border-radius: 8px;
	border: 1px solid var(--tpm-border);
}

.tpm-hotel-layout-hero-rates-label {
	font-size: 0.7rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	color: var(--tpm-text);
}

.tpm-hotel-layout-hero-rates-value {
	font-size: 1.35rem;
	font-weight: 700;
	color: var(--tpm-text-dark);
	letter-spacing: -0.01em;
}

.tpm-hotel-layout-hero-contacts {
	margin: 0;
	font-size: 0.8rem;
	color: var(--tpm-text);
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1.25rem;
}

.tpm-hotel-layout-hero-contacts::before {
	content: "Contact";
	display: block;
	width: 100%;
	font-size: 0.7rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--tpm-text);
	margin-bottom: 0.35rem;
}

.tpm-hotel-layout-services {
	background: var(--tpm-bg);
	padding: 2.5rem 1.5rem;
	border-bottom: 1px solid var(--tpm-border);
}

.tpm-hotel-layout-inner {
	max-width: 1200px;
	margin: 0 auto;
}

.tpm-hotel-layout-section-title {
	margin: 0 0 1.5rem;
	font-size: 1.5rem;
	font-weight: 600;
	color: var(--tpm-text-dark);
	text-align: center;
}

.tpm-hotel-layout-amenities {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 1.25rem;
}

.tpm-hotel-layout-amenity {
	position: relative;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	min-height: 140px;
	padding: 1rem;
	border-radius: var(--tpm-radius);
	border: 1px solid var(--tpm-border);
	background-size: cover;
	background-position: center;
	background-color: var(--tpm-bg-muted);
	overflow: hidden;
}

.tpm-hotel-layout-amenity::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.2) 50%, transparent 100%);
	pointer-events: none;
}

.tpm-hotel-layout-amenity-no-image::before {
	background: rgba(0, 0, 0, 0.15);
}

.tpm-hotel-layout-amenity-text {
	position: relative;
	z-index: 1;
	font-size: 0.9rem;
	font-weight: 600;
	color: #fff;
	text-align: center;
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.tpm-hotel-layout-amenity-no-image .tpm-hotel-layout-amenity-text {
	color: var(--tpm-text-dark);
	text-shadow: none;
}

.tpm-hotel-layout-packages {
	background: var(--tpm-bg-muted);
	padding: 2.5rem 1.5rem;
}

.tpm-hotel-layout-rooms {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
}

.tpm-hotel-layout-room {
	display: flex;
	flex-direction: column;
	background: var(--tpm-bg);
	border-radius: var(--tpm-radius);
	overflow: hidden;
	box-shadow: var(--tpm-shadow);
	border: 1px solid var(--tpm-border);
}

.tpm-hotel-layout-room-image {
	aspect-ratio: 16/10;
	background: #e5e7eb;
}

.tpm-hotel-layout-room-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.tpm-hotel-layout-room-content {
	padding: 1.25rem;
	display: flex;
	flex-direction: column;
	gap: 1rem;
}

.tpm-hotel-layout-room-type {
	margin: 0;
	font-size: 1.5rem;
	font-weight: 800;
	color: var(--tpm-text-dark);
	line-height: 1.15;
	letter-spacing: -0.03em;
	padding-bottom: 0.5rem;
	border-bottom: 2px solid var(--tpm-border);
}

.tpm-hotel-layout-room-rate {
	display: inline-flex;
	align-items: baseline;
	gap: 0.25rem;
	align-self: flex-start;
	padding: 0.4rem 1rem;
	background: var(--tpm-primary);
	color: #fff;
	border-radius: 999px;
}

.tpm-hotel-layout-room-rate-label {
	font-size: 0.65rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.1em;
	opacity: 0.9;
}

.tpm-hotel-layout-room-rate-value {
	font-size: 1.35rem;
	font-weight: 800;
	letter-spacing: -0.02em;
}

.tpm-hotel-layout-room-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 1rem;
	font-size: 0.7rem;
	font-weight: 400;
	color: #999;
}

.tpm-hotel-layout-room-capacity,
.tpm-hotel-layout-room-available {
	margin: 0;
}

/* Hotel detail page */
.tpm-hotel-detail {
	max-width: 900px;
	margin: 0 auto;
	padding: 1rem 0;
}

.tpm-hotel-detail-header {
	margin-bottom: 1.5rem;
}

.tpm-hotel-detail-title {
	margin: 0 0 0.25rem;
	font-size: 1.75rem;
}

.tpm-hotel-detail-country {
	margin: 0;
	font-size: 1rem;
	color: #6b7280;
}

.tpm-hotel-detail-gallery {
	margin-bottom: 2rem;
	border-radius: var(--tpm-radius);
	overflow: hidden;
	background: var(--tpm-bg);
}

.tpm-hotel-detail-gallery-main {
	aspect-ratio: 16/9;
	background: #eee;
}

.tpm-hotel-detail-gallery-main img,
.tpm-hotel-detail-gallery-main video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.tpm-hotel-detail-gallery-thumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	padding: 0.75rem;
}

.tpm-hotel-detail-gallery-thumb {
	width: 60px;
	height: 60px;
	cursor: pointer;
	border: 2px solid transparent;
	border-radius: 4px;
	overflow: hidden;
}

.tpm-hotel-detail-gallery-thumb:hover,
.tpm-hotel-detail-gallery-thumb.active {
	border-color: var(--tpm-primary, #0073aa);
}

.tpm-hotel-detail-gallery-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.tpm-hotel-detail-info {
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.tpm-hotel-detail-section h3 {
	margin: 0 0 0.5rem;
	font-size: 1.125rem;
	border-bottom: 1px solid var(--tpm-border);
	padding-bottom: 0.5rem;
}

.tpm-hotel-detail-section p {
	margin: 0.25rem 0;
}

.tpm-hotel-detail-contacts p {
	margin: 0.5rem 0;
}

.tpm-hotel-detail-amenities {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
}

.tpm-hotel-detail-amenity {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.25rem;
	text-align: center;
}

.tpm-hotel-detail-amenity img {
	width: 48px;
	height: 48px;
	object-fit: cover;
	border-radius: 4px;
}

.tpm-hotel-detail-amenity span {
	font-size: 0.875rem;
}

.tpm-hotel-detail-rooms-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
}

.tpm-hotel-detail-room {
	border: 1px solid var(--tpm-border);
	border-radius: var(--tpm-radius);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	background: white;
}

.tpm-hotel-detail-room-image {
	aspect-ratio: 16/10;
	background: #eee;
}

.tpm-hotel-detail-room-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.tpm-hotel-detail-room-content {
	padding: 1rem;
}

.tpm-hotel-detail-room-content h4 {
	margin: 0 0 0.5rem;
	font-size: 1rem;
}

.tpm-hotel-detail-room-capacity,
.tpm-hotel-detail-room-rate,
.tpm-hotel-detail-room-available {
	margin: 0.25rem 0;
	font-size: 0.875rem;
	color: #6b7280;
}

.tpm-hotel-detail-room-rate strong {
	color: inherit;
}

/* Desktop: 768px+ */
@media (min-width: 768px) {
	.tpm-tour-cards-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.tpm-row-2 {
		flex-direction: row;
	}

	.tpm-col-gallery {
		flex: 1;
	}

	.tpm-col-info {
		flex: 1;
	}

	.tpm-row-3 {
		flex-direction: row;
	}

	.tpm-col-panel {
		flex: 0 0 40%;
	}

	.tpm-col-details {
		flex: 1;
	}

	.tpm-hotel-detail-rooms-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.tpm-hotel-detail-room {
		flex-direction: row;
	}

	.tpm-hotel-detail-room-image {
		width: 40%;
		aspect-ratio: auto;
		min-height: 120px;
	}

	.tpm-hotel-detail-room-content {
		flex: 1;
	}

	.tpm-hotel-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.tpm-hotel-layout-rooms {
		grid-template-columns: repeat(2, 1fr);
	}

	.tpm-hotel-layout-room {
		flex-direction: row;
	}

	.tpm-hotel-layout-room-image {
		width: 45%;
		aspect-ratio: auto;
		min-height: 140px;
	}

	.tpm-hotel-layout-room-content {
		flex: 1;
		display: flex;
		flex-direction: column;
		justify-content: center;
	}
}

/* Desktop: 992px+ */
@media (min-width: 992px) {
	.tpm-tour-cards-grid {
		grid-template-columns: repeat(3, 1fr);
	}

	.tpm-hotel-grid {
		grid-template-columns: repeat(3, 1fr);
	}

	.tpm-hotel-layout-hero {
		min-height: 400px;
	}

	.tpm-hotel-layout-hero-overlay {
		padding: 3rem 2rem;
	}

	.tpm-hotel-layout-hero-title {
		font-size: 2rem;
	}

	.tpm-hotel-layout-rooms {
		grid-template-columns: repeat(3, 1fr);
	}
}
