/* ツアー検索結果ページ専用CSS */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans JP', sans-serif;
    background-color: #f0f2f5;
    color: #333;
    line-height: 1.5;
}

.p-breadcrumb {
    max-width: 1280px;
    padding: 12px 0;
}

.l-header__spNav {
    display: none;
}

.l-article {
  max-width: 1320px!important;
}
#content.l-content {
    margin-left: 0!important;
    margin-right: 0!important;
}

.l-container {
    padding-left: 0!important;
    padding-right: 0!important;
}


.wrapper {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
}

.container {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

/* --- PCサイドバー（検索フォーム） --- */
.search-sidebar {
    width: 280px;
    flex-shrink: 0;
    position: sticky;
    top: 75px;
}

.search-panel {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    overflow: hidden;
}

.search-panel-header {
    padding: 15px 20px;
    background: linear-gradient(to right, #005293, #003d6e);
    color: white;
}

.search-panel-title {
    font-weight: 700;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-panel-body {
    padding: 15px;
}

/* 検索フォーム - グリッドレイアウト（見本v14スタイル） */
.search-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-group.span-full {
    grid-column: span 2;
}

/* 検索フォーム - 縦並びレイアウト（既存） */
.search-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label,
.form-label {
    font-size: 12px;
    font-weight: 600;
    color: #666;
}

.form-control {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 13px;
    width: 100%;
    transition: border-color 0.2s;
    background: white;
}

.form-control:focus {
    outline: none;
    border-color: #005293;
}

.form-control:disabled {
    background: #f5f5f5;
    cursor: not-allowed;
}

/* チェックボックスグループ */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* 検索ボタン（見本v14スタイル） */
.search-btn,
.btn-search {
    width: 100%;
    padding: 12px 0;
    background: #e60012;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 5px;
}

.search-btn:hover,
.btn-search:hover {
    background: #c2000f;
}

/* チェックボックスグループ（コンパクト） */
.checkbox-group-compact {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 5px;
}
.checkbox-group-compact label {
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    background: #f7fafc;
    padding: 4px 6px;
    border-radius: 4px;
    border: 1px solid #edf2f7;
}
.checkbox-group-compact label:hover {
    background: #edf2f7;
}

/* --- メインコンテンツエリア --- */
.main-content {
    flex-grow: 1;
    min-width: 0;
}

/* --- 検索条件表示エリア (Active Filters) --- */
.active-filters {
    background: white;
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    border-left: 4px solid #005293;
}

.active-filters-label {
    font-size: 13px;
    font-weight: 700;
    color: #555;
    margin-right: 5px;
}

.filter-tag {
    background: #eef6ff;
    color: #005293;
    border: 1px solid #c7dfff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.filter-tag i {
    cursor: pointer;
    opacity: 0.6;
}
.filter-tag i:hover {
    opacity: 1;
}

/* --- 検索結果リスト --- */
.results-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.result-count {
    font-weight: 700;
    color: #444;
}
.result-count span {
    color: #005293;
    font-size: 1.2em;
    margin: 0 4px;
}

.tour-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* --- カードデザイン --- */
.tour-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    display: grid;
    grid-template-columns: 1fr 160px;
    min-height: 130px;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #eaeaea;
    position: relative;
    cursor: pointer;
}

.tour-card:hover {
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
    border-color: #005293;
}

.card-content {
    padding: 15px;
    display: flex;
    gap: 20px;
    align-items: center;
}

.tour-thumbnail {
    width: 240px;
    height: 160px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.text-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card-header-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}


.duration-badge {
    background: #005293;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 700;
}

.dep-badge {
    font-size: 12px;
    font-weight: 600;
    color: #555;
    background: #fff;
    border: 1px solid #ccc;
    padding: 2px 8px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.tour-title {
    font-size: 18px!important;
    font-weight: 700;
    color: #2d3748;
    margin-top: 0!important;
    margin-bottom: 8px!important;
    padding: 0!important;
    line-height: 1.4!important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.tour-title::before {
    display: none!important;
}

.tour-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: auto;
    font-size: 12px;
    color: #666;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #f7fafc;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.card-action {
    background: #f8f9fa;
    padding: 15px 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-left: 1px solid #eee;
}

.card-action .meta-item {
    display: inline-block;
    background: #fff0f0;
    color: #d96161;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid #ffe0e0;
}

.price-tag {
    text-align: center;
    margin-bottom: 14px;
}

.price-label {
    font-size: 11px;
    color: #888;
    display: block;
    margin-bottom: 4px;
}

.main-price {
    color: #e60012;
    font-size: 21px;
    font-weight: 800;
    font-family: 'Arial', sans-serif;
    line-height: 1.2;
}

.price-unit {
    font-size: 16px;
    font-weight: normal;
    color: #e60012;
}

.view-btn {
    background: #ff4081;
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    padding: 10px 20px;
    border-radius: 30px;
    transition: all 0.2s;
    width: 100%;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.view-btn::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    background: rgba(255, 255, 255, 0);
}

.view-btn:hover {
    background: #f50057;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 30px 0;
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    background: white;
    border: 1px solid #ddd;
    font-weight: 600;
    transition: all 0.2s;
}

.pagination a:hover {
    background: #f0f2f5;
    border-color: #ccc;
}

.pagination .active {
    background: #005293;
    color: white;
    border-color: #005293;
}

.pagination .disabled {
    color: #ccc;
    pointer-events: none;
    border-color: #eee;
}

.tour-header-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.overlay-group {
    display: contents;
}

.dest-country {
    font-size: 13px;
    font-weight: 600;
    color: #555;
    display: grid;
    margin-top: 8px;
}

.country-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.country-item img {
    width: 20px;
    height: auto;
    border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* 1280px～769pxの範囲でのみ余白を追加 */
@media (min-width: 769px) and (max-width: 1280px) {
    .p-breadcrumb {
        padding: 12px 30px;
    }
    .wrapper {
        padding: 0 30px;
    }
}

@media (min-width: 769px) {
    .card-header-info {
        margin-bottom: 0;
    }
    .tour-meta {
        margin-top: 0;
    }
}

@media (max-width: 1000px) {
    .card-content {
        flex-direction: column;
    }
}
/* --- SP用: 下部固定ボタン --- */
.fixed-search-button {
    display: none;
}

.search-panel-overlay {
    display: none;
}

.close-panel-btn {
    display: none;
}

/* レスポンシブ対応 */
@media (max-width: 768px) {
    .p-breadcrumb {
        padding: 12px 20px;
    }
    .wrapper {
        padding: 0 20px;
    }

    .container {
        flex-direction: column;
    }

    /* PCサイドバーを非表示 */
    .search-sidebar,
    .sidebar {
        display: none;
    }

    .main-content {
        width: 100%;
    }

    /* SP: 下部固定ボタンを表示 */
    .fixed-search-button {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: linear-gradient(to right, #005293, #003d6e);
        color: white;
        padding: 15px 20px;
        justify-content: center;
        align-items: center;
        cursor: pointer;
        z-index: 1000;
        box-shadow: 0 -4px 12px rgba(0,0,0,0.15);
        transition: none;
    }
    
    .fixed-search-button:hover {
        background: linear-gradient(to right, #003d6e, #002a4d);
    }

    .fixed-search-button-content {
        display: flex;
        align-items: center;
        gap: 10px;
        font-weight: 700;
        font-size: 15px;
    }

    .toggle-icon {
        font-size: 14px;
        transition: transform 0.3s;
    }

    .toggle-icon.open {
        transform: rotate(180deg);
    }

    /* SP: スライドアップ検索パネル */
    .search-panel-overlay {
        display: block;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 999;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s;
    }

    .search-panel-overlay.active {
        opacity: 1;
        pointer-events: auto;
    }

    .search-sidebar,
    .sidebar {
        display: block;
        width: 100%;
        position: fixed;
        bottom: 0;
        top: auto;
        left: 0;
        right: 0;
        z-index: 1001;
        transform: translateY(100%);
        transition: transform 0.3s ease-out;
    }

    .search-sidebar.open,
    .sidebar.open {
        transform: translateY(0);
    }

    .search-panel {
        border-radius: 20px 20px 0 0;
        max-height: 92vh;
        overflow-y: auto;
    }

    .search-panel-header {
        position: sticky;
        top: 0;
        z-index: 10;
        background: #f8f9fa;
        border-bottom: 2px solid #e0e0e0;
        padding: 12px 16px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .search-panel-title {
        font-size: 15px;
        color: #333;
    }

    .close-panel-btn {
        display: flex;
        background: #666;
        color: white;
        border: none;
        width: 30px;
        height: 30px;
        border-radius: 50%;
        cursor: pointer;
        align-items: center;
        justify-content: center;
        transition: background 0.2s;
    }

    .close-panel-btn:hover {
        background: #444;
    }

    .search-panel-body {
        padding: 16px;
    }

    .search-form-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .form-group {
        gap: 4px;
    }

    .form-group label {
        font-size: 11px;
    }

    .form-control {
        padding: 7px 10px;
        font-size: 13px;
    }

    .search-btn {
        padding: 10px 0;
        font-size: 14px;
    }

    .checkbox-group-compact {
        gap: 6px;
    }

    .checkbox-group-compact label {
        font-size: 11px;
        padding: 3px 6px;
    }
    
    .tour-card {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
    }
    
    .card-content {
        flex-direction: column;
        padding: 0;
        gap: 0;
        position: relative;
    }

    .tour-thumbnail {
        width: 100%;
        height: 150px;
        border-radius: 0;
        box-shadow: none;
    }

    .text-content {
        padding: 12px;
    }

    .overlay-group {
        position: absolute;
        top: 140px;
        left: 10px;
        right: 10px;
        z-index: 2;
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        gap: 6px;
        pointer-events: none;
        transform: translateY(-100%);
    }

    .tour-header-row {
        display: block;
        margin-bottom: 0;
    }

    .card-header-info {
        position: static;
        margin-bottom: 0;
        flex-direction: row;
        align-items: center;
    }

    .tour-meta {
        position: static;
        margin-top: 0;
    }

    .duration-badge {
        box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    }

    .meta-item, .dep-badge {
        color: white;
        background: rgba(0,0,0,0.6);
        padding: 4px 8px;
        border-radius: 4px;
        text-shadow: none;
        font-weight: 700;
        font-size: 11px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.2);
        display: flex;
        align-items: center;
        gap: 4px;
        border: none;
    }

    .dest-country {
        color: #555;
        background: transparent;
        padding: 0;
        border-radius: 0;
        text-shadow: none;
        font-weight: 600;
        font-size: 12px;
        box-shadow: none;
        gap: 6px;
        border: none;
        margin-top: 4px;
        margin-bottom: 0;
    }
    
    .country-item img {
        box-shadow: 0 1px 2px rgba(0,0,0,0.2);
    }

    .tour-title {
        display: block;
        -webkit-line-clamp: unset;
        line-clamp: unset;
        overflow: visible;
        font-size: 18px;
        margin-bottom: 4px;
        margin-top: 4px;
    }
    
    .card-action {
        flex-direction: column;
        gap: 8px;
        padding: 12px;
        background: white;
        border-top: 1px solid #eee;
        border-left: none;
    }

    .price-tag {
        margin-bottom: 0;
        text-align: center;
    }

    .view-btn {
        width: 100%;
        padding: 10px 0;
    }

    footer {
        margin-top: 57px;
    }
}
