/* Partide de vânătoare — integrat în tema publică bHunt */

.hp-page {
    --hp-green-dark: #1e3c2a;
    --hp-green: #2f5d3a;
    --hp-green-mid: #2f5d3a;
    --hp-accent: #28a745;
    --hp-accent-alt: #20c997;
    --hp-red: #dc3545;
    --hp-orange: #fd7e14;
    --hp-finished: #28a745;
    --hp-bg: #f8f9fa;
    --hp-text: #212529;
    --hp-muted: #666;
}

.hp-page.hp-embedded {
    background: var(--hp-bg);
    color: var(--hp-text);
    padding-top: 76px;
    padding-bottom: 0;
    min-height: calc(100vh - 76px);
}

@media (min-width: 992px) {
    .hp-page.hp-embedded {
        padding-top: 80px;
    }
}

/* Hero — gradient ca secțiunile principale */
.hp-embedded .hp-hero {
    padding: 3rem 0 2.5rem;
    background: linear-gradient(135deg, #1e3c2a 0%, #2f5d3a 100%);
    color: #fff;
}

.hp-embedded .hp-hero-kicker {
    font-size: .85rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .85);
    margin: 0 0 .75rem;
    font-weight: 600;
}

.hp-embedded .hp-hero h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 12px;
    color: #fff;
}

.hp-embedded .hp-hero h1.section-title {
    color: #fff;
}

.hp-embedded .hp-hero h1 .hp-highlight {
    color: #7dcea0;
}

.hp-hero-grid {
    display: grid;
    gap: 24px;
    align-items: start;
}

@media (min-width: 992px) {
    .hp-hero-grid {
        grid-template-columns: 1fr 320px;
    }
}

.hp-embedded .hp-hero-lead {
    color: rgba(255, 255, 255, .9);
    font-size: 1.05rem;
    max-width: 560px;
    line-height: 1.55;
    margin: 0;
}

.hp-embedded .hp-safety-box {
    background: rgba(255, 255, 255, .1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 16px;
    padding: 20px;
}

.hp-embedded .hp-safety-box h3 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
}

.hp-embedded .hp-safety-box p {
    margin: 0;
    font-size: .88rem;
    color: rgba(255, 255, 255, .85);
    line-height: 1.5;
}

/* Filtre */
.hp-filters-wrap {
    margin-top: -24px;
    position: relative;
    z-index: 10;
    padding: 0 0 2rem;
}

.hp-filters-card {
    background: #fff;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, .1);
    border-top: 4px solid var(--hp-accent);
    color: var(--hp-text);
}

.hp-filters-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .hp-filters-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .hp-filters-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.hp-filters-grid .form-label {
    font-size: .78rem;
    font-weight: 600;
    color: var(--hp-green);
    margin-bottom: 4px;
    display: block;
}

#hunting-parties-app.haf-picker-open .hp-filters-card {
    position: relative;
    z-index: 30;
}

#hunting-parties-app .hp-field.hp-field-raised {
    position: relative;
    z-index: 25;
}

.hp-text-input,
.hp-filters-grid select,
.hp-filters-grid input {
    width: 100%;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 10px 12px;
    font-size: .9rem;
}

.hp-filters-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: space-between;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #eee;
}

.hp-btn-filter {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: #fff;
    border: none;
    padding: 10px 22px;
    border-radius: 50px;
    font-weight: 600;
    transition: transform .2s, box-shadow .2s;
}

.hp-btn-filter:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, .35);
    color: #fff;
}

.hp-btn-reset {
    background: #fff;
    border: 1px solid #dee2e6;
    color: #495057;
    padding: 10px 18px;
    border-radius: 50px;
    font-weight: 600;
}

/* Hartă + listă */
.hp-main {
    display: grid;
    gap: 20px;
    padding-bottom: 2rem;
}

@media (min-width: 992px) {
    .hp-main {
        grid-template-columns: 1.1fr 1fr;
        align-items: start;
    }
}

.hp-embedded .hp-map-panel {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, .1);
    border-top: 4px solid var(--hp-green);
    min-height: 320px;
}

.hp-map {
    height: 380px;
    width: 100%;
}

@media (min-width: 992px) {
    .hp-map {
        height: 520px;
    }
}

.hp-map-wrap {
    position: relative;
}

.hp-map-legend {
    position: absolute;
    bottom: 16px;
    left: 16px;
    z-index: 500;
    background: rgba(255, 255, 255, .95);
    border-radius: 10px;
    padding: 10px 14px;
    color: var(--hp-text);
    font-size: .8rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
}

.hp-legend-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 6px;
}

.hp-legend-dot.red { background: var(--hp-red); }
.hp-legend-dot.orange { background: var(--hp-orange); }
.hp-legend-dot.green { background: var(--hp-finished); }

/* Listă */
.hp-embedded .hp-list-panel {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, .1);
    border-top: 4px solid var(--hp-accent);
    padding: 16px;
    max-height: none;
}

@media (min-width: 992px) {
    .hp-embedded .hp-list-panel {
        max-height: 560px;
        overflow-y: auto;
    }
}

.hp-list-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.hp-embedded .hp-list-head h2 {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--hp-green);
}

.hp-count-badge {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .85rem;
    font-weight: 700;
}

.hp-session-card {
    background: #f8f9fa;
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 12px;
    color: var(--hp-text);
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 12px;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s, border-color .2s;
    border: 2px solid transparent;
}

.hp-session-card:hover,
.hp-session-card.is-active {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, .1);
    border-color: rgba(40, 167, 69, .4);
    background: #fff;
}

.hp-session-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #fff;
}

.hp-session-icon.in_progress { background: linear-gradient(135deg, #dc3545, #c82333); }
.hp-session-icon.scheduled { background: linear-gradient(135deg, #fd7e14, #e8590c); }
.hp-session-icon.finished { background: linear-gradient(135deg, #28a745, #20c997); }

.hp-session-title {
    font-weight: 700;
    font-size: .95rem;
    margin: 0 0 2px;
    color: var(--hp-green-dark);
}

.hp-session-sub {
    font-size: .8rem;
    color: #6c757d;
    margin-bottom: 6px;
}

.hp-session-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: .78rem;
    color: #495057;
}

.hp-session-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.hp-status-badge {
    float: right;
    font-size: .72rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: .02em;
}

.hp-status-badge.in_progress { background: #fde8ea; color: #dc3545; }
.hp-status-badge.scheduled { background: #fff3e6; color: #e8590c; }
.hp-status-badge.finished { background: #e8f5e9; color: #2e7d32; }

.hp-session-link {
    display: inline-block;
    margin-top: 8px;
    font-size: .82rem;
    font-weight: 600;
    color: var(--hp-accent);
    text-decoration: none;
}

.hp-embedded .hp-load-more {
    width: 100%;
    margin-top: 8px;
    padding: 12px;
    border: 2px dashed rgba(40, 167, 69, .35);
    background: transparent;
    color: var(--hp-green);
    border-radius: 12px;
    font-weight: 600;
    transition: background .2s, color .2s;
}

.hp-embedded .hp-load-more:hover:not(:disabled) {
    background: rgba(40, 167, 69, .08);
    color: var(--hp-green-dark);
}

.hp-embedded .hp-empty {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
}

/* Info row — carduri tip feature */
.hp-embedded .hp-info-row {
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr;
    padding: 0 0 2.5rem;
    border-top: none;
}

@media (min-width: 768px) {
    .hp-embedded .hp-info-row {
        grid-template-columns: repeat(4, 1fr);
    }
}

.hp-embedded .hp-info-item {
    text-align: center;
    padding: 1.5rem 1rem;
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, .08);
    border-top: 4px solid var(--hp-accent);
}

.hp-embedded .hp-info-item i {
    font-size: 1.75rem;
    color: var(--hp-accent);
    margin-bottom: 8px;
}

.hp-embedded .hp-info-item p {
    margin: 0;
    font-size: .85rem;
    color: var(--hp-muted);
    line-height: 1.45;
}

/* Modal detalii */
.hp-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .55);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.hp-modal {
    background: #fff;
    border-radius: 16px;
    max-width: 480px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    color: var(--hp-text);
    padding: 24px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, .2);
}

.hp-modal h3 {
    color: var(--hp-green-dark);
    font-weight: 700;
}

#hunting-parties-app[v-cloak] {
    display: block !important;
    visibility: hidden;
    min-height: 70vh;
}
