/**
 * assets/css/search.css -- [quick task 260822-rcc, Task 3] Search v2:
 * sections/rows/contact band/toggle styles. Enqueued conditionally
 * (inc/assets.php) only on is_search() || template-search.php. Prefix
 * `.search-` throughout, except the deliberately reused/inherited
 * `.game-container`/`.game-box` classes (those come from the mirrored
 * main.css -- untouched here). No selector in this file targets a
 * main.css class directly.
 */

.search-page-form {
	display: flex;
	gap: 10px;
	margin: 0 0 26px;
	max-width: 480px;
}
.search-page-form input[type="text"] {
	flex: 1 1 auto;
	padding: 11px 14px;
	border: 1px solid #d7e1e2;
	border-radius: 8px;
	font-size: 15px;
}
.search-page-form button {
	flex: 0 0 auto;
	padding: 11px 20px;
	border: none;
	border-radius: 8px;
	background: #fb5622;
	color: #fff;
	font-weight: 600;
	cursor: pointer;
}
.search-page-form button:hover {
	background: #e04a1b;
}

.search-best-match {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 20px;
	padding: 16px 20px;
	background: #eef9fb;
	border: 1px solid #cfeef4;
	border-left: 4px solid #00B7CD;
	border-radius: 10px;
}
.search-best-match-label {
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .5px;
	color: #0f8ea0;
}
.search-best-match a {
	font-size: 16px;
	font-weight: 700;
	color: #1C2727;
	text-decoration: none;
}
.search-best-match a:hover {
	text-decoration: underline;
}

.search-intent-banner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 14px;
	margin: 0 0 24px;
	padding: 18px 22px;
	background: #fff6ee;
	border: 1px solid #fadfc4;
	border-left: 4px solid #fb5622;
	border-radius: 10px;
}
.search-intent-banner p {
	margin: 0;
	flex: 1 1 260px;
	font-size: 15px;
	color: #4b5a59;
}
.search-intent-phone {
	font-weight: 600;
	color: #0f8ea0 !important;
	text-decoration: none;
}
.search-intent-phone:hover {
	text-decoration: underline;
}

.search-section {
	margin: 0 0 32px;
}
.search-section h2 {
	font-size: 19px;
	margin: 0 0 14px;
	color: #1C2727;
}

.search-more-hidden {
	display: none;
}

.search-toggle-btn {
	display: inline-block;
	margin-top: 14px;
	padding: 10px 18px;
	background: #fff;
	border: 1px solid #d7e1e2;
	border-radius: 8px;
	color: #1C2727;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}
.search-toggle-btn:hover {
	background: #f4f8f8;
}

.search-blog-row,
.search-other-row {
	display: flex;
	gap: 16px;
	align-items: flex-start;
	padding: 14px 0;
	border-top: 1px solid #eef3f4;
}
.search-blog-row:first-child,
.search-other-row:first-child {
	border-top: none;
}
.search-blog-row-thumb {
	flex: 0 0 72px;
	width: 72px;
	height: 72px;
	border-radius: 8px;
	overflow: hidden;
}
.search-blog-row-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.search-blog-row-body,
.search-other-row {
	flex: 1 1 auto;
}
.search-blog-row-cat,
.search-other-row-type {
	display: inline-block;
	margin: 0 0 4px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .5px;
	color: #8b9a9a;
}
.search-blog-row-title,
.search-other-row-title {
	display: block;
	font-size: 16px;
	font-weight: 700;
	color: #1C2727;
	text-decoration: none;
	margin: 0 0 4px;
}
.search-blog-row-title:hover,
.search-other-row-title:hover {
	text-decoration: underline;
}
.search-blog-row-snippet,
.search-other-row-excerpt {
	margin: 0;
	font-size: 14px;
	line-height: 1.5;
	color: #4b5a59;
}
.search-blog-row-snippet mark,
.search-other-row-excerpt mark {
	background: #ffe9b3;
	color: inherit;
	padding: 0 2px;
	border-radius: 2px;
}
/* [22. 8.] Další obsah: celý řádek je odkaz, jen štítek + název (bez výpisků,
   pevný sloupec štítku srovná mřížku sekce). */
a.search-other-row {
	align-items: baseline;
	text-decoration: none;
}
a.search-other-row .search-other-row-type {
	flex: 0 0 92px;
	margin: 0;
}
a.search-other-row .search-other-row-title {
	margin: 0;
}
a.search-other-row:hover .search-other-row-title {
	color: #00a2b6;
	text-decoration: none;
}

.search-blog-capped-note {
	margin: 14px 0 0;
	font-size: 13px;
	color: #8b9a9a;
}

.search-contact-band {
	background: #E8FBFA;
	border: 1px solid #d5e8e6;
	border-radius: 12px;
	padding: 26px 28px;
	margin: 0 0 32px;
}
.search-contact-band-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 24px 36px;
}
.search-contact-band-lead {
	flex: 1 1 220px;
	margin: 0;
	color: #083331;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.45;
	max-width: 340px;
}
.search-contact-band-actions {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
}
.search-contact-band-phone {
	color: #083331;
	font-weight: 700;
	font-size: 15px;
	text-decoration: none;
	font-variant-numeric: tabular-nums;
}
.search-contact-band-phone:hover {
	color: #00a2b6;
}
.search-cta-inline {
	display: inline-block;
	background: #FB5622;
	color: #fff !important;
	text-decoration: none;
	padding: 11px 20px;
	border-radius: 8px;
	font-weight: 700;
	white-space: nowrap;
}
.search-cta-inline:hover {
	background: #EE3900;
}
.search-contact-band-people {
	display: flex;
	gap: 22px;
	flex-wrap: wrap;
}
.search-contact-person {
	display: flex;
	gap: 10px;
	align-items: center;
}
.search-contact-person img {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	object-fit: cover;
	flex: 0 0 48px;
}
.search-contact-person-name {
	font-size: 13px;
	font-weight: 700;
	color: #083331;
	line-height: 1.3;
}
.search-contact-person-link {
	display: block;
	font-size: 12px;
	line-height: 1.4;
	color: #0a6e68 !important;
	text-decoration: none;
}
.search-contact-person-link:hover {
	text-decoration: underline;
}

.search-rescue h2 {
	font-size: 19px;
	margin: 0 0 16px;
	color: #1C2727;
}
.search-rescue-tiles {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}
@media (max-width: 700px) {
	.search-rescue-tiles {
		grid-template-columns: 1fr;
	}
}
.search-rescue-tile {
	display: block;
	padding: 20px 22px;
	background: #f4f9fa;
	border: 1px solid #e4ecee;
	border-radius: 10px;
	color: #1C2727 !important;
	font-weight: 700;
	text-decoration: none;
	text-align: center;
}
.search-rescue-tile:hover {
	background: #eef9fb;
	border-color: #cfeef4;
}

/* [22. 8. noc] Štítek dlaždice hry na JEDEN řádek jako ve výpisu programů —
   v užší search mřížce se lámal na dva (main.css má flex-wrap:wrap +
   max-width; do mirrorovaného main.css nesaháme, scope jen vyhledávání).
   Dlouhá lokalita dostane trojtečku; plný text nese .base-tooltip. */
.search-page .game-item-info {
	flex-wrap: nowrap;
	white-space: nowrap;
}
.search-page .game-item-info .game-type {
	min-width: 0;
	flex: 0 1 auto;
}
.search-page .game-item-info .game-type > span:first-child {
	overflow: hidden;
	text-overflow: ellipsis;
}

/* [22. 8. noc] Pulsující CTA „Nechat si doporučit program" (pokyn Jirky).
   Rozpínající se prstenec + mikro-scale; na hover pauza, reduced-motion off. */
@keyframes search-cta-pulse {
	0% {
		transform: scale(1);
		box-shadow: 0 0 0 0 rgba(251, 86, 34, 0.45);
	}
	60% {
		transform: scale(1.03);
		box-shadow: 0 0 0 12px rgba(251, 86, 34, 0);
	}
	100% {
		transform: scale(1);
		box-shadow: 0 0 0 0 rgba(251, 86, 34, 0);
	}
}
.search-contact-band .search-cta-inline {
	animation: search-cta-pulse 2.2s ease-out infinite;
	will-change: transform, box-shadow;
}
.search-contact-band .search-cta-inline:hover,
.search-contact-band .search-cta-inline:focus-visible {
	animation-play-state: paused;
}
@media (prefers-reduced-motion: reduce) {
	.search-contact-band .search-cta-inline {
		animation: none;
	}
}

/* [23. 8.] Mobil: panel lezl do bubliny chatu (obě vpravo dole). Chat
   necháváme na konvenčním místě, NÁŠ panel se zvedá nad něj (bublina
   ~64 px + 2rem offset → 11rem s rezervou). Desktop beze změny (tam je
   panel nahoře přes top:9/12rem). Jen .search-fix-cta — fix-cta na
   detailu hry má stejný předchozí stav, řešíme zvlášť po odsouhlasení. */
@media (max-width: 767px) {
	.search-fix-cta {
		bottom: 11rem;
	}
}
