/* ============================================================
   Caledon Listings Sync — Frontend Styles
   ============================================================ */

/* Grid */
.cls-listings-wrap { font-family: inherit; }
.cls-results-count { color: #666; font-size: 0.9em; margin-bottom: 16px; }
.cls-no-results    { color: #888; font-style: italic; }

.cls-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin: 0 0 32px;
}

/* Card */
.cls-card {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,.06);
    transition: box-shadow .2s;
}
.cls-card:hover { box-shadow: 0 4px 14px rgba(0,0,0,.12); }

.cls-card-img-link { display: block; }
.cls-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.cls-card-body { padding: 16px; }
.cls-card-price {
    font-size: 1.3em;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 6px;
}
.cls-card-address {
    font-size: 0.9em;
    color: #555;
    margin: 0 0 8px;
    line-height: 1.4;
}
.cls-card-meta {
    font-size: 0.82em;
    color: #777;
    margin: 0 0 12px;
}
.cls-card-meta span + span::before { content: ' · '; }

.cls-btn {
    display: inline-block;
    padding: 8px 18px;
    background: #c8a96e;
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    font-size: 0.88em;
    font-weight: 600;
    transition: background .2s;
}
.cls-btn:hover { background: #b5904f; color: #fff; }

/* Pagination */
.cls-pagination { text-align: center; margin: 24px 0; }
.cls-page-btn {
    display: inline-block;
    padding: 6px 12px;
    margin: 0 3px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    font-size: 0.9em;
}
.cls-page-btn:hover,
.cls-page-active {
    background: #c8a96e;
    border-color: #c8a96e;
    color: #fff;
}

/* Detail */
.cls-detail-wrap { max-width: 960px; margin: 0 auto; }

.cls-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 8px;
    margin-bottom: 28px;
}
.cls-gallery-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 4px;
}

.cls-detail-price {
    font-size: 2em;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 6px;
}
.cls-detail-address {
    font-size: 1.1em;
    color: #555;
    font-weight: 400;
    margin: 0 0 20px;
}

.cls-detail-table { width: 100%; border-collapse: collapse; margin-bottom: 24px; }
.cls-detail-table th,
.cls-detail-table td {
    padding: 8px 12px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.92em;
    text-align: left;
}
.cls-detail-table th { width: 38%; color: #888; font-weight: 600; }
.cls-detail-table td { color: #333; }

.cls-remarks { margin-bottom: 24px; }
.cls-remarks h4,
.cls-rooms h4,
.cls-agent h4 {
    font-size: 1em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #888;
    margin: 0 0 10px;
    border-bottom: 1px solid #eee;
    padding-bottom: 6px;
}
.cls-remarks p { color: #444; line-height: 1.7; }

.cls-rooms-table { width: 100%; border-collapse: collapse; font-size: 0.9em; }
.cls-rooms-table th,
.cls-rooms-table td {
    padding: 6px 10px;
    border-bottom: 1px solid #f0f0f0;
    text-align: left;
}
.cls-rooms-table th { color: #888; font-weight: 600; }

.cls-agent { margin-top: 24px; }
.cls-agent p { color: #444; margin: 4px 0; font-size: 0.92em; }

.cls-error { color: #c00; font-style: italic; }
