/* ═══════════════════════════════════
   DW Page Header Widget
   ═══════════════════════════════════ */

.dw-ph-wrap {
    width: 100%;
    box-sizing: border-box;
}

/* ── Top row ── */
.dw-ph-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.dw-ph-title-block { flex: 0 0 auto; }

.dw-ph-title {
    font-size: 28px;
    font-weight: 800;
    color: #111827;
    margin: 0 0 6px;
    line-height: 1.2;
}

.dw-ph-subtitle {
    font-size: 14px;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

/* ── Stats ── */
.dw-ph-stats {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
}

.dw-ph-stat {
    display: flex;
    align-items: center;
    gap: 10px;
}

.dw-ph-stat-icon {
    color: #f59e0b;
    flex-shrink: 0;
}
.dw-ph-stat:nth-child(1) .dw-ph-stat-icon { color: #6b7280; }
.dw-ph-stat:nth-child(2) .dw-ph-stat-icon { color: #6b7280; }
.dw-ph-stat:nth-child(3) .dw-ph-stat-icon { color: #f59e0b; }
.dw-ph-stat:nth-child(4) .dw-ph-stat-icon { color: #6b7280; }

.dw-ph-stat-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.dw-ph-stat-value {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
}
.dw-ph-stat-label {
    font-size: 12px;
    color: #6b7280;
}

/* ── Search row ── */
.dw-ph-search-row {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    height: 52px;
    box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

/* Vertical divider between segments */
.dw-ph-divider-v {
    width: 1px;
    height: 28px;
    background: #e5e7eb;
    flex-shrink: 0;
}

/* Category dropdown */
.dw-ph-cat-wrap {
    position: relative;
    display: flex;
    align-items: center;
    flex: 0 0 220px;
    padding: 0 14px;
}
.dw-ph-cat-select {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    border: none;
    outline: none;
    font-size: 13.5px;
    color: #374151;
    background: transparent;
    cursor: pointer;
    padding-right: 20px;
    font-weight: 500;
}
.dw-ph-cat-chevron {
    position: absolute;
    right: 14px;
    pointer-events: none;
    color: #9ca3af;
}

/* Keyword */
.dw-ph-keyword-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 16px;
}
.dw-ph-keyword-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 13.5px;
    color: #374151;
    background: transparent;
}
.dw-ph-keyword-input::placeholder { color: #9ca3af; }

/* Location */
.dw-ph-location-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 16px;
    flex: 0 0 200px;
    cursor: pointer;
}
.dw-ph-location-text {
    font-size: 13.5px;
    color: #374151;
    white-space: nowrap;
}

/* Search button */
.dw-ph-search-btn {
    height: 100%;
    padding: 0 28px;
    background: #1d4ed8;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s;
    flex-shrink: 0;
}
.dw-ph-search-btn:hover { background: #1e40af; }

/* ── Responsive ── */
@media (max-width: 1024px) {
    .dw-ph-stats { gap: 16px; }
    .dw-ph-cat-wrap { flex: 0 0 160px; }
    .dw-ph-location-wrap { flex: 0 0 160px; }
}

@media (max-width: 768px) {
    .dw-ph-top { flex-direction: column; gap: 16px; }
    .dw-ph-title { font-size: 22px; }
    .dw-ph-stats { gap: 14px; }

    .dw-ph-search-row {
        flex-wrap: wrap;
        height: auto;
        padding: 10px;
        gap: 8px;
        border-radius: 10px;
    }
    .dw-ph-divider-v { display: none; }
    .dw-ph-cat-wrap,
    .dw-ph-keyword-wrap,
    .dw-ph-location-wrap {
        flex: none;
        width: 100%;
        padding: 8px 10px;
        border: 1px solid #e5e7eb;
        border-radius: 7px;
    }
    .dw-ph-search-btn {
        width: 100%;
        height: 42px;
        border-radius: 7px;
    }
}
