/*
 * Article, archive, and post-card layouts. Mirrors the Astro blog layout:
 * 820px content column, optional 340px sidebar, designed card grids.
 */

/* ---------------------------------------------------------------- Article */
.gow-post__header {
	margin-top: var(--wp--preset--spacing--l);
}

.gow-post__meta {
	margin: 0 0 12px;
	font-size: 0.9rem;
	color: var(--wp--preset--color--contrast-2);
}

.gow-post__title {
	font-size: var(--wp--preset--font-size--xx-large);
	line-height: 1.1;
	letter-spacing: -0.02em;
	margin: 0;
}

.gow-post__excerpt {
	margin: 12px 0 0;
	font-size: var(--wp--preset--font-size--large);
	color: var(--wp--preset--color--contrast-2);
	line-height: 1.5;
}

.gow-post__cover {
	max-width: 900px;
	margin: 32px auto;
	padding-inline: clamp(16px, 3vw, 40px);
}

.gow-post__cover img {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border-radius: var(--wp--custom--radius--panel, 24px);
}

.gow-post__layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	max-width: var(--wp--custom--width--content, 820px);
	margin-inline: auto;
	gap: clamp(24px, 3vw, 40px);
}

@media (min-width: 1024px) {
	.gow-post__layout--with-sidebar {
		max-width: 1440px;
		grid-template-columns: minmax(0, var(--wp--custom--width--content, 820px)) var(--wp--custom--width--sidebar, 340px);
		justify-content: space-between;
		padding-inline: clamp(16px, 3vw, 40px);
	}
}

.gow-post__sidebar {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--m);
}

/* ----------------------------------------------------------- Card grids */
.gow-post-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: clamp(20px, 3vw, 36px);
	margin-block: var(--wp--preset--spacing--l);
}

.gow-post-card__media {
	display: block;
	position: relative;
	border-radius: var(--wp--custom--radius--card, 16px);
	overflow: hidden;
	aspect-ratio: 3 / 2;
	background: var(--wp--preset--color--muted);
}

/* Result-type badge (search) — Guide / Destination / Shop. */
.gow-post-card__badge {
	position: absolute;
	top: 12px;
	left: 12px;
	padding: 4px 12px;
	border-radius: var(--wp--custom--radius--pill, 999px);
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	background: var(--wp--preset--color--surface);
	color: var(--wp--preset--color--contrast);
	box-shadow: var(--wp--custom--shadow--raised, 0 2px 8px rgba(0, 0, 0, 0.12));
}

/* Product result card: price + CTA in place of date + excerpt. */
.gow-post-card__price {
	margin: 0 0 6px;
	font-weight: 700;
	color: var(--wp--preset--color--contrast);
}

.gow-post-card__cta {
	display: inline-block;
	margin-top: 4px;
	font-weight: 600;
	font-size: 0.9rem;
	color: var(--wp--preset--color--accent, var(--wp--preset--color--contrast));
	text-decoration: none;
}

.gow-post-card__cta:hover {
	text-decoration: underline;
}

.gow-post-card__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 320ms ease;
}

.gow-post-card__media:hover .gow-post-card__image {
	transform: scale(1.04);
}

.gow-post-card__placeholder {
	display: block;
	width: 100%;
	height: 100%;
}

.gow-post-card__body {
	padding-block: 14px;
}

.gow-post-card__meta {
	margin: 0 0 6px;
	font-size: 0.8rem;
	color: var(--wp--preset--color--contrast-2);
}

.gow-post-card__title {
	margin: 0 0 6px;
	font-size: var(--wp--custom--heading--h5);
}

.gow-post-card__title a {
	color: inherit;
	text-decoration: none;
}

.gow-post-card__title a:hover {
	color: var(--wp--preset--color--contrast-2);
}

.gow-post-card__excerpt {
	margin: 0;
	font-size: 0.95rem;
	color: var(--wp--preset--color--contrast-2);
	line-height: 1.5;
}

/* --------------------------------------------------------- Archive header */
.gow-archive__header,
.gow-404 {
	margin-block: var(--wp--preset--spacing--l) var(--wp--preset--spacing--m);
}

.gow-archive__title {
	font-size: var(--wp--preset--font-size--xx-large);
	margin: 4px 0 0;
}

.gow-404__title {
	font-size: var(--wp--preset--font-size--xx-large);
	margin: 4px 0 12px;
}

.gow-searchform {
	display: flex;
	gap: 8px;
	margin-block: 16px;
	max-width: 460px;
}

.gow-searchform input {
	flex: 1;
	border: 1px solid var(--wp--preset--color--border);
	border-radius: var(--wp--custom--radius--pill, 999px);
	padding: 10px 18px;
	font: inherit;
	background: var(--wp--preset--color--surface);
}

/* Empty-query prompt and no-results state. */
.gow-search-empty {
	margin-block: var(--wp--preset--spacing--m) var(--wp--preset--spacing--l);
	color: var(--wp--preset--color--contrast-2);
}

.gow-search-empty > p {
	margin: 0 0 14px;
}

.gow-search-chips {
	list-style: none;
	margin: 0 0 18px;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.gow-search-chip {
	display: inline-flex;
	align-items: center;
	padding: 8px 16px;
	border-radius: var(--wp--custom--radius--pill, 999px);
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	text-decoration: none;
	color: var(--wp--preset--color--contrast);
	font-weight: 600;
	font-size: 0.95rem;
}

.gow-search-chip:hover {
	border-color: var(--wp--preset--color--contrast);
}

/* Continent country pills. */
.gow-continent__countries {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-block: 8px var(--wp--preset--spacing--m);
}

.gow-continent__country {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 16px;
	border-radius: var(--wp--custom--radius--pill, 999px);
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	text-decoration: none;
	color: var(--wp--preset--color--contrast);
	font-weight: 600;
	font-size: 0.95rem;
	transition: transform 140ms ease, box-shadow 140ms ease;
}

.gow-continent__country:hover {
	transform: translateY(-2px);
	box-shadow: var(--wp--custom--shadow--soft);
}

.gow-continent__flag {
	font-size: 1.1rem;
}

/* Affiliate disclosure — a quiet footnote (auto-inserted or block-rendered),
   deliberately subtle: muted, compact, a thin rule + info glyph rather than a
   filled banner. */
.gow-disclosure {
	max-width: var(--wp--custom--width--content, 820px);
	margin: 14px auto;
	padding: 3px 0 3px 12px;
	border-left: 2px solid color-mix(in srgb, var(--wp--preset--color--contrast-2) 22%, transparent);
	font-size: 0.78rem;
	line-height: 1.5;
	color: var(--wp--preset--color--contrast-2);
}

.gow-disclosure::before {
	content: "\24D8"; /* ⓘ */
	margin-right: 6px;
	opacity: 0.7;
}

.gow-disclosure a {
	color: inherit;
	text-decoration: underline;
}

/* ----------------------------------------------------------------- Shop */
.gow-shop__nav {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-block: 16px var(--wp--preset--spacing--m);
}

.gow-shop__nav-link {
	padding: 8px 16px;
	border-radius: var(--wp--custom--radius--pill, 999px);
	background: var(--wp--preset--color--surface);
	border: 1px solid var(--wp--preset--color--border);
	text-decoration: none;
	color: var(--wp--preset--color--contrast);
	font-size: 0.9rem;
	font-weight: 600;
}

.gow-shop__group {
	margin-block: var(--wp--preset--spacing--l);
}

.gow-shop__group-title {
	margin: 0 0 var(--wp--preset--spacing--s);
	font-size: var(--wp--preset--font-size--x-large);
}

.gow-product-card__media,
.gow-product__gallery img {
	border-radius: var(--wp--custom--radius--card, 16px);
	overflow: hidden;
}

.gow-product-card__media {
	display: block;
	position: relative;
	aspect-ratio: 4 / 5;
	background: var(--wp--preset--color--muted);
}

.gow-product-card__image {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.gow-product-card__badge,
.gow-product__badge {
	display: inline-block;
	padding: 4px 12px;
	border-radius: var(--wp--custom--radius--pill, 999px);
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	background: var(--wp--preset--color--accent);
	color: var(--wp--preset--color--contrast);
}

.gow-product-card__badge {
	position: absolute;
	top: 12px;
	left: 12px;
}

.gow-product-card__title {
	margin: 10px 0 4px;
	font-size: var(--wp--custom--heading--h5);
}

.gow-product-card__title a {
	color: inherit;
	text-decoration: none;
}

.gow-product-card__price,
.gow-product__price {
	margin: 0;
	font-weight: 600;
}

.gow-product-card__price-was,
.gow-product__price-was {
	text-decoration: line-through;
	color: var(--wp--preset--color--contrast-2);
	margin-right: 8px;
}

.gow-product__top {
	display: grid;
	grid-template-columns: 1fr;
	gap: var(--wp--preset--spacing--l);
	margin-block: var(--wp--preset--spacing--l);
}

@media (min-width: 880px) {
	.gow-product__top {
		grid-template-columns: 1.2fr 1fr;
		align-items: start;
	}
}

.gow-product__title {
	font-size: var(--wp--preset--font-size--x-large);
	margin: 12px 0;
}

.gow-product__price {
	font-size: var(--wp--preset--font-size--large);
	margin-block: 12px;
}

.gow-product__review {
	border-top: 1px solid var(--wp--preset--color--border);
	padding-block: 16px;
}

.gow-product__review-reply {
	margin-top: 8px;
	padding-left: 16px;
	border-left: 3px solid var(--wp--preset--color--secondary);
	color: var(--wp--preset--color--contrast-2);
}

/* Star rating glyphs (used by many blocks via gow_rating_stars). */
.gow-stars {
	color: #e5b33e;
	letter-spacing: 1px;
}

.gow-stars .is-empty {
	color: var(--wp--preset--color--border);
}
