/* ================================================================
   Parent Child Locations Widget — pcw-style.css
   v1.2.0
   Note: Column count and gap are controlled by Elementor's
   responsive controls. The grid/breakpoint CSS here is a
   sensible fallback for shortcode/classic widget usage only.
   ================================================================ */

/* ── Grid ─────────────────────────────────────────────────────── */
.pcw-grid {
    display: grid;
    gap: 32px;
    width: 100%;
    /* Default column layout for shortcode/classic widget */
    grid-template-columns: repeat(2, 1fr);
}

/* Column helpers used by shortcode/classic widget */
.pcw-cols-1 { grid-template-columns: 1fr; }
.pcw-cols-2 { grid-template-columns: repeat(2, 1fr); }
.pcw-cols-3 { grid-template-columns: repeat(3, 1fr); }
.pcw-cols-4 { grid-template-columns: repeat(4, 1fr); }
.pcw-cols-5 { grid-template-columns: repeat(5, 1fr); }
.pcw-cols-6 { grid-template-columns: repeat(6, 1fr); }

/* Shortcode/classic widget responsive fallbacks */
@media (max-width: 900px) {
    .pcw-cols-4,
    .pcw-cols-5,
    .pcw-cols-6 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
    .pcw-cols-3,
    .pcw-cols-4,
    .pcw-cols-5,
    .pcw-cols-6 { grid-template-columns: repeat(2, 1fr); gap: 24px; }
}
@media (max-width: 480px) {
    .pcw-grid,
    .pcw-cols-2,
    .pcw-cols-3,
    .pcw-cols-4,
    .pcw-cols-5,
    .pcw-cols-6 {
        grid-template-columns: 1fr !important;
        gap: 16px;
    }
}

/* ── Group ────────────────────────────────────────────────────── */
.pcw-group {
    min-width: 0; /* prevent grid overflow */
}

/* ── Parent header ────────────────────────────────────────────── */
.pcw-parent-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    line-height: 1.2;
}

/* ── Icon wrapper ─────────────────────────────────────────────── */
.pcw-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    transition: background-color 0.15s ease, opacity 0.15s ease;
}

/* Emoji / text icon */
.pcw-icon--emoji {
    background-color: #1a4a8a;
    border-radius: 50%;
    color: #fff;
    font-size: 0.8rem;
}

/* Image icon */
.pcw-icon--image {
    background: none;
    border-radius: 0;
    width: auto;
    height: auto;
}

.pcw-icon-img {
    display: block;
    width: 28px;
    height: 28px;
    object-fit: contain;
    transition: opacity 0.15s ease;
}

/* ── Parent name / link ───────────────────────────────────────── */
.pcw-parent-link,
.pcw-parent-name {
    font-weight: 700;
    font-size: 1rem;
    color: inherit;
    text-decoration: none;
}
.pcw-parent-link:hover {
    text-decoration: underline;
}

.pcw-count {
    font-size: 0.8rem;
    font-weight: 400;
    color: #888;
    margin-left: 2px;
}

/* ── Children list ────────────────────────────────────────────── */
.pcw-children {
    list-style: none;
    margin: 0;
    padding: 0;
}
.pcw-child {
    margin-bottom: 4px;
    line-height: 1.5;
}
.pcw-child a {
    text-decoration: none;
    font-size: 0.95rem;
    color: #1a4a8a;
    transition: color 0.15s ease;
}
.pcw-child a:hover {
    color: #0d2f5e;
    text-decoration: underline;
}

/* ── Empty content — base ─────────────────────────────────────── */
.pcw-no-content {
    cursor: default;
    display: inline;
    transition: none;
}

/* Muted (default) */
.pcw-no-content--muted {
    color: #999;
    opacity: 0.7;
}

/* Normal — plain text colour */
.pcw-no-content--normal {
    color: inherit;
}

/* Italic */
.pcw-no-content--italic {
    font-style: italic;
    color: #888;
}

/* Strikethrough */
.pcw-no-content--strikethrough {
    text-decoration: line-through;
    color: #aaa;
}

/* County (parent) empty items — override independently via Elementor */
.pcw-no-content--parent {
    /* Elementor targets this class separately */
}

/* Suffix label */
.pcw-no-content-label {
    display: inline;
    margin-left: 4px;
    font-size: 0.8em;
}

/* ── Empty state ──────────────────────────────────────────────── */
.pcw-empty {
    color: #888;
    font-style: italic;
}
