233 lines
4.7 KiB
CSS
233 lines
4.7 KiB
CSS
/* rBnb module — dark theme */
|
|
folk-bnb-view {
|
|
display: block;
|
|
min-height: 400px;
|
|
padding: 20px;
|
|
}
|
|
|
|
folk-listing {
|
|
display: block;
|
|
}
|
|
|
|
folk-stay-request {
|
|
display: block;
|
|
}
|
|
|
|
/* ── Listing Cards Grid ── */
|
|
.bnb-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
|
|
gap: 1.25rem;
|
|
}
|
|
|
|
.bnb-card {
|
|
background: var(--rs-surface, #1e293b);
|
|
border: 1px solid var(--rs-border, #334155);
|
|
border-radius: 0.75rem;
|
|
overflow: hidden;
|
|
transition: border-color 0.15s, box-shadow 0.15s;
|
|
cursor: pointer;
|
|
}
|
|
.bnb-card:hover {
|
|
border-color: rgba(245, 158, 11, 0.4);
|
|
box-shadow: 0 4px 20px rgba(245, 158, 11, 0.08);
|
|
}
|
|
|
|
.bnb-card__cover {
|
|
width: 100%;
|
|
height: 180px;
|
|
background: linear-gradient(135deg, rgba(245,158,11,0.15), rgba(239,68,68,0.1));
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
font-size: 3rem;
|
|
position: relative;
|
|
}
|
|
|
|
.bnb-card__body {
|
|
padding: 1rem 1.25rem;
|
|
}
|
|
|
|
.bnb-card__title {
|
|
font-size: 1rem;
|
|
font-weight: 600;
|
|
color: var(--rs-text, #e2e8f0);
|
|
margin: 0 0 0.5rem;
|
|
line-height: 1.3;
|
|
}
|
|
|
|
.bnb-card__host {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0.5rem;
|
|
font-size: 0.82rem;
|
|
color: var(--rs-text-muted, #94a3b8);
|
|
margin-bottom: 0.75rem;
|
|
}
|
|
|
|
.bnb-card__meta {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 0.5rem;
|
|
margin-bottom: 0.75rem;
|
|
}
|
|
|
|
.bnb-card__location {
|
|
font-size: 0.8rem;
|
|
color: var(--rs-text-muted, #94a3b8);
|
|
}
|
|
|
|
/* ── Economy Badges ── */
|
|
.bnb-badge {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 0.3rem;
|
|
font-size: 0.72rem;
|
|
font-weight: 500;
|
|
padding: 0.2rem 0.5rem;
|
|
border-radius: 9999px;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
.bnb-badge--gift {
|
|
background: rgba(52, 211, 153, 0.12);
|
|
color: #34d399;
|
|
border: 1px solid rgba(52, 211, 153, 0.2);
|
|
}
|
|
|
|
.bnb-badge--exchange {
|
|
background: rgba(96, 165, 250, 0.12);
|
|
color: #60a5fa;
|
|
border: 1px solid rgba(96, 165, 250, 0.2);
|
|
}
|
|
|
|
.bnb-badge--sliding_scale {
|
|
background: rgba(245, 158, 11, 0.12);
|
|
color: #f59e0b;
|
|
border: 1px solid rgba(245, 158, 11, 0.2);
|
|
}
|
|
|
|
.bnb-badge--suggested {
|
|
background: rgba(167, 139, 250, 0.12);
|
|
color: #a78bfa;
|
|
border: 1px solid rgba(167, 139, 250, 0.2);
|
|
}
|
|
|
|
.bnb-badge--fixed {
|
|
background: rgba(148, 163, 184, 0.12);
|
|
color: #94a3b8;
|
|
border: 1px solid rgba(148, 163, 184, 0.2);
|
|
}
|
|
|
|
.bnb-badge--type {
|
|
background: rgba(245, 158, 11, 0.08);
|
|
color: #fbbf24;
|
|
border: 1px solid rgba(245, 158, 11, 0.15);
|
|
}
|
|
|
|
/* ── Availability Dot ── */
|
|
.bnb-avail-dot {
|
|
width: 8px;
|
|
height: 8px;
|
|
border-radius: 50%;
|
|
display: inline-block;
|
|
}
|
|
.bnb-avail-dot--available { background: #34d399; }
|
|
.bnb-avail-dot--blocked { background: #ef4444; }
|
|
.bnb-avail-dot--tentative { background: #f59e0b; }
|
|
|
|
/* ── Search Bar ── */
|
|
.bnb-search {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
gap: 0.75rem;
|
|
margin-bottom: 1.5rem;
|
|
align-items: center;
|
|
}
|
|
|
|
.bnb-search__input {
|
|
flex: 1;
|
|
min-width: 200px;
|
|
padding: 0.6rem 1rem;
|
|
border-radius: 0.5rem;
|
|
border: 1px solid var(--rs-border, #334155);
|
|
background: var(--rs-surface, #1e293b);
|
|
color: var(--rs-text, #e2e8f0);
|
|
font-size: 0.9rem;
|
|
}
|
|
.bnb-search__input:focus {
|
|
outline: none;
|
|
border-color: #f59e0b;
|
|
box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.15);
|
|
}
|
|
|
|
.bnb-search__select {
|
|
padding: 0.6rem 0.75rem;
|
|
border-radius: 0.5rem;
|
|
border: 1px solid var(--rs-border, #334155);
|
|
background: var(--rs-surface, #1e293b);
|
|
color: var(--rs-text, #e2e8f0);
|
|
font-size: 0.82rem;
|
|
}
|
|
|
|
/* ── Stay Request Status ── */
|
|
.bnb-status {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 0.3rem;
|
|
font-size: 0.75rem;
|
|
font-weight: 600;
|
|
padding: 0.25rem 0.6rem;
|
|
border-radius: 0.375rem;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.03em;
|
|
}
|
|
|
|
.bnb-status--pending { background: rgba(245,158,11,0.15); color: #f59e0b; }
|
|
.bnb-status--accepted { background: rgba(52,211,153,0.15); color: #34d399; }
|
|
.bnb-status--declined { background: rgba(239,68,68,0.15); color: #ef4444; }
|
|
.bnb-status--cancelled { background: rgba(148,163,184,0.15); color: #94a3b8; }
|
|
.bnb-status--completed { background: rgba(96,165,250,0.15); color: #60a5fa; }
|
|
.bnb-status--endorsed { background: rgba(167,139,250,0.15); color: #a78bfa; }
|
|
|
|
/* ── Message Thread ── */
|
|
.bnb-messages {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 0.75rem;
|
|
padding: 1rem 0;
|
|
}
|
|
|
|
.bnb-msg {
|
|
padding: 0.75rem 1rem;
|
|
border-radius: 0.75rem;
|
|
max-width: 80%;
|
|
font-size: 0.88rem;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.bnb-msg--sent {
|
|
background: rgba(245, 158, 11, 0.1);
|
|
border: 1px solid rgba(245, 158, 11, 0.15);
|
|
align-self: flex-end;
|
|
}
|
|
|
|
.bnb-msg--received {
|
|
background: var(--rs-surface, #1e293b);
|
|
border: 1px solid var(--rs-border, #334155);
|
|
align-self: flex-start;
|
|
}
|
|
|
|
.bnb-msg__sender {
|
|
font-size: 0.75rem;
|
|
font-weight: 600;
|
|
color: var(--rs-text-muted, #94a3b8);
|
|
margin-bottom: 0.25rem;
|
|
}
|
|
|
|
.bnb-msg__time {
|
|
font-size: 0.68rem;
|
|
color: var(--rs-text-muted, #64748b);
|
|
margin-top: 0.25rem;
|
|
}
|