/* ─────────────────────────────────────────────
   Stökustaður – Bókunarkerfi
   ───────────────────────────────────────────── */

.stokustadur-page {
    background:
        radial-gradient(circle at top right, rgba(91, 113, 214, 0.16), transparent 24%),
        radial-gradient(circle at top left, rgba(23, 44, 123, 0.18), transparent 22%),
        linear-gradient(180deg, #e9eef8 0%, #f4f7fc 26%, #edf2fb 100%);
}

.stokustadur-page::before {
    background-image:
        linear-gradient(rgba(23, 44, 123, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(23, 44, 123, 0.035) 1px, transparent 1px);
}

.stokustadur-site-header__glow {
    background:
        radial-gradient(circle at center, rgba(80, 111, 214, 0.28), transparent 56%),
        radial-gradient(circle at 30% 30%, rgba(169, 191, 255, 0.34), transparent 34%);
}

.stokustadur-navbar {
    background: rgba(249, 251, 255, 0.86);
}

.stokustadur-brand,
.stokustadur-brand:hover,
.stokustadur-brand:focus {
    color: #152a66 !important;
}

.stokustadur-brand__subtitle,
.stokustadur-page .site-utility__tag,
.stokustadur-page .site-utility__links a {
    color: #4b5d88;
}

.stokustadur-nav-link--active {
    background: rgba(26, 35, 126, 0.12);
    color: #17307a !important;
}

.stokustadur-utility-login {
    border: 1px solid rgba(23, 48, 122, 0.18);
    background: rgba(23, 48, 122, 0.08);
    color: #17307a;
    border-radius: 999px;
    padding: 0.45rem 0.95rem;
    font-weight: 700;
}

.stokustadur-member-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    color: white;
    font-weight: 700;
    background: var(--member-color, #506fd6);
}

.stokustadur-header-cta {
    min-width: 10rem;
}

.stokustadur-header-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
}

.stokustadur-main__inner {
    background: rgba(250, 252, 255, 0.84);
}

.stokustadur-main .container-fluid {
    width: min(100%, 1240px);
}

.stokustadur-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(16rem, 0.7fr);
    gap: 0.9rem;
    margin-bottom: 0.9rem;
}

.stokustadur-hero__intro,
.stokustadur-status-card,
.stokustadur-panel,
.calendar-shell {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(31, 44, 89, 0.1);
    border-radius: 28px;
    box-shadow: 0 22px 48px rgba(31, 44, 89, 0.09);
}

.stokustadur-hero__intro {
    padding: clamp(1.2rem, 2.2vw, 1.8rem);
    background:
        linear-gradient(135deg, rgba(249, 251, 255, 0.96), rgba(231, 238, 252, 0.86)),
        radial-gradient(circle at top right, rgba(101, 126, 232, 0.2), transparent 36%);
}

.stokustadur-eyebrow,
.stokustadur-panel__label {
    margin: 0 0 0.55rem;
    letter-spacing: 0.04em;
    font-size: 0.98rem;
    font-weight: 700;
    color: #4863b4;
}

.stokustadur-title {
    margin: 0;
    font-size: clamp(2.4rem, 4vw, 4rem);
    color: #152a66;
}

.stokustadur-intro {
    margin: 0.95rem 0 0;
    max-width: 42rem;
    color: #50617f;
    font-size: 1.14rem;
    line-height: 1.72;
}

.stokustadur-status-card {
    height: 100%;
    padding: 1.1rem 1.2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background:
        linear-gradient(150deg, rgba(239, 244, 255, 0.95), rgba(221, 231, 252, 0.86)),
        radial-gradient(circle at top right, rgba(80, 111, 214, 0.2), transparent 32%);
}

.stokustadur-status-card__label {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.76rem;
    font-weight: 700;
    color: #4863b4;
}

.stokustadur-status-card__name {
    margin: 0.45rem 0 0;
    font-size: 1.28rem;
    font-weight: 700;
    line-height: 1.25;
    color: #152a66;
}

.stokustadur-status-card__link {
    margin-top: 0.85rem;
    font-weight: 700;
    text-decoration: none;
}

.stokustadur-status-card__button {
    margin-top: 1rem;
    align-self: flex-start;
}

.stokustadur-toolbar {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 0.9rem;
    margin-bottom: 0.9rem;
}

.stokustadur-panel {
    padding: 1rem 1.1rem;
}

.house-filter-bar,
.legend-bar {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.house-btn {
    padding: 0.52rem 1.05rem;
    font-size: 0.98rem;
    font-weight: 700;
    border: 1px solid rgba(23, 48, 122, 0.18);
    border-radius: 999px;
    background: rgba(80, 111, 214, 0.08);
    color: #17307a;
    cursor: pointer;
    transition: all 0.2s;
}

.house-btn:hover {
    background: rgba(80, 111, 214, 0.14);
    border-color: rgba(23, 48, 122, 0.3);
}

.house-btn.active {
    background: #17307a;
    color: white;
    border-color: #17307a;
}

.legend-badge {
    padding: 0.34rem 0.8rem;
    border-radius: 16px;
    color: white;
    font-size: 0.98rem;
    font-weight: 700;
}

.legend-sep {
    color: #93a0bf;
    font-size: 1.1rem;
}

.legend-house {
    padding: 0.34rem 0.72rem;
    background: rgba(80, 111, 214, 0.08);
    border-radius: 10px;
    font-size: 0.98rem;
    font-weight: 600;
    color: #2c4079;
}

.calendar-shell {
    padding: 1.15rem;
}

.calendar-shell__header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    padding: 0 0 0.7rem;
}

.calendar-shell__title {
    margin: 0;
    font-size: clamp(1.8rem, 2.6vw, 2.5rem);
    color: #152a66;
}

@media (max-width: 767px) {
    .stokustadur-header-actions {
        width: 100%;
        margin-left: 0;
    }

    .stokustadur-header-actions .stokustadur-header-cta {
        width: 100%;
    }
}

/* ── DAGATAL ──────────────────────────────────*/
.calendar-container {
    margin: 0;
    padding: 0.4rem;
    background: rgba(255, 255, 255, 0.72);
    border-radius: 24px;
    border: 1px solid rgba(31, 44, 89, 0.08);
}

.fc {
    font-size: 1.12rem;
}

.fc-toolbar-title {
    font-size: 1.8rem !important;
    font-weight: 800 !important;
    color: #1a237e;
}

.fc-button {
    font-size: 1.1rem !important;
    padding: 0.52rem 1.15rem !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
}

.fc-button-primary {
    background-color: #1a237e !important;
    border-color: #1a237e !important;
}

.fc-button-primary:hover {
    background-color: #283593 !important;
}

.fc-col-header-cell {
    background: #e8eaf6;
    font-size: 1.05rem;
    font-weight: 800;
    padding: 0.5rem 0 !important;
    color: #1a237e;
}

.fc-daygrid-day {
    min-height: 90px !important;
    cursor: pointer;
}

.fc-daygrid-day:hover {
    background: #f3f4ff !important;
}

.fc-daygrid-day-number {
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    color: #333;
    padding: 5px 8px !important;
}

.fc-day-today {
    background: #f0f4ff !important;
}

.fc-day-today .fc-daygrid-day-number {
    background: #1a237e;
    color: white !important;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.fc-event {
    border-radius: 6px !important;
    padding: 2px 4px !important;
    margin: 2px 2px !important;
    cursor: pointer !important;
}

.fc-event:hover {
    opacity: 0.85;
}

.fc-event-main-inner {
    padding: 2px 4px;
}

.fc-event-name {
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.2;
}

.fc-event-house {
    font-size: 0.78rem;
    font-weight: 600;
    opacity: 0.9;
}

/* ── FLOATING BÓKA TAKKI (FAB) ────────────────*/
.fab-boka {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    padding: 0.95rem 1.8rem;
    font-size: 1.08rem;
    font-weight: 800;
    background: linear-gradient(135deg, #2f7a53, #275f44);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 14px 30px rgba(32, 63, 49, 0.26);
    transition: all 0.2s;
    z-index: 1000;
}

.fab-boka:hover {
    background: linear-gradient(135deg, #358560, #28553e);
    transform: translateY(-3px);
    box-shadow: 0 18px 34px rgba(32, 63, 49, 0.32);
}

/* ── MODAL ────────────────────────────────────*/
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 1rem;
}

.modal-box {
    background: white;
    border-radius: 16px;
    padding: 2.2rem;
    max-width: 520px;
    width: 100%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    max-height: 90vh;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1.2rem;
    background: none;
    border: none;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    color: #666;
    padding: 0;
}

.modal-close:hover { color: #c00; }

.modal-title {
    font-size: 1.7rem;
    font-weight: 800;
    margin: 0 0 1.3rem 0;
    color: #1a237e;
}

.modal-error {
    background: #ffebee;
    color: #c62828;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    margin-bottom: 1.1rem;
    font-size: 1rem;
    font-weight: 600;
    border-left: 5px solid #c62828;
}

.modal-warning {
    background: #fff8e1;
    color: #e65100;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    margin-bottom: 1.1rem;
    font-size: 1rem;
    font-weight: 600;
    border-left: 5px solid #ff8f00;
}

.esc-hint {
    text-align: center;
    color: #999;
    font-size: 0.85rem;
    margin: 1rem 0 0;
}

/* ── FORM ─────────────────────────────────────*/
.form-group-big {
    margin-bottom: 1.3rem;
}

.form-group-big label {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.4rem;
}

.input-big {
    width: 100%;
    padding: 0.8rem 1rem;
    font-size: 1.15rem;
    border: 2px solid #bbb;
    border-radius: 10px;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.input-big:focus {
    border-color: #1a237e;
    outline: none;
    box-shadow: 0 0 0 3px rgba(26,35,126,0.12);
}

.hint-text {
    display: block;
    color: #666;
    font-size: 0.92rem;
    margin-top: 0.35rem;
}

.house-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

.house-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
}

.house-checkbox {
    width: 22px;
    height: 22px;
    cursor: pointer;
    flex-shrink: 0;
}

.house-checkbox-text {
    font-size: 1.15rem;
    font-weight: 700;
    padding: 0.35rem 0.8rem;
    background: #f5f5f5;
    border-radius: 6px;
}

.btn-submit {
    width: 100%;
    padding: 0.95rem;
    font-size: 1.2rem;
    font-weight: 800;
    background: #1a237e;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    margin-top: 0.3rem;
    transition: background 0.2s;
}

.btn-submit:hover { background: #283593; }

/* ── EVENT MODAL ──────────────────────────────*/
.event-detail-grid {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.event-detail-row {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    background: #f5f5f5;
    padding: 0.75rem 1rem;
    border-radius: 8px;
}

.event-detail-icon { font-size: 1.3rem; flex-shrink: 0; }

.event-detail-value {
    font-size: 1.15rem;
    font-weight: 600;
    color: #222;
}

.cancel-hint {
    font-size: 1rem;
    color: #666;
    margin-bottom: 0.8rem;
}

.btn-cancel-booking {
    width: 100%;
    padding: 0.9rem;
    font-size: 1.1rem;
    font-weight: 800;
    background: #c62828;
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-cancel-booking:hover { background: #b71c1c; }

/* ── FARSÍMAR ─────────────────────────────────*/
@media (max-width: 768px) {
    .stokustadur-hero,
    .stokustadur-toolbar {
        grid-template-columns: 1fr;
    }

    .stokustadur-title {
        font-size: 2.4rem;
    }

    .stokustadur-page .site-utility__links {
        gap: 0.7rem;
    }

    .legend-bar {
        gap: 0.4rem;
    }

    .house-filter-bar {
        flex-wrap: nowrap !important;
        gap: 0.35rem;
        overflow-x: auto;
        padding-bottom: 0.25rem;
    }

    .house-btn {
        padding: 0.35rem 0.65rem;
        font-size: 0.85rem;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .calendar-shell__header {
        align-items: flex-start;
        flex-direction: column;
    }

    .calendar-container {
        padding: 0.2rem;
    }

    .fc-toolbar-title { font-size: 1.2rem !important; }
    .fc-toolbar { flex-wrap: nowrap !important; gap: 0.3rem !important; }
    .fc-button { font-size: 0.95rem !important; padding: 0.4rem 0.8rem !important; }
    .fc-col-header-cell { font-size: 0.9rem; padding: 0.4rem 0 !important; }
    .fc-daygrid-day { min-height: 60px !important; }
    .fc-daygrid-day-number { font-size: 1rem !important; padding: 3px 5px !important; }
    .fc-event-name { font-size: 0.85rem; }
    .fc-event-house { font-size: 0.72rem; }

    .fab-boka {
        bottom: 1rem;
        right: 1rem;
        font-size: 1rem;
        padding: 0.75rem 1.4rem;
    }

    .modal-box { padding: 1.4rem; }
    .modal-title { font-size: 1.4rem; }
    .input-big { font-size: 1.05rem; padding: 0.7rem 0.8rem; }
    .btn-submit { font-size: 1.1rem; }
}
