/* =========================================================
    File: stay-search-area.css
    Description: エリア選択（アコーディオン・タグ・モーダル内検索窓）
========================================================= */

.wan-area-modal {
    left: 0;
    width: 440px;
    border: 1px solid #ddd;
	border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
	padding: 12px;
    cursor: default;
}

.area-selection-list {
    max-height: 400px;
    overflow-y: auto;
    padding: 10px 0;
}

.area-modal-footer {
    display: flex;
    padding: 15px 20px;
    gap: 15px;
    border-top: 1px solid #eee;
    background: #fff;
}

.btn-reset {
    flex: 1;
    height: 48px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-weight: 700;
    color: #666;
    cursor: pointer;
}

.btn-submit-modal.-area {
    flex: 1;
    height: 48px;
    margin-top: 0;
}

/* 内部検索窓・タグ表示 */
.modal-search-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border: 1px solid #f39800;
    border-radius: 12px;
    padding: 8px 15px;
    margin: 0 16px 20px;
    min-height: 54px;
    box-shadow: 0 2px 8px rgba(243, 152, 0, 0.1);
}

.modal-search-inner-left {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    overflow-x: auto;
    white-space: nowrap;
}

.modal-search-icon {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    opacity: 0.6;
}

.modal-selected-tags {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}

.area-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(243, 152, 0, 0.08);
    color: #f39800;
    border: 1px solid rgba(243, 152, 0, 0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    white-space: nowrap;
}

.tag-remove {
    cursor: pointer;
    font-size: 14px;
    display: inline-block;
    line-height: 1;
    transition: opacity 0.2s;
    font-weight: 400;
    opacity: 0.7;
}

.modal-search-reset-btn {
    background: none;
    border: none;
    padding: 5px;
    cursor: pointer;
    color: #999;
    font-size: 20px;
    display: flex;
    align-items: center;
}

.modal-placeholder {
    color: #999;
    font-size: 14px;
}

/* アコーディオン構造 */
.area-item-group { border-bottom: 1px solid #f5f5f5; }
.area-item-parent, .area-item-child { display: flex; align-items: center; justify-content: space-between; }
.area-item-parent { padding: 14px 20px; }
.area-item-child { padding: 10px 20px 10px 0; border-bottom: 1px dotted #eee; }

.area-label, .area-child-label, .area-grandchild-label { display: flex; align-items: center; cursor: pointer; }
.area-label { gap: 12px; flex: 1; }
.area-child-label { gap: 10px; padding: 8px 0; }
.area-grandchild-label { gap: 10px; padding: 6px 0; }
.area-label input[type="checkbox"] { width: 18px; height: 18px; }
.area-name { font-size: 14px; color: #333; font-weight: 500; }
.area-child-name { font-size: 13px; color: #666; }
.area-grandchild-name { font-size: 12px; color: #888; }
.area-item-children { display: none; background: #fcfcfc; padding: 0 0 0 30px; border-top: 1px solid #f0f0f0; }
.area-item-grandchildren { display: none; background: #fff; padding: 5px 0 10px 40px; }

.area-arrow {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s;
}
.area-arrow::after {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    border-right: 2px solid #ccc;
    border-bottom: 2px solid #ccc;
    transform: rotate(45deg);
}
.area-arrow.is-open { transform: rotate(180deg); }
.area-arrow.-small { scale: 0.8; }

/* PC表示設定 */
@media screen and (min-width: 769px) {
    .modal-search-display { display: none !important; }
}
/* スマホ表示設定 */
@media screen and (max-width: 768px) {
    .modal-search-display { margin: 0 0 10px; }
	.wan-area-modal {width: 100%;}
}