/**
 * The listing card.
 *
 * Astra's stock archive is one full-width block per post: a 920px-tall photo, a
 * title, a meta line and a text link, 1006px of page for one entry. A visitor
 * scrolling a category of guesthouses sees one guesthouse. This turns the same
 * markup -- no template override, nothing reordered in the DOM -- into a
 * horizontal card: photo on the left, everything else on the right, ~230px tall,
 * four to a screen.
 *
 * SPECIFICITY IS DELIBERATE. Every rule is prefixed `body.g2v-cards`, which is
 * (0,2,1), because Astra emits its dynamic CSS as an inline <style> in the head
 * -- after this file's <link>, whatever order the two were enqueued in. A rule
 * at the same weight would lose to the theme with nothing on screen to say so.
 * That is fix 29's lesson: a colour or a layout lost to an inherited one raises
 * no error and passes a contrast gate.
 *
 * The layout is CSS Grid with `row-gap: 0`, and the photo spans `1 / span 20`.
 * The span is not a guess at the number of rows: Astra prints a VARIABLE number
 * of children (category, tag, title, meta, excerpt, read-more, all optional in
 * the Customizer), so the photo has to outrun any of them. Empty implicit rows
 * cost nothing at row-gap 0 -- which is why the spacing between the text items
 * is margin and not gap. Do not "tidy" that into a gap.
 */

/* --- the rail of cards --------------------------------------------------- */
body.g2v-cards .ast-row {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	gap: 18px;
}

body.g2v-cards .ast-article-post {
	padding: 14px;
	margin: 0;
	border: 1px solid rgba(18, 33, 27, .12);
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 1px 2px rgba(18, 33, 27, .05);
	transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
body.g2v-cards .ast-article-post:hover,
body.g2v-cards .ast-article-post:focus-within {
	border-color: rgba(218, 140, 39, .55);
	box-shadow: 0 6px 18px rgba(18, 33, 27, .10);
}

/* Astra leaves the inner wrapper inline-block, which makes the card's own width
   depend on its content instead of on the column it sits in. */
body.g2v-cards .ast-article-inner {
	display: block;
	width: 100%;
}

body.g2v-cards .post-content {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	row-gap: 0;
}

/* --- the photo ----------------------------------------------------------- */
body.g2v-cards .ast-blog-featured-section {
	margin: 0 0 12px;
	min-height: 0;
}
body.g2v-cards .ast-blog-featured-section .post-thumb-img-content,
body.g2v-cards .ast-blog-featured-section .post-thumb-img-content > a {
	height: 100%;
}
body.g2v-cards .ast-blog-featured-section img {
	width: 100%;
	height: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border-radius: 10px;
	display: block;
}

/* --- title, meta, excerpt ------------------------------------------------ */
/* The clamp lives on the ANCHOR, not on the heading. -webkit-line-clamp counts
   the lines of the element it is set on, and the anchor is a block child of the
   heading -- clamped on the heading it would count the whole anchor as one line
   and never truncate. `-webkit-box` is still a block-level box, so fix 39 holds:
   the link box keeps covering both lines of the title. Do not put `display:block`
   back here. */
body.g2v-cards .entry-title {
	margin: 0 0 4px;
	font-size: clamp(1.05rem, 1.4vw + .6rem, 1.35rem);
	line-height: 1.3;
}
body.g2v-cards .entry-title a {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
	/* The padding is the tap target, not decoration: a one-line title is
	   23px of text, which is under the 24px minimum on its own. Two lines
	   never needed it, so the defect only shows on short titles -- exactly
	   the ones a thumb misses. Vertical padding on a clamped box is safe:
	   the clamp paints nothing past the last line, so the extra height is
	   blank, never a sliver of a third line. */
	padding: 3px 0 4px;
	color: #12211b;
}
body.g2v-cards .entry-title a:hover,
body.g2v-cards .entry-title a:focus {
	color: #137547;
}

body.g2v-cards .entry-header,
body.g2v-cards .ast-blog-meta-container {
	margin: 0;
	padding: 0;
	border: 0;
}
body.g2v-cards .entry-meta {
	margin: 0 0 8px;
	font-size: 13px;
	line-height: 1.5;
	color: #5a6b63;
}
body.g2v-cards .entry-meta a {
	color: #137547;
}
/* The category reads as a chip, so the meta line has one anchor a finger can
   find and the rest is plain text. */
body.g2v-cards .entry-meta .cat-links a {
	display: inline-block;
	padding: 2px 10px;
	border-radius: 999px;
	background: rgba(19, 117, 71, .10);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .02em;
}

body.g2v-cards .ast-excerpt-container {
	margin: 0;
	color: #384741;
	font-size: 15px;
	line-height: 1.55;
}
body.g2v-cards .ast-excerpt-container p {
	margin: 0;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
}
/* Astra prints this box whether or not anything goes in it. */
body.g2v-cards .entry-content.clear {
	margin: 0;
}

/* --- the action row ------------------------------------------------------ */
body.g2v-cards .g2v-card-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	margin: 12px 0 0;
	padding: 0;
}
body.g2v-cards .g2v-card-actions .g2v-card-act {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
	padding: 0 16px;
	border: 1px solid transparent;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none;
	transition: background .18s ease, color .18s ease, border-color .18s ease;
}
/* An icon that follows the label's colour without an <svg> in the markup:
   Astra runs the read-more line through wp_kses_post(), which strips SVG. */
body.g2v-cards .g2v-card-actions .g2v-card-act::before {
	content: "";
	width: 16px;
	height: 16px;
	flex: 0 0 16px;
	background: currentColor;
	-webkit-mask-position: center;
	mask-position: center;
	-webkit-mask-repeat: no-repeat;
	mask-repeat: no-repeat;
	-webkit-mask-size: contain;
	mask-size: contain;
}

/* Ink on white is 15.6:1; white on ink is the same pair inverted. */
body.g2v-cards .g2v-card-actions .g2v-card-act.is-primary {
	background: #12211b;
	border-color: #12211b;
	color: #fff;
}
body.g2v-cards .g2v-card-actions .g2v-card-act.is-primary:hover,
body.g2v-cards .g2v-card-actions .g2v-card-act.is-primary:focus {
	background: #137547;
	border-color: #137547;
	color: #fff;
}
body.g2v-cards .g2v-card-actions .g2v-card-act.is-primary::before {
	-webkit-mask-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9.3 5.3 8 6.6l5.4 5.4L8 17.4l1.3 1.3 6.7-6.7z'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9.3 5.3 8 6.6l5.4 5.4L8 17.4l1.3 1.3 6.7-6.7z'/%3E%3C/svg%3E");
	order: 2;
}

/* The phone chip carries the number itself, because on a listing the number IS
   the information -- "Sună" would hide it behind a tap. #12211b on #fff. */
body.g2v-cards .g2v-card-actions .g2v-card-act.is-phone {
	background: #fff;
	border-color: rgba(18, 33, 27, .24);
	color: #12211b;
	font-variant-numeric: tabular-nums;
}
body.g2v-cards .g2v-card-actions .g2v-card-act.is-phone:hover,
body.g2v-cards .g2v-card-actions .g2v-card-act.is-phone:focus {
	border-color: #da8c27;
	background: rgba(218, 140, 39, .10);
}
body.g2v-cards .g2v-card-actions .g2v-card-act.is-phone::before {
	-webkit-mask-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.1.4 2.3.6 3.6.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1C10.6 21 3 13.4 3 4c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.2.2 2.4.6 3.6.1.3 0 .7-.2 1l-2.3 2.2z'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2c.3-.3.7-.4 1-.2 1.1.4 2.3.6 3.6.6.6 0 1 .4 1 1V20c0 .6-.4 1-1 1C10.6 21 3 13.4 3 4c0-.6.4-1 1-1h3.5c.6 0 1 .4 1 1 0 1.2.2 2.4.6 3.6.1.3 0 .7-.2 1l-2.3 2.2z'/%3E%3C/svg%3E");
}

/* Same treatment as the phone chip -- ink on white, not WhatsApp's own green,
   which fails the 7:1 body-text target on white. The brand shows in the hover
   tint and the icon instead. */
body.g2v-cards .g2v-card-actions .g2v-card-act.is-whatsapp {
	background: #fff;
	border-color: rgba(18, 33, 27, .24);
	color: #12211b;
}
body.g2v-cards .g2v-card-actions .g2v-card-act.is-whatsapp:hover,
body.g2v-cards .g2v-card-actions .g2v-card-act.is-whatsapp:focus {
	border-color: #25d366;
	background: rgba(37, 211, 102, .12);
}
body.g2v-cards .g2v-card-actions .g2v-card-act.is-whatsapp::before {
	-webkit-mask-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17.47 14.38c-.3-.15-1.76-.87-2.03-.97-.27-.1-.47-.15-.67.15-.2.3-.77.97-.94 1.16-.17.2-.35.22-.64.08-.3-.15-1.26-.46-2.39-1.48-.88-.79-1.48-1.76-1.65-2.06-.17-.3-.02-.46.13-.61.13-.13.3-.35.44-.52.15-.17.2-.3.3-.5.1-.2.05-.37-.02-.52-.08-.15-.67-1.61-.92-2.21-.24-.58-.49-.5-.67-.51-.17-.01-.37-.01-.57-.01-.2 0-.52.07-.79.37-.27.3-1.04 1.02-1.04 2.48 0 1.46 1.07 2.88 1.21 3.07.15.2 2.1 3.2 5.08 4.49.71.3 1.26.49 1.69.62.71.23 1.36.2 1.87.12.57-.09 1.76-.72 2.01-1.41.25-.69.25-1.29.17-1.41-.07-.12-.27-.2-.57-.35M12.05 21.78a9.87 9.87 0 0 1-5.03-1.38l-.36-.21-3.74.98 1-3.65-.24-.37a9.86 9.86 0 0 1-1.51-5.26C2.18 6.49 6.61 2.06 12.06 2.06c2.64 0 5.12 1.03 6.99 2.9a9.83 9.83 0 0 1 2.89 6.99c0 5.45-4.44 9.88-9.89 9.88M20.52 3.45C18.24 1.25 15.24 0 12.05 0 5.46 0 .1 5.36.1 11.94c0 2.11.55 4.16 1.6 5.95L0 24l6.34-1.65a11.88 11.88 0 0 0 5.7 1.45c6.58 0 11.95-5.36 11.95-11.94 0-3.19-1.24-6.19-3.48-8.4'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17.47 14.38c-.3-.15-1.76-.87-2.03-.97-.27-.1-.47-.15-.67.15-.2.3-.77.97-.94 1.16-.17.2-.35.22-.64.08-.3-.15-1.26-.46-2.39-1.48-.88-.79-1.48-1.76-1.65-2.06-.17-.3-.02-.46.13-.61.13-.13.3-.35.44-.52.15-.17.2-.3.3-.5.1-.2.05-.37-.02-.52-.08-.15-.67-1.61-.92-2.21-.24-.58-.49-.5-.67-.51-.17-.01-.37-.01-.57-.01-.2 0-.52.07-.79.37-.27.3-1.04 1.02-1.04 2.48 0 1.46 1.07 2.88 1.21 3.07.15.2 2.1 3.2 5.08 4.49.71.3 1.26.49 1.69.62.71.23 1.36.2 1.87.12.57-.09 1.76-.72 2.01-1.41.25-.69.25-1.29.17-1.41-.07-.12-.27-.2-.57-.35M12.05 21.78a9.87 9.87 0 0 1-5.03-1.38l-.36-.21-3.74.98 1-3.65-.24-.37a9.86 9.86 0 0 1-1.51-5.26C2.18 6.49 6.61 2.06 12.06 2.06c2.64 0 5.12 1.03 6.99 2.9a9.83 9.83 0 0 1 2.89 6.99c0 5.45-4.44 9.88-9.89 9.88M20.52 3.45C18.24 1.25 15.24 0 12.05 0 5.46 0 .1 5.36.1 11.94c0 2.11.55 4.16 1.6 5.95L0 24l6.34-1.65a11.88 11.88 0 0 0 5.7 1.45c6.58 0 11.95-5.36 11.95-11.94 0-3.19-1.24-6.19-3.48-8.4'/%3E%3C/svg%3E");
}

body.g2v-cards .g2v-card-actions .g2v-card-act.is-share {
	background: transparent;
	border-color: rgba(18, 33, 27, .18);
	color: #384741;
}
body.g2v-cards .g2v-card-actions .g2v-card-act.is-share:hover,
body.g2v-cards .g2v-card-actions .g2v-card-act.is-share:focus {
	border-color: #12211b;
	color: #12211b;
}
body.g2v-cards .g2v-card-actions .g2v-card-act.is-share::before {
	-webkit-mask-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M18 16.1c-.8 0-1.5.3-2 .8l-7.1-4.2c.1-.2.1-.5.1-.7s0-.5-.1-.7L16 7.1c.5.5 1.2.8 2 .8 1.7 0 3-1.3 3-3s-1.3-3-3-3-3 1.3-3 3c0 .2 0 .5.1.7L8 9.8c-.5-.5-1.2-.8-2-.8-1.7 0-3 1.3-3 3s1.3 3 3 3c.8 0 1.5-.3 2-.8l7.1 4.2c0 .2-.1.4-.1.6 0 1.6 1.3 2.9 2.9 2.9s2.9-1.3 2.9-2.9-1.2-2.9-2.8-2.9z'/%3E%3C/svg%3E");
	mask-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M18 16.1c-.8 0-1.5.3-2 .8l-7.1-4.2c.1-.2.1-.5.1-.7s0-.5-.1-.7L16 7.1c.5.5 1.2.8 2 .8 1.7 0 3-1.3 3-3s-1.3-3-3-3-3 1.3-3 3c0 .2 0 .5.1.7L8 9.8c-.5-.5-1.2-.8-2-.8-1.7 0-3 1.3-3 3s1.3 3 3 3c.8 0 1.5-.3 2-.8l7.1 4.2c0 .2-.1.4-.1.6 0 1.6 1.3 2.9 2.9 2.9s2.9-1.3 2.9-2.9-1.2-2.9-2.8-2.9z'/%3E%3C/svg%3E");
}

/* g2v-site.css scopes the copied-link bubble to .g2v-share-btn; the card's chip
   is a different element and needs its own line, or the confirmation the button
   exists to give never appears. */
body.g2v-cards .g2v-card-act.is-flashing .g2v-share-flash {
	opacity: 1;
}

/* --- horizontal from 760px ----------------------------------------------- */
@media (min-width: 760px) {
	body.g2v-cards .post-content {
		grid-template-columns: 288px minmax(0, 1fr);
		column-gap: 20px;
	}
	body.g2v-cards .ast-blog-featured-section {
		grid-column: 1;
		grid-row: 1 / span 20;
		margin: 0;
		min-height: 190px;
	}
	body.g2v-cards .ast-blog-featured-section img {
		aspect-ratio: auto;
		min-height: 190px;
	}
}

/* Two across once there is room for two 288px photos and readable text beside
   each. Below this the cards stay full width, which on a laptop reads as a list
   rather than a wall. */
@media (min-width: 1200px) {
	body.g2v-cards .ast-row {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
	body.g2v-cards .post-content {
		grid-template-columns: 208px minmax(0, 1fr);
	}
	body.g2v-cards .ast-blog-featured-section,
	body.g2v-cards .ast-blog-featured-section img {
		min-height: 168px;
	}
	body.g2v-cards .entry-title {
		font-size: 1.12rem;
	}
}

/* fix 55's in-page search box lived here; removed in fix 56 -- see
 * g2v-site.css for the header icon + pop-up that replaced it. */
