/**
 * Neverworld Rental Manager - public listings
 * Version: 2.0.0
 * Fonts come from the theme; only layout and colour are set here.
 */

.orswp-frontend-container {
    --orswp-accent: #2a5a96;
    --orswp-accent-dark: #1f4573;
    --orswp-ink: #22272e;
    --orswp-muted: #5f6873;
    --orswp-line: #dde1e6;
    --orswp-soft: #f5f7f9;
    max-width: 1200px;
    margin: 0 auto;
    color: var(--orswp-ink);
}

/* Stats */
.orswp-stats-bar {
    display: flex;
    justify-content: space-around;
    gap: 16px;
    margin-bottom: 24px;
    padding: 16px;
    background: var(--orswp-soft);
    border-radius: 8px;
}
.orswp-stat-item { text-align: center; flex: 1; }
.orswp-stat-number { display: block; font-size: 32px; font-weight: 700; color: var(--orswp-accent); line-height: 1.2; font-variant-numeric: tabular-nums; }
.orswp-stat-label { display: block; font-size: 13px; color: var(--orswp-muted); text-transform: uppercase; letter-spacing: .5px; }

/* Search */
.orswp-search-form { margin-bottom: 24px; padding: 16px; background: #fff; border: 1px solid var(--orswp-line); border-radius: 8px; }
.orswp-search-fields { display: flex; gap: 10px; flex-wrap: wrap; }
.orswp-input, .orswp-select { padding: 10px 12px; border: 1px solid var(--orswp-line); border-radius: 6px; font-size: 15px; flex: 1 1 180px; min-width: 0; background: #fff; }
.orswp-input { flex-basis: 240px; }
.orswp-input:focus, .orswp-select:focus { outline: 2px solid var(--orswp-accent); outline-offset: 1px; border-color: var(--orswp-accent); }

/* Buttons */
.orswp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border: 1px solid transparent;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none !important;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease;
}
.orswp-btn-primary { background: var(--orswp-accent); color: #fff !important; }
.orswp-btn-primary:hover, .orswp-btn-primary:focus { background: var(--orswp-accent-dark); }
.orswp-btn-secondary { background: #fff; color: var(--orswp-accent) !important; border-color: var(--orswp-accent); }
.orswp-btn-secondary:hover, .orswp-btn-secondary:focus { background: var(--orswp-soft); }

/* Card grid */
.orswp-rentals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}
.orswp-rental-card {
    background: #fff;
    border: 1px solid var(--orswp-line);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow .15s ease, border-color .15s ease;
}
.orswp-rental-card:hover { border-color: var(--orswp-accent); box-shadow: 0 6px 18px rgba(20, 40, 70, .10); }

.orswp-rental-image { aspect-ratio: 4 / 3; background: var(--orswp-soft); overflow: hidden; }
.orswp-rental-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.orswp-rental-image-empty {
    width: 100%;
    height: 100%;
    background: linear-gradient(160deg, #d9e6f2 0%, #b9cfe3 55%, #9fbdd6 100%);
}

.orswp-rental-content { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.orswp-rental-title { margin: 0 0 6px; font-size: 20px; line-height: 1.3; }
.orswp-rental-where { margin: 0 0 14px; font-size: 14px; color: var(--orswp-muted); }
.orswp-rental-where strong { color: var(--orswp-ink); font-weight: 600; }

.orswp-rental-meta, .orswp-detail-facts { margin: 0 0 16px; padding: 12px 0 0; border-top: 1px solid var(--orswp-line); display: grid; gap: 6px; font-size: 14px; }
.orswp-rental-meta div, .orswp-detail-facts div { display: grid; grid-template-columns: 110px 1fr; gap: 8px; }
.orswp-rental-meta dt, .orswp-detail-facts dt { color: var(--orswp-muted); margin: 0; font-weight: 400; }
.orswp-rental-meta dd, .orswp-detail-facts dd { margin: 0; font-weight: 600; }

.orswp-rental-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.orswp-rental-actions .orswp-btn { flex: 1 1 auto; }

/* Empty and loading */
.orswp-no-rentals { grid-column: 1 / -1; text-align: center; padding: 48px 20px; background: var(--orswp-soft); border-radius: 8px; color: var(--orswp-muted); }
.orswp-no-rentals p { margin: 0 0 12px; font-size: 16px; }
.orswp-loading { grid-column: 1 / -1; text-align: center; padding: 40px; color: var(--orswp-muted); }

/* Detail page */
.orswp-detail { max-width: 820px; }
.orswp-detail-photo { width: 100%; height: auto; border-radius: 10px; display: block; margin-bottom: 20px; }
.orswp-detail-title { margin: 0 0 6px; }
.orswp-detail-actions { margin: 0 0 8px; }
.orswp-detail-actions .orswp-btn { flex: 0 0 auto; min-width: 140px; }
.orswp-detail-how { color: var(--orswp-muted); font-size: 14px; margin: 0 0 24px; }
.orswp-detail h3 { margin: 28px 0 10px; }
.orswp-detail-region-photo { width: 100%; height: auto; border-radius: 8px; margin: 8px 0 12px; }

@media (max-width: 640px) {
    .orswp-stats-bar { flex-direction: column; gap: 8px; }
    .orswp-search-fields > * { flex-basis: 100%; }
    .orswp-rentals-grid { grid-template-columns: 1fr; }
    .orswp-rental-meta div, .orswp-detail-facts div { grid-template-columns: 96px 1fr; }
}
