/* 霊園・お墓検索ページ用CSS - search-cemetery-post.css */

.custom-posts-container {
    padding: 40px 0;
    min-height: 80vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* フィルターセクション */
.filter-section {
    background: white;
    padding: 30px;
    margin-bottom: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.filter-form {
    display: flex;
    justify-content: center;
}

.filter-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    max-width: 400px;
}

.filter-item {
    display: flex;
    flex-direction: column;
}

.filter-item label {
    font-weight: 600;
    color: #555;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.filter-item select {
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    transition: border-color 0.3s ease;
}

.filter-item select:focus {
    outline: none;
    border-color: #007cba;
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.1);
}

.filter-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 10px;
}

.filter-btn, .reset-btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.filter-btn {
    background: #007cba;
    color: white;
}

.filter-btn:hover {
    background: #005a87;
    transform: translateY(-2px);
}

.reset-btn {
    background: #6c757d;
    color: white;
}

.reset-btn:hover {
    background: #545b62;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
}

/* 検索結果情報 */
.search-results-info {
    margin-bottom: 30px;
    text-align: center;
}

.search-results-info p {
    color: #666;
    font-size: 1.1rem;
}

/* 投稿グリッド */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

/* グリッド内の各アイテムの高さを揃える */
.posts-grid .post-card {
    align-self: stretch;
}

/* カードスタイル */
.post-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    max-width: 430px;
}

.post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.post-card:hover .card-image img {
    transform: scale(1.05);
}

.no-image {
    height: 100%;
    background: #f0f2f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 1.1rem;
    font-weight: 500;
}

.card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-title {
    margin: 0 0 15px 0;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.4;
}

.card-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.card-title a:hover {
    color: #007cba;
}

/* 価格セクション */
.card-price-section {
    margin-bottom: 20px;
}

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

.price-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.95rem;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.price-item:last-child {
    border-bottom: none;
}

.grave-name {
    color: #333;
    font-weight: 600;
    flex: 1;
}

.price-wrapper {
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.price-amount {
    color: #cc7a00;
    font-weight: 700;
    font-size: 1.5rem;
}

.price-suffix {
    color: #cc7a00;
    font-weight: 600;
    font-size: 1.1rem;
}

.card-address {
    color: #777;
    font-size: 0.95rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.address-icon::before {
    content: "📍";
    margin-right: 8px;
}

/* 特徴要素タグ */
.card-features {
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.feature-tag {
    background: #e8f4fd;
    color: #0066cc;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid #b3d9f7;
}

/* タクソノミータグ */
.card-taxonomies {
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.taxonomy-tag {
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.type-tag {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* カードフッター */
.card-footer {
    padding-top: 15px;
    border-top: 1px solid #eee;
    text-align: center;
    margin-top: auto;
}

.read-more-btn {
    display: inline-block;
    background: #007cba;
    color: white;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    width: auto;
    min-width: 140px;
}

.read-more-btn:hover {
    background: #005a87;
    color: white;
    text-decoration: none;
    transform: translateX(5px);
}

/* 投稿が見つからない場合 */
.no-posts {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.no-posts p {
    font-size: 1.2rem;
    color: #666;
    margin: 10px 0;
}

/* ページネーション */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.shortcode-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.page-numbers,
.shortcode-pagination a,
.shortcode-pagination span {
    display: inline-block;
    padding: 12px 16px;
    margin: 0;
    background: white;
    color: #007cba;
    text-decoration: none;
    border: 2px solid #007cba;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 45px;
    text-align: center;
}

.page-numbers:hover,
.page-numbers.current,
.shortcode-pagination a:hover,
.shortcode-pagination .current {
    background: #007cba;
    color: white;
    text-decoration: none;
}

.page-numbers.dots,
.shortcode-pagination .dots {
    border: none;
    background: transparent;
    color: #999;
    cursor: default;
}

.page-numbers.dots:hover,
.shortcode-pagination .dots:hover {
    background: transparent;
    color: #999;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .custom-posts-container {
        padding: 20px 0;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .filter-section {
        padding: 20px;
        margin-bottom: 30px;
    }
    
    .filter-column {
        max-width: none;
        gap: 15px;
    }
    
    .filter-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .filter-btn, .reset-btn {
        width: 100%;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        align-items: stretch;
    }
    
    .post-card {
        margin: 0 auto;
        max-width: 100%;
        width: 100%;
        min-height: auto;
    }
    
    .card-content {
        padding: 20px;
    }
    
    .card-title {
        font-size: 1.2rem;
    }
    
    .card-price-section {
        margin-bottom: 15px;
    }
    
    .price-item {
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 5px;
        padding: 10px 0;
    }
    
    .grave-name {
        font-size: 0.9rem;
    }
    
    .card-features,
    .card-taxonomies {
        gap: 6px;
    }
    
    .feature-tag,
    .taxonomy-tag {
        font-size: 0.75rem;
        padding: 4px 8px;
    }
    
    .read-more-btn {
        min-width: 120px;
        padding: 10px 24px;
    }
}

@media (max-width: 480px) {
    .filter-section {
        padding: 15px;
    }
    
    .posts-grid {
        gap: 15px;
    }
    
    .card-image {
        height: 180px;
    }
    
    .card-content {
        padding: 15px;
    }
    
    .card-title {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }
    
    .card-price-section {
        margin-bottom: 12px;
    }
    
    .price-item {
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 4px;
        padding: 8px 0;
    }
    
    .grave-name {
        font-size: 0.85rem;
    }
}