/*
 * VancityRoom 検索結果カード
 * 親テーマの検索ページ構成は維持し、結果カードだけHomeと同じ情報設計へ寄せる。
 */

.vcr-search-cards {
	gap: 16px;
	list-style: none;
	margin: 0;
	padding: 0;
}

/*
 * Storefrontのbase CSSは子テーマCSSより後に出力される場合がある。
 * sf-cardsより詳細度を高くし、gallery/list/dashboardの列数を確実に維持する。
 */
ul.sf-cards.vcr-search-cards.vcr-search-cards--gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

ul.sf-cards.vcr-search-cards.vcr-search-cards--dashboard {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.sf-list ul.sf-cards.vcr-search-cards.vcr-search-cards--list,
ul.sf-cards.vcr-search-cards.vcr-search-cards--list {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
}

/*
 * 検索ページのリスト表示だけ、カードの縦幅を固定する。
 * 縦長画像の縦横比でカード全体が伸びないようにする。
 */
ul.sf-cards.vcr-search-cards.vcr-search-cards--list > li.vcr-search-card {
	height: 150px;
	max-height: 150px;
	min-height: 150px;
}

/*
 * VancityRoomカードはStorefront標準の .sf-card を付けず、
 * 親テーマのgrid/list用レイアウトと競合しない独立カードとして扱う。
 */
li.vcr-search-card {
	background: #fff;
	border: 1px solid #dfe5e7;
	border-radius: 12px;
	box-shadow: 0 1px 3px rgba(18, 32, 38, 0.05);
	display: block;
	height: auto;
	margin: 0;
	min-width: 0;
	overflow: hidden;
	padding: 0;
	transition: border-color 140ms ease, box-shadow 140ms ease;
	width: 100%;
}

li.vcr-search-card .vcr-search-card__link {
	width: 100%;
}

li.vcr-search-card:hover {
	border-color: #ccd6d9;
	box-shadow: 0 5px 15px rgba(18, 32, 38, 0.09);

}

.vcr-search-card__link {
	color: inherit;
	display: flex;
	height: 100%;
	text-decoration: none;
}

.vcr-search-cards--gallery .vcr-search-card__link,
.vcr-search-cards--dashboard .vcr-search-card__link {
	flex-direction: column;
}

.vcr-search-cards--dashboard > .vcr-search-card {
	display: flex;
	flex-direction: column;
}

.vcr-search-cards--dashboard .vcr-search-card__link {
	flex: 1 1 auto;
	height: auto;
}

.vcr-search-cards--list .vcr-search-card__link {
	align-items: stretch;
	flex-direction: row;
	height: 100%;
	min-height: 0;
}

.vcr-search-card__media {
	background: #edf1f2;
	flex: 0 0 auto;
	overflow: hidden;
	position: relative;
}

.vcr-search-cards--gallery .vcr-search-card__media,
.vcr-search-cards--dashboard .vcr-search-card__media {
	aspect-ratio: 4 / 3;
	width: 100%;
}

.vcr-search-cards--list .vcr-search-card__media {
	height: 100%;
	min-height: 0;
	width: 190px;
}

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

.vcr-search-card__noimg {
	align-items: center;
	color: #9aa7aa;
	display: flex;
	font-size: 12px;
	height: 100%;
	justify-content: center;
	letter-spacing: .04em;
	min-height: 150px;
	width: 100%;
}

.vcr-search-card__price-overlay {
	align-items: center;
	background: rgba(255, 255, 255, 0.94);
	border: 1px solid rgba(215, 222, 224, 0.95);
	border-radius: 9px;
	box-shadow: 0 3px 9px rgba(18, 32, 38, 0.12);
	display: inline-flex;
	gap: 5px;
	left: 9px;
	padding: 6px 8px;
	position: absolute;
	top: 9px;
	transition: opacity 140ms ease;
	z-index: 3;
}

.vcr-search-card__price-value {
	color: #172326;
	font-size: 17px;
	font-weight: 850;
	line-height: 1;
}

.vcr-search-card__price-separator {
	color: #718085;
	font-size: 12px;
	font-weight: 700;
	line-height: 1;
}

.vcr-search-card__price-unit {
	align-items: center;
	border-radius: 999px;
	display: inline-flex;
	font-size: 9px;
	font-weight: 800;
	height: 20px;
	justify-content: center;
	line-height: 1;
	min-width: 20px;
	padding: 0 6px;
}

.vcr-search-card__price-unit--day {
	background: #fde7df;
	color: #b55233;
}

.vcr-search-card__price-unit--week {
	background: #e2f0ff;
	color: #2866a7;
}

.vcr-search-card__price-unit--month {
	background: #e6f3e7;
	color: #2f6d3a;
}

.vcr-search-card__price-unit--default {
	background: #eef2f4;
	color: #536367;
}

@media (hover: hover) and (pointer: fine) {
	.vcr-search-card__media:hover .vcr-search-card__price-overlay {
		opacity: 0.38;
	}
}

.vcr-search-card__body {
	border-left: 1px solid #e7ebed;
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	min-width: 0;
	padding: 12px 13px 0;
}

.vcr-search-cards--list .vcr-search-card__body {
	min-height: 0;
	overflow: hidden;
}

.vcr-search-cards--gallery .vcr-search-card__body,
.vcr-search-cards--dashboard .vcr-search-card__body {
	border-left: 0;
	border-top: 1px solid #e7ebed;
}

.vcr-search-card__topline {
	align-items: flex-start;
	display: flex;
	gap: 8px;
	justify-content: space-between;
	min-width: 0;
}

.vcr-search-card__categories {
	align-items: center;
	display: flex;
	flex: 1 1 auto;
	gap: 4px;
	min-width: 0;
}

.vcr-search-card__category {
	background: color-mix(in srgb, #c53c1e 10%, #ffffff);
	border: 1px solid color-mix(in srgb, #c53c1e 38%, #d8dfde);
	border-radius: 7px;
	color: #8f2d17;
	font-size: 10px;
	font-weight: 750;
	line-height: 1;
	max-width: 125px;
	overflow: hidden;
	padding: 3px 6px;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.vcr-search-card__category-separator {
	align-items: center;
	color: #a3452e;
	display: inline-flex;
	flex: 0 0 auto;
	height: 12px;
	justify-content: center;
	width: 12px;
}

.vcr-search-card__category-separator svg {
	display: block;
	height: 100%;
	width: 100%;
}

.vcr-search-card__available {
	align-items: center;
	background: color-mix(in srgb, #0f8b8d 10%, #ffffff);
	border: 1px solid color-mix(in srgb, #0f8b8d 34%, #d8dfde);
	border-radius: 999px;
	color: #0f7779;
	display: inline-flex;
	flex: 0 0 auto;
	gap: 4px;
	padding: 4px 7px;
	white-space: nowrap;
}

.vcr-search-card__available-icon {
	display: inline-flex;
	height: 13px;
	width: 13px;
}

.vcr-search-card__available-icon svg {
	display: block;
	height: 100%;
	width: 100%;
}

.vcr-search-card__available strong {
	font-size: 10px;
	font-weight: 800;
	line-height: 1;
}

.vcr-search-card__title {
	color: #1e2c30;
	font-size: 16px;
	font-weight: 800;
	line-height: 1.28;
	margin: 10px 0 4px;
	overflow-wrap: anywhere;
}

.vcr-search-card__location {
	color: #738084;
	font-size: 11px;
	line-height: 1.3;
	margin: 0 0 9px;
}

.vcr-search-card__meta-row {
	align-items: stretch;
	border-top: 1px solid #e7ebed;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	margin-top: auto;
	padding: 8px 0;
}

.vcr-search-card__meta-item {
	align-items: center;
	display: flex;
	gap: 5px;
	justify-content: center;
	min-width: 0;
	padding: 0 5px;
}

.vcr-search-card__meta-item + .vcr-search-card__meta-item {
	border-left: 1px solid #edf0f1;
}

.vcr-search-card__meta-icon {
	align-items: center;
	display: inline-flex;
	flex: 0 0 auto;
	gap: 1px;
	justify-content: center;
	min-width: 15px;
}

.vcr-search-card__meta-icon .vcr-card-feature-svg,
.vcr-search-card__meta-icon .vcr-gender-svg {
	display: block;
	height: 14px;
	width: 14px;
}

.vcr-search-card__meta-item--furniture .vcr-search-card__meta-icon {
	color: #2f6d66;
}

.vcr-search-card__meta-item--utilities .vcr-search-card__meta-icon {
	color: #b0742f;
}

.vcr-search-card__meta-item--gender .vcr-gender-svg--male {
	color: #3a6da8;
}

.vcr-search-card__meta-item--gender .vcr-gender-svg--female {
	color: #b4577b;
}

.vcr-search-card__meta-text {
	color: #526166;
	font-size: 10px;
	font-weight: 700;
	line-height: 1.15;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.vcr-search-card__meta-item--empty {
	min-height: 14px;
}

/*
 * マイページのダッシュボードだけ、検索カード本体の下に閲覧数・投稿日と
 * Storefront標準の管理ボタンを残す。
 */
.vcr-search-cards--dashboard .vcr-dashboard-card__status {
	align-items: center;
	border-top: 1px solid #e7ebed;
	color: #738084;
	display: flex;
	font-size: 11px;
	gap: 10px;
	justify-content: space-between;
	padding: 7px 12px;
}

.vcr-dashboard-card__views {
	align-items: center;
	display: inline-flex;
	gap: 4px;
}

.vcr-dashboard-card__date {
	white-space: nowrap;
}

@media (max-width: 980px) {
	ul.sf-cards.vcr-search-cards.vcr-search-cards--dashboard {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 900px) {
	.vcr-search-cards--list .vcr-search-card__media {
		width: 170px;
	}
}

@media (max-width: 680px) {
	.vcr-search-cards,
	.vcr-search-cards--gallery,
	.vcr-search-cards--list,
	.vcr-search-cards--dashboard {
		display: grid;
		grid-template-columns: 1fr;
	}

	ul.sf-cards.vcr-search-cards.vcr-search-cards--dashboard {
		grid-template-columns: minmax(0, 1fr);
	}

	ul.sf-cards.vcr-search-cards.vcr-search-cards--list > li.vcr-search-card {
		height: auto;
		max-height: none;
		min-height: 0;
	}

	.vcr-search-cards--list .vcr-search-card__link,
	.vcr-search-card__link {
		flex-direction: column;
	}

	.vcr-search-cards--list .vcr-search-card__media,
	.vcr-search-card__media {
		aspect-ratio: 16 / 10;
		height: auto;
		min-height: 0;
		width: 100%;
	}

	.vcr-search-card__body {
		border-left: 0;
		border-top: 1px solid #e7ebed;
		padding: 11px 11px 0;
	}

	.vcr-search-card__price-overlay {
		left: 7px;
		padding: 5px 7px;
		top: 7px;
	}

	.vcr-search-card__price-value {
		font-size: 16px;
	}

	.vcr-search-card__category {
		font-size: 9px;
		padding: 3px 5px;
	}

	.vcr-search-card__available {
		padding: 4px 6px;
	}

	.vcr-search-card__available strong {
		font-size: 9px;
	}

	.vcr-search-card__meta-item {
		padding: 0 4px;
	}

	.vcr-search-card__meta-text {
		font-size: 9.5px;
	}
}




/* 1.5.81
 * 検索結果カード全体がリンクになっているため、
 * Storefront の汎用リンクhoverによる下線をカード内部では無効化する。
 */
.vcr-search-card__link,
.vcr-search-card__link:hover,
.vcr-search-card__link:focus,
.vcr-search-card__link:focus-visible,
.vcr-search-card__link *,
.vcr-search-card__link:hover *,
.vcr-search-card__link:focus *,
.vcr-search-card__link:focus-visible * {
	text-decoration: none !important;
}


/* 1.5.82
 * 検索サイドバーのVancityRoom専用フィルター。
 */
.vcr-search-filter-group .sf-field + .sf-field {
	margin-top: 10px;
}

.vcr-search-filter-hint {
	color: #7a878b;
	font-size: 10px;
	line-height: 1.4;
	margin: 6px 0 0;
}

.vcr-search-standard-field > h6 {
	margin: 0 0 var(--space-2);
	font-size: 12px;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: var(--color-text);
}

.vcr-search-standard-field .meta-radio-list {
	display: grid;
	gap: 6px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	list-style: none;
	margin: 0;
	padding: 0;
}

.vcr-search-standard-field .meta-radio {
	list-style: none;
	margin: 0;
	padding: 0;
}

.vcr-search-standard-field .meta-radio label {
	align-items: center;
	border: 1px solid #d9e1e3;
	border-radius: 8px;
	cursor: pointer;
	display: flex;
	font-size: 11px;
	font-weight: 700;
	gap: 6px;
	min-height: 34px;
	padding: 6px 8px;
}

.vcr-search-standard-field .meta-radio label:hover {
	border-color: #9fb8b4;
}

.vcr-search-standard-field .meta-radio input {
	accent-color: var(--color-accent, #0f8178);
	flex: 0 0 auto;
	margin: 0;
}

.vcr-search-standard-field .meta-radio label:has(input:checked) {
	background: color-mix(in srgb, var(--color-accent, #0f8178) 8%, #ffffff);
	border-color: color-mix(in srgb, var(--color-accent, #0f8178) 48%, #cfd8da);
	color: #145e58;
}



/* 1.5.84
 * 絞り込みフォーム直後のメール通知セクションに余白を確保する。
 */
.sf-filters__form + .sf-filters__alert {
	border-top: 1px solid #e1e6e7;
	margin-top: 16px;
	padding-top: 16px;
}


/* 1.5.85
 * 絞り込みボタンとメール通知が密着しないよう、
 * 通知ブロック自体に確実な上余白と区切りを付ける。
 */
.sf-filters > .sf-filters__alert {
	border-top: 1px solid #e1e6e7 !important;
	margin-top: 20px !important;
	padding-top: 18px !important;
}

.sf-filters > .sf-filters__alert .sf-filters__label,
.sf-filters > .sf-filters__alert h3 {
	margin-top: 0 !important;
}


/* 1.5.87
 * 検索フォームとメール通知欄を明確に分離する。
 */
.sf-filters__form {
	margin-bottom: 20px;
}

.sf-filters__form + .sf-filters__alert {
	margin-top: 0 !important;
}

/* 1.6.62
 * ShopClass標準の検索通知フォームはそのまま利用し、
 * 検索条件保存ボタンだけVancityRoom用に見やすく整える。
 */
.sf-filters__alert [data-osc-alert-form] .oe-actions {
	margin-top: 10px;
}

.sf-filters__alert [data-osc-alert-form] .oe-btn {
	background: #e58a24;
	border: 1px solid #e58a24;
	border-radius: 7px;
	color: #fff;
	cursor: pointer;
	display: block;
	font-size: 12px;
	font-weight: 800;
	line-height: 1.2;
	min-height: 36px;
	padding: 9px 14px;
	text-align: center;
	transition: background-color 0.15s ease, border-color 0.15s ease;
	width: 100%;
}

.sf-filters__alert [data-osc-alert-form] .oe-btn:hover,
.sf-filters__alert [data-osc-alert-form] .oe-btn:focus-visible {
	background: #cf7618;
	border-color: #cf7618;
	color: #fff;
}

/* 1.6.72: 注目は黄色い線画、強調表示はカード外周1pxと淡い背景。 */
.vcr-search-card__media,
.sf-card__media {
	position: relative;
}

.vcr-search-card__featured {
	align-items: center;
	color: #f1bb14;
	display: inline-flex;
	filter: drop-shadow(0 0 1px #ffffff) drop-shadow(0 1px 1px rgba(40, 34, 9, 0.5));
	height: 23px;
	justify-content: center;
	position: absolute;
	right: 8px;
	top: 8px;
	width: 23px;
	z-index: 3;
}

.vcr-search-card__featured svg {
	display: block;
	fill: none;
	height: 20px;
	width: 20px;
}

/* 注目の星は写真を隠さない大きさのまま、内側だけ淡い黄色にする。 */
.vcr-search-card__featured svg path {
	fill: #ffe08a;
}

/* 1.6.78: 強調表示は写真や余白を変えずに淡いブルーで区別する。 */
li.vcr-search-card.vcr-search-card--paid-highlight,
li.sf-card.vcr-loop-card--paid-highlight {
	background: #e8f3ff;
	border-color: transparent;
	box-shadow: 0 0 0 1px #b8d4f0, 0 2px 8px rgba(59, 105, 147, 0.10);
}

li.vcr-search-card.vcr-search-card--paid-highlight:hover,
li.sf-card.vcr-loop-card--paid-highlight:hover {
	border-color: transparent;
	box-shadow: 0 0 0 1px #b8d4f0, 0 5px 14px rgba(59, 105, 147, 0.14);
}

@media (max-width: 560px) {
	.vcr-search-card__featured {
		height: 21px;
		right: 6px;
		top: 6px;
		width: 21px;
	}
	.vcr-search-card__featured svg {
		height: 18px;
		width: 18px;
	}
}

/* 1.6.79: 強調表示中のタイトル前に16pxの青いキラキラを表示する。 */
.vcr-highlight-title-icon {
	color: #478bc5;
	display: inline-block;
	height: 16px;
	margin-right: 5px;
	vertical-align: -2px;
	width: 16px;
}

.vcr-highlight-title-icon svg {
	display: block;
	height: 100%;
	width: 100%;
}

/* 1.7.25: 強調表示中の検索・公開プロフィール等のカードタイトルは濃い青。 */
li.vcr-search-card.vcr-search-card--paid-highlight .vcr-search-card__title,
li.sf-card.vcr-loop-card--paid-highlight .sf-card__title {
	color: #24527b;
}

/* Match Home listing metadata sizing on search results and related listings. */
.vcr-search-card__meta-row .vcr-search-card__meta-text {
	font-size: 14px;
}

.vcr-search-card__meta-row .vcr-search-card__meta-icon .vcr-card-feature-svg,
.vcr-search-card__meta-row .vcr-search-card__meta-icon .vcr-gender-svg {
	height: 18px;
	width: 18px;
}

@media (max-width: 560px) {
	.vcr-search-card__meta-row .vcr-search-card__meta-text {
		font-size: 12px;
	}

	.vcr-search-card__meta-row .vcr-search-card__meta-icon .vcr-card-feature-svg,
	.vcr-search-card__meta-row .vcr-search-card__meta-icon .vcr-gender-svg {
		height: 17px;
		width: 17px;
	}
}
