/* ==========================================================================
   MekanRadar Premium Features - Lite White / Orange Final
   public/css/mr-place-features.css
   ========================================================================== */

.mrpd-features-panel {
    position: relative;
    overflow: hidden;
}

.mrpd-features-head {
    margin-bottom: 14px;
}

.mrpd-features-panel .mrpd-card-title {
    font-size: clamp(26px, 2.4vw, 38px);
    line-height: 1.02;
    letter-spacing: -0.055em;
}

.mrpd-features-panel .mrpd-card-lead {
    max-width: 880px;
    font-size: 14.5px;
    line-height: 1.6;
}

.mrpd-feature-group-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.mrpd-feature-group-card {
    position: relative;
    overflow: hidden;
    min-height: 132px;
    padding: 18px;
    border-radius: 22px;
    border: 1px solid rgba(34, 197, 94, .18);
    background: rgba(255, 255, 255, .052);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
}

.mrpd-feature-group-card::before {
    content: "";
    position: absolute;
    inset: 1px;
    border-radius: 21px;
    border: 1px solid rgba(255,255,255,.035);
    pointer-events: none;
}

.mrpd-feature-group-top {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}

.mrpd-feature-group-badge {
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(34, 197, 94, .12);
    color: var(--mr-place-green, var(--mr-green, #22c55e));
    border: 1px solid rgba(34, 197, 94, .22);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
    font-size: 19px;
    line-height: 1;
}

.mrpd-feature-group-meta {
    min-width: 0;
}

.mrpd-feature-group-title {
    margin: 2px 0 4px;
    color: var(--mr-place-heading, var(--mr-title, #ffffff));
    font-size: clamp(17px, 1.15vw, 22px);
    line-height: 1.12;
    letter-spacing: -0.03em;
    font-weight: 950;
}

.mrpd-feature-group-desc {
    margin: 0;
    color: var(--mr-place-muted, var(--mr-muted, rgba(221,255,239,.70)));
    font-size: 12.5px;
    line-height: 1.45;
    font-weight: 700;
}

.mrpd-feature-chip-wrap {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mrpd-feature-chip {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0 13px;
    border-radius: 999px;
    border: 1px solid rgba(34, 197, 94, .18);
    background: rgba(255,255,255,.045);
    color: var(--mr-place-text, var(--mr-text, rgba(244,255,248,.90)));
    box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
}

.mrpd-feature-chip-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13.5px;
    line-height: 1;
}

.mrpd-feature-chip-text {
    font-size: 12.5px;
    line-height: 1.15;
    font-weight: 850;
    letter-spacing: -0.005em;
    color: inherit;
    white-space: nowrap;
}

/* ==========================================================================
   Light mode - MekanRadar Lite White / Orange
   ========================================================================== */

html[data-mr-theme="light"] .mrpd-features-panel,
body[data-mr-theme="light"] .mrpd-features-panel {
    background: #ffffff !important;
    border-color: rgba(15, 23, 42, .085) !important;
    color: #172033 !important;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .045) !important;
}

html[data-mr-theme="light"] .mrpd-features-panel::before,
body[data-mr-theme="light"] .mrpd-features-panel::before,
html[data-mr-theme="light"] .mrpd-features-panel::after,
body[data-mr-theme="light"] .mrpd-features-panel::after {
    display: none !important;
    content: none !important;
}

html[data-mr-theme="light"] .mrpd-features-panel .mrpd-card-title,
body[data-mr-theme="light"] .mrpd-features-panel .mrpd-card-title,
html[data-mr-theme="light"] .mrpd-feature-group-title,
body[data-mr-theme="light"] .mrpd-feature-group-title {
    color: #111827 !important;
}

html[data-mr-theme="light"] .mrpd-features-panel .mrpd-card-lead,
body[data-mr-theme="light"] .mrpd-features-panel .mrpd-card-lead,
html[data-mr-theme="light"] .mrpd-feature-group-desc,
body[data-mr-theme="light"] .mrpd-feature-group-desc {
    color: rgba(71, 85, 105, .78) !important;
}

html[data-mr-theme="light"] .mrpd-feature-group-card,
body[data-mr-theme="light"] .mrpd-feature-group-card {
    background: #ffffff !important;
    border-color: rgba(15, 23, 42, .085) !important;
    box-shadow: 0 8px 20px rgba(15, 23, 42, .040) !important;
}

html[data-mr-theme="light"] .mrpd-feature-group-card::before,
body[data-mr-theme="light"] .mrpd-feature-group-card::before {
    border-color: rgba(255,255,255,.70) !important;
}

html[data-mr-theme="light"] .mrpd-feature-group-badge,
body[data-mr-theme="light"] .mrpd-feature-group-badge {
    background: rgba(255, 90, 31, .080) !important;
    border-color: rgba(255, 90, 31, .16) !important;
    color: #ff5a1f !important;
    box-shadow: none !important;
}

html[data-mr-theme="light"] .mrpd-feature-chip,
body[data-mr-theme="light"] .mrpd-feature-chip {
    background: #ffffff !important;
    border-color: rgba(15, 23, 42, .085) !important;
    color: #253047 !important;
    box-shadow: 0 6px 14px rgba(15, 23, 42, .030) !important;
}

html[data-mr-theme="light"] .mrpd-feature-chip:nth-child(4n+1),
body[data-mr-theme="light"] .mrpd-feature-chip:nth-child(4n+1) {
    border-color: rgba(255, 90, 31, .16) !important;
    background: rgba(255, 90, 31, .045) !important;
}

html[data-mr-theme="light"] .mrpd-feature-chip:nth-child(4n+2),
body[data-mr-theme="light"] .mrpd-feature-chip:nth-child(4n+2) {
    border-color: rgba(251, 146, 60, .16) !important;
    background: rgba(251, 146, 60, .045) !important;
}

html[data-mr-theme="light"] .mrpd-feature-chip:nth-child(4n+3),
body[data-mr-theme="light"] .mrpd-feature-chip:nth-child(4n+3) {
    border-color: rgba(14, 165, 233, .14) !important;
    background: rgba(14, 165, 233, .040) !important;
}

html[data-mr-theme="light"] .mrpd-feature-chip:nth-child(4n+4),
body[data-mr-theme="light"] .mrpd-feature-chip:nth-child(4n+4) {
    border-color: rgba(124, 58, 237, .13) !important;
    background: rgba(124, 58, 237, .035) !important;
}

html[data-mr-theme="light"] .mrpd-feature-chip-icon,
body[data-mr-theme="light"] .mrpd-feature-chip-icon {
    filter: none !important;
}

/* Tablet */
@media (max-width: 1100px) {
    .mrpd-feature-group-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .mrpd-feature-group-card {
        padding: 16px;
        border-radius: 20px;
    }

    .mrpd-feature-group-card::before {
        border-radius: 19px;
    }
}

/* Mobile */
@media (max-width: 760px) {
    .mrpd-features-panel .mrpd-card-title {
        font-size: 25px;
        line-height: 1.05;
    }

    .mrpd-features-panel .mrpd-card-lead {
        font-size: 13px;
        line-height: 1.5;
    }

    .mrpd-feature-group-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .mrpd-feature-group-card {
        min-height: auto;
        padding: 14px;
        border-radius: 18px;
    }

    .mrpd-feature-group-card::before {
        border-radius: 17px;
    }

    .mrpd-feature-group-top {
        gap: 10px;
        margin-bottom: 11px;
    }

    .mrpd-feature-group-badge {
        width: 38px;
        height: 38px;
        font-size: 16px;
    }

    .mrpd-feature-group-title {
        font-size: 17px;
        margin-top: 1px;
    }

    .mrpd-feature-group-desc {
        display: none;
    }

    .mrpd-feature-chip-wrap {
        gap: 7px;
    }

    .mrpd-feature-chip {
        min-height: 34px;
        padding: 0 11px;
        gap: 6px;
    }

    .mrpd-feature-chip-icon {
        font-size: 12.5px;
    }

    .mrpd-feature-chip-text {
        font-size: 12px;
        white-space: normal;
    }
}

/* Small mobile */
@media (max-width: 430px) {
    .mrpd-feature-group-card {
        padding: 13px;
    }

    .mrpd-feature-group-badge {
        width: 36px;
        height: 36px;
        font-size: 15px;
    }

    .mrpd-feature-chip {
        min-height: 32px;
        padding: 0 10px;
    }

    .mrpd-feature-chip-text {
        font-size: 11.5px;
    }
}