/**
 * NomadStayHQ Core styles.
 *
 * Scope: hotel search widget + destination page layout.
 */

:root {
	--nshq-accent: #2681a5;
	--nshq-accent-dark: #1d6483;
	--nshq-bg: #f7f9fb;
	--nshq-border: #e2e8ee;
	--nshq-text: #1f2933;
	--nshq-muted: #6b7886;
	--nshq-radius: 10px;
}

/* ---------------------------------------------------------------------------
 * Hotel search widget
 * ------------------------------------------------------------------------- */
.nshq-hotel-search {
	margin: 1.5rem 0;
	padding: 1.25rem;
	background: var(--nshq-bg);
	border: 1px solid var(--nshq-border);
	border-radius: var(--nshq-radius);
}

.nshq-hotel-search__title {
	margin: 0 0 0.75rem;
	font-size: 1.15rem;
	line-height: 1.3;
	color: var(--nshq-text);
}

.nshq-hotel-search__widget {
	min-height: 60px;
}

.nshq-hotel-search__widget a {
	display: inline-block;
	padding: 0.6rem 1.1rem;
	background: var(--nshq-accent);
	color: #fff;
	font-weight: 600;
	text-decoration: none;
	border-radius: 6px;
	transition: background 0.15s ease-in-out;
}

.nshq-hotel-search__widget a:hover,
.nshq-hotel-search__widget a:focus {
	background: var(--nshq-accent-dark);
}

/* ---------------------------------------------------------------------------
 * Destination page layout
 * ------------------------------------------------------------------------- */
.nshq-destination {
	max-width: 960px;
	margin: 0 auto;
}

.nshq-destination__header {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 0.5rem 1rem;
	margin-bottom: 1.5rem;
}

.nshq-destination__title {
	margin: 0;
	font-size: 2rem;
	color: var(--nshq-text);
}

.nshq-destination__location {
	color: var(--nshq-muted);
	font-size: 1rem;
}

/* Stats grid: wifi / price / nomad score */
.nshq-destination__stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 1rem;
	margin: 1.5rem 0 2rem;
	padding: 0;
	list-style: none;
}

.nshq-stat {
	padding: 1rem;
	text-align: center;
	background: #fff;
	border: 1px solid var(--nshq-border);
	border-radius: var(--nshq-radius);
}

.nshq-stat__value {
	display: block;
	font-size: 1.6rem;
	font-weight: 700;
	color: var(--nshq-accent);
	line-height: 1.1;
}

.nshq-stat__label {
	display: block;
	margin-top: 0.35rem;
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--nshq-muted);
}

/* Score pill (nomad score / wifi rating emphasis) */
.nshq-score {
	display: inline-block;
	min-width: 2.5em;
	padding: 0.15em 0.5em;
	border-radius: 999px;
	font-weight: 700;
	color: #fff;
	background: var(--nshq-accent);
}

.nshq-score--high { background: #2e9e5b; }
.nshq-score--mid  { background: #d9962b; }
.nshq-score--low  { background: #c0492f; }

@media (max-width: 600px) {
	.nshq-destination__title { font-size: 1.5rem; }
	.nshq-hotel-search { padding: 1rem; }
}

/* ---------------------------------------------------------------------------
 * Single destination template
 * ------------------------------------------------------------------------- */
.nshq-destination__hero {
	position: relative;
	margin-bottom: 1.5rem;
	padding: 3.5rem 1.5rem;
	border-radius: var(--nshq-radius);
	background: linear-gradient(135deg, var(--nshq-accent), var(--nshq-accent-dark));
	background-size: cover;
	background-position: center;
	color: #fff;
	text-align: center;
}

.nshq-destination__hero-inner {
	max-width: 760px;
	margin: 0 auto;
}

.nshq-destination__hero .nshq-destination__title {
	margin: 0;
	color: #fff;
	font-size: clamp(1.8rem, 4vw, 2.75rem);
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.nshq-destination__location {
	margin: 0.5rem 0 0;
	font-size: 1.05rem;
	color: rgba(255, 255, 255, 0.92);
}

.nshq-destination__location .dashicons {
	vertical-align: text-bottom;
}

/* Text-valued stat (Best Area) sits inline with numeric ones */
.nshq-stat__value--text {
	font-size: 1.05rem;
	line-height: 1.3;
}

/* Sections */
.nshq-section {
	margin: 2.5rem 0;
}

.nshq-section__title {
	margin: 0 0 1rem;
	font-size: 1.4rem;
	color: var(--nshq-text);
	border-bottom: 2px solid var(--nshq-border);
	padding-bottom: 0.4rem;
}

.nshq-tips {
	padding: 1.25rem 1.5rem;
	background: #fffaf0;
	border-left: 4px solid #d9962b;
	border-radius: 0 var(--nshq-radius) var(--nshq-radius) 0;
}

/* Related destinations grid */
.nshq-related-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 1.25rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.nshq-related-card {
	margin: 0;
}

.nshq-related-card__link {
	display: block;
	height: 100%;
	background: #fff;
	border: 1px solid var(--nshq-border);
	border-radius: var(--nshq-radius);
	overflow: hidden;
	text-decoration: none;
	color: var(--nshq-text);
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.nshq-related-card__link:hover,
.nshq-related-card__link:focus {
	transform: translateY(-3px);
	box-shadow: 0 6px 18px rgba(31, 41, 51, 0.12);
}

.nshq-related-card__thumb img {
	display: block;
	width: 100%;
	height: 130px;
	object-fit: cover;
}

.nshq-related-card__body {
	display: block;
	padding: 0.85rem 1rem;
}

.nshq-related-card__name {
	display: block;
	font-weight: 700;
	font-size: 1.05rem;
}

.nshq-related-card__country {
	display: block;
	margin: 0.15rem 0 0.5rem;
	font-size: 0.85rem;
	color: var(--nshq-muted);
}

/* ---------------------------------------------------------------------------
 * Destination archive (/destinations/)
 * ------------------------------------------------------------------------- */
.nshq-archive__hero {
	margin-bottom: 1.5rem;
	padding: 2.75rem 1.5rem;
	text-align: center;
	border-radius: var(--nshq-radius);
	background: linear-gradient(135deg, var(--nshq-accent), var(--nshq-accent-dark));
	color: #fff;
}

.nshq-archive__title {
	margin: 0;
	color: #fff;
	font-size: clamp(1.8rem, 4vw, 2.6rem);
}

.nshq-archive__subtitle {
	margin: 0.5rem 0 0;
	font-size: 1.1rem;
	color: rgba(255, 255, 255, 0.92);
}

/* Filter bar */
.nshq-filterbar {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	justify-content: center;
	margin: 0 0 2rem;
}

.nshq-filterbar__item {
	padding: 0.45rem 1.1rem;
	border: 1px solid var(--nshq-border);
	border-radius: 999px;
	background: #fff;
	color: var(--nshq-text);
	text-decoration: none;
	font-weight: 600;
	font-size: 0.95rem;
	transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.nshq-filterbar__item:hover,
.nshq-filterbar__item:focus {
	border-color: var(--nshq-accent);
	color: var(--nshq-accent);
}

.nshq-filterbar__item.is-active {
	background: var(--nshq-accent);
	border-color: var(--nshq-accent);
	color: #fff;
}

/* Cards grid: 3 columns, responsive */
.nshq-card-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
}

.nshq-card {
	display: flex;
	flex-direction: column;
	background: #fff;
	border: 1px solid var(--nshq-border);
	border-radius: var(--nshq-radius);
	overflow: hidden;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.nshq-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 22px rgba(31, 41, 51, 0.12);
}

.nshq-card__media {
	position: relative;
	display: block;
	aspect-ratio: 3 / 2;
	background: var(--nshq-bg);
}

.nshq-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.nshq-card__media-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	color: var(--nshq-muted);
}

.nshq-card__media-placeholder .dashicons {
	font-size: 3rem;
	width: 3rem;
	height: 3rem;
}

/* WiFi pill overlaid on image */
.nshq-card__wifi {
	position: absolute;
	top: 0.6rem;
	right: 0.6rem;
	display: inline-flex;
	align-items: center;
	gap: 0.2rem;
	font-size: 0.85rem;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.nshq-card__wifi .dashicons {
	font-size: 1rem;
	width: 1rem;
	height: 1rem;
}

.nshq-card__body {
	display: flex;
	flex-direction: column;
	flex: 1;
	padding: 1rem 1.1rem 1.2rem;
}

.nshq-card__title {
	margin: 0;
	font-size: 1.25rem;
	line-height: 1.25;
}

.nshq-card__title a {
	color: var(--nshq-text);
	text-decoration: none;
}

.nshq-card__title a:hover {
	color: var(--nshq-accent);
}

.nshq-card__country {
	margin: 0.15rem 0 0.9rem;
	color: var(--nshq-muted);
	font-size: 0.9rem;
}

.nshq-card__meta {
	display: flex;
	gap: 1rem;
	margin: 0 0 1.1rem;
}

.nshq-card__meta-item {
	margin: 0;
}

.nshq-card__meta-item dt {
	font-size: 0.7rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--nshq-muted);
}

.nshq-card__meta-item dd {
	margin: 0.2rem 0 0;
	font-weight: 700;
	font-size: 1.1rem;
	color: var(--nshq-text);
}

.nshq-card__btn {
	margin-top: auto;
	display: block;
	padding: 0.6rem 1rem;
	text-align: center;
	background: var(--nshq-accent);
	color: #fff;
	font-weight: 600;
	text-decoration: none;
	border-radius: 6px;
	transition: background 0.15s ease;
}

.nshq-card__btn:hover,
.nshq-card__btn:focus {
	background: var(--nshq-accent-dark);
	color: #fff;
}

/* Pagination */
.nshq-archive__pagination {
	margin-top: 2.5rem;
}

.nshq-archive__pagination .page-numbers {
	display: inline-block;
	padding: 0.45rem 0.85rem;
	margin: 0 0.15rem;
	border: 1px solid var(--nshq-border);
	border-radius: 6px;
	text-decoration: none;
	color: var(--nshq-text);
}

.nshq-archive__pagination .page-numbers.current {
	background: var(--nshq-accent);
	border-color: var(--nshq-accent);
	color: #fff;
}

/* Empty state */
.nshq-empty {
	text-align: center;
	padding: 3rem 1.5rem;
	background: var(--nshq-bg);
	border: 1px dashed var(--nshq-border);
	border-radius: var(--nshq-radius);
}

.nshq-empty__icon {
	font-size: 3rem;
	width: 3rem;
	height: 3rem;
	color: var(--nshq-muted);
}

.nshq-empty__title {
	margin: 0.75rem 0 0.35rem;
	color: var(--nshq-text);
}

.nshq-empty__text {
	margin: 0 0 1.25rem;
	color: var(--nshq-muted);
}

@media (max-width: 880px) {
	.nshq-card-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
	.nshq-card-grid { grid-template-columns: 1fr; }
}
