/* ==========================================================================
   Reset & base
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
	margin: 0;
	font-family: var(--tj-font-body);
	font-size: 16px;
	line-height: var(--tj-line-height-body);
	color: var(--tj-color-text);
	background: var(--tj-color-bg);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--tj-color-link); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--tj-font-display);
	line-height: var(--tj-line-height-heading);
	color: var(--tj-color-primary);
	margin: 0 0 0.5em;
	font-weight: 600;
}

ul { margin: 0; padding: 0; list-style: none; }
p { margin: 0 0 1em; }

button { font-family: inherit; }

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.tj-skip-link {
	position: absolute;
	top: -60px;
	left: 12px;
	background: var(--tj-navy);
	color: #fff;
	padding: 10px 16px;
	border-radius: var(--tj-radius-sm);
	z-index: 10000;
	transition: top var(--tj-transition-fast);
}
.tj-skip-link:focus {
	top: 12px;
}

:focus-visible {
	outline: 2px solid var(--tj-teal);
	outline-offset: 2px;
}

.tj-container {
	max-width: var(--tj-container-width);
	margin: 0 auto;
	padding-left: var(--tj-container-padding);
	padding-right: var(--tj-container-padding);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.tj-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 24px;
	border-radius: 999px;
	font-weight: 600;
	font-size: 15px;
	border: 1px solid transparent;
	cursor: pointer;
	transition: background var(--tj-transition-fast), color var(--tj-transition-fast), border-color var(--tj-transition-fast), transform var(--tj-transition-fast);
	text-decoration: none;
}
.tj-btn:hover { text-decoration: none; transform: translateY(-1px); }

.tj-btn-primary {
	background: var(--tj-brand-primary);
	color: #fff;
}
.tj-btn-primary:hover { background: var(--tj-navy-deep); color: #fff; }

.tj-btn-secondary {
	background: var(--tj-brand-secondary);
	color: #fff;
}
.tj-btn-secondary:hover { background: var(--tj-teal-light); color: #fff; }

.tj-btn-outline {
	background: transparent;
	border-color: var(--tj-brand-primary);
	color: var(--tj-brand-primary);
}
.tj-btn-outline:hover { background: var(--tj-brand-primary); color: #fff; }

.tj-btn-sm { padding: 8px 16px; font-size: 13px; }
.tj-btn-block { width: 100%; }

.tj-btn-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #25d366;
	color: #fff;
	border: none;
	cursor: pointer;
	flex-shrink: 0;
}
.tj-btn-icon:hover { background: #1ebc59; }

/* ==========================================================================
   Header
   ========================================================================== */

.tj-site-header {
	position: sticky;
	top: 0;
	z-index: 500;
	background: rgba(250, 247, 240, 0.92);
	backdrop-filter: blur(8px);
	border-bottom: 1px solid transparent;
	transition: box-shadow var(--tj-transition-base), border-color var(--tj-transition-base);
}

.tj-site-header.tj-is-scrolled {
	box-shadow: 0 4px 20px rgba(15, 44, 63, 0.08);
	border-bottom-color: var(--tj-border);
}

.tj-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	height: var(--tj-header-height);
}

.tj-site-branding img { max-height: 48px; width: auto; }

.tj-site-title-link { display: flex; flex-direction: column; line-height: 1.1; }
.tj-site-title {
	font-family: var(--tj-font-display);
	font-size: 24px;
	font-weight: 700;
	color: var(--tj-brand-primary);
}
.tj-site-tagline {
	font-size: 11px;
	letter-spacing: 0.04em;
	color: var(--tj-color-text-muted);
}

.tj-primary-nav { flex: 1; display: flex; justify-content: center; }
.tj-nav-menu { display: flex; gap: 32px; }
.tj-nav-menu a {
	color: var(--tj-ink);
	font-weight: 500;
	font-size: 15px;
}
.tj-nav-menu a:hover { color: var(--tj-brand-secondary); text-decoration: none; }

.tj-header-actions { display: flex; align-items: center; gap: 16px; }
.tj-header-cta { white-space: nowrap; }

.tj-mobile-menu-toggle {
	display: none;
	background: none;
	border: none;
	cursor: pointer;
	padding: 8px;
	color: var(--tj-ink);
}
.tj-mobile-menu-toggle .tj-icon-close { display: none; }
.tj-mobile-menu-toggle[aria-expanded="true"] .tj-icon-menu { display: none; }
.tj-mobile-menu-toggle[aria-expanded="true"] .tj-icon-close { display: block; }

body.tj-nav-mobile-open { overflow: hidden; }

/* ==========================================================================
   Footer
   ========================================================================== */

.tj-site-footer {
	background: var(--tj-navy-deep);
	color: #cfdadd;
	margin-top: 80px;
}

.tj-footer-grid {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr 1fr;
	gap: 32px;
	padding: 64px 24px 40px;
}

.tj-footer-logo img { max-height: 44px; margin-bottom: 12px; }
.tj-footer-brand .tj-site-title { color: #fff; }
.tj-footer-description { color: #a9bcc0; font-size: 14px; margin-bottom: 16px; }
.tj-footer-social { display: flex; gap: 16px; flex-wrap: wrap; }
.tj-footer-social a { color: #cfdadd; font-size: 13px; }
.tj-footer-social a:hover { color: var(--tj-gold); }

.tj-footer-heading {
	color: #fff;
	font-size: 15px;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin-bottom: 16px;
}

.tj-footer-menu li, .tj-footer-contact li { margin-bottom: 10px; }
.tj-footer-menu a, .tj-footer-contact a { color: #cfdadd; font-size: 14px; }
.tj-footer-menu a:hover, .tj-footer-contact a:hover { color: var(--tj-gold); }

.tj-footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	padding: 20px 0;
}
.tj-footer-bottom p { margin: 0; font-size: 13px; color: #8aa0a5; text-align: center; }

/* ==========================================================================
   Breadcrumbs
   ========================================================================== */

.tj-breadcrumbs { margin: 20px 0; font-size: 13px; }
.tj-breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 6px; }
.tj-breadcrumbs li:not(:last-child)::after { content: '/'; margin-left: 6px; color: var(--tj-color-text-muted); }
.tj-breadcrumbs a { color: var(--tj-color-text-muted); }
.tj-breadcrumbs [aria-current="page"] { color: var(--tj-ink); font-weight: 600; }

/* ==========================================================================
   Generic content (fallback templates)
   ========================================================================== */

.tj-generic-content { padding: 40px 24px 80px; }
.tj-generic-title { font-size: 34px; }
.tj-generic-article { margin-bottom: 48px; }
.tj-generic-entry-content { max-width: 760px; }

/* ==========================================================================
   Star rating
   ========================================================================== */

.tj-stars { display: inline-flex; gap: 2px; color: var(--tj-gold); margin-bottom: 8px; }
.tj-star { width: 15px; height: 15px; }

/* ==========================================================================
   Badges
   ========================================================================== */

.tj-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	background: rgba(255, 255, 255, 0.95);
	color: var(--tj-brand-primary);
	font-size: 12px;
	font-weight: 700;
	padding: 5px 10px;
	border-radius: 999px;
}
.tj-badge-verified .tj-icon { width: 14px; height: 14px; color: var(--tj-teal); }

/* ==========================================================================
   Hotel card
   ========================================================================== */

.tj-hotel-card {
	background: var(--tj-color-surface);
	border-radius: var(--tj-radius-md);
	overflow: hidden;
	box-shadow: var(--tj-shadow-card);
	display: flex;
	flex-direction: column;
	transition: transform var(--tj-transition-base), box-shadow var(--tj-transition-base);
}
.tj-hotel-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(15, 44, 63, 0.14); }

.tj-hotel-card-media { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--tj-stone); overflow: hidden; }
.tj-hotel-card-media img { width: 100%; height: 100%; object-fit: cover; }

.tj-hotel-card-body { padding: 20px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.tj-hotel-card-title { font-size: 19px; margin-bottom: 2px; }
.tj-hotel-card-title a { color: var(--tj-ink); }
.tj-hotel-card-title a:hover { color: var(--tj-brand-secondary); text-decoration: none; }

.tj-hotel-card-location {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	color: var(--tj-color-text-muted);
	margin: 0 0 8px;
}
.tj-hotel-card-location .tj-icon { width: 15px; height: 15px; }

.tj-hotel-card-excerpt { font-size: 14px; color: var(--tj-color-text-muted); margin-bottom: 12px; }

.tj-hotel-card-amenities { display: flex; gap: 10px; margin-bottom: 16px; color: var(--tj-brand-secondary); }
.tj-hotel-card-amenities .tj-icon { width: 18px; height: 18px; }

.tj-hotel-card-footer {
	margin-top: auto;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-top: 12px;
	border-top: 1px solid var(--tj-stone);
}

.tj-hotel-card-price { font-size: 13px; color: var(--tj-color-text-muted); }
.tj-price-amount { font-size: 19px; font-weight: 700; color: var(--tj-brand-primary); font-family: var(--tj-font-display); }

.tj-hotel-card-actions { display: flex; align-items: center; gap: 8px; }

/* ==========================================================================
   Listing page (filters + grid)
   ========================================================================== */

.tj-hotel-listing-page { padding-bottom: 80px; }

.tj-listing-layout {
	display: grid;
	grid-template-columns: 280px 1fr;
	gap: 32px;
	align-items: start;
}

.tj-filter-sidebar {
	background: var(--tj-color-surface);
	border-radius: var(--tj-radius-md);
	padding: 24px;
	box-shadow: var(--tj-shadow-card);
	position: sticky;
	top: calc(var(--tj-header-height) + 20px);
}

.tj-filter-close { display: none; }

.tj-filter-group { margin-bottom: 24px; }
.tj-filter-group h3 { font-size: 14px; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 12px; }
.tj-filter-group select,
.tj-filter-price-range input {
	width: 100%;
	padding: 10px;
	border: 1px solid var(--tj-border);
	border-radius: var(--tj-radius-sm);
	font-size: 14px;
}
.tj-filter-price-range { display: flex; align-items: center; gap: 8px; }
.tj-filter-checklist li { margin-bottom: 8px; font-size: 14px; }
.tj-filter-checklist label { display: flex; align-items: center; gap: 8px; }

.tj-filter-apply { width: 100%; }

.tj-listing-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 20px;
}
.tj-filter-open { display: none; }
.tj-results-count { font-weight: 600; margin: 0; }
.tj-sort-select { padding: 10px; border-radius: var(--tj-radius-sm); border: 1px solid var(--tj-border); }

.tj-hotel-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

.tj-no-results { grid-column: 1 / -1; text-align: center; padding: 60px 0; color: var(--tj-color-text-muted); }

.tj-pagination { margin-top: 40px; display: flex; justify-content: center; gap: 8px; }
.tj-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	border-radius: var(--tj-radius-sm);
	background: var(--tj-color-surface);
	color: var(--tj-ink);
	font-size: 14px;
	box-shadow: var(--tj-shadow-card);
}
.tj-pagination .page-numbers.current { background: var(--tj-brand-primary); color: #fff; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1024px) {
	.tj-hotel-grid { grid-template-columns: repeat(2, 1fr); }
	.tj-footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
	.tj-primary-nav {
		position: fixed;
		inset: var(--tj-header-height) 0 0 0;
		background: var(--tj-cream);
		transform: translateX(100%);
		transition: transform var(--tj-transition-base);
		overflow-y: auto;
		padding: 24px;
		z-index: 400;
	}
	.tj-primary-nav.tj-nav-open { transform: translateX(0); }
	.tj-nav-menu { flex-direction: column; gap: 4px; }
	.tj-nav-menu a { display: block; padding: 14px 4px; border-bottom: 1px solid var(--tj-border); }
	.tj-mobile-menu-toggle { display: block; }
	.tj-header-cta { display: none; }

	.tj-listing-layout { grid-template-columns: 1fr; }
	.tj-filter-sidebar {
		position: fixed;
		inset: 0 15% 0 0;
		z-index: 600;
		transform: translateX(-100%);
		transition: transform var(--tj-transition-base);
		border-radius: 0;
		overflow-y: auto;
	}
	.tj-filter-sidebar.tj-filter-open { transform: translateX(0); }
	.tj-filter-close { display: block; margin-bottom: 16px; background: none; border: none; cursor: pointer; }
	.tj-filter-open { display: inline-flex; }
}

@media (max-width: 768px) {
	.tj-footer-grid { grid-template-columns: 1fr 1fr; padding: 48px 20px 32px; }
	.tj-container { padding-left: 16px; padding-right: 16px; }
}

@media (max-width: 480px) {
	.tj-hotel-grid { grid-template-columns: 1fr; }
	.tj-footer-grid { grid-template-columns: 1fr; }
	.tj-generic-title { font-size: 26px; }
	.tj-listing-toolbar { flex-wrap: wrap; }
}

/* ==========================================================================
   Destination cards & location archive
   ========================================================================== */

.tj-destination-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 20px;
}
.tj-destination-grid-compact { grid-template-columns: repeat(4, 1fr); }

.tj-destination-card {
	position: relative;
	display: block;
	border-radius: var(--tj-radius-md);
	overflow: hidden;
	aspect-ratio: 3 / 4;
	background: var(--tj-stone);
	color: #fff;
}
.tj-destination-card-media { position: absolute; inset: 0; }
.tj-destination-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--tj-transition-base); }
.tj-destination-card:hover .tj-destination-card-media img { transform: scale(1.06); }
.tj-destination-card-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 40%, rgba(10, 31, 44, 0.85) 100%);
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: 20px;
}
.tj-destination-card-overlay h3 { color: #fff; margin-bottom: 2px; font-size: 20px; }
.tj-destination-country { font-size: 12px; opacity: 0.85; margin-bottom: 4px; }
.tj-destination-count { font-size: 13px; font-weight: 600; color: var(--tj-gold-soft); margin: 0; }

.tj-location-hero {
	height: 320px;
	background-size: cover;
	background-position: center;
	background-color: var(--tj-navy);
	display: flex;
	align-items: flex-end;
	color: #fff;
	position: relative;
}
.tj-location-hero::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(10, 31, 44, 0.2), rgba(10, 31, 44, 0.75));
}
.tj-location-hero .tj-container { position: relative; padding-bottom: 32px; }
.tj-location-hero h1 { color: #fff; font-size: 40px; margin-bottom: 4px; }
.tj-location-country { opacity: 0.85; }

.tj-location-page { padding: 32px 24px 80px; }
.tj-location-description { max-width: 760px; margin-bottom: 20px; }
.tj-location-hotels-heading { margin: 40px 0 20px; }
.tj-related-locations { margin-top: 60px; }

@media (max-width: 1024px) {
	.tj-destination-grid, .tj-destination-grid-compact { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
	.tj-destination-grid, .tj-destination-grid-compact { grid-template-columns: 1fr 1fr; }
	.tj-location-hero h1 { font-size: 28px; }
}

/* ==========================================================================
   Homepage
   ========================================================================== */

.tj-hero {
	background: linear-gradient(160deg, var(--tj-navy) 0%, var(--tj-navy-deep) 60%, var(--tj-forest) 130%);
	color: #fff;
	padding: 100px 0 140px;
	position: relative;
}

.tj-hero-inner { text-align: center; max-width: 800px; margin: 0 auto; }
.tj-hero-title { color: #fff; font-size: 48px; margin-bottom: 16px; }
.tj-hero-subtitle { color: #cfe0e0; font-size: 18px; margin-bottom: 40px; }

.tj-hero-search {
	background: var(--tj-color-surface);
	border-radius: var(--tj-radius-lg);
	padding: 24px;
	display: grid;
	grid-template-columns: repeat(4, 1fr) auto;
	gap: 12px;
	align-items: end;
	box-shadow: var(--tj-shadow-modal);
	text-align: left;
	position: relative;
	margin-bottom: -80px;
}

.tj-hero-search-field label {
	display: block;
	font-size: 12px;
	font-weight: 600;
	color: var(--tj-color-text-muted);
	margin-bottom: 6px;
}
.tj-hero-search-field select,
.tj-hero-search-field input {
	width: 100%;
	padding: 12px;
	border: 1px solid var(--tj-border);
	border-radius: var(--tj-radius-sm);
	font-size: 14px;
}

.tj-hero-search-submit { height: 46px; white-space: nowrap; }
.tj-hero-search-error {
	grid-column: 1 / -1;
	color: var(--tj-color-danger);
	background: #fbeae7;
	padding: 8px 12px;
	border-radius: var(--tj-radius-sm);
	font-size: 13px;
	margin: 0;
}

.tj-section { padding: 120px 0 80px; }
.tj-featured-destinations, .tj-featured-hotels { padding-top: 80px; }
.tj-section-title { font-size: 30px; margin-bottom: 32px; }
.tj-section-cta { text-align: center; margin-top: 40px; }

.tj-why-direct { background: var(--tj-stone); }
.tj-why-direct-inner {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 48px;
	align-items: center;
}
.tj-benefits-list li {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 16px;
	font-weight: 500;
	padding: 12px 0;
	border-bottom: 1px solid var(--tj-border);
}
.tj-benefits-list .tj-icon { color: var(--tj-teal); flex-shrink: 0; }

@media (max-width: 900px) {
	.tj-hero-search { grid-template-columns: 1fr 1fr; margin-bottom: 20px; }
	.tj-hero-search-submit { grid-column: 1 / -1; }
	.tj-featured-destinations, .tj-featured-hotels { padding-top: 40px; }
	.tj-why-direct-inner { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
	.tj-hero { padding: 70px 0 60px; }
	.tj-hero-title { font-size: 32px; }
	.tj-hero-search { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Contact / List Your Hotel pages
   ========================================================================== */

.tj-contact-layout {
	display: grid;
	grid-template-columns: 1.4fr 1fr;
	gap: 48px;
	margin-top: 32px;
}

.tj-contact-form-wrap .tj-booking-form input,
.tj-contact-form-wrap .tj-booking-form select,
.tj-contact-form-wrap .tj-booking-form textarea,
.tj-list-hotel-form-wrap .tj-booking-form input,
.tj-list-hotel-form-wrap .tj-booking-form select,
.tj-list-hotel-form-wrap .tj-booking-form textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--tj-border);
	border-radius: var(--tj-radius-sm);
	font-family: var(--tj-font-body);
	font-size: 15px;
}

.tj-contact-form-wrap .tj-form-row,
.tj-list-hotel-form-wrap .tj-form-row { margin-bottom: 16px; }
.tj-contact-form-wrap label,
.tj-list-hotel-form-wrap label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }

.tj-contact-info-list li { margin-bottom: 10px; }
.tj-contact-social { margin-top: 20px; }
.tj-contact-social a { color: var(--tj-brand-secondary); margin-right: 16px; font-size: 14px; }

.tj-form-success {
	background: #e8f3ec;
	color: var(--tj-color-success);
	padding: 12px 16px;
	border-radius: var(--tj-radius-sm);
	margin-bottom: 20px;
}

.tj-list-hotel-benefits { max-width: 500px; margin: 24px 0 40px; }
.tj-list-hotel-form-wrap { max-width: 600px; }

@media (max-width: 900px) {
	.tj-contact-layout { grid-template-columns: 1fr; }
}
