/*
 * エリア検索ページ用CSS
 * パシオンマンスリー
 * レントライフ風左右分割レイアウト
 */

/* ヘッダーバー */
.list-room-header-bar {
	border-top: 4px solid #8DC555;
	background: #ffffff;
	padding: 16px 16px;
}

.list-room-header-inner {
	margin: 0 auto;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.list-room-title {
	font-size: 16px;
	font-weight: 700;
}

.list-room-title .area-name {
	font-weight: bold;
}

.list-room-title .room-count {
	font-size: 20px;
	font-weight: bold;
	color: #e55;
}

/* 地図トグルスイッチ */
.list-room-toggle {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
}

.toggle-switch {
	position: relative;
	display: inline-block;
	width: 50px;
	height: 26px;
}

.toggle-switch input {
	opacity: 0;
	width: 0;
	height: 0;
}

.toggle-switch .slider {
	position: absolute;
	cursor: pointer;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: #ccc;
	transition: .3s;
	border-radius: 26px;
}

.toggle-switch .slider:before {
	position: absolute;
	content: "";
	height: 20px;
	width: 20px;
	left: 3px;
	bottom: 3px;
	background-color: white;
	transition: .3s;
	border-radius: 50%;
}

.toggle-switch input:checked + .slider {
	background-color: #4CAF50;
}

.toggle-switch input:checked + .slider:before {
	transform: translateX(24px);
}

/* ツールバー（条件変更） */
.list-room-toolbar {
	background: #f5f5f5;
	border-bottom: 1px solid #ddd;
	padding: 0 15px;
}

.list-room-toolbar-inner {
	max-width: none;
	margin: 0 auto;
	position: relative;
}

.btn-tab {
	background: #fff;
	border: 1px solid #ddd;
	border-bottom: none;
	border-radius: 4px 4px 0 0;
	padding: 10px 25px;
	font-size: 14px;
	cursor: pointer;
	position: relative;
	top: 1px;
}

.btn-tab:hover,
.btn-tab.active {
	background: #fff;
	border-color: #ddd;
}

/* 条件ドロップダウン */
.list-room-condition-dropdown {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	width: 600px;
	background: #fff;
	border: 1px solid #ddd;
	box-shadow: 0 4px 10px rgba(0,0,0,0.1);
	z-index: 1000;
	max-height: 500px;
	overflow-y: auto;
}

/* ボタンホバーで条件ドロップダウンを表示 */
.condition-trigger {
	position: relative;
	display: inline-block;
}

.condition-trigger:hover .list-room-condition-dropdown,
.list-room-condition-dropdown:hover {
	display: block;
}

.list-room-toolbar {
	background: #f5f5f5;
	border-bottom: 1px solid #ddd;
	padding: 0 15px;
}

.condition-sub-title {
	margin: 10px 0 4px;
	font-size: 13px;
	font-weight: bold;
}

.list-room-condition-inner {
	padding: 20px;
	max-width: 900px;
}

/* 条件フォーム */
.condition-row-full {
	margin-bottom: 15px;
	padding-bottom: 15px;
	border-bottom: 1px solid #eee;
}

.condition-title {
	font-weight: bold;
	color: #f60;
	border-left: 3px solid #f60;
	padding-left: 10px;
	margin: 0 0 10px;
	font-size: 14px;
}

.condition-price-row {
	display: flex;
	align-items: center;
	gap: 10px;
}

.condition-select {
	padding: 8px 12px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 14px;
	min-width: 120px;
}

.condition-columns {
	display: flex;
	gap: 30px;
}

.condition-column-left,
.condition-column-right {
	flex: 1;
}

.condition-subtitle {
	font-size: 12px;
	color: #666;
	margin: 10px 0 5px;
}

.condition-checks {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 5px 15px;
}

.condition-checks li {
	font-size: 13px;
}

.condition-checks input[type="checkbox"] {
	margin-right: 5px;
}

.condition-submit {
	margin-top: 20px;
	text-align: center;
}

.btn-search {
	background: #f60;
	color: #fff;
	border: none;
	padding: 12px 60px;
	font-size: 16px;
	font-weight: bold;
	border-radius: 4px;
	cursor: pointer;
}

.btn-search:hover {
	background: #e55;
}

.mt20 {
	margin-top: 20px;
}

/* メインコンテンツ（左右分割） */
.list-room-main-content {
	display: flex;
	height: calc(100vh - 150px);
	min-height: 500px;
}

/* 左側: 物件リスト */
.list-room-list-area {
	width: 60%;
	overflow-y: auto;
	background: #fff;
	padding: 15px;
}

.list-room-list-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 15px;
}

/* 物件カード（レントライフ風） */
.room-card {
	position: relative;
	border: 1px solid #ddd;
	border-radius: 4px;
	overflow: hidden;
	background: #fff;
	transition: box-shadow 0.2s, opacity 0.2s;
	display: flex;
	flex-direction: column;
}

.room-card:hover {
	box-shadow: 0 2px 8px rgba(0,0,0,0.15);
	opacity: 0.9;
}

/* キャンペーンバナー */
.room-card-campaign {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 3;
	pointer-events: none;
	background: #F38200;
	color: #fff;
	font-size: 14px;
	padding: 4px 10px;
	text-align: center;
	font-weight: bold;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	box-sizing: border-box;
}

/* 画像エリア */
.room-card-image {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 10;
	overflow: hidden;
}

.room-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* 間取り・面積バッジ */
.room-card-layout-badge {
	background: #8DC555;
	color: #fff;
	padding: 4px 10px;
	font-size: 14px;
	font-weight: bold;
}

.room-card-layout-badge .layout-text {
	margin-right: 2px;
}

.room-card-layout-badge .menseki-text {
	margin-left: 2px;
}

/* 物件名 */
.room-card-name {
	font-size: 16px;
	font-weight: bold;
	margin: 8px 10px 5px;
	line-height: 1.3;
	min-height: 34px;
}

.room-card-name a {
	color: #333;
	text-decoration: none;
}

.room-card:hover .room-card-name a {
	color: #f60;
}

/* カード全体をクリック範囲にする（物件名リンクを引き伸ばす） */
.room-card-name a::after {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 1;
}

/* 画像リンクはクリック可能な領域として前面に残す */
.room-card-image a {
	position: relative;
	z-index: 2;
}

/* 設備タグ（レントライフ風） */
.room-card-equips {
	padding: 0 8px 8px;
	display: flex;
	flex-wrap: wrap;
	gap: 3px;
	min-height: 0;
}

.equip-tag {
	background: #fff;
	border: 1px solid #f5a623;
	color: #333;
	padding: 2px 5px;
	font-size: 9px;
	border-radius: 2px;
	white-space: nowrap;
}

/* 料金テーブル */
.room-card-price-table {
	background: #eee;
	border-top: 1px solid #ccc;
	padding: 8px;
	margin-top: auto;
}

.price-header {
	display: flex;
	margin-bottom: 5px;
}

.price-header .price-col {
	flex: 1;
	text-align: center;
	font-size: 10px;
	color: #666;
}

.price-row {
	display: flex;
}

.price-row .price-col {
	flex: 1;
	text-align: center;
	font-size: 11px;
}

.price-row .price-value {
	font-size: 14px;
	font-weight: bold;
	color: #e74c3c;
}

/* キャッチコピー吹き出し（画像左上に重ねる） */
.room-card-catch-balloon {
	position: absolute;
	top: 34px;
	left: 4px;
	z-index: 3;

}

.room-card-catch-balloon span {
	box-sizing: border-box;
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
	overflow: hidden;
	width: 120px;
	height: 98px;
	background-image: url(/common/img/common/cam_bg_02.svg);
	background-repeat: no-repeat;
	background-size: 100% 100%;
	background-position: center;
	padding: 24px 16px 28px;
	font-size: 16px;
	font-weight: bold;
	line-height: 1.3;
	color: #333;
	text-align: center;
	white-space: normal;
	word-break: break-all;
	display: flex;
	justify-content: center;
	align-items: center;
}


/* 旧スタイル互換用（削除可） */
.room-card-tags,
.room-card-tag,
.room-card-body,
.room-card-price,
.room-card-price-label,
.room-card-price-unit,
.room-card-layout {
	display: none;
}

/* 右側: 地図 */
.list-room-map-area {
	width: 40%;
	position: relative;
}

.list-room-map-area #map_canvas {
	width: 100%;
	height: 100%;
}

/* 地図非表示時 */
.list-room-main-content.list-room-map-hidden .list-room-list-area {
	width: 100%;
}

.list-room-main-content.list-room-map-hidden .list-room-map-area {
	display: none;
}

.list-room-main-content.list-room-map-hidden .list-room-list-grid {
	grid-template-columns: repeat(4, 1fr);
}

/* InfoWindowスタイル */
.info-window {
	position: relative;
	max-width: 280px;
	padding: 10px;
	cursor: pointer;
	transition: opacity 0.2s;
}

.info-window:hover {
	opacity: 0.9;
}

.info-window-image {
	width: 100%;
	height: 120px;
	object-fit: cover;
	border-radius: 4px;
	margin-bottom: 8px;
}

.info-window-name {
	font-size: 14px;
	font-weight: bold;
	margin: 0 0 5px;
}

.info-window-name a {
	color: #333;
	text-decoration: none;
}

/* InfoWindow全体をクリック範囲にする（物件名リンクを引き伸ばす） */
.info-window-name a::after {
	content: "";
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 1;
}

.info-window-layout {
	font-size: 12px;
	color: #666;
	margin-bottom: 5px;
}

.info-window-price {
	font-size: 14px;
	color: #e74c3c;
	font-weight: bold;
}

/* ローディング */
.list-room-loading {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0,0,0,0.5);
	z-index: 9999;
	justify-content: center;
	align-items: center;
}

.list-room-loading.show {
	display: flex;
}

.list-room-loading-inner {
	background: #fff;
	padding: 30px 50px;
	border-radius: 8px;
	text-align: center;
}

.spinner {
	width: 40px;
	height: 40px;
	border: 4px solid #f3f3f3;
	border-top: 4px solid #f60;
	border-radius: 50%;
	animation: spin 1s linear infinite;
	margin: 0 auto 15px;
}

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

.loading-text {
	font-size: 14px;
	color: #333;
}

/* スマホ版 */
.sp-only {
	display: none;
}

.list-room-sp-bottom-bar {
	position: fixed;
	bottom: 80px;
	left: 0;
	right: 0;
	display: none;
	gap: 8px;
	border: none;
	background: transparent;
	padding: 0 8px;
	z-index: 1001;
}

.list-room-page .list-room-sp-bottom-bar {
	bottom: 20px;
}

button.sp-bar-btn {
	white-space: nowrap;
	cursor: pointer;
	-webkit-appearance: none;
	appearance: none;
}

.sp-bar-btn {
	white-space: nowrap;
	flex: 1;
	padding: 12px;
	text-align: center;
	text-decoration: none;
	color: #8DC555;
	font-size: 12px;
	font-weight: bold;
	border-radius: 50px;
	border: 1px solid #8DC555;
	background: #ffffff;
	box-sizing: border-box;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.sp-bar-btn.active {
	background: #8DC555;
	color: #fff;
}
.sp-bar-btn.disabled {
	background: #ccc;
	border-color: #ccc;
	color: #999;
	pointer-events: none;
}

/* レスポンシブ */
@media (max-width: 1200px) {
	.list-room-list-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
	.pc-only {
		display: none;
	}
	
	.sp-only {
		display: flex;
	}
	
	.list-room-sp-bottom-bar {
		display: flex;
	}
	
	.list-room-toolbar {
		display: none;
	}
	
	.list-room-header-bar {
		display: none;
	}
	
	.list-room-main-content {
		flex-direction: column;
		height: auto;
	}
	
	.list-room-list-area {
		display: none;
	}
	
	.list-room-map-area {
		width: 100%;
		height: calc(100vh - 150px);
		min-height: 400px;
	}
	
	.list-room-list-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	
	.list-room-title {
		font-size: 14px;
	}
	.map-page section{
		margin-top: 0!important;
	}
}


/* ========================================
 * エリアマップ・地域情報
 * ======================================== */

/* エリアマップコンテナ */
#areaWrap {
	margin-top: 30px;
	padding: 20px;
	background: #f9f9f9;
	border-radius: 8px;
}

#areaWrap.areaMap {
	background: #fff;
	border: 1px solid #ddd;
}

/* 駅ボタンエリア */
.station_btn_wrap {
	margin-bottom: 20px;
}

.btn_title {
	font-size: 18px;
	font-weight: bold;
	color: #333;
	margin-bottom: 15px;
	padding-left: 10px;
	border-left: 4px solid #8DC555;
}

.btn_wrap {
	margin-bottom: 15px;
}

.btn_wrap h3 {
	font-size: 14px;
	font-weight: bold;
	color: #fff;
	padding: 5px 10px;
	margin-bottom: 10px;
	border-radius: 3px;
}

.btn_wrap.hankyu h3 {
	background: #854641;
}

.btn_wrap.jr h3 {
	background: #0088e0;
}

.btn_wrap.hanshin h3 {
	background: #f38200;
}

.btn_wrap ul {
	list-style: none;
	padding: 0;
	margin: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.btn_wrap li a {
	display: inline-block;
	padding: 8px 15px;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 20px;
	color: #333;
	text-decoration: none;
	font-size: 13px;
	transition: all 0.2s;
}

.btn_wrap li a:hover {
	background: #8DC555;
	color: #fff;
	border-color: #8DC555;
}

/* SVGマップ */
.areaMap_wrap {
	margin: 20px 0;
	overflow-x: auto;
}

.svgMap {
	max-width: 100%;
	height: auto;
}

.svgMap a:hover rect.area,
.svgMap a:hover g.area-name {
	opacity: 0.8;
}

/* 乗車時間画像 */
.station-time {
	margin: 20px 0;
	text-align: center;
}

.station-time img {
	max-width: 100%;
	height: auto;
}

/* エリアボタン */
.area_btn_wrap {
	margin: 20px 0;
}

.area_btn_wrap .btn_wrap ul {
	gap: 10px;
}

.area_btn_wrap .btn_wrap li a {
	padding: 10px 20px;
	font-size: 14px;
}

/* 地域情報テキスト */
.areaText {
	margin-top: 20px;
	padding: 20px;
	background: #fff;
	border: 1px solid #eee;
	border-radius: 4px;
}

.areaText .titleText {
	font-size: 16px;
	font-weight: bold;
	color: #333;
	margin: 20px 0 10px;
	padding-bottom: 5px;
	border-bottom: 2px solid #8DC555;
}

.areaText .titleText:first-child {
	margin-top: 0;
}

.areaText p {
	font-size: 14px;
	line-height: 1.8;
	color: #555;
	margin-bottom: 15px;
}

.areaText dl {
	margin: 10px 0;
}

.areaText dt {
	font-weight: bold;
	color: #333;
	margin-top: 10px;
}

.areaText dd {
	margin-left: 0;
	color: #666;
	font-size: 13px;
}

/* 続きを読む / 閉じる */
.areaText .hidden {
	display: none;
}

.areaText .hidden.show {
	display: block;
}

.areaText .readmore {
	display: inline-block;
	padding: 10px 30px;
	background: #8DC555;
	color: #fff;
	font-size: 14px;
	font-weight: bold;
	border-radius: 4px;
	cursor: pointer;
	margin-top: 10px;
	transition: background 0.2s;
}

.areaText .readmore:hover {
	background: #7ab84a;
}

/* レスポンシブ */
@media (max-width: 768px) {
	#areaWrap {
		padding: 15px;
		margin-top: 20px;
	}
	
	.btn_title {
		font-size: 16px;
	}
	
	.btn_wrap li a {
		padding: 6px 12px;
		font-size: 12px;
	}
	
	.areaText {
		padding: 15px;
	}
	
	.areaText .titleText {
		font-size: 14px;
	}
	
	.areaText p {
		font-size: 13px;
	}
}