/**
 * Hotels listing page — split map + cards layout
 * body.page-hotels-listing
 */

/* ── Tokens ─────────────────────────────────────────────────── */
.page-hotels-listing {
	--htl-navy:   #16213e;
	--htl-gold:   #c9a84c;
	--htl-text:   #2d3748;
	--htl-muted:  #718096;
	--htl-border: #e2e8f0;
	--htl-bg:     #f8f9fa;
	--htl-card-radius: 12px;
}

/* ── Astra container width override (CSS custom properties) ─── */
.page-hotels-listing {
	--ast-container-width: 100% !important;
	--ast-content-width:   100% !important;
}

/* ── Hide sidebar if Astra still renders it ──────────────────── */
.page-hotels-listing #secondary,
.page-hotels-listing .widget-area {
	display: none !important;
}

/* ── Astra resets ────────────────────────────────────────────── */
.page-hotels-listing #page,
.page-hotels-listing #content,
.page-hotels-listing #primary,
.page-hotels-listing #main,
.page-hotels-listing .site-content,
.page-hotels-listing .content-area,
.page-hotels-listing .entry-content,
.page-hotels-listing .ast-container,
.page-hotels-listing .ast-article-post,
.page-hotels-listing .ast-article-post-full,
.page-hotels-listing .ast-entry-content {
	padding: 0 !important;
	margin: 0 !important;
	max-width: 100% !important;
	width: 100% !important;
	display: block !important;
}

/* ── Header colour override ──────────────────────────────────── */
body.page-hotels-listing .elementor-location-header > *:not(.elementor-motion-effects-element-type-background),
body.page-hotels-listing .elementor-location-header > * > .elementor-motion-effects-container > .elementor-motion-effects-layer {
	background-color: var(--htl-navy) !important;
}


/* ── Page wrap ───────────────────────────────────────────────── */
.htl-page-wrap {
	min-height: 100vh;
	background: var(--htl-bg);
	flex: 0 0 100%;
	width: 100%;
	min-width: 0;
}

/* ── Hero ────────────────────────────────────────────────────── */
.htl-hero {
	background: var(--htl-navy);
	padding: 80px 40px 60px;
	text-align: center;
}

.htl-hero-inner {
	max-width: 720px;
	margin: 0 auto;
}

.htl-hero-eyebrow {
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: var(--htl-gold);
	margin: 0 0 12px;
}

.htl-hero-title {
	font-size: clamp(2rem, 5vw, 3rem);
	font-weight: 700;
	color: #ffffff;
	margin: 0 0 16px;
	line-height: 1.15;
}

.htl-hero-subtitle {
	font-size: 1.05rem;
	color: rgba(255,255,255,0.7);
	margin: 0;
}

/* ── Split layout ────────────────────────────────────────────── */
.htl-split {
	display: flex;
	align-items: flex-start;
	min-height: calc(100vh - 80px);
}

/* ── Map column ──────────────────────────────────────────────── */
.htl-map-col {
	width: 50%;
	position: sticky;
	top: 0;
	height: 100vh;
	flex-shrink: 0;
}

#htlMap {
	width: 100%;
	height: 100%;
}

/* Leaflet popup styling */
.htl-popup-name {
	font-weight: 700;
	font-size: 0.95rem;
	color: var(--htl-navy);
	margin: 0 0 4px;
	display: block;
}

.htl-popup-stars {
	color: var(--htl-gold);
	font-size: 0.85rem;
	display: block;
	margin-bottom: 8px;
}

.htl-popup-link {
	display: inline-block;
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--htl-navy);
	text-decoration: none;
	border-bottom: 1px solid var(--htl-navy);
}

.htl-popup-link:hover {
	color: var(--htl-gold);
	border-color: var(--htl-gold);
}

/* Custom pin icon */
.htl-pin {
	width: 32px;
	height: 44px;
	position: relative;
}

/* ── Cards column ────────────────────────────────────────────── */
.htl-cards-col {
	width: 50%;
	min-height: 100vh;
	overflow-y: auto;
	background: var(--htl-bg);
}

.htl-cards-inner {
	padding: 24px 24px 48px;
	display: flex;
	flex-direction: column;
	gap: 20px;
}

/* ── Hotel card ──────────────────────────────────────────────── */
.htl-card {
	display: flex;
	background: #ffffff;
	border-radius: var(--htl-card-radius);
	border: 2px solid transparent;
	overflow: hidden;
	cursor: pointer;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
	box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.htl-card:hover,
.htl-card.is-active {
	border-color: var(--htl-navy);
	box-shadow: 0 6px 24px rgba(22,33,62,0.14);
	transform: translateY(-2px);
}

/* Thumbnail */
.htl-card-thumb-link {
	display: block;
	width: 200px;
	flex-shrink: 0;
	text-decoration: none;
}

.htl-card-thumb {
	width: 100%;
	height: 100%;
	min-height: 180px;
	overflow: hidden;
	background: var(--htl-border);
}

.htl-card-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.35s ease;
}

.htl-card:hover .htl-card-thumb img {
	transform: scale(1.04);
}

.htl-card-thumb-placeholder {
	width: 100%;
	height: 100%;
	min-height: 180px;
	background: linear-gradient(135deg, #e8edf5 0%, #d0d9e8 100%);
}

/* Card body */
.htl-card-body {
	flex: 1;
	padding: 20px 22px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

/* Stars */
.htl-card-stars {
	display: flex;
	gap: 2px;
	margin-bottom: 2px;
}

.htl-star {
	font-size: 1rem;
	line-height: 1;
}

.htl-star--on  { color: var(--htl-gold); }
.htl-star--off { color: #d0d9e8; }

/* Name */
.htl-card-name {
	font-size: 1.1rem;
	font-weight: 700;
	margin: 0;
	line-height: 1.3;
}

.htl-card-name a {
	color: var(--htl-navy);
	text-decoration: none;
}

.htl-card-name a:hover {
	color: var(--htl-gold);
}

/* Address */
.htl-card-address {
	display: flex;
	align-items: flex-start;
	gap: 5px;
	font-size: 0.8rem;
	color: var(--htl-muted);
	margin: 0;
	line-height: 1.4;
}

.htl-pin-icon {
	width: 13px;
	height: 13px;
	fill: var(--htl-muted);
	flex-shrink: 0;
	margin-top: 2px;
}

/* Description */
.htl-card-desc {
	font-size: 0.85rem;
	color: var(--htl-text);
	margin: 0;
	line-height: 1.55;
	flex: 1;
}

/* Actions */
.htl-card-actions {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin-top: 6px;
}

.htl-btn {
	display: inline-block;
	padding: 7px 16px;
	font-size: 0.78rem;
	font-weight: 600;
	text-decoration: none;
	border-radius: 6px;
	transition: background 0.2s ease, color 0.2s ease;
	white-space: nowrap;
}

.htl-btn--primary {
	background: var(--htl-navy);
	color: var(--htl-gold);
}

.htl-btn--primary:hover {
	background: #0d1a2f;
	color: var(--htl-gold);
}

.htl-btn--secondary {
	background: transparent;
	color: var(--htl-navy);
	border: 1.5px solid var(--htl-navy);
}

.htl-btn--secondary:hover {
	background: var(--htl-navy);
	color: #ffffff;
}

/* Empty state */
.htl-no-results {
	text-align: center;
	color: var(--htl-muted);
	padding: 60px 20px;
}

/* ── Mobile ──────────────────────────────────────────────────── */
@media (max-width: 900px) {
	.htl-split {
		flex-direction: column;
	}

	.htl-map-col {
		width: 100%;
		position: relative;
		height: 55vw;
		min-height: 300px;
		max-height: 420px;
	}

	.htl-cards-col {
		width: 100%;
		overflow-y: visible;
	}

	.htl-card-thumb-link {
		width: 140px;
	}
}

@media (max-width: 600px) {
	.htl-hero {
		padding: 60px 20px 40px;
	}

	.htl-cards-inner {
		padding: 16px 12px 40px;
	}

	.htl-card {
		flex-direction: column;
	}

	.htl-card-thumb-link {
		width: 100%;
	}

	.htl-card-thumb {
		min-height: 200px;
	}
}
