/* Notifications, trips and reviews, agency pages, bookings calendar, admin reports and settings. */

/* header bell */
.bell { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: #f1f5f9; font-size: 17px; text-decoration: none; }
.bell:hover { background: #e2e8f0; text-decoration: none; }
.bell-badge { position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #b42318; color: #fff; font: 700 11px/18px Inter, sans-serif; text-align: center; }

/* notification list */
.narrow { max-width: 760px; }
.note-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.note { background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.note.unread { border-color: var(--teal); background: #f2faf9; }
.note-btn { all: unset; box-sizing: border-box; display: flex; gap: 12px; width: 100%; padding: 14px 16px; cursor: pointer; }
.note-btn:focus-visible { outline: 2px solid var(--teal); outline-offset: 2px; border-radius: 14px; }
.note-dot { width: 9px; height: 9px; border-radius: 50%; margin-top: 6px; flex: none; background: transparent; }
.note.unread .note-dot { background: var(--teal); }
.note-text { display: grid; gap: 2px; }

/* settings forms */
.check { display: flex; gap: 8px; align-items: center; font-weight: 500; }
.codes { background: #0f172a; color: #e2e8f0; padding: 12px 14px; border-radius: 10px; font: 600 14px ui-monospace, Consolas, monospace; overflow-x: auto; white-space: pre-wrap; word-break: break-all; }
.upload-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 6px 0; }
.logo-preview { width: 48px; height: 48px; border-radius: 12px; background: #e2e8f0 center/cover; border: 1px solid var(--line); }
.cover-preview { width: 96px; height: 48px; border-radius: 10px; background: #e2e8f0 center/cover; border: 1px solid var(--line); }
.color-row { display: flex; gap: 10px; align-items: center; }
.photo-remove { position: absolute; top: 4px; right: 4px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(15, 23, 42, .75); color: #fff; cursor: pointer; line-height: 1; }
.photo-pick { position: relative; }

/* stars & reviews */
.stars { color: #f59e0b; letter-spacing: 1px; white-space: nowrap; }
.rating-big { display: flex; gap: 8px; align-items: center; font-size: 18px; margin: 6px 0 12px; }
.review { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; margin-bottom: 12px; display: grid; gap: 6px; }
.review-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.review.hidden-review { opacity: .6; }
.reply { background: var(--bg, #f6f8fa); border-radius: 10px; padding: 10px 12px; }
.reply p { margin: 4px 0 0; }
.star-pick { display: flex; gap: 2px; }
.star { background: none; border: 0; font-size: 28px; line-height: 1; color: #cbd5e1; cursor: pointer; padding: 0 2px; }
.star.on { color: #f59e0b; }
.star:focus-visible { outline: 2px solid var(--teal); border-radius: 6px; }
.review-form { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 14px; display: grid; gap: 10px; }
.histogram { display: grid; gap: 4px; max-width: 360px; margin-bottom: 16px; }
.hist-row { display: grid; grid-template-columns: 34px 1fr 28px; gap: 8px; align-items: center; font-size: 13px; }
.hist-bar { background: #e5e7eb; border-radius: 99px; height: 8px; overflow: hidden; display: block; }
.hist-bar > span { display: block; height: 100%; background: #f59e0b; }

/* reports */
.report-panel { display: inline-block; }
.report-form { display: grid; gap: 10px; margin-top: 8px; max-width: 420px; }
.report-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 6px; }
.report-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.report { margin-bottom: 12px; display: grid; gap: 8px; }
.tabs { display: flex; gap: 6px; }
.tab { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 14px; font: 600 13px Inter, sans-serif; cursor: pointer; }
.tab.on { background: var(--navy, #0f172a); color: #fff; border-color: transparent; }
.setting { display: flex; justify-content: space-between; gap: 18px; align-items: center; margin-bottom: 12px; }
.setting-edit { display: flex; gap: 8px; align-items: center; }
.setting-edit input { width: 90px; }

/* traveller trips */
.trip { display: grid; gap: 12px; margin-bottom: 14px; }
.trip-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.trip-head h3 { margin: 0 0 2px; }
.trip-facts { display: flex; gap: 28px; flex-wrap: wrap; }
.trip-facts span { display: grid; gap: 2px; }
.trip-facts small { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; }
.trip-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

/* agency public page */
.agency-page { --accent: var(--teal); }
.agency-cover { height: 220px; background: linear-gradient(135deg, var(--accent), #0f172a) center/cover; }
.agency-body { max-width: 1100px; margin: 0 auto; padding: 0 24px 48px; }
.agency-title { display: flex; gap: 18px; align-items: flex-end; margin-top: -40px; margin-bottom: 18px; flex-wrap: wrap; }
.agency-title h1 { margin: 0; }
.agency-logo { width: 96px; height: 96px; border-radius: 22px; border: 4px solid #fff; background: var(--accent, var(--teal, #0f766e)) center/cover; color: #fff; display: grid; place-items: center; font: 700 30px "DM Sans", sans-serif; flex: none; }
.agency-logo.small { width: 52px; height: 52px; border-width: 2px; font-size: 18px; border-radius: 14px; }
.agency-actions { margin-left: auto; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.agency-page .verified { color: var(--accent); font-size: 14px; font-weight: 600; }
.agency-page h2 { margin-top: 28px; }
.dir-search { display: flex; gap: 10px; margin: 16px 0 22px; flex-wrap: wrap; }
.dir-search .f-input { flex: 1; min-width: 180px; }
.agency-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.agency-card { display: grid; gap: 6px; color: var(--ink); text-decoration: none; }
.agency-card:hover { text-decoration: none; box-shadow: 0 2px 10px rgba(0, 0, 0, .08); }
.agency-links { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }

/* bookings calendar */
.month-label { min-width: 130px; text-align: center; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-dow { font-size: 12px; font-weight: 600; color: var(--muted); text-align: center; padding: 4px 0; }
.cal-cell { background: #fff; border: 1px solid var(--line); border-radius: 10px; min-height: 78px; padding: 6px; display: grid; align-content: start; gap: 3px; overflow: hidden; }
.cal-cell.out { background: #f8fafc; opacity: .55; }
.cal-cell.today { border-color: var(--teal); }
.cal-num { font-size: 12px; color: var(--muted); }
.cal-chip { display: block; background: var(--teal); color: #fff; font-size: 11px; font-weight: 600; border-radius: 6px; padding: 2px 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-decoration: none; }
.cal-chip.done { background: #64748b; }

@media (max-width: 720px) {
    .cal-cell { min-height: 56px; }
    .setting { flex-direction: column; align-items: stretch; }
    .agency-title { margin-top: -28px; }
}

.color-row input[type="color"] { width: 44px; height: 32px; padding: 0; border: 1px solid var(--line); border-radius: 8px; background: none; }
