/* Holiday Calendar Widget — calendar.css */
.hcw-root *,
.hcw-root *::before,
.hcw-root *::after { box-sizing: border-box; margin: 0; padding: 0; }

.hcw-root { font-family: Arial, sans-serif; font-size: 13px; }

/* ── Calendar shell ── */
.hcw-wrap {
    border: 1px solid #ccc;
    border-radius: 4px;
    overflow: hidden;
    max-width: 100%;
}

/* ── Navigation bar ── */
.hcw-nav {
    background: #2c5f8a;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 10px;
}
.hcw-nav-btn {
    background: transparent;
    border: 1px solid rgba(255,255,255,.45);
    color: #fff;
    cursor: pointer;
    border-radius: 3px;
    padding: 1px 9px;
    font-size: 16px;
    line-height: 1.3;
}
.hcw-nav-btn:hover { background: rgba(255,255,255,.18); }
.hcw-nav-title { font-size: 14px; font-weight: bold; letter-spacing: .3px; }

/* ── Grid ── */
.hcw-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}
.hcw-table thead th {
    background: #3a7ab8;
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    padding: 4px 0;
    text-align: center;
}
.hcw-table tbody td {
    border: 1px solid #ddd;
    padding: 0;
    width: 14.285%;
    height: 36px;
    text-align: center;
    vertical-align: middle;
}

/* ── Day cells ── */
.hcw-day {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2px 0;
    cursor: default;
    font-size: 13px;
}
.hcw-day.hcw-empty { background: #f4f4f4; }
.hcw-day.hcw-today { background: #ffeeba; font-weight: bold; }
.hcw-day.hcw-holiday { cursor: pointer; background: #fff5f5; }
.hcw-day.hcw-holiday:hover { background: #ffd9d9; }

/* ── Holiday badge ── */
.hcw-badge {
    display: inline-block;
    background: #d9534f;
    color: #fff;
    font-size: 9px;
    font-weight: bold;
    border-radius: 3px;
    padding: 0 3px;
    line-height: 1.4;
    margin-top: 1px;
}

/* ── Legend ── */
.hcw-legend {
    display: flex;
    gap: 10px;
    padding: 5px 8px;
    background: #f9f9f9;
    font-size: 11px;
    color: #555;
    border-top: 1px solid #ddd;
    flex-wrap: wrap;
}
.hcw-leg-item { display: flex; align-items: center; gap: 3px; }

/* ── Modal overlay ── */
.hcw-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 99999;
    align-items: center;
    justify-content: center;
}
.hcw-overlay.hcw-open { display: flex; }

.hcw-modal {
    background: #fff;
    border-radius: 6px;
    padding: 20px 18px 16px;
    max-width: 300px;
    width: 92%;
    position: relative;
    box-shadow: 0 4px 20px rgba(0,0,0,.25);
}
.hcw-modal-close {
    position: absolute;
    top: 8px; right: 10px;
    background: transparent;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: #888;
    line-height: 1;
}
.hcw-modal-close:hover { color: #333; }
.hcw-modal-flag  { font-size: 30px; text-align: center; margin-bottom: 6px; }
.hcw-modal-name  { font-size: 15px; font-weight: bold; color: #222; margin-bottom: 4px; }
.hcw-modal-type  {
    display: inline-block;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: .5px;
    border-radius: 3px;
    padding: 2px 7px;
    margin-bottom: 10px;
}
.hcw-type-national { background: #dbeafe; color: #1e40af; }
.hcw-type-texas    { background: #dcfce7; color: #166534; }
.hcw-type-both     { background: #fef9c3; color: #854d0e; }

.hcw-modal-desc {
    font-size: 12px;
    color: #444;
    line-height: 1.6;
    margin-bottom: 10px;
}
.hcw-modal-facts {
    background: #f5f5f5;
    border-radius: 4px;
    padding: 9px 10px;
    font-size: 12px;
    color: #444;
}
.hcw-modal-facts strong {
    display: block;
    margin-bottom: 5px;
    font-size: 12px;
    color: #222;
}
.hcw-modal-facts ul { padding-left: 16px; }
.hcw-modal-facts li { margin-bottom: 3px; line-height: 1.5; }
