/* resources.css — Public nearby resources page */

.wrap {
    max-width: 1060px;
    margin: 0 auto;
    padding: 30px 24px 56px;
}

.hero { color: white; margin: 24px 0 22px; }
.hero h1 { font-size: clamp(32px, 5vw, 52px); font-weight: 950; letter-spacing: -.05em; line-height: .95; margin-bottom: 8px; }
.hero p { color: rgba(255,255,255,.82); font-size: 15px; }

/* ── Search bar ── */
.search-bar {
    background: rgba(255,255,255,.96);
    border: 1px solid rgba(255,255,255,.45);
    border-radius: 22px;
    box-shadow: 0 18px 45px rgba(0,0,0,.18);
    padding: 18px 20px;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.search-input-wrap { position: relative; }
.search-icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); pointer-events: none; opacity: .45; }

#searchInput {
    width: 100%; padding: 11px 14px 11px 38px;
    border: 1px solid #e2e8f0; border-radius: 12px;
    font-size: 15px; font-family: inherit;
    outline: none; transition: border-color .15s;
}
#searchInput:focus { border-color: #0f766e; }

.filter-pills { display: flex; flex-wrap: wrap; gap: 7px; }

.pill {
    border: 1px solid #e2e8f0; border-radius: 999px;
    padding: 6px 14px; font-size: 13px; font-weight: 700;
    background: white; cursor: pointer;
    color: #475569; transition: all .12s;
    font-family: inherit;
}
.pill:hover  { background: #f1f5f9; }
.pill.active { background: #0f766e; color: white; border-color: #0f766e; }

.results-meta { color: rgba(255,255,255,.7); font-size: 13px; margin-bottom: 12px; }

/* ── Business cards ── */
.biz-list { display: flex; flex-direction: column; gap: 10px; }

.biz-card {
    background: rgba(255,255,255,.96);
    border: 2px solid rgba(255,255,255,.40);
    border-radius: 20px;
    box-shadow: 0 8px 28px rgba(0,0,0,.14);
    overflow: hidden;
    transition: border-color .2s;
}

.biz-card.expanded { border-color: rgba(15,118,110,.35); }

/* ── Collapsed header (always visible) ── */
.biz-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    transition: background .12s;
}
.biz-header:hover { background: rgba(15,118,110,.04); }

.biz-header-left { display: flex; align-items: baseline; gap: 10px; flex: 1; min-width: 0; }
.biz-name { font-size: 16px; font-weight: 900; letter-spacing: -.02em; color: #102a43; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.biz-city { font-size: 13px; color: #64748b; font-weight: 600; white-space: nowrap; }

.biz-header-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.biz-chevron { font-size: 12px; color: #94a3b8; transition: transform .2s; }
.biz-card.expanded .biz-chevron { transform: rotate(180deg); }

/* ── Status badges ── */
.status-badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 10px; border-radius: 999px;
    font-size: 12px; font-weight: 800;
    white-space: nowrap;
}

.status-dot {
    width: 7px; height: 7px; border-radius: 50%;
}

.status-open    { background: #dcfce7; color: #166534; }
.status-open    .status-dot { background: #16a34a; }

.status-closing { background: #fef9c3; color: #854d0e; }
.status-closing .status-dot { background: #ca8a04; animation: pulse 1.2s infinite; }

.status-closed  { background: #fee2e2; color: #991b1b; }
.status-closed  .status-dot { background: #dc2626; }

.status-unknown { background: #f1f5f9; color: #64748b; }
.status-unknown .status-dot { background: #94a3b8; }

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: .4; }
}

.rating-badge {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 4px 10px; border-radius: 999px;
    font-size: 12px; font-weight: 800; white-space: nowrap;
}
.badge-favorite   { background: #fef9c3; color: #854d0e; }
.badge-thumbsdown { background: #fee2e2; color: #991b1b; }

/* ── Expanded body ── */
.biz-body {
    border-top: 1px solid #f1f5f9;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* Contact info */
.biz-contact { display: flex; flex-direction: column; gap: 7px; }

.biz-info-row { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.4; }
.biz-info-icon { flex-shrink: 0; opacity: .55; width: 18px; text-align: center; }

.phone-link { color: #0f766e; font-weight: 800; text-decoration: none; }
.phone-link:hover { text-decoration: underline; }
.web-link   { color: #0f766e; font-weight: 700; text-decoration: none; }
.web-link:hover { text-decoration: underline; }

.distance-tag {
    display: inline-block; background: #f1f5f9; border-radius: 999px;
    padding: 1px 8px; font-size: 11px; font-weight: 800; color: #64748b;
    margin-left: 6px;
}

.biz-notes {
    background: #fffbeb; border: 1px solid #fde68a; border-radius: 10px;
    padding: 8px 12px; font-size: 13px; color: #92400e; line-height: 1.5;
}

/* Offerings */
.offerings-section { }
.offerings-title {
    font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em;
    color: #64748b; margin-bottom: 10px;
}

.offerings-list { display: flex; flex-direction: column; gap: 6px; }

.offering-row {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 8px 12px; border-radius: 10px;
    border: 1px solid #e2e8f0; background: #f8fafc;
}

.offering-row.rating-favorite   { background: #fffbeb; border-color: #fde68a; }
.offering-row.rating-thumbs_down { background: #fff1f2; border-color: #fecdd3; }

.offering-rating { font-size: 16px; flex-shrink: 0; margin-top: 1px; }

.offering-details { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; }
.offering-cat  { font-size: 14px; font-weight: 800; color: #102a43; }
.offering-desc { font-size: 13px; color: #475569; }
.offering-note {
    font-size: 11px; color: #92400e; background: #fef9c3;
    padding: 1px 7px; border-radius: 999px; white-space: nowrap;
}

/* Hours */
.hours-section { }
.hours-title {
    font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em;
    color: #64748b; margin-bottom: 8px;
}
.tz-note { font-size: 10px; font-weight: 700; text-transform: none; letter-spacing: 0; }

.hours-grid { display: flex; flex-direction: column; gap: 3px; }

.hours-row {
    display: flex; align-items: center; gap: 14px;
    padding: 5px 10px; border-radius: 8px;
    font-size: 13px;
}
.hours-today { background: #f0fdf4; font-weight: 800; }
.hours-day   { width: 36px; color: #64748b; font-weight: 700; }
.hours-closed { color: #dc2626; font-weight: 700; }
.hours-open   { color: #16a34a; font-weight: 700; }

.no-results {
    background: rgba(255,255,255,.96); border-radius: 18px;
    padding: 40px; text-align: center; color: #64748b; font-size: 15px;
}

.source { margin-top: 18px; color: rgba(255,255,255,.6); font-size: 13px; text-align: center; }

@media (max-width: 700px) {
    .wrap { padding: 16px 16px 40px; }
    .hero h1 { font-size: 30px; }
    .biz-header { padding: 14px 16px; }
    .biz-name { font-size: 15px; }
    .biz-body { padding: 14px 16px; }
    .status-badge { font-size: 11px; padding: 3px 8px; }
    .rating-badge { font-size: 11px; padding: 3px 8px; }
}

/* ── Category sections ── */
.cat-section { margin-bottom: 32px; }

.cat-header {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    margin-bottom: 12px;
}
.cat-icon  { font-size: 24px; }
.cat-name  { font-size: 20px; font-weight: 900; letter-spacing: -.03em; text-shadow: 0 8px 20px rgba(0,0,0,.25); }
.cat-count {
    min-width: 26px; height: 24px;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 999px;
    background: rgba(255,255,255,.18);
    color: rgba(255,255,255,.85);
    font-size: 12px; font-weight: 900;
}

/* Offering detail shown at top of expanded card */
.offering-detail-card {
    padding: 10px 14px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    margin-bottom: 4px;
}
.offering-detail-card.rating-favorite   { background: #fffbeb; border-color: #fde68a; }
.offering-detail-card.rating-thumbs_down { background: #fff1f2; border-color: #fecdd3; }

.offering-detail-desc { font-size: 14px; font-weight: 700; color: #102a43; line-height: 1.4; }
.offering-detail-note {
    font-size: 13px; color: #92400e; margin-top: 5px; line-height: 1.4;
}
