/* PH Dealer Page v1.0.1 */

.ph-dealer-page {
    font-family: inherit;
    max-width: 100%;
}

/* ── Tabs ─────────────────────────────────────────── */
.ph-dp-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    align-items: center;
}

.ph-dp-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1.5px solid #ddd;
    background: #fff;
    padding: 9px 20px;
    border-radius: 30px;
    font-size: 13px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all .18s;
    font-family: inherit;
    white-space: nowrap;
    line-height: 1.4;
}

.ph-dp-tab:hover {
    border-color: #aaa;
    color: #222;
}

.ph-dp-tab.ph-dp-tab-active {
    background: var(--wd-btn-bg, #2c6e49);
    border-color: var(--wd-btn-bg, #2c6e49);
    color: #fff;
}

.ph-dp-tab-count {
    background: rgba(0,0,0,.12);
    border-radius: 20px;
    padding: 1px 7px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.5;
}

.ph-dp-tab-active .ph-dp-tab-count {
    background: rgba(255,255,255,.3);
}

/* ── Harita ───────────────────────────────────────── */
.ph-dp-map-wrap {
    margin-bottom: 32px;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,.10);
    border: 1px solid #e5e5e5;
}

.ph-dp-map {
    width: 100%;
    display: block;
}

.ph-dp-map-notice {
    background: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #888;
    font-size: 14px;
    line-height: 1.8;
}

.ph-dp-map-notice a {
    color: var(--wd-btn-bg, #2c6e49);
    text-decoration: underline;
}

/* ── Grid ─────────────────────────────────────────── */
.ph-dp-grid {
    display: grid;
    grid-template-columns: repeat(var(--ph-cols, 3), 1fr);
    gap: 22px;
}

.ph-dp-hidden {
    display: none !important;
}

/* ── Kart ─────────────────────────────────────────── */
.ph-dp-card {
    background: #fff;
    border-radius: 12px;
    border: 1.5px solid #efefef;
    overflow: hidden;
    transition: transform .18s, box-shadow .18s, border-color .18s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.ph-dp-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,.10);
    border-color: #ddd;
}

.ph-dp-card.ph-dp-card-active {
    border-color: var(--wd-btn-bg, #2c6e49);
    box-shadow: 0 6px 24px rgba(44,110,73,.18);
}

.ph-dp-card-logo {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f7f7f7;
    border-bottom: 1px solid #f0f0f0;
    padding: 16px;
    box-sizing: border-box;
}

.ph-dp-card-logo img {
    max-width: 100%;
    max-height: 88px;
    object-fit: contain;
    display: block;
}

.ph-dp-card-logo.ph-dp-no-logo {
    font-size: 36px;
    color: #ccc;
}

.ph-dp-card-body {
    padding: 16px 18px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ph-dp-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 10px;
    align-self: flex-start;
    line-height: 1.5;
}

.ph-dp-badge.beauty   { background: #fce4ec; color: #c2185b; }
.ph-dp-badge.pharmacy { background: #e3f2fd; color: #1565c0; }

.ph-dp-card-name {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 10px;
    font-family: inherit;
    line-height: 1.3;
}

.ph-dp-card-row {
    display: flex;
    gap: 7px;
    align-items: flex-start;
    font-size: 12.5px;
    color: #555;
    margin-bottom: 7px;
    line-height: 1.5;
    font-family: inherit;
}

.ph-dp-card-row svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--wd-btn-bg, #2c6e49);
}

.ph-dp-card-row a {
    color: inherit;
    text-decoration: none;
}

.ph-dp-card-row a:hover {
    color: var(--wd-btn-bg, #2c6e49);
    text-decoration: underline;
}

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 900px) {
    .ph-dp-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

@media (max-width: 560px) {
    .ph-dp-grid { grid-template-columns: 1fr !important; }
    .ph-dp-tabs { gap: 6px; }
    .ph-dp-tab  { padding: 8px 14px; font-size: 12px; }
}
