/* 260602 MEETUP UPDATE */

/* layout */
.mt-layout {
	display: flex;
	align-items: flex-start;
	gap: 30px;
	padding: 40px 0;
}

/* filterWrap */
.filterWrap {
	width: 240px;
	max-width: 240px;
	flex-shrink: 0;
	padding-bottom: 1.5rem;
	position: sticky;
	top: 20px;
}

.filter-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 1.2rem;
	padding-bottom: 0.6rem;
	border-bottom: 1px solid #ccc;
}

.filter-head span {
	font-size: 1.3rem;
	font-weight: 600;
	color: #111;
}

.filter-reset {
	font-size: 0.8rem;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 6px;
	padding: 5px 14px;
	color: #333;
	text-decoration: none;
	cursor: pointer;
	transition: border-color 0.15s;
}

.filter-reset:hover {
	border-color: #aaa;
	color: #111;
}

.filter-section {
	margin-bottom: 1.5rem;
}

.filter-section-title {
	font-size: 0.9rem;
	font-weight: 700;
	color: #111;
	margin-bottom: 8px;
	padding-bottom: 8px;
}

/* select */
.filter-select-wrap {
	position: relative;
}

.filter-select-wrap::after {
	content: '';
	position: absolute;
	right: 10px;
	top: 50%;
	transform: translateY(-50%);
	width: 0;
	height: 0;
	border-left: 4px solid transparent;
	border-right: 4px solid transparent;
	border-top: 5px solid #888;
	pointer-events: none;
}

.filter-select {
	width: 100%;
	appearance: none;
	-webkit-appearance: none;
	border: 1px solid #ddd;
	border-radius: 6px;
	padding: 7px 28px 7px 10px;
	font-size: 0.85rem;
	color: #333;
	background: #fff;
	cursor: pointer;
	outline: none;
	transition: border-color 0.2s;
}

.filter-select:focus {
	border-color: #b71c24;
}

/* checkbox */
.filter-check-list {
	list-style: none;
	padding: 8px 12px;
	margin: 0;
	max-height: 300px;
	overflow-y: auto;
	background-color: #fafaf8;
	border-radius: 8px;
}

.filter-check-list::-webkit-scrollbar { width: 4px; }
.filter-check-list::-webkit-scrollbar-track { background: transparent; }
.filter-check-list::-webkit-scrollbar-thumb { background: #d1d0cc; border-radius: 999px; }
.filter-check-list::-webkit-scrollbar-thumb:hover { background: #b71c24; }

.filter-check-list li {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 7px 0;
	cursor: pointer;
}

.filter-check-list li:last-child {
	border-bottom: none;
}

.filter-check-label {
	display: flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
	width: 100%;
}

.filter-check-label input[type="checkbox"] {
	appearance: none;
	-webkit-appearance: none;
	width: 18px;
	height: 18px;
	border-radius: 4px;
	background: #d1d0cc;
	flex-shrink: 0;
	position: relative;
	cursor: pointer;
	transition: background 0.15s;
}

.filter-check-label input[type="checkbox"]:checked {
	background: #b71c24;
}

.filter-check-label input[type="checkbox"]:checked::after {
	content: "\f00c";
	font-family: "Font Awesome 6 Free";
	font-weight: 900;
	font-size: 0.6rem;
	color: #fff;
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

.filter-check-label span {
	font-size: 0.9rem;
	color: #555;
	font-weight: 400;
	transition: color 0.15s, font-weight 0.15s;
}

.filter-check-label:hover span {
	color: #b71c24;
	font-weight: 600;
}

/* radio */
.filter-radio-list {
	list-style: none;
	padding: 8px 12px;
	margin: 0;
	border-radius: 10px;
	background-color: #fafaf8;
	border-radius: 8px;
}

.filter-radio-list li {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 7px 0;
}

.filter-radio-list li:last-child {
	border-bottom: none;
}

.filter-radio-label {
	display: flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
	width: 100%;
}

.filter-radio-label input[type="radio"] {
	appearance: none;
	-webkit-appearance: none;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #d1d0cc;
	flex-shrink: 0;
	position: relative;
	cursor: pointer;
	transition: background 0.15s;
}

.filter-radio-label input[type="radio"]:checked {
	background: #b71c24;
}

.filter-radio-label input[type="radio"]:checked::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: #fff;
}

.filter-radio-label span {
	font-size: 0.9rem;
	color: #555;
	font-weight: 400;
	transition: color 0.15s, font-weight 0.15s;
}

.filter-radio-label:hover span {
	color: #b71c24;
	font-weight: 600;
}

/* price range */
.price-range-wrap {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease, padding 0.3s ease, margin 0.3s ease;
	margin-top: 0;
	padding: 0 12px;
	background: #fafaf8;
	border-radius: 8px;
}

.price-range-wrap.is-visible {
	max-height: 120px;
	margin-top: 12px;
	padding: 12px;
}

/* region select range */
.region-select-wrap {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease, padding 0.3s ease, margin 0.3s ease;
	margin-top: 0;
	padding: 0 12px;
	background: #fafaf8;
	border-radius: 8px;
}

.region-select-wrap.is-visible {
	max-height: 120px;
	margin-top: 12px;
	padding: 12px;
}

.price-range-labels {
	display: flex;
	justify-content: space-between;
	font-size: 0.75rem;
	font-weight: 600;
	color: #b71c24;
	margin-bottom: 12px;
}

.price-slider-wrap {
	position: relative;
	height: 18px;
}

.price-track {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	left: 0;
	right: 0;
	height: 4px;
	background: #d1d0cc;
	border-radius: 999px;
}

.price-fill {
	position: absolute;
	height: 100%;
	background: #b71c24;
	border-radius: 999px;
}

.price-range {
	position: absolute;
	width: 100%;
	top: 50%;
	transform: translateY(-50%);
	appearance: none;
	-webkit-appearance: none;
	background: transparent;
	pointer-events: none;
	margin: 0;
	padding: 0;
	height: 18px;
}

.price-range::-webkit-slider-thumb {
	appearance: none;
	-webkit-appearance: none;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: #b71c24;
	border: 2px solid #fff;
	box-shadow: 0 1px 4px rgba(0,0,0,0.2);
	pointer-events: all;
	cursor: pointer;
	transition: transform 0.1s;
}

.price-range::-webkit-slider-thumb:hover {
	transform: scale(1.2);
}

.price-range::-moz-range-thumb {
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: #b71c24;
	border: 2px solid #fff;
	box-shadow: 0 1px 4px rgba(0,0,0,0.2);
	pointer-events: all;
	cursor: pointer;
}

/* content */
.mt-content {
	flex: 1;
	min-width: 0;
}


@media screen and (max-width: 1024px) {
	.filterWrap { width: 200px; max-width: 200px; }
}

.mobile-filter-bar { display: none; }
.mobile-filter-btn { display: none; }
.filter-close { display: none; }
.filter-backdrop { display: none; }

.meet-location-box {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 10px 0 14px;
	padding: 14px 16px;
	background: #f8fafc;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
}

.meet-location-box p {
	margin-bottom: 0 !important;
}

.meet-location-address {
	margin: 0;
	color: #1f2937;
	font-size: 0.95rem;
	line-height: 1.5;
}

.meet-location-link {
	flex: 0 0 auto;
	padding: 8px 12px;
	color: #fff !important;
	background: #ff5b50;
	border-radius: 4px;
	font-size: 0.85rem;
	font-weight: 600;
}

.meet-location-link:hover,
.meet-location-link:focus {
	color: #fff;
	background: #e64f45;
}

.meet-location-empty {
	margin: 10px 0 0;
	padding: 18px;
	color: #94a3b8;
	text-align: center;
	background: #f8fafc;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
}

.meet-password-gate {
	width: min(480px, calc(100% - 32px));
	margin: 120px auto;
	padding: 42px 36px;
	text-align: center;
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
}

.meet-password-gate h2 {
	margin: 0 0 12px;
	color: #111827;
	font-size: 1.6rem;
	font-weight: 700;
}

.meet-password-gate p {
	margin: 0 0 18px;
	color: #64748b;
	font-size: 0.95rem;
}

.meet-password-error {
	color: #ff5b50 !important;
	font-weight: 600;
}

.meet-password-form {
	display: flex;
	gap: 8px;
	margin-top: 20px;
}

.meet-password-form input {
	flex: 1;
	height: 48px;
	padding: 0 14px;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	box-sizing: border-box;
}

.meet-password-form button {
	width: 92px;
	height: 48px;
	color: #fff;
	background: #ff5b50;
	border: 0;
	border-radius: 6px;
	font-weight: 700;
	cursor: pointer;
}

.meet-password-back {
	display: inline-block;
	margin-top: 22px;
	color: #64748b;
	font-size: 0.9rem;
}

@media screen and (max-width: 1024px) {
	.filterWrap { width: 200px; max-width: 200px; }
}

@media screen and (max-width: 768px) {
	/* 필터 버튼 — 검색창 아래 우측 */
	.mobile-filter-bar {
		display: flex;
		justify-content: flex-end;
		margin: 8px 0;
	}
	.mobile-filter-btn {
		display: flex;
		align-items: center;
		gap: 7px;
		background: #fff;
		color: #333;
		border: 1px solid #ddd;
		border-radius: 20px;
		padding: 7px 14px;
		cursor: pointer;
		font-size: 0.812rem;
		font-weight: 500;
	}
	.mfb-icon { display: flex; flex-direction: column; gap: 3px; }
	.mfb-bar { display: block; width: 16px; height: 2px; background: #555; border-radius: 2px; }
	.mfb-bar:nth-child(2) { width: 11px; }
	.mfb-bar:nth-child(3) { width: 6px; }
	.mfb-label { letter-spacing: 0.02em; }

	/* 드로어 */
	.filterWrap {
		position: fixed;
		top: 0; left: -280px;
		width: 280px; max-width: 280px;
		height: 100vh;
		background: #fff;
		z-index: 1000;
		padding: 1.5rem;
		overflow-y: auto;
		transition: left 0.3s ease;
		box-shadow: 4px 0 20px rgba(0,0,0,0.12);
	}
	.filterWrap.is-open { left: 0; }

	/* 닫기 버튼 */
	.filter-close {
		display: flex;
		align-items: center;
		justify-content: center;
		background: none;
		border: none;
		font-size: 1.2rem;
		color: #555;
		cursor: pointer;
		padding: 2px 4px;
	}
	.filter-head-right { display: flex; align-items: center; gap: 8px; }

	/* 백드롭 */
	.filter-backdrop {
		display: block;
		position: fixed;
		inset: 0;
		background: rgba(0,0,0,0.4);
		z-index: 999;
		opacity: 0;
		pointer-events: none;
		transition: opacity 0.3s ease;
	}
	.filter-backdrop.is-open { opacity: 1; pointer-events: all; }

	.mt-layout { padding: 10px; }
	.filter-check-list { max-height: 200px; }
	.meet-location-box {
		align-items: flex-start;
		flex-direction: column;
	}
	.meet-password-gate {
		margin: 70px auto;
		padding: 32px 22px;
	}
	.meet-password-form {
		flex-direction: column;
	}
	.meet-password-form button {
		width: 100%;
	}
}
