/* Partners Directory Section (Dawaii) */
.pn-section {
    --pn-accent: #0d9488;
    --pn-accent-hover: #0b7a70;
    --pn-accent-soft: #e6f7f5;
    --pn-ink: #10243e;
    --pn-muted: #5b6b76;
    --pn-card: #ffffff;
    --pn-line: #e2eeec;
    --pn-dark: #0f2b3d;
    --pn-dark-card: #15374c;
    --pn-dark-muted: #9fb3bd;
    color: var(--pn-ink);
    padding: 70px 0 0 !important;
}

[data-theme="dark"] .pn-section {
    --pn-accent: #2dd4bf;
    --pn-accent-hover: #5eead4;
    --pn-accent-soft: rgba(45, 212, 191, 0.12);
    --pn-ink: #e2e8f0;
    --pn-muted: #94a3b8;
    --pn-card: #1e293b;
    --pn-line: #334155;
}

.pn-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* Header */
.pn-header {
    max-width: 820px;
    margin: 0 auto 40px;
    text-align: center;
}

.pn-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--pn-accent-soft);
    color: var(--pn-accent);
    font-size: 13px;
    font-weight: 700;
    padding: 8px 20px;
    border-radius: 999px;
    margin-bottom: 22px;
}

.pn-title {
    font-size: clamp(26px, 4vw, 38px);
    font-weight: 800;
    line-height: 1.35;
    margin: 0 0 18px;
    color: var(--pn-ink);
}

.pn-subtitle {
    font-size: 16px;
    line-height: 1.95;
    color: var(--pn-muted);
    margin: 0;
}

/* Stats */
.pn-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 64px;
}

.pn-stat {
    background: var(--pn-card);
    border: 1px solid var(--pn-line);
    border-radius: 16px;
    padding: 26px 18px;
    text-align: center;
}

.pn-stat-value {
    font-size: 26px;
    font-weight: 800;
    color: var(--pn-accent);
    margin-bottom: 6px;
}

.pn-stat-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--pn-muted);
}

/* Directory */
.pn-list-head {
    text-align: center;
    margin-bottom: 24px;
}

.pn-list-title {
    font-size: 24px;
    font-weight: 800;
    margin: 0 0 8px;
    color: var(--pn-ink);
}

.pn-list-sub {
    font-size: 14px;
    color: var(--pn-muted);
    margin: 0;
}

.pn-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 32px;
}

.pn-chip {
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    min-height: 44px;
    padding: 10px 22px;
    border-radius: 999px;
    border: 1.5px solid var(--pn-line);
    background: var(--pn-card);
    color: var(--pn-ink);
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.pn-chip:hover {
    border-color: var(--pn-accent);
}

.pn-chip.is-active {
    background: var(--pn-accent);
    border-color: var(--pn-accent);
    color: #ffffff;
}

[data-theme="dark"] .pn-chip.is-active {
    color: #0f172a;
}

.pn-chip:focus-visible,
.pn-btn:focus-visible {
    outline: 3px solid var(--pn-accent);
    outline-offset: 3px;
}

.pn-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 80px;
}

/* Partner card: wide logo plate, name + verified mark, facility type, booking action */
.pn-card {
    background: var(--pn-card);
    border: 1px solid var(--pn-line);
    border-radius: 20px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    text-align: start;
    box-shadow: 0 1px 2px rgba(13, 37, 63, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.pn-card[hidden] {
    display: none;
}

.pn-card:hover {
    transform: translateY(-3px);
    border-color: rgba(15, 118, 110, 0.35);
    box-shadow: 0 12px 28px rgba(13, 37, 63, 0.08);
}

.pn-logo {
    height: 132px;
    border-radius: 14px;
    background: #ffffff;
    border: 1px solid #edf1f4;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

[data-theme="dark"] .pn-logo {
    background: #ffffff;
}

.pn-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.pn-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 6px;
}

.pn-name-row {
    display: flex;
    align-items: flex-start;
    gap: 6px;
}

.pn-name {
    font-size: 17px;
    font-weight: 800;
    line-height: 1.4;
    margin: 0;
    color: var(--pn-ink);
}

.pn-verified-mark {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
    fill: var(--pn-accent);
}

.pn-verified-mark .pn-check {
    fill: none;
    stroke: #ffffff;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

[data-theme="dark"] .pn-verified-mark .pn-check {
    stroke: #0d253f;
}

.pn-cat {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 999px;
    background: #eef2f5;
    color: var(--pn-muted);
    font-size: 13px;
    font-weight: 700;
}

[data-theme="dark"] .pn-cat {
    background: rgba(148, 163, 184, 0.14);
}

.pn-cat-icon {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: var(--pn-accent);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pn-cat-icon-bold {
    stroke-width: 3;
}

.pn-book {
    margin-top: auto;
    min-height: 44px;
    border-radius: 12px;
    border: 1.5px solid var(--pn-accent);
    background: transparent;
    color: var(--pn-accent);
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.pn-book:hover {
    background: #0f766e;
    border-color: #0f766e;
    color: #ffffff;
}

.pn-book:focus-visible,
.pn-join-btn:focus-visible {
    outline: 3px solid var(--pn-accent);
    outline-offset: 3px;
}

/* "Your facility here?" card */
.pn-join {
    border: 2px dashed #b9cfcc;
    background: #fbfcfd;
    box-shadow: none;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
    gap: 12px;
}

[data-theme="dark"] .pn-join {
    background: transparent;
    border-color: rgba(148, 163, 184, 0.35);
}

.pn-join-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: var(--pn-accent-soft);
    color: var(--pn-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.pn-join-title {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
    color: var(--pn-ink);
}

.pn-join-text {
    margin: 0;
    font-size: 14px;
    line-height: 1.7;
    color: var(--pn-muted);
}

.pn-join-btn {
    min-height: 44px;
    padding: 0 22px;
    border-radius: 12px;
    background: #0f766e;
    color: #ffffff !important;
    font-size: 15px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.pn-join-btn:hover {
    background: #0b5f58;
}

.pn-chip-count {
    opacity: 0.7;
    font-weight: 500;
}

/* "View all" toggle under the partner grid */
.pn-more-wrap {
    display: flex;
    justify-content: center;
    margin: -48px 0 80px;
}

.pn-more-wrap[hidden] {
    display: none;
}

.pn-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    min-height: 46px;
    padding: 12px 28px;
    border-radius: 999px;
    border: 1.5px solid var(--pn-accent);
    background: var(--pn-card);
    color: var(--pn-accent);
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.pn-more-btn:hover {
    background: var(--pn-accent);
    color: #ffffff;
}

[data-theme="dark"] .pn-more-btn:hover {
    color: #0f172a;
}

.pn-more-btn:focus-visible {
    outline: 3px solid var(--pn-accent);
    outline-offset: 3px;
}

.pn-more-icon {
    font-size: 12px;
    transition: transform 0.2s ease;
}

.pn-more-btn.is-expanded .pn-more-icon {
    transform: rotate(180deg);
}

/* Benefits */
.pn-benefits {
    width: 100%;
    background: var(--pn-dark);
    padding: 72px 0;
}

.pn-benefits-title {
    color: #ffffff;
    text-align: center;
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 12px;
}

.pn-benefits-sub {
    color: var(--pn-dark-muted);
    text-align: center;
    font-size: 14px;
    margin: 0 0 44px;
}

.pn-benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.pn-benefit {
    background: var(--pn-dark-card);
    border-radius: 16px;
    padding: 28px 20px;
    text-align: center;
}

.pn-benefit-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #0d9488;
    color: #ffffff;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.pn-benefit h4 {
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 8px;
}

.pn-benefit p {
    color: var(--pn-dark-muted);
    font-size: 13px;
    line-height: 1.8;
    margin: 0;
}

/* CTA */
.pn-cta {
    width: 100%;
    padding: 72px 20px;
    text-align: center;
    box-sizing: border-box;
}

.pn-cta-title {
    font-size: 26px;
    font-weight: 800;
    margin: 0 0 14px;
    color: var(--pn-ink);
}

.pn-cta-sub {
    font-size: 15px;
    color: var(--pn-muted);
    margin: 0 0 30px;
}

.pn-cta-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

.pn-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 14px 34px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.pn-btn-primary {
    background: #0d9488;
    color: #ffffff;
}

.pn-btn-primary:hover {
    background: #0b7a70;
    color: #ffffff;
}

.pn-btn-secondary {
    background: var(--pn-card);
    color: var(--pn-ink);
    border: 1.5px solid var(--pn-line);
}

.pn-btn-secondary:hover {
    border-color: var(--pn-accent);
    color: var(--pn-ink);
}

/* Responsive */
@media (max-width: 992px) {
    .pn-stats,
    .pn-grid,
    .pn-benefits-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    .pn-stats,
    .pn-grid {
        gap: 12px;
    }

    .pn-benefits-grid {
        grid-template-columns: 1fr;
    }

    .pn-stat {
        padding: 20px 12px;
    }

    .pn-card {
        padding: 10px;
        gap: 10px;
        border-radius: 18px;
    }

    .pn-logo {
        height: 96px;
        border-radius: 12px;
    }


    .pn-info {
        padding: 0 4px;
        gap: 6px;
    }

    .pn-name {
        font-size: 14px;
    }

    .pn-verified-mark {
        width: 15px;
        height: 15px;
    }

    .pn-cat {
        padding: 0;
        background: none;
        font-size: 12px;
    }

    .pn-book {
        font-size: 14px;
        border-radius: 10px;
    }

    .pn-join {
        padding: 14px;
        gap: 8px;
    }

    .pn-join-text {
        display: none;
    }

    .pn-btn {
        width: 100%;
    }
}

/* Phones: the filter chips scroll sideways instead of wrapping */
@media (max-width: 600px) {
    .pn-filters {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        margin-inline: -20px;
        padding: 0 20px 4px;
        scrollbar-width: none;
    }

    .pn-chip {
        flex-shrink: 0;
        white-space: nowrap;
    }

    .pn-cat {
        padding: 0;
        background: none;
        font-size: 12px;
    }

    .pn-name {
        font-size: 15px;
    }
}

    .pn-card {
        cursor: pointer;
    }

    .pn-card.pn-join {
        cursor: default;
    }

    .pn-meta-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        flex-wrap: wrap;
        font-size: 12px;
        margin-top: -2px;
    }

    .pn-location {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        color: var(--pn-muted);
        font-weight: 600;
    }

    .pn-location i {
        color: #ef4444;
        font-size: 11px;
    }

    .pn-rating {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        background: #fef3c7;
        color: #b45309;
        font-weight: 800;
        padding: 2px 7px;
        border-radius: 6px;
        font-size: 11px;
    }

    [data-theme="dark"] .pn-rating {
        background: rgba(245, 158, 11, 0.15);
        color: #fbbf24;
    }

    .pn-rating i {
        color: #f59e0b;
        font-size: 10px;
    }

    .pn-card-footer {
        margin-top: auto;
        display: flex;
        flex-direction: column;
    }

    .pn-card-details-btn {
        width: 100%;
        min-height: 44px;
        border-radius: 12px;
        border: 1.5px solid #0d9488;
        background: rgba(13, 148, 136, 0.08);
        color: #0d9488;
        font-family: inherit;
        font-size: 14px;
        font-weight: 700;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .pn-arrow-icon {
        font-size: 11px;
        transition: transform 0.2s ease;
    }

    [dir="ltr"] .pn-arrow-icon {
        transform: rotate(180deg);
    }

    .pn-card:hover .pn-card-details-btn {
        background: #0d9488;
        border-color: #0d9488;
        color: #ffffff;
        box-shadow: 0 4px 12px rgba(13, 148, 136, 0.25);
    }

    .pn-card:hover .pn-arrow-icon {
        transform: translateX(-4px);
    }

    [dir="ltr"] .pn-card:hover .pn-arrow-icon {
        transform: rotate(180deg) translateX(-4px);
    }

    [data-theme="dark"] .pn-card-details-btn {
        background: rgba(45, 212, 191, 0.12);
        border-color: rgba(45, 212, 191, 0.3);
        color: #2dd4bf;
    }

    [data-theme="dark"] .pn-card:hover .pn-card-details-btn {
        background: #0d9488;
        border-color: #0d9488;
        color: #ffffff;
        box-shadow: 0 4px 14px rgba(45, 212, 191, 0.2);
    }

    /* ==========================================================================
       Partner Details Modal Styles (Quick-View Modal) - Light & Dark Modes
       ========================================================================== */
    .pn-modal-overlay {
        position: fixed;
        inset: 0;
        background: rgba(8, 15, 23, 0.78);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        z-index: 999999;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 20px;
        box-sizing: border-box;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s ease;
    }

    .pn-modal-overlay.is-active {
        opacity: 1;
        visibility: visible;
    }

    .pn-modal-container {
        background: #ffffff;
        color: #0f172a;
        border: 1px solid #e2e8f0;
        border-radius: 24px;
        width: 100%;
        max-width: 640px;
        max-height: 90vh;
        overflow-y: auto;
        position: relative;
        padding: 32px;
        box-sizing: border-box;
        box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.35);
        transform: scale(0.96) translateY(12px);
        transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .pn-modal-overlay.is-active .pn-modal-container {
        transform: scale(1) translateY(0);
    }

    /* Modal Close Button */
    .pn-modal-close {
        position: absolute;
        top: 22px;
        left: 22px;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        border: 1px solid #e2e8f0;
        background: #f8fafc;
        color: #475569;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        font-size: 17px;
        transition: all 0.2s ease;
        z-index: 10;
    }

    [dir="ltr"] .pn-modal-close {
        left: auto;
        right: 22px;
    }

    .pn-modal-close:hover {
        background: #e2e8f0;
        color: #0f172a;
        transform: rotate(90deg);
    }

    /* Modal Header */
    .pn-modal-header {
        display: flex;
        align-items: center;
        gap: 20px;
        padding-bottom: 22px;
        border-bottom: 1.5px solid #f1f5f9;
        margin-bottom: 22px;
    }

    .pn-modal-logo {
        width: 94px;
        height: 94px;
        border-radius: 18px;
        background: #ffffff !important;
        border: 2px solid #e2e8f0;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        flex-shrink: 0;
        padding: 8px;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    }

    .pn-modal-logo img {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .pn-modal-title-area {
        flex: 1;
        min-width: 0;
    }

    .pn-modal-name-row {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 10px;
    }

    .pn-modal-title {
        font-size: 23px;
        font-weight: 800;
        margin: 0;
        color: #0f172a;
        line-height: 1.3;
    }

    .pn-modal-badges {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-wrap: wrap;
    }

    .pn-modal-badge {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        font-size: 12px;
        font-weight: 700;
        padding: 5px 12px;
        border-radius: 999px;
    }

    .pn-modal-badge-cat {
        background: #e6f7f5;
        color: #0d9488;
        border: 1px solid rgba(13, 148, 136, 0.2);
    }

    .pn-modal-badge-loc {
        background: #f1f5f9;
        color: #334155;
        border: 1px solid #e2e8f0;
    }

    .pn-modal-badge-loc i {
        color: #ef4444;
    }

    .pn-modal-badge-star {
        background: #fef3c7;
        color: #b45309;
        border: 1px solid #fde68a;
    }

    .pn-modal-badge-star i {
        color: #f59e0b;
    }

    .pn-modal-reviews {
        font-weight: 600;
        opacity: 0.85;
    }

    /* Modal Sections */
    .pn-modal-body {
        display: flex;
        flex-direction: column;
        gap: 18px;
    }

    .pn-modal-section {
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        border-radius: 16px;
        padding: 18px 20px;
    }

    .pn-modal-sec-title {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 15px;
        font-weight: 800;
        color: #0d9488;
        margin: 0 0 10px;
    }

    .pn-modal-desc {
        font-size: 14.5px;
        line-height: 1.75;
        color: #475569;
        margin: 0;
        font-weight: 500;
    }

    /* Specialties Tags */
    .pn-specialties-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
    }

    .pn-spec-tag {
        background: #ffffff;
        border: 1px solid #cbd5e1;
        color: #1e293b;
        padding: 7px 14px;
        border-radius: 10px;
        font-size: 13.5px;
        font-weight: 700;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    }

    .pn-spec-tag::before {
        content: "•";
        color: #0d9488;
        font-size: 18px;
        line-height: 1;
    }

    /* Info Grid: Hours & Insurance */
    .pn-modal-info-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .pn-info-box {
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        border-radius: 16px;
        padding: 16px;
        display: flex;
        align-items: flex-start;
        gap: 12px;
    }

    .pn-info-icon {
        width: 40px;
        height: 40px;
        border-radius: 12px;
        background: #e6f7f5;
        color: #0d9488;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18px;
        flex-shrink: 0;
    }

    .pn-info-content {
        display: flex;
        flex-direction: column;
        gap: 4px;
        font-size: 13.5px;
        line-height: 1.55;
    }

    .pn-info-content strong {
        color: #0f172a;
        font-size: 13.5px;
        font-weight: 800;
    }

    .pn-info-content span {
        color: #475569;
        font-weight: 500;
    }

    /* Modal Footer */
    .pn-modal-footer {
        display: flex;
        align-items: center;
        gap: 14px;
        margin-top: 24px;
        padding-top: 20px;
        border-top: 1.5px solid #f1f5f9;
    }

    .pn-modal-act-btn {
        flex: 1;
        min-height: 50px;
        border-radius: 14px;
        font-family: inherit;
        font-size: 15.5px;
        font-weight: 800;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        cursor: pointer;
        text-decoration: none;
        transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
        box-sizing: border-box;
    }

    .pn-modal-act-primary {
        background: linear-gradient(135deg, #0d9488 0%, #14b8a6 100%);
        color: #ffffff !important;
        border: none;
        box-shadow: 0 6px 20px rgba(13, 148, 136, 0.35);
    }

    .pn-modal-act-primary:hover {
        background: linear-gradient(135deg, #0b7a70 0%, #0d9488 100%);
        transform: translateY(-2px);
        box-shadow: 0 8px 24px rgba(13, 148, 136, 0.45);
    }

    .pn-modal-act-secondary {
        background: #25D366;
        color: #ffffff !important;
        border: none;
        box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
    }

    .pn-modal-act-secondary:hover {
        background: #1eb956;
        transform: translateY(-2px);
        box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
    }

    /* ==========================================================================
       DARK MODE OVERRIDES FOR DETAILS MODAL (High Contrast & Crystal Clear)
       ========================================================================== */
    [data-theme="dark"] .pn-modal-overlay {
        background: rgba(2, 6, 12, 0.85);
    }

    [data-theme="dark"] .pn-modal-container {
        background: #0b1a20 !important;
        color: #f1f5f9 !important;
        border: 1px solid rgba(45, 212, 191, 0.3) !important;
        box-shadow: 0 30px 80px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(45, 212, 191, 0.15) !important;
    }

    [data-theme="dark"] .pn-modal-close {
        background: #142831 !important;
        border-color: #1e3a45 !important;
        color: #e2e8f0 !important;
    }

    [data-theme="dark"] .pn-modal-close:hover {
        background: #1e3a45 !important;
        color: #2dd4bf !important;
    }

    [data-theme="dark"] .pn-modal-header {
        border-bottom-color: rgba(45, 212, 191, 0.18) !important;
    }

    [data-theme="dark"] .pn-modal-logo {
        background: #ffffff !important;
        border-color: rgba(45, 212, 191, 0.35) !important;
    }

    [data-theme="dark"] .pn-modal-title {
        color: #ffffff !important;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    }

    [data-theme="dark"] .pn-modal-badge-cat {
        background: rgba(45, 212, 191, 0.18) !important;
        color: #2dd4bf !important;
        border-color: rgba(45, 212, 191, 0.3) !important;
    }

    [data-theme="dark"] .pn-modal-badge-loc {
        background: #142831 !important;
        color: #e2e8f0 !important;
        border-color: #1e3a45 !important;
    }

    [data-theme="dark"] .pn-modal-badge-star {
        background: rgba(245, 158, 11, 0.2) !important;
        color: #fbbf24 !important;
        border-color: rgba(245, 158, 11, 0.35) !important;
    }

    [data-theme="dark"] .pn-modal-section {
        background: #11252d !important;
        border: 1px solid rgba(45, 212, 191, 0.18) !important;
    }

    [data-theme="dark"] .pn-modal-sec-title {
        color: #2dd4bf !important;
    }

    [data-theme="dark"] .pn-modal-desc {
        color: #cbd5e1 !important;
    }

    [data-theme="dark"] .pn-spec-tag {
        background: #0b1a20 !important;
        border: 1px solid #1e3a45 !important;
        color: #f1f5f9 !important;
        box-shadow: none;
    }

    [data-theme="dark"] .pn-spec-tag::before {
        color: #2dd4bf !important;
    }

    [data-theme="dark"] .pn-info-box {
        background: #11252d !important;
        border: 1px solid rgba(45, 212, 191, 0.18) !important;
    }

    [data-theme="dark"] .pn-info-icon {
        background: rgba(45, 212, 191, 0.15) !important;
        color: #2dd4bf !important;
    }

    [data-theme="dark"] .pn-info-content strong {
        color: #ffffff !important;
    }

    [data-theme="dark"] .pn-info-content span {
        color: #94a3b8 !important;
    }

    [data-theme="dark"] .pn-modal-footer {
        border-top-color: rgba(45, 212, 191, 0.18) !important;
    }

    [data-theme="dark"] .pn-modal-act-primary {
        background: linear-gradient(135deg, #0d9488 0%, #14b8a6 100%) !important;
        color: #ffffff !important;
    }

    @media (max-width: 600px) {
        .pn-modal-container {
            padding: 22px 18px;
        }

        .pn-modal-header {
            flex-direction: column;
            text-align: center;
        }

        .pn-modal-badges {
            justify-content: center;
        }

        .pn-modal-name-row {
            justify-content: center;
        }

        .pn-modal-info-grid {
            grid-template-columns: 1fr;
        }

        .pn-modal-footer {
            flex-direction: column;
        }

        .pn-modal-act-btn {
            width: 100%;
        }
    }

@media (prefers-reduced-motion: reduce) {
    .pn-card,
    .pn-chip,
    .pn-btn,
    .pn-modal-container,
    .pn-modal-overlay {
        transition: none;
    }

    .pn-card:hover {
        transform: none;
    }
}

/* ==========================================================================
   Partner views & visitor star rating
   ========================================================================== */
.pn-meta-stats {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.pn-views {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f1f5f9;
    color: #475569;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 6px;
    font-size: 11px;
}

.pn-views i {
    font-size: 10px;
}

[data-theme="dark"] .pn-views {
    background: rgba(148, 163, 184, 0.15);
    color: #cbd5e1;
}

.pn-modal-badge-views {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

[data-theme="dark"] .pn-modal-badge-views {
    background: #142831 !important;
    color: #e2e8f0 !important;
    border-color: #1e3a45 !important;
}

.pn-modal-badge[hidden],
.pn-rate-box[hidden] {
    display: none !important;
}

.pn-rate-box {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-top: 18px;
    padding: 14px 18px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 16px;
}

[data-theme="dark"] .pn-rate-box {
    background: rgba(245, 158, 11, 0.08);
    border-color: rgba(245, 158, 11, 0.3);
}

.pn-rate-label {
    font-size: 14px;
    font-weight: 800;
    color: #92400e;
}

[data-theme="dark"] .pn-rate-label {
    color: #fbbf24;
}

.pn-rate-stars {
    display: inline-flex;
    gap: 2px;
}

.pn-rate-star {
    background: none;
    border: 0;
    padding: 4px;
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
    color: #d6d3d1;
    border-radius: 6px;
    transition: transform 0.15s ease, color 0.15s ease;
}

[data-theme="dark"] .pn-rate-star {
    color: #44403c;
}

.pn-rate-star.is-on {
    color: #f59e0b;
}

.pn-rate-star:hover {
    transform: scale(1.15);
}

.pn-rate-star:focus-visible {
    outline: 2px solid #f59e0b;
    outline-offset: 1px;
}

.pn-rate-msg {
    flex-basis: 100%;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: #78716c;
    min-height: 1em;
}

.pn-rate-msg:empty {
    display: none;
}

[data-theme="dark"] .pn-rate-msg {
    color: #d6d3d1;
}

@media (prefers-reduced-motion: reduce) {
    .pn-rate-star {
        transition: none;
    }

    .pn-rate-star:hover {
        transform: none;
    }
}

/* ==========================================================================
   Partner visitor comments (form + approved list)
   ========================================================================== */
.pn-comment-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: none;
    border: 0;
    padding: 4px 6px;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    color: #b45309;
    cursor: pointer;
    border-radius: 6px;
}

.pn-comment-toggle:hover {
    text-decoration: underline;
}

.pn-comment-toggle:focus-visible {
    outline: 2px solid #f59e0b;
    outline-offset: 1px;
}

[data-theme="dark"] .pn-comment-toggle {
    color: #fbbf24;
}

.pn-comment-form {
    flex-basis: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pn-comment-form[hidden],
.pn-modal-section[hidden] {
    display: none !important;
}

.pn-comment-input {
    width: 100%;
    box-sizing: border-box;
    font: inherit;
    font-size: 14px;
    padding: 9px 12px;
    border: 1px solid #fde68a;
    border-radius: 10px;
    background: #fff;
    color: #1e293b;
    resize: vertical;
}

.pn-comment-input:focus {
    outline: none;
    border-color: #f59e0b;
    box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}

[data-theme="dark"] .pn-comment-input {
    background: #0b1d24;
    border-color: rgba(245, 158, 11, 0.3);
    color: #e2e8f0;
}

.pn-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.pn-comment-note {
    margin: 0;
    font-size: 12px;
    color: #78716c;
}

[data-theme="dark"] .pn-comment-note {
    color: #a8a29e;
}

.pn-comment-submit {
    align-self: flex-start;
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    padding: 9px 20px;
    border: 0;
    border-radius: 10px;
    background: #f59e0b;
    color: #fff;
    cursor: pointer;
}

.pn-comment-submit:hover {
    background: #d97706;
}

.pn-comment-submit:disabled {
    opacity: 0.6;
    cursor: wait;
}

.pn-comments-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 260px;
    overflow-y: auto;
}

.pn-comment {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 10px 14px;
}

[data-theme="dark"] .pn-comment {
    background: #0b1d24;
    border-color: rgba(45, 212, 191, 0.15);
}

.pn-comment-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 10px;
    font-size: 13px;
}

.pn-comment-head strong {
    color: #0f172a;
}

[data-theme="dark"] .pn-comment-head strong {
    color: #f1f5f9;
}

.pn-comment-stars {
    color: #f59e0b;
    letter-spacing: 1px;
}

.pn-comment-date {
    margin-inline-start: auto;
    font-size: 12px;
    color: #94a3b8;
}

.pn-comment p {
    margin: 6px 0 0;
    font-size: 14px;
    line-height: 1.7;
    color: #475569;
    white-space: pre-line;
    overflow-wrap: anywhere;
}

[data-theme="dark"] .pn-comment p {
    color: #cbd5e1;
}
