/* TERASS PICKS UI/UX Specification */
/* 物件詳細表示・画像ギャラリー・検索結果一覧のスタイル */

/* ベーススタイル */
.terass-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: #f8f9fa;
    font-family: 'Helvetica Neue', Arial, 'Hiragino Kaku Gothic ProN', 'Hiragino Sans', Meiryo, sans-serif;
}

/* 物件概要カード（売買物件概要形式） */
.property-overview-card {
    background: white;
    border: 1px solid #e0e0e0;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.property-header {
    background: #2c5282;
    color: white;
    padding: 10px 15px;
    font-size: 16px;
    font-weight: bold;
}

.property-main-info {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 20px;
    padding: 20px;
}

.property-details-grid {
    display: grid;
    grid-template-columns: 120px 1fr 120px 1fr;
    gap: 8px 15px;
    font-size: 14px;
    line-height: 1.6;
}

.detail-label {
    font-weight: bold;
    color: #333;
    background: #f5f5f5;
    padding: 4px 8px;
    border-left: 3px solid #2c5282;
}

.detail-value {
    padding: 4px 8px;
    border-bottom: 1px dotted #ddd;
}

/* 価格表示 */
.price-section {
    background: #fff5f5;
    border: 2px solid #e53e3e;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.price-main {
    font-size: 24px;
    font-weight: bold;
    color: #e53e3e;
    margin-bottom: 5px;
}

.price-details {
    font-size: 12px;
    color: #666;
    display: flex;
    gap: 15px;
}

/* 画像ギャラリー */
.image-gallery {
    width: 300px;
}

.main-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border: 1px solid #ddd;
    margin-bottom: 10px;
}

.thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 5px;
}

.thumbnail {
    width: 100%;
    height: 60px;
    object-fit: cover;
    border: 1px solid #ddd;
    cursor: pointer;
    transition: opacity 0.3s;
}

.thumbnail:hover {
    opacity: 0.7;
}

/* 間取り・設備情報 */
.layout-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 20px;
    border-top: 1px solid #e0e0e0;
    background: #fafafa;
}

.floor-plan {
    text-align: center;
}

.floor-plan-image {
    max-width: 100%;
    height: 150px;
    object-fit: contain;
    border: 1px solid #ddd;
    background: white;
}

.amenities-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    font-size: 13px;
}

.amenity-item {
    padding: 4px 8px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    display: flex;
    align-items: center;
}

.amenity-item::before {
    content: "✓";
    color: #38a169;
    font-weight: bold;
    margin-right: 6px;
}

/* 検索結果一覧表示 */
.search-results-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    padding: 20px;
}

.result-card {
    background: white;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.result-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.result-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.result-content {
    padding: 15px;
}

.result-price {
    font-size: 20px;
    font-weight: bold;
    color: #e53e3e;
    margin-bottom: 8px;
}

.result-title {
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 8px;
    color: #333;
    line-height: 1.4;
}

.result-specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
    font-size: 12px;
    color: #666;
    margin-bottom: 10px;
}

.result-location {
    font-size: 12px;
    color: #2c5282;
    margin-bottom: 8px;
}

.result-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.result-tag {
    background: #e6f3ff;
    color: #2c5282;
    padding: 2px 6px;
    border-radius: 12px;
    font-size: 10px;
}

/* アクションボタン */
.action-buttons {
    display: flex;
    gap: 10px;
    padding: 15px;
    border-top: 1px solid #e0e0e0;
    background: #fafafa;
}

.btn-primary {
    background: #2c5282;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: background 0.2s;
}

.btn-primary:hover {
    background: #2a4365;
}

.btn-secondary {
    background: white;
    color: #2c5282;
    border: 1px solid #2c5282;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}

.btn-secondary:hover {
    background: #2c5282;
    color: white;
}

/* 物件詳細情報テーブル */
.property-info-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin-top: 15px;
}

.property-info-table th,
.property-info-table td {
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    text-align: left;
}

.property-info-table th {
    background: #f5f5f5;
    font-weight: bold;
    width: 120px;
}

/* レスポンシブデザイン */
@media (max-width: 768px) {
    .property-main-info {
        grid-template-columns: 1fr;
    }
    
    .property-details-grid {
        grid-template-columns: 1fr;
    }
    
    .image-gallery {
        width: 100%;
    }
    
    .layout-section {
        grid-template-columns: 1fr;
    }
    
    .search-results-container {
        grid-template-columns: 1fr;
        padding: 10px;
    }
}

/* フィルター・検索バー */
.search-filter-bar {
    background: white;
    padding: 20px;
    border: 1px solid #e0e0e0;
    margin-bottom: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.filter-label {
    font-size: 12px;
    font-weight: bold;
    color: #333;
}

.filter-input,
.filter-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.search-btn {
    background: #2c5282;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    height: fit-content;
}

.search-btn:hover {
    background: #2a4365;
}

/* ローディング状態 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid #2c5282;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* 成功・エラーメッセージ */
.message {
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 16px;
    font-size: 14px;
}

.message.success {
    background: #e6fffa;
    color: #234e52;
    border: 1px solid #81e6d9;
}

.message.error {
    background: #fed7d7;
    color: #822727;
    border: 1px solid #feb2b2;
}

/* 統計情報表示 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.stat-card {
    background: white;
    padding: 20px;
    border: 1px solid #e0e0e0;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.stat-number {
    font-size: 28px;
    font-weight: bold;
    color: #2c5282;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}