/* Smart Store List Styles */

.smart-store-list-container {
    margin-bottom: 30px;
}

/* Store Item Wrapper */
.ssl-store-wrapper {
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px dashed #ddd;
}

.ssl-store-wrapper:last-child {
    border-bottom: none;
}

/* Headings */
.ssl-store-wrapper h3.wp-block-heading {
    margin-top: 0;
    margin-bottom: 1.5em;
    font-size: 1.4em;
    border-left: 4px solid #333;
    /* Default accent */
    padding-left: 10px;
}

/* Images */
.ssl-store-image {
    margin-bottom: 20px;
}

.ssl-mapped-image {
    display: inline-block;
    vertical-align: middle;
}

/* Maps & Descriptions (Appendices) */
.ssl-store-map,
.ssl-store-desc,
.ssl-store-review,
.ssl-fortune-teller-desc {
    margin-top: 20px;
    margin-bottom: 20px;
}

.ssl-store-desc p,
.ssl-fortune-teller-desc p {
    margin-bottom: 30px;
    line-height: 1.8;
}

.ssl-store-map iframe {
    width: 100%;
    max-width: 100%;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Read More Button (Custom Anchor Field) */
a.ssl-read-more-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #333;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: opacity 0.3s;
    text-align: center;
    min-width: 160px;
}

a.ssl-read-more-btn:hover {
    opacity: 0.8;
    color: #fff;
}

/* Paged Visibility Control */
.ssl-is-paged .hide-on-paged {
    display: none !important;
}

/* Pagination (Standard WordPress Style - Fixed for List) */
.ssl-pagination {
    margin-top: 30px;
    text-align: center;
    width: 100%;
}

.ssl-pagination ul.page-numbers {
    display: flex;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 5px;
    flex-wrap: wrap;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}

.ssl-pagination .page-numbers li {
    display: inline-block;
    margin: 0;
    padding: 0;
    list-style: none !important;
    width: auto;
}

.ssl-pagination .page-numbers a,
.ssl-pagination .page-numbers span {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    margin: 0;
    border: 1px solid #ddd;
    color: #333;
    text-decoration: none;
    background: transparent;
    border-radius: 4px;
    min-width: 40px;
    text-align: center;
    transition: all 0.2s;
    line-height: 1;
}

.ssl-pagination .page-numbers.current,
.ssl-pagination .page-numbers span.current {
    background: #333;
    color: #fff;
    border-color: #333;
    font-weight: bold;
}

.ssl-pagination .page-numbers a:hover:not(.current) {
    border-color: #999;
}

.ssl-pagination .page-numbers.dots {
    border: none;
    background: transparent;
    cursor: default;
}

/* Filter and Search Section */
.ssl-filter-section {
    margin-bottom: 30px;
    padding: 24px;
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
}

.ssl-filter-form .ssl-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.ssl-search-box {
    flex: 1;
    min-width: 180px;
}

.ssl-search-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 15px;
    height: 46px;
    box-sizing: border-box;
}

.ssl-city-filter {
    min-width: 160px;
}

.ssl-city-select {
    width: 100%;
    padding: 0 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background-color: #fff;
    font-size: 15px;
    height: 46px;
    box-sizing: border-box;
}

.ssl-filter-actions {
    display: flex !important;
    gap: 12px !important;
    align-items: center !important;
    white-space: nowrap !important;
    flex-wrap: nowrap !important;
}

.ssl-filter-button {
    padding: 0 28px;
    background-color: #a5668b;
    color: #fff;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: bold;
    height: 46px;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.ssl-filter-button:hover {
    opacity: 0.8;
}

.ssl-reset-button {
    font-size: 13px;
    color: #666;
    text-decoration: underline;
}

.ssl-reset-button:hover {
    color: #333;
}

@media screen and (max-width: 600px) {
    .ssl-filter-section {
        padding: 20px 15px;
    }

    .ssl-filter-row {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .ssl-filter-actions {
        flex-direction: column;
        gap: 12px;
        margin-top: 4px;
        white-space: normal;
    }

    .ssl-filter-button {
        width: 100%;
    }

    .ssl-reset-button {
        text-align: center;
        width: 100%;
        display: block;
    }
}

.ssl-more-link{margin:12px 0;text-align:right}

/* 店舗詳細テーブル: 1列目（項目名）の固定幅を確実に適用する。
   SWELL の has-fixed-layout / --swl-cell1-width はテーマ環境により効かないことがあるため、
   プラグイン側で table-layout:fixed と 1列目幅を明示する。幅はインライン変数を尊重しフォールバック73px。 */
figure.wp-block-table table.ssl-store-table {
    table-layout: fixed;
    width: 100%;
}
figure.wp-block-table table.ssl-store-table th {
    width: var(--swl-cell1-width, 73px);
    white-space: normal;       /* 「鑑定料金（税込）」などが折り返せるように */
    overflow-wrap: anywhere;
    word-break: break-word;
}
.ssl-more-link a{font-weight:bold}