/* ── FVM Events Display — all colours and sizes driven by CSS custom properties ── */
:root {
    /* Colours */
    --fvm-accent:        #7c3aed;
    --fvm-accent2:       #a78bfa;
    --fvm-accent-rgb:    124,58,237;
    --fvm-dark:          #1e1b4b;
    --fvm-surface:       #ffffff;
    --fvm-border:        #e5e7eb;
    --fvm-text:          #111827;
    --fvm-muted:         #6b7280;
    --fvm-radius:        8px;
    /* Filter bar */
    --fvm-bar-bg:        #f9fafb;
    --fvm-bar-border:    #d1d5db;
    --fvm-input-bg:      #ffffff;
    --fvm-input-text:    #111827;
    --fvm-input-border:  #d1d5db;
    /* Clear button (separate from view toggle buttons) */
    --fvm-clear-bg:           #ffffff;
    --fvm-clear-text:         #374151;
    --fvm-clear-border:       #d1d5db;
    --fvm-clear-hover-bg:     #fee2e2;
    --fvm-clear-hover-text:   #991b1b;
    --fvm-clear-hover-border: #fca5a5;
    --fvm-clear-font-size:    14px;
    --fvm-clear-radius:       6px;
    --fvm-clear-pad-h:        14px;
    --fvm-clear-pad-v:        8px;
    /* View toggle buttons */
    --fvm-btn-bg:                   #ffffff;
    --fvm-btn-text:             #374151;
    --fvm-btn-border:           #d1d5db;
    --fvm-viewbtn-active-bg:    var(--fvm-accent);
    --fvm-viewbtn-active-text:  #ffffff;
    /* Typography — font families (blank = site default) */
    --fvm-font-title:      inherit;
    --fvm-font-meta:       inherit;
    --fvm-font-tag:        inherit;
    --fvm-font-filter:     inherit;
    --fvm-font-cal-head:   inherit;
    --fvm-font-cal-body:   inherit;
    --fvm-font-date-num:   inherit;
    /* Typography — sizes */
    --fvm-font-size-title:    16px;
    --fvm-font-size-meta:     13px;
    --fvm-font-size-tag:      11px;
    --fvm-font-size-filter:   14px;
    --fvm-font-size-cal:      13px;
    --fvm-font-size-date-num: 26px;
    --fvm-font-size-base:     14px;
    /* Typography — weights */
    --fvm-font-weight-title: 700;
    --fvm-font-weight-meta:  500;
    --fvm-font-weight-tag:   600;
    /* Buttons */
    --fvm-btn-primary-bg:    #7c3aed;
    --fvm-btn-primary-text:  #ffffff;
    --fvm-btn-primary-hover: #5b21b6;
    --fvm-link-color:        #7c3aed;
    --fvm-link-hover:        #5b21b6;
    --fvm-btn-radius:        6px;
    /* Spacing */
    --fvm-list-item-gap:  8px;
    --fvm-list-item-pad:  13px;
    --fvm-grid-gap:       18px;
    --fvm-card-padding:   14px;
    --fvm-filter-bar-pad: 14px;
    /* List view */
    --fvm-list-item-bg:         #ffffff;
    --fvm-list-date-bg:         #f9f7ff;
    --fvm-list-accent-gradient: linear-gradient(180deg,var(--fvm-accent),var(--fvm-accent2));
    --fvm-list-date-num-color:  var(--fvm-accent);
    --fvm-list-title-color:     #111827;
    --fvm-list-meta-color:      #6b7280;
    /* Tags */
    --fvm-tag-genre-bg:   #ede9fe;
    --fvm-tag-genre-text: #5b21b6;
    --fvm-tag-venue-bg:   #e0f2fe;
    --fvm-tag-venue-text: #075985;
    --fvm-tag-cat-bg:     #fef3c7;
    --fvm-tag-cat-text:   #92400e;
    /* Grid cards */
    --fvm-card-bg:              #ffffff;
    --fvm-card-img-h:           220px;
    --fvm-card-img-placeholder: linear-gradient(135deg,#ede9fe,#c7d2fe);
    --fvm-card-badge-bg:        var(--fvm-accent);
    --fvm-card-badge-text:      #ffffff;
    --fvm-card-title-color:     #111827;
    --fvm-card-meta-color:      #6b7280;
    /* Calendar */
    --fvm-cal-head-bg:      #1e1b4b;
    --fvm-cal-head-text:    rgba(255,255,255,.75);
    --fvm-cal-cell-bg:      #ffffff;
    --fvm-cal-other-bg:     #f9fafb;
    --fvm-cal-today-bg:     #fefce8;
    --fvm-cal-hover-bg:     #f5f3ff;
    --fvm-cal-daynum-color: #6b7280;
    --fvm-cal-hasevt-bg:    var(--fvm-accent);
    --fvm-cal-hasevt-text:  #ffffff;
    --fvm-cal-today-bg2:    #f59e0b;
    --fvm-cal-today-text:   #ffffff;
    --fvm-cal-popup-bg:     #ffffff;
    --fvm-cal-popup-head:   var(--fvm-accent);
    --fvm-cal-popup-text:   #111827;
    --fvm-cal-popup-meta:   #6b7280;
    --fvm-cal-navbtn-hover: #ede9fe;
    --fvm-cal-month-color:  #111827;
    /* Shadows */
    --fvm-shadow:    0 2px 8px rgba(0,0,0,.08);
    --fvm-shadow-lg: 0 8px 24px rgba(0,0,0,.12);
    /* Button sizes — override in portal.css or Elementor settings */
    --fvm-cancel-btn-font-size: .78rem;
    --fvm-cancel-btn-padding:   6px 12px;
    --fvm-ics-btn-font-size:    .72rem;
    --fvm-ics-btn-padding:      5px 10px;
}

/* ── Wrapper ── */
.fvm-events-wrap { font-size:var(--fvm-font-size-base); color:var(--fvm-text); }

/* ── Filter bar ── */
.fvm-events-bar { display:flex !important; flex-wrap:wrap; gap:10px; align-items:center; padding:var(--fvm-filter-bar-pad) 16px; background:var(--fvm-bar-bg) !important; border:1px solid var(--fvm-bar-border) !important; border-radius:var(--fvm-radius); margin-bottom:16px; box-shadow:var(--fvm-shadow); }
.fvm-events-search-wrap { position:relative; flex:1; min-width:180px; }
.fvm-search-icon { position:absolute; left:10px; top:50%; transform:translateY(-50%); color:#000000; pointer-events:none; }
.fvm-filter-input { width:100% !important; padding:8px 12px 8px 34px !important; border:1px solid var(--fvm-input-border) !important; border-radius:calc(var(--fvm-radius) - 2px) !important; font-family:var(--fvm-font-filter) !important; font-size:var(--fvm-font-size-filter) !important; outline:none; box-sizing:border-box; background:var(--fvm-input-bg) !important; color:var(--fvm-input-text) !important; transition:border-color .15s; line-height:1.4 !important; }
.fvm-filter-input::placeholder { color:var(--fvm-muted) !important; opacity:.7; }
.fvm-filter-input:focus { border-color:var(--fvm-accent) !important; box-shadow:0 0 0 2px rgba(var(--fvm-accent-rgb),.15); }
.fvm-filter-select { padding:8px 12px !important; border:1px solid var(--fvm-input-border) !important; border-radius:calc(var(--fvm-radius) - 2px) !important; font-family:var(--fvm-font-filter) !important; font-size:var(--fvm-font-size-filter) !important; background:var(--fvm-input-bg) !important; color:var(--fvm-input-text) !important; outline:none; cursor:pointer; transition:border-color .15s; min-width:130px; line-height:1.4 !important; -webkit-appearance:auto; }
.fvm-filter-select:focus { border-color:var(--fvm-accent) !important; box-shadow:0 0 0 2px rgba(var(--fvm-accent-rgb),.15); }
.fvm-events-wrap .fvm-btn-clear { padding:var(--fvm-clear-pad-v,8px) var(--fvm-clear-pad-h,14px) !important; border:1px solid var(--fvm-clear-border,var(--fvm-btn-border)) !important; border-radius:var(--fvm-clear-radius,calc(var(--fvm-radius) - 2px)) !important; background:var(--fvm-clear-bg,var(--fvm-btn-bg)) !important; color:var(--fvm-clear-text,var(--fvm-btn-text)) !important; font-family:var(--fvm-font-filter) !important; font-size:var(--fvm-clear-font-size,var(--fvm-font-size-filter)) !important; cursor:pointer; transition:all .15s; white-space:nowrap; line-height:1.4 !important; }
.fvm-events-wrap .fvm-btn-clear:hover { background:var(--fvm-clear-hover-bg,#fee2e2) !important; border-color:var(--fvm-clear-hover-border,#fca5a5) !important; color:var(--fvm-clear-hover-text,#991b1b) !important; }
/* Fallback for btn-clear outside .fvm-events-wrap */
.fvm-btn-clear { padding:8px 14px; border:1px solid #d1d5db; border-radius:6px; background:#ffffff; color:#374151; font-family:inherit; font-size:14px; cursor:pointer; transition:all .15s; white-space:nowrap; }
.fvm-btn-clear:hover { background:#fee2e2; border-color:#fca5a5; color:#991b1b; }

/* ── View toggle ── */
.fvm-view-toggle { display:flex !important; gap:4px; margin-bottom:16px; }
.fvm-view-btn { display:inline-flex !important; align-items:center; gap:6px; padding:7px 14px !important; border:1px solid var(--fvm-btn-border) !important; border-radius:var(--fvm-btn-radius,6px) !important; background:var(--fvm-btn-bg) !important; color:var(--fvm-btn-text) !important; font-family:var(--fvm-font-filter) !important; font-size:var(--fvm-btn-font-size) !important; cursor:pointer; transition:all .15s; font-weight:500; line-height:1.4 !important; }
.fvm-view-btn:hover { background:var(--fvm-btn-hover-bg) !important; color:var(--fvm-btn-hover-text) !important; border-color:var(--fvm-btn-hover-border) !important; }
.fvm-view-btn.active { background:var(--fvm-viewbtn-active-bg) !important; border-color:var(--fvm-viewbtn-active-border) !important; color:var(--fvm-viewbtn-active-text) !important; box-shadow:0 2px 6px rgba(var(--fvm-accent-rgb),.35); }

/* ── Loading / empty ── */
.fvm-events-loading,.fvm-events-empty { text-align:center; padding:48px 20px; color:var(--fvm-muted); font-size:var(--fvm-font-size-base); }
.fvm-events-count { font-size:var(--fvm-font-size-meta); color:var(--fvm-muted); margin-bottom:14px; font-weight:500; }

/* ════════ LIST VIEW ════════════════════════════════════════════════════════ */
.fvm-list-day { margin-bottom:28px; }
.fvm-list-day-heading { font-family:var(--fvm-font-meta); font-size:var(--fvm-font-size-meta); font-weight:700; letter-spacing:.1em; text-transform:uppercase; color:var(--fvm-muted); padding:0 0 8px; border-bottom:1px solid var(--fvm-border); margin-bottom:10px; }
.fvm-list-item { display:flex; align-items:stretch; gap:0; background:var(--fvm-list-item-bg); border:1px solid var(--fvm-border); border-radius:var(--fvm-radius); margin-bottom:var(--fvm-list-item-gap); overflow:hidden; box-shadow:var(--fvm-shadow); transition:box-shadow .15s,transform .15s; cursor:pointer; text-decoration:none; color:inherit; }
.fvm-list-item:hover { box-shadow:var(--fvm-shadow-lg); transform:translateY(-1px); }
.fvm-list-accent { width:5px; flex-shrink:0; background:var(--fvm-list-accent-gradient); }
.fvm-list-date { flex-shrink:0; width:62px; display:flex; flex-direction:column; align-items:center; justify-content:center; padding:var(--fvm-list-item-pad) 8px; background:var(--fvm-list-date-bg); border-right:1px solid var(--fvm-border); }
/* Date number — its own font */
.fvm-list-date-day { font-family:var(--fvm-font-date-num); font-size:var(--fvm-font-size-date-num); font-weight:800; color:var(--fvm-list-date-num-color); line-height:1; }
.fvm-list-date-mon { font-family:var(--fvm-font-meta); font-size:.68rem; font-weight:600; letter-spacing:.07em; text-transform:uppercase; color:var(--fvm-muted); margin-top:2px; }
.fvm-list-date-dow { font-family:var(--fvm-font-meta); font-size:.65rem; color:var(--fvm-muted); margin-top:1px; }
.fvm-list-thumb { width:80px; flex-shrink:0; background:var(--fvm-border); overflow:hidden; }
.fvm-list-thumb img { width:100%; height:100%; object-fit:cover; display:block; }
.fvm-list-thumb-placeholder { width:100%; height:100%; display:flex; align-items:center; justify-content:center; font-size:1.6rem; color:var(--fvm-muted); }
.fvm-list-content { flex:1; padding:var(--fvm-list-item-pad) 16px; min-width:0; }
/* Title */
.fvm-list-title { font-family:var(--fvm-font-title); font-size:var(--fvm-font-size-title); font-weight:var(--fvm-font-weight-title); margin:0 0 4px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; color:var(--fvm-list-title-color); }
/* Meta */
.fvm-list-meta { font-family:var(--fvm-font-meta); font-size:var(--fvm-font-size-meta); font-weight:var(--fvm-font-weight-meta); color:var(--fvm-list-meta-color); display:flex; flex-wrap:wrap; gap:10px; }
.fvm-list-meta-item { display:inline-flex; align-items:center; gap:4px; }
.fvm-list-meta svg { flex-shrink:0; }

/* ── Tags ── */
.fvm-tag { font-family:var(--fvm-font-tag); display:inline-block; font-size:var(--fvm-font-size-tag); font-weight:var(--fvm-font-weight-tag); letter-spacing:.04em; padding:2px 8px; border-radius:20px; text-transform:uppercase; }
.fvm-tag-genre { background:var(--fvm-tag-genre-bg); color:var(--fvm-tag-genre-text); }
.fvm-tag-venue { background:var(--fvm-tag-venue-bg); color:var(--fvm-tag-venue-text); }
.fvm-tag-cat   { background:var(--fvm-tag-cat-bg);   color:var(--fvm-tag-cat-text); }

/* ════════ GRID VIEW ════════════════════════════════════════════════════════ */
.fvm-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(240px,1fr)); gap:var(--fvm-grid-gap); align-items:stretch; }
.fvm-card { background:var(--fvm-card-bg); border:1px solid var(--fvm-border); border-radius:var(--fvm-radius); overflow:hidden; box-shadow:var(--fvm-shadow); transition:box-shadow .15s,transform .15s; text-decoration:none; color:inherit; display:flex; flex-direction:column; cursor:pointer; }
.fvm-card:hover { box-shadow:var(--fvm-shadow-lg); transform:translateY(-2px); }
.fvm-card-img { position:relative; aspect-ratio:4/3; min-height:200px; width:100%; background:var(--fvm-card-img-placeholder); overflow:hidden; flex-shrink:0; }
.fvm-card-img img { width:100%; height:100%; object-fit:cover; object-position:center top; display:block; }
.fvm-card-img-placeholder { width:100%; height:100%; display:flex; align-items:center; justify-content:center; font-size:2.8rem; color:var(--fvm-accent2); }
.fvm-card-date-badge { position:absolute; top:10px; left:10px; background:var(--fvm-card-badge-bg); color:var(--fvm-card-badge-text); border-radius:var(--fvm-btn-radius); padding:4px 9px; font-family:var(--fvm-font-meta); font-size:var(--fvm-font-size-tag); font-weight:700; line-height:1.3; text-align:center; box-shadow:0 2px 6px rgba(0,0,0,.2); }
.fvm-card-date-badge span { display:block; font-family:var(--fvm-font-date-num); font-size:1.1rem; font-weight:800; line-height:1; }
.fvm-card-body { padding:var(--fvm-card-padding) 16px; flex:1; display:flex; flex-direction:column; gap:6px; }
/* Grid title */
.fvm-card-title { font-family:var(--fvm-font-title); font-size:var(--fvm-font-size-title); font-weight:var(--fvm-font-weight-title); margin:0; color:var(--fvm-card-title-color); }
/* Grid meta */
.fvm-card-sub   { font-family:var(--fvm-font-meta); font-size:var(--fvm-font-size-meta); font-weight:var(--fvm-font-weight-meta); color:var(--fvm-card-meta-color); display:flex; flex-direction:column; gap:3px; }
.fvm-card-sub-row { display:flex; align-items:center; gap:5px; }
.fvm-card-tags  { display:flex; flex-wrap:wrap; gap:4px; margin-top:4px; }

/* ════════ CALENDAR VIEW ════════════════════════════════════════════════════ */
.fvm-cal-nav { display:flex; align-items:center; justify-content:space-between; margin-bottom:12px; }
/* Calendar month/year heading uses title font */
.fvm-cal-nav h3 { font-family:var(--fvm-font-title); margin:0; font-size:var(--fvm-font-size-title); font-weight:var(--fvm-font-weight-title); color:var(--fvm-cal-month-color,var(--fvm-text)); }
.fvm-cal-nav-btn { background:none; border:1px solid var(--fvm-border); border-radius:var(--fvm-btn-radius); padding:5px 12px; cursor:pointer; font-family:var(--fvm-font-filter); font-size:var(--fvm-font-size-base); color:var(--fvm-accent); transition:all .15s; }
.fvm-cal-nav-btn:hover { background:var(--fvm-cal-navbtn-hover); }
.fvm-cal-grid { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); border:1px solid var(--fvm-border); border-radius:var(--fvm-radius); overflow:hidden; background:var(--fvm-border); gap:1px; }
/* Day-of-week header row */
.fvm-cal-head { font-family:var(--fvm-font-cal-head); background:var(--fvm-cal-head-bg); color:var(--fvm-cal-head-text); font-size:var(--fvm-font-size-tag); font-weight:700; letter-spacing:.08em; text-transform:uppercase; text-align:center; padding:8px 4px; }
.fvm-cal-cell { background:var(--fvm-cal-cell-bg); min-height:80px; padding:6px; position:relative; vertical-align:top; overflow:hidden; min-width:0; }
.fvm-cal-cell.other-month { background:var(--fvm-cal-other-bg); }
.fvm-cal-cell.today       { background:var(--fvm-cal-today-bg); }
.fvm-cal-cell.has-events  { cursor:pointer; }
.fvm-cal-cell.has-events:hover { background:var(--fvm-cal-hover-bg); }
/* Date numbers in cells */
.fvm-cal-day-num { font-family:var(--fvm-font-cal-body); font-size:var(--fvm-font-size-cal); font-weight:600; color:var(--fvm-cal-daynum-color); display:inline-block; width:22px; height:22px; text-align:center; line-height:22px; border-radius:50%; flex-shrink:0; }
.fvm-cal-cell.has-events .fvm-cal-day-num { background:var(--fvm-cal-hasevt-bg); color:var(--fvm-cal-hasevt-text); }
.fvm-cal-cell.today .fvm-cal-day-num      { background:var(--fvm-cal-today-bg2); color:var(--fvm-cal-today-text); }
.fvm-cal-dots { display:flex; flex-wrap:wrap; gap:2px; margin-top:4px; }
.fvm-cal-dot  { width:6px; height:6px; border-radius:50%; flex-shrink:0; }
/* Event chips — clipped to cell width, never expand cell */
.fvm-cal-event-chip { font-family:var(--fvm-font-cal-body); font-size:var(--fvm-font-size-tag); background:var(--fvm-accent); color:#fff; border-radius:3px; padding:1px 4px; margin-top:2px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; width:100%; display:block; box-sizing:border-box; }

/* ── Calendar modal overlay (replaces old absolute popup) ── */
.fvm-cal-overlay { display:none; position:fixed; inset:0; z-index:99998; background:rgba(0,0,0,.5); align-items:center; justify-content:center; padding:20px; box-sizing:border-box; }
.fvm-cal-overlay.open { display:flex; }
.fvm-cal-modal { background:var(--fvm-cal-popup-bg,#fff); border-radius:var(--fvm-radius); box-shadow:0 20px 60px rgba(0,0,0,.3); width:100%; max-width:440px; max-height:80vh; display:flex; flex-direction:column; overflow:hidden; font-family:var(--fvm-font-cal-body,inherit); }
.fvm-cal-modal-head { display:flex; align-items:center; justify-content:space-between; padding:14px 18px 12px; border-bottom:1px solid var(--fvm-border); flex-shrink:0; }
.fvm-cal-modal-title { margin:0; font-family:var(--fvm-font-title,inherit); font-size:var(--fvm-font-size-base); font-weight:var(--fvm-font-weight-title,700); color:var(--fvm-cal-popup-head,var(--fvm-accent)); }
.fvm-cal-modal-close { background:none; border:none; cursor:pointer; font-size:1.3rem; color:var(--fvm-muted); line-height:1; padding:2px 8px; border-radius:4px; transition:background .15s; }
.fvm-cal-modal-close:hover { background:var(--fvm-border); color:var(--fvm-text); }
.fvm-cal-modal-body { overflow-y:auto; padding:4px 0; flex:1; }
.fvm-cal-modal-item { display:flex; align-items:flex-start; gap:10px; padding:10px 18px; border-bottom:1px solid var(--fvm-border); text-decoration:none; color:inherit; transition:background .12s; cursor:pointer; }
.fvm-cal-modal-item:last-child { border-bottom:none; }
.fvm-cal-modal-item:hover { background:var(--fvm-cal-hover-bg); }
.fvm-cal-modal-dot { width:10px; height:10px; border-radius:50%; flex-shrink:0; margin-top:4px; }
.fvm-cal-modal-info { flex:1; min-width:0; }
.fvm-cal-modal-name { font-family:var(--fvm-font-title,inherit); font-weight:var(--fvm-font-weight-title,700); font-size:var(--fvm-font-size-base); color:var(--fvm-cal-popup-text,var(--fvm-text,#111827)); display:block; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.fvm-cal-modal-meta { font-family:var(--fvm-font-meta,inherit); font-size:var(--fvm-font-size-meta); color:var(--fvm-cal-popup-meta,var(--fvm-muted,#6b7280)); margin-top:2px; display:block; }

/* ── Result count ── */
.fvm-results-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:14px; flex-wrap:wrap; gap:8px; }
.fvm-results-count { font-family:var(--fvm-font-meta); font-size:var(--fvm-font-size-meta); color:var(--fvm-muted); font-weight:500; }

/* ── Links ── */
.fvm-events-wrap a { color:var(--fvm-link-color); }
.fvm-events-wrap a:hover { color:var(--fvm-link-hover); }

/* ── Responsive ── */
@media (max-width:600px) {
    .fvm-events-bar { padding:10px; gap:8px; }
    .fvm-filter-select { min-width:0; }
    .fvm-list-thumb { display:none; }
    .fvm-grid { grid-template-columns:1fr 1fr; }
    .fvm-cal-event-chip { display:none; }
}
@media (max-width:400px) { .fvm-grid { grid-template-columns:1fr; } }

/* ── Cancel button in list / grid (show_cancel="yes" portal mode) ────────── */
.fvm-list-cancel {
    flex-shrink: 0; padding: 10px 14px 10px 8px;
    display: flex; flex-direction: column; align-items: stretch; justify-content: center; gap: 6px;
}
.fvm-events-cancel-btn {
    padding: var(--fvm-cancel-btn-pad-v, var(--fvm-cancel-btn-padding, 6px)) var(--fvm-cancel-btn-pad-h, 12px); font-size: var(--fvm-cancel-btn-font-size, .78rem);
    background: var(--fvm-cancel-bg, var(--fvm-danger, #ef4444));
    color: var(--fvm-cancel-text, #ffffff);
    border: 1px solid var(--fvm-cancel-border, transparent);
    border-radius: var(--fvm-btn-radius, 6px);
    cursor: pointer; font-weight: 600; white-space: nowrap;
    transition: background .15s, color .15s;
    display: inline-block; text-align: center;
}
.fvm-events-cancel-btn:hover {
    background: var(--fvm-cancel-hover-bg, var(--fvm-danger-dark, #b91c1c));
    color: var(--fvm-cancel-hover-text, #ffffff);
}

/* Grid actions wrapper — both buttons anchored together at card bottom */
.fvm-card-actions {
    margin-top: auto;
    padding-top: 10px;
    display: flex; flex-direction: column; gap: 6px;
}
.fvm-card-actions .fvm-events-cancel-btn,
.fvm-card-actions .fvm-ics-btn {
    width: 100%; justify-content: center; display: flex;
}
/* All grid cards stretch to same row height */
.fvm-grid { align-items: stretch; }
.fvm-card { height: 100%; }

/* ── Calendar day modal (overlay) ─────────────────────────────────────────── */
.fvm-cal-modal-overlay {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(0,0,0,.45); display: flex;
    align-items: center; justify-content: center;
    padding: 20px;
}
.fvm-cal-modal {
    background: #fff; border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
    width: 100%; max-width: 400px; overflow: hidden;
}
.fvm-cal-modal-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 18px 12px; border-bottom: 1px solid #e5e7eb;
}
.fvm-cal-modal-title {
    margin: 0; font-size: .95rem; font-weight: 700; color: #111827;
}
.fvm-cal-modal-close {
    background: none; border: none; font-size: 1.3rem; line-height: 1;
    color: #9ca3af; cursor: pointer; padding: 2px 6px; border-radius: 4px;
    transition: background .1s;
}
.fvm-cal-modal-close:hover { background: #f3f4f6; color: #374151; }
.fvm-cal-modal-body { padding: 8px 0; max-height: 60vh; overflow-y: auto; }
.fvm-cal-modal-item {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 10px 18px; border-bottom: 1px solid #f3f4f6;
    text-decoration: none; color: inherit; transition: background .1s;
    cursor: pointer;
}
.fvm-cal-modal-item:last-child { border-bottom: none; }
.fvm-cal-modal-item:hover { background: #f9f7ff; }
.fvm-cal-modal-dot {
    width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; margin-top: 5px;
}
.fvm-cal-modal-info { flex: 1; min-width: 0; }
.fvm-cal-modal-name {
    display: block; font-weight: 700; font-size: .88rem;
    color: #111827; margin-bottom: 2px;
}
.fvm-cal-modal-meta {
    display: block; font-size: .78rem; color: #6b7280;
}
.fvm-cal-modal-cancel { margin-top: 6px; }
.fvm-cal-modal-cancel .fvm-events-cancel-btn {
    padding: 4px 10px !important; font-size: .75rem !important;
}

/* ── Contact details in My Bookings list / grid (show_cancel portal mode) ─── */
.fvm-list-contact {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
    margin-top: 5px; font-size: .75rem; color: var(--fvm-muted, #6b7280);
}
.fvm-list-contact-name { font-weight: 600; color: var(--fvm-text, #111827); }
.fvm-list-contact-link {
    color: var(--fvm-accent, #7c3aed); text-decoration: none;
}
.fvm-list-contact-link:hover { text-decoration: underline; }

.fvm-card-contact {
    margin-top: 8px; font-size: .75rem; color: var(--fvm-muted, #6b7280);
    display: flex; flex-direction: column; gap: 4px;
}
.fvm-card-contact-row {
    display: flex; align-items: center; gap: 5px; line-height: 1.3;
}
.fvm-contact-icon {
    flex-shrink: 0; display: inline-flex; align-items: center;
    color: var(--fvm-muted, #9ca3af); width: 14px;
}
.fvm-card-contact-name { font-weight: 600; color: var(--fvm-text, #111827); }
.fvm-card-contact-link {
    color: var(--fvm-accent, #7c3aed); text-decoration: none;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.fvm-card-contact-link:hover { text-decoration: underline; }

/* ── ICS / Add to calendar button ─────────────────────────────────────────── */
.fvm-ics-btn {
    display: inline-flex; align-items: center; gap: 5px;
    padding: var(--fvm-ics-btn-pad-v, var(--fvm-ics-btn-padding, 5px)) var(--fvm-ics-btn-pad-h, 10px); font-size: var(--fvm-ics-btn-font-size, .72rem); font-weight: 600;
    background: var(--fvm-btn-bg, #f9fafb);
    color: var(--fvm-btn-text, #374151);
    border: 1px solid var(--fvm-btn-border, #d1d5db);
    border-radius: var(--fvm-btn-radius, 6px);
    cursor: pointer; white-space: nowrap;
    transition: background .15s, color .15s;
}
.fvm-ics-btn:hover {
    background: var(--fvm-accent, #7c3aed);
    color: #fff; border-color: var(--fvm-accent, #7c3aed);
}
.fvm-ics-btn svg { flex-shrink: 0; }



/* ── List item: now always a div, title carries the link ─────────────────── */
.fvm-list-title-link {
    color: inherit; text-decoration: none;
}
.fvm-list-title-link:hover { text-decoration: underline; }

/* ── Grid card: always a div, title carries the link ────────────────────── */
.fvm-card-title-link {
    color: inherit; text-decoration: none;
}
.fvm-card-title-link:hover { text-decoration: underline; }
