/* ─── Layout: offers left | map right ─────────────────────── */
.no-header {
    display: flex; align-items: center; gap: 1rem;
    padding: 0.75rem 1.25rem;
    background: var(--surface); border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 100;
}
.no-brand { display: flex; align-items: center; gap: 0.5rem; text-decoration: none; color: var(--text); font-weight: 700; font-size: 1rem; flex-shrink: 0; }
.no-nav { display: flex; align-items: center; gap: 1.25rem; margin-left: 1.5rem; }
.no-nav-link { text-decoration: none; color: var(--muted); font-size: 0.85rem; font-weight: 500; transition: color 0.15s; }
.no-nav-link:hover, .no-nav-link.active { color: var(--accent); }

.no-main {
    display: grid;
    grid-template-columns: 360px 1fr;
    height: calc(100vh - 53px);
    overflow: hidden;
}

/* Embedded version of the same split-pane layout (lives directly under
   .no-inline-pane in the dashboard accordion). Constrains height so the
   page above and below the panel keeps scrolling normally. */
.no-inline-pane {
    display: grid;
    grid-template-columns: 360px 1fr;
    height: 70vh;
    min-height: 480px;
    max-height: 720px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: var(--radiusSm, 8px);
    background: var(--surface);
}
.no-inline-pane .no-offers-pane {
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}
.no-inline-pane .no-map-pane { position: relative; min-height: 0; }
.no-inline-pane .no-leaflet-map { position: absolute; inset: 0; height: 100%; width: 100%; }
.no-inline-pane .no-controls {
    padding: 0.85rem 1rem 0.5rem;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}
.no-inline-pane .no-controls-top {
    display: flex; align-items: center; gap: 0.55rem;
    margin-bottom: 0.65rem; flex-wrap: wrap;
}
.no-inline-pane .no-pane-title {
    font-size: 0.95rem; font-weight: 800; color: var(--text);
}
.no-inline-pane .no-offers-list {
    flex: 1; overflow-y: auto; padding: 0.5rem 0.75rem 1rem;
}

@media (max-width: 880px) {
    .no-inline-pane {
        grid-template-columns: 1fr;
        grid-template-rows: 280px 1fr;
        height: auto;
        min-height: 600px;
        max-height: none;
    }
    .no-inline-pane .no-offers-pane { border-right: none; border-top: 1px solid var(--border); }
}

/* ─── Offers pane (left) ───────────────────────────────────── */
.no-offers-pane {
    display: flex; flex-direction: column;
    background: var(--surface);
    border-right: 1px solid var(--border);
    overflow: hidden;
}

.no-pane-header {
    padding: 0.85rem 1rem 0;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}
.no-pane-title-row {
    display: flex; align-items: center; gap: 0.6rem;
    margin-bottom: 0.65rem; flex-wrap: wrap;
}
.no-title { font-size: 1.05rem; font-weight: 800; margin: 0; color: var(--text); }

.no-location-badge {
    display: flex; align-items: center; gap: 0.3rem;
    font-size: 0.75rem; color: var(--ok);
    background: color-mix(in srgb, var(--ok) 10%, var(--surface-2));
    border: 1px solid var(--ok); border-radius: 999px;
    padding: 0.18rem 0.55rem;
    cursor: pointer; font-family: inherit;
}
.no-location-badge:hover { background: color-mix(in srgb, var(--ok) 18%, var(--surface-2)); }

/* Manual location entry: full address or city + state */
.no-location-row {
    display: flex; align-items: stretch; gap: 0.5rem;
    margin: 0.6rem 0 0.2rem;
    padding: 0.5rem;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 10px;
}
.no-location-input {
    flex: 1; min-width: 0;
    padding: 0.45rem 0.65rem;
    font-size: 0.78rem; font-family: inherit;
    color: var(--text); background: var(--surface);
    border: 1px solid var(--border); border-radius: 8px;
}
.no-location-input:focus { outline: none; border-color: var(--accent); }
.no-location-set-btn {
    padding: 0 0.9rem;
    font-size: 0.76rem; font-weight: 600; font-family: inherit;
    color: var(--accent-text); background: var(--accent);
    border: none; border-radius: 8px; cursor: pointer;
    flex-shrink: 0;
}
.no-location-set-btn:disabled { opacity: 0.6; cursor: wait; }
.no-location-gps-btn {
    display: flex; align-items: center; justify-content: center;
    width: 34px; flex-shrink: 0; align-self: stretch;
    color: var(--muted); background: var(--surface);
    border: 1px solid var(--border); border-radius: 8px; cursor: pointer;
}
.no-location-gps-btn:hover { color: var(--accent); border-color: var(--accent); }

.no-sms-inline-btn {
    display: inline-flex; align-items: center; gap: 0.3rem;
    background: var(--surface-2); border: 1px solid var(--border);
    border-radius: 999px; padding: 0.25rem 0.65rem;
    font-size: 0.72rem; font-weight: 600; color: var(--muted);
    cursor: pointer; transition: all 0.15s; white-space: nowrap;
}
/* Alerts button sits leftmost; the location badge floats right instead */
.no-controls-top .no-location-badge { margin-left: auto; }
.no-sms-inline-btn:hover { border-color: var(--accent); color: var(--accent); }
.no-sms-inline-btn.active { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }

/* Category chips carousel: arrows on both ends, chips scroll between */
.no-filter-carousel {
    display: flex; align-items: center; gap: 0.25rem;
    padding-bottom: 0.65rem;
    min-width: 0;
}
.no-filter-carousel .no-filter-row { padding-bottom: 0; flex: 1; }
.no-filter-arrow {
    display: inline-flex; align-items: center; justify-content: center;
    width: 24px; height: 24px; flex: 0 0 auto;
    border: 1px solid var(--border); border-radius: 50%;
    background: var(--surface-2); color: var(--muted);
    cursor: pointer; padding: 0; transition: all 0.15s;
}
.no-filter-arrow:hover { border-color: var(--accent); color: var(--accent); }

.no-filter-row {
    display: flex; gap: 0.3rem; overflow-x: auto;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
    padding-bottom: 0.65rem;
    min-width: 0;
}
.no-filter-row::-webkit-scrollbar { display: none; }
.no-filter {
    background: var(--surface-2); border: 1px solid var(--border);
    border-radius: 999px; padding: 0.28rem 0.65rem;
    font-size: 0.74rem; font-weight: 600; color: var(--muted);
    cursor: pointer; white-space: nowrap; transition: all 0.15s;
}
.no-filter:hover { border-color: var(--accent); color: var(--text); }
.no-filter.active { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }

.no-radius-row {
    display: flex; align-items: center; gap: 0.65rem;
    padding-bottom: 0.65rem;
}
.no-label { font-size: 0.78rem; color: var(--muted); white-space: nowrap; }
.no-label strong { color: var(--text); }
.no-slider { flex: 1; accent-color: var(--accent); cursor: pointer; }

/* ─── Offers list: single-line rows ───────────────────────── */
.no-offers-list {
    flex: 1; overflow-y: auto;
    padding: 0.5rem 0.75rem 1rem;
    display: flex; flex-direction: column; gap: 0;
}

/* Single-line offer row — replaces old card layout */
.no-offer-row {
    display: grid;
    grid-template-columns: 34px 1fr auto;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 0.6rem;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.12s;
    border-bottom: 1px solid var(--border);
}
.no-offer-row:last-child { border-bottom: none; }
.no-offer-row:hover { background: var(--surface-2); }
.no-offer-row.used { opacity: 0.55; }
.no-offer-row.active-highlight { background: color-mix(in srgb, var(--accent) 8%, var(--surface)); }

.no-offer-row-avatar {
    width: 30px; height: 30px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.75rem; font-weight: 800; color: #fff;
    flex-shrink: 0;
}

.no-offer-row-body {
    min-width: 0; display: flex; flex-direction: column; gap: 1px;
}
.no-offer-row-merchant {
    font-size: 0.83rem; font-weight: 700; color: var(--text);
    overflow-wrap: break-word; line-height: 1.25;
}
.no-offer-row-meta {
    display: flex; align-items: center; gap: 0.4rem;
    flex-wrap: wrap; row-gap: 2px;
    font-size: 0.69rem; color: var(--muted);
}
.no-offer-row-cat {
    text-transform: capitalize; font-weight: 500;
}
.no-offer-row-card {
    display: inline-flex; align-items: center; gap: 0.25rem;
    padding: 0.1rem 0.4rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--surface-2, var(--surface));
    color: var(--text);
    font-weight: 600;
    white-space: normal; max-width: 100%; line-height: 1.3;
    overflow-wrap: break-word;
}
.no-offer-row-card svg { flex: 0 0 auto; color: var(--accent); }
.no-offer-row-dist {
    display: flex; align-items: center; gap: 0.2rem; color: var(--accent);
}
.no-offer-row-expiry { color: var(--muted); }

.no-offer-row-right {
    display: flex; flex-direction: column; align-items: flex-end; gap: 2px;
    flex-shrink: 0;
}
.no-offer-row-badge {
    font-size: 0.8rem; font-weight: 800; color: var(--accent);
    white-space: nowrap;
}
.no-offer-row-used-icon {
    width: 18px; height: 18px; border-radius: 50%;
    background: var(--ok); display: flex; align-items: center; justify-content: center;
}
.no-offer-row-used-icon svg { display: block; }

/* ─── Skeleton ─────────────────────────────────────────────── */
.no-skeleton-tile {
    display: flex; align-items: flex-start; gap: 0.75rem;
    padding: 0.55rem 0.6rem;
    border-bottom: 1px solid var(--border);
    animation: no-shimmer 1.4s infinite linear;
    background-size: 200% 100%;
    background-image: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%);
}
@keyframes no-shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.no-skeleton-avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--border); flex-shrink: 0; opacity: 0.5; }
.no-skeleton-body { flex: 1; display: flex; flex-direction: column; gap: 0.35rem; padding-top: 2px; }
.no-skeleton-line { height: 9px; border-radius: 4px; background: var(--border); opacity: 0.5; }
.no-skeleton-line-lg { width: 60%; }
.no-skeleton-line-sm { width: 35%; }
.no-skeleton-badge { width: 48px; height: 18px; border-radius: 6px; background: var(--border); opacity: 0.4; flex-shrink: 0; }

/* Empty state */
.no-empty { padding: 1.5rem; text-align: center; color: var(--muted); font-size: 0.85rem; }

/* ─── Map pane (right) ─────────────────────────────────────── */
.no-map-pane {
    position: relative;
    display: flex; flex-direction: column;
}
.no-leaflet-map { width: 100%; height: 100%; flex: 1; }
.no-map-placeholder {
    position: absolute; inset: 0; display: flex;
    align-items: center; justify-content: center;
    background: var(--surface-2); z-index: 10;
    flex-direction: column; gap: 0.75rem; text-align: center; color: var(--muted);
}
.no-pin svg { color: var(--accent); }

.no-map-legend {
    position: absolute; bottom: 0.75rem; left: 0.75rem;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 8px; padding: 0.4rem 0.7rem;
    font-size: 0.72rem; color: var(--muted);
    display: flex; align-items: center; gap: 0.65rem; z-index: 400;
}
.no-legend-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 0.2rem; }
.no-legend-dot.dining  { background: #0891b2; }
.no-legend-dot.travel  { background: #3B82F6; }
.no-legend-dot.retail  { background: #7c3aed; }
.no-legend-dot.hotel   { background: #10B981; }

/* ─── Map pins ─────────────────────────────────────────────── */
.no-map-user-pin { position: relative; width: 20px; height: 20px; }
.no-map-user-inner { width: 14px; height: 14px; background: #3B82F6; border: 2.5px solid #fff; border-radius: 50%; position: absolute; top: 3px; left: 3px; box-shadow: 0 2px 6px rgba(59,130,246,0.5); }
.no-map-user-pulse { width: 20px; height: 20px; border: 2px solid #3B82F6; border-radius: 50%; position: absolute; top: 0; left: 0; animation: no-pulse 2s infinite; opacity: 0.5; }
@keyframes no-pulse { 0% { transform: scale(1); opacity: 0.5; } 70% { transform: scale(1.8); opacity: 0; } 100% { transform: scale(1.8); opacity: 0; } }

.no-map-offer-pin {
    width: 30px; height: 30px; border-radius: 50%;
    border: 2.5px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: transform 0.15s, box-shadow 0.15s;
}
.no-map-offer-pin:hover { transform: scale(1.2); box-shadow: 0 4px 12px rgba(0,0,0,0.35); }
.no-map-offer-pin.used { opacity: 0.5; box-shadow: none; }
.no-map-offer-pin.highlighted { transform: scale(1.3); box-shadow: 0 0 0 4px rgba(29,107,74,0.3), 0 4px 12px rgba(0,0,0,0.35); }

/* ─── Popup on map pin ─────────────────────────────────────── */
.leaflet-popup-content-wrapper { border-radius: 10px; padding: 0; box-shadow: 0 4px 20px rgba(0,0,0,0.18); }
.leaflet-popup-content { margin: 0; }
.no-map-popup { padding: 0.85rem; min-width: 200px; font-family: system-ui, -apple-system, sans-serif; }
.no-map-popup-header { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.5rem; }
.no-map-popup-avatar { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; font-weight: 800; color: #fff; flex-shrink: 0; }
.no-map-popup-name { font-size: 13px; font-weight: 700; color: #111; flex: 1; min-width: 0; overflow-wrap: break-word; }
.no-map-popup-badge { display: inline-block; font-size: 11px; font-weight: 800; padding: 2px 7px; border-radius: 999px; color: #fff; margin-bottom: 4px; }
.no-map-popup-card {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 11.5px; font-weight: 700; color: #1D6B4A;
    background: rgba(29, 107, 74, 0.08);
    border: 1px solid rgba(29, 107, 74, 0.25);
    border-radius: 999px;
    padding: 2px 8px;
    margin: 4px 0 6px;
    max-width: 100%;
    white-space: normal; line-height: 1.3; overflow-wrap: break-word;
}
.no-map-popup-card svg { flex: 0 0 auto; }
.no-map-popup-meta { font-size: 11px; color: #666; margin-bottom: 6px; text-transform: capitalize; }
.no-map-popup-actions { display: flex; gap: 0.4rem; }
.no-map-popup-redeem {
    flex: 1; background: #1D6B4A; color: #fff; border: none;
    border-radius: 6px; padding: 0.35rem 0.6rem;
    font-size: 11px; font-weight: 700; cursor: pointer;
}
.no-map-popup-redeem.redeemed { background: #9CA3AF; }
.no-map-popup-view { font-size: 11px; color: #1D6B4A; font-weight: 600; text-decoration: none; padding: 0.35rem 0.5rem; }
.no-map-popup-view:hover { text-decoration: underline; }
.no-map-popup-used-tag { font-size: 10px; color: #9CA3AF; font-style: italic; margin-top: 2px; }

/* ─── Offer popup modal ────────────────────────────────────── */
.no-offer-popup-modal {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 14px; padding: 0; max-width: 400px; width: 92%;
    box-shadow: var(--shadow);
}
.no-offer-popup-modal::backdrop { background: rgba(0,0,0,0.55); }
.no-offer-popup-inner { padding: 1.25rem; position: relative; }
.no-offer-popup-close {
    position: absolute; top: 0.85rem; right: 0.85rem;
    background: var(--surface-2); border: 1px solid var(--border);
    border-radius: 50%; width: 28px; height: 28px;
    cursor: pointer; color: var(--muted);
    display: flex; align-items: center; justify-content: center;
}
.no-offer-popup-close:hover { color: var(--text); }

/* ─── Modals ───────────────────────────────────────────────── */
.no-modal { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 0; max-width: 420px; width: 92%; box-shadow: var(--shadow); }
.no-modal::backdrop { background: rgba(0,0,0,0.55); }
.no-modal-inner { padding: 1.5rem; position: relative; }
.no-modal h2 { font-size: 1.05rem; font-weight: 800; margin: 0 0 0.5rem; color: var(--text); }
.no-modal p { font-size: 0.88rem; color: var(--muted); margin: 0 0 1rem; line-height: 1.5; }
.no-modal-close { position: absolute; top: 1rem; right: 1rem; background: var(--surface-2); border: 1px solid var(--border); border-radius: 50%; width: 2rem; height: 2rem; cursor: pointer; color: var(--muted); display: flex; align-items: center; justify-content: center; }
.no-modal-form { display: flex; flex-direction: column; gap: 0.6rem; }
.no-input { background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; color: var(--text); font-size: 0.9rem; padding: 0.55rem 0.75rem; outline: none; width: 100%; }
.no-input:focus { border-color: var(--accent); }
.no-btn-primary { background: var(--accent); color: var(--accent-text); border: none; border-radius: 8px; font-size: 0.9rem; font-weight: 700; padding: 0.65rem; cursor: pointer; width: 100%; transition: background 0.15s; }
.no-btn-primary:hover { background: var(--accent-2, #144f37); }

/* Toast */
#toast-container { position: fixed; bottom: 1.5rem; right: 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; z-index: 1000; pointer-events: none; }
.no-toast { background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 0.65rem 1rem; font-size: 0.85rem; color: var(--text); pointer-events: auto; box-shadow: var(--shadow); animation: no-slide-in 0.2s ease; }
.no-toast.ok { border-color: var(--ok); }
.no-toast.err { border-color: var(--danger); }
@keyframes no-slide-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ─── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
    .no-main { grid-template-columns: 1fr; grid-template-rows: 240px 1fr; height: auto; }
    .no-map-pane { height: 240px; order: -1; }
    .no-nav { display: none; }
}
