/* ================================================================
   Sauna Booking – Frontend Saunagus Styles
   Modern 2026 design: location-first cards with hero images.
   ================================================================ */

/* ── Grid container ───────────────────────────────────── */

.sg-grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

/* ── Quick-jump nav ──────────────────────────────────── */

.sg-quickjump {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 28px;
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 14px 20px;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.sg-quickjump-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 24px;
    border: none;
    color: #fff !important;
    background: #f4662f;
    border-radius: 24px;
    text-decoration: none !important;
    font-size: 0.88rem;
    font-weight: 600;
    transition: all 0.2s ease;
    white-space: nowrap;
    cursor: pointer;
    line-height: 1.4;
    box-shadow: 0 2px 8px rgba(244, 102, 47, 0.3);
}

.sg-quickjump-btn:hover {
    background: #d9531e;
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(244, 102, 47, 0.4);
}

.sg-quickjump-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 4px rgba(244, 102, 47, 0.3);
}

/* ── Card ─────────────────────────────────────────────── */

.sg-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    border: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.sg-card:hover {
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.09);
    transform: translateY(-2px);
}

/* ── Card top row (image + header side by side) ─── */

.sg-card-top {
    display: flex;
    flex-direction: row;
}

.sg-card-media {
    flex: 0 0 50%;
    max-width: 50%;
}

/* ── Card image ──────────────────────────────────────── */

.sg-card-image {
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
    display: block;
}

.sg-card-image--placeholder {
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
}

/* ── Card header ─────────────────────────────────────── */

.sg-card-header {
    padding: 20px 24px 0;
}

.sg-location {
    font-size: 1.4rem;
    font-weight: 700;
    color: #111;
    margin: 0 0 6px;
    line-height: 1.3;
}

.sg-address {
    font-size: 0.82rem;
    color: #888;
    display: block;
    margin-bottom: 4px;
}

/* Meetpoint with map-pin icon */

.sg-meetpoint {
    font-size: 0.84rem;
    color: #555;
    margin-top: 8px;
    padding: 8px 12px 8px 30px;
    background: #f8f8f8;
    border-radius: 8px;
    position: relative;
    line-height: 1.4;
}

.sg-meetpoint::before {
    content: '';
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'/%3E%3Ccircle cx='12' cy='10' r='3'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

/* Description text */

.sg-desc {
    font-size: 0.88rem;
    color: #444;
    line-height: 1.55;
    margin: 12px 0 0;
    padding: 0;
}

/* ── Card body ────────────────────────────────────────── */

.sg-card-body {
    padding: 16px 24px 24px;
    flex: 1;
}

/* Bring info box */

.sg-bring {
    font-size: 0.84rem;
    color: #555;
    padding: 10px 14px;
    background: #f0f7ff;
    border-radius: 8px;
    margin-bottom: 16px;
    line-height: 1.4;
}

.sg-bring strong {
    color: #333;
}

/* ── Date sections within a card ─────────────────────── */

.sg-date-section {
    margin-bottom: 16px;
}

.sg-date-section:last-child {
    margin-bottom: 0;
}

.sg-date-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #f4662f;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid #f0f0f0;
}

/* ── Sessions ─────────────────────────────────────────── */

.sg-session {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: #fafafa;
    border-radius: 10px;
    margin-bottom: 6px;
    transition: background 0.15s ease;
}

.sg-session:last-child {
    margin-bottom: 0;
}

.sg-session:hover {
    background: #f3f3f3;
}

.sg-time {
    font-weight: 700;
    font-size: 0.92rem;
    min-width: 100px;
    color: #1a1a1a;
}

.sg-attendees {
    font-size: 0.82rem;
    font-weight: 600;
    color: #2e7d32;
    white-space: nowrap;
}

.sg-stock {
    flex: 1;
}

.sg-spots {
    font-size: 0.84rem;
    color: #666;
}

.sg-price {
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
    white-space: nowrap;
}

/* ── Badges ───────────────────────────────────────────── */

.sg-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.78rem;
    font-weight: 600;
}

.sg-badge-soldout {
    background: #ffebee;
    color: #c62828;
}

.sg-badge-low {
    background: #fff3e0;
    color: #e65100;
}

/* ── Buy button – pill style ─────────────────────────── */

.sg-btn {
    display: inline-flex;
    align-items: center;
    padding: 7px 18px;
    background: #f4662f;
    color: #fff !important;
    border-radius: 24px;
    text-decoration: none !important;
    font-size: 0.82rem;
    font-weight: 600;
    transition: all 0.2s ease;
    white-space: nowrap;
    margin-left: auto;
    border: none;
    cursor: pointer;
    line-height: 1.4;
}

.sg-btn:hover {
    background: #d9531e;
    color: #fff !important;
    transform: scale(1.03);
}

.sg-btn:active {
    transform: scale(0.97);
}

.sg-btn-disabled {
    background: #ccc;
    color: #888 !important;
    cursor: not-allowed;
    pointer-events: none;
}

/* ── "Vis mere" (hent flere datoer) ──────────────────── */

.sg-loadmore-wrap {
    text-align: center;
    margin-top: 16px;
}

.sg-loadmore {
    margin-left: 0;
    padding: 9px 28px;
}

.sg-loadmore:disabled {
    opacity: 0.6;
    cursor: wait;
    transform: none;
}

/* ── Empty state ──────────────────────────────────────── */

.sg-empty {
    text-align: center;
    color: #999;
    padding: 48px 24px;
    font-size: 1rem;
    font-weight: 500;
}

/* ── Responsive ───────────────────────────────────────── */

@media (max-width: 768px) {
    .sg-quickjump {
        gap: 8px;
        padding: 10px 14px;
    }

    .sg-quickjump-btn {
        padding: 8px 18px;
        font-size: 0.82rem;
    }

    .sg-card-top {
        flex-direction: column;
    }

    .sg-card-media {
        flex: none;
        max-width: 100%;
    }

    .sg-card-image {
        height: 200px;
        min-height: 200px;
    }

    .sg-card-header {
        padding: 16px 16px 0;
    }

    .sg-card-body {
        padding: 12px 16px 20px;
    }

    .sg-location {
        font-size: 1.15rem;
    }

    .sg-session {
        flex-wrap: wrap;
        padding: 10px 12px;
    }

    .sg-time {
        min-width: auto;
    }

    .sg-btn {
        margin-left: 0;
        margin-top: 6px;
        width: 100%;
        justify-content: center;
    }
}

/* ════════════════════════════════════════════════════════
   [saunagus_naeste] — næste N events som billedkort
   ════════════════════════════════════════════════════════ */

.sg-next-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 0 auto;
}

.sg-next-card {
    display: block;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
    text-decoration: none !important;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.sg-next-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
}

.sg-next-media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #eef1f3;
}

.sg-next-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.sg-next-card:hover .sg-next-image {
    transform: scale(1.04);
}

.sg-next-image--placeholder {
    background: linear-gradient(135deg, #e8ecef 0%, #d5dbe0 100%);
}

.sg-next-soldout {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
}

.sg-next-text {
    display: block;
    padding: 14px 16px 16px;
}

.sg-next-title {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: #1d2327;
    line-height: 1.35;
    transition: color 0.2s ease;
}

.sg-next-card:hover .sg-next-title {
    color: #f4662f;
}

.sg-next-meta {
    display: block;
    margin-top: 4px;
    font-size: 0.88rem;
    color: #6b7177;
}

@media (max-width: 992px) {
    .sg-next-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .sg-next-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}
