/* =========================================================
   PROFIL PLACÓWKI / SPECJALISTY
   style tylko dla template profile.php
   ========================================================= */


/* =========================================================
   RESET / UKRYCIE TYTUŁU WORDPRESS
   ========================================================= */

.dd-profile-page,
.dd-profile-page * {
    box-sizing: border-box;
}

body:has(.dd-profile-page) .entry-title,
body:has(.dd-profile-page) .page-title,
body:has(.dd-profile-page) h1.entry-title {
    display: none !important;
}


/* =========================================================
   GŁÓWNY LAYOUT
   ========================================================= */

.dd-profile-page {
    max-width: 1180px !important;
    width: 100% !important;
    margin: 0 auto !important;
    padding: 40px 0 72px !important;
}

.dd-profile-layout,
.dd-profile-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 320px !important;
    gap: 28px !important;
    align-items: start !important;
}

.dd-profile-main {
    display: grid !important;
    gap: 20px !important;
    min-width: 0 !important;
}

.dd-profile-sidebar {
    display: grid !important;
    gap: 20px !important;
    min-width: 0 !important;
    position: sticky;
    top: 24px;
}


/* =========================================================
   KARTY
   ========================================================= */

.dd-profile-page .card,
.dd-profile-card,
.dd-profile-hero,
.dd-profile-section,
.dd-profile-content-card,
.dd-sidebar-box,
.dd-profile-sidebar-box {
    background: var(--dd-white, #ffffff) !important;
    border: 1px solid var(--dd-border-soft, #edf0f5) !important;
    border-radius: 16px !important;
    box-shadow: 0 8px 22px rgba(12, 10, 52, 0.04) !important;
}

.dd-profile-hero {
    padding: 28px !important;
    margin: 0 !important;
}


/* =========================================================
   HERO PROFILU
   ========================================================= */

.dd-profile-hero-content,
.dd-profile-hero__content {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 150px !important;
    gap: 28px !important;
    align-items: center !important;
}

.dd-profile-hero-text,
.dd-profile-hero__text {
    min-width: 0;
}

.dd-profile-type {
    display: inline-flex;
    margin: 0 0 10px !important;
    color: var(--dd-orange, #e06f58) !important;
    font-size: 13px !important;
    font-weight: 700 !important;
}

.dd-profile-title {
    margin: 0 0 12px !important;
    color: var(--dd-navy, #080B3F) !important;
    font-size: 32px !important;
    line-height: 1.15 !important;
    font-weight: 800 !important;
    letter-spacing: -0.02em !important;
}

.dd-profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-bottom: 18px;
    color: #554f75;
    font-size: 14px;
}

.dd-profile-meta span + span::before {
    content: "•";
    margin-right: 12px;
    color: #b8b5c7;
}

.dd-profile-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.dd-badge,
.dd-profile-badge {
    display: inline-flex !important;
    align-items: center !important;
    min-height: 32px !important;
    padding: 7px 13px !important;
    background: #f6f4f3 !important;
    border-radius: 999px !important;
    color: #302955 !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
}

.dd-profile-hero-media,
.dd-profile-hero__media {
    width: 150px !important;
    height: 120px !important;
    border-radius: 14px !important;
    overflow: hidden !important;
    background: #f4f5f8 !important;
}

.dd-profile-hero-media img,
.dd-profile-hero__media img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
}

.dd-profile-placeholder {
    width: 100%;
    height: 100%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 14px;
    text-align: center;
    color: #554f75;
    font-size: 13px;
}


/* =========================================================
   KARTA TREŚCI
   ========================================================= */

.dd-profile-section,
.dd-profile-content-card {
    overflow: hidden !important;
}


/* =========================================================
   ZAKŁADKI — TAK JAK W WYSZUKIWARCE
   ========================================================= */

.dd-profile-page .dd-tabs,
.dd-profile-page .dd-profile-tabs {
    display: flex !important;
    align-items: flex-end !important;
    gap: 34px !important;

    min-height: 58px !important;
    margin: 0 !important;
    padding: 0 28px !important;

    background: var(--dd-white, #ffffff) !important;
    border: 0 !important;
    border-bottom: 1px solid var(--dd-border-soft, #edf0f5) !important;

    box-shadow: none !important;
}

.dd-profile-page .dd-tab,
.dd-profile-page .dd-profile-tab,
.dd-profile-page .dd-tab:hover,
.dd-profile-page .dd-profile-tab:hover,
.dd-profile-page .dd-tab:focus,
.dd-profile-page .dd-profile-tab:focus,
.dd-profile-page .dd-tab:active,
.dd-profile-page .dd-profile-tab:active {
    appearance: none !important;
    -webkit-appearance: none !important;

    position: relative !important;

    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;

    height: 44px !important;
    min-height: 44px !important;
    padding: 0 0 12px !important;

    border: 0 !important;
    border-radius: 0 !important;

    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;

    color: #69748b !important;

    font-family: inherit !important;
    font-size: 15px !important;
    line-height: 1.3 !important;
    font-weight: 650 !important;

    box-shadow: none !important;
    outline: none !important;
    transform: none !important;
    text-decoration: none !important;
    text-shadow: none !important;

    cursor: default !important;
}

.dd-profile-page .dd-tab:hover,
.dd-profile-page .dd-profile-tab:hover,
.dd-profile-page .dd-tab:focus,
.dd-profile-page .dd-profile-tab:focus {
    color: var(--dd-navy, #080B3F) !important;
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
}

.dd-profile-page .dd-tab.is-active,
.dd-profile-page .dd-profile-tab.is-active,
.dd-profile-page .dd-tab.is-active:hover,
.dd-profile-page .dd-profile-tab.is-active:hover,
.dd-profile-page .dd-tab.is-active:focus,
.dd-profile-page .dd-profile-tab.is-active:focus {
    color: var(--dd-navy, #080B3F) !important;
    background: transparent !important;
    box-shadow: none !important;
}

.dd-profile-page .dd-tab.is-active::after,
.dd-profile-page .dd-profile-tab.is-active::after {
    content: "" !important;
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    bottom: -1px !important;

    height: 3px !important;
    border-radius: 999px !important;
    background: var(--dd-orange, #e06f58) !important;
}

.dd-profile-page .dd-tab:disabled,
.dd-profile-page .dd-profile-tab:disabled {
    opacity: 1 !important;
    color: #69748b !important;
    cursor: default !important;
}


/* =========================================================
   TREŚĆ PROFILU
   ========================================================= */

.dd-profile-content {
    padding: 28px !important;
    background: var(--dd-white, #ffffff) !important;
}

.dd-profile-content h2 {
    margin: 0 0 20px !important;
    color: var(--dd-navy, #080B3F) !important;
    font-size: 26px !important;
    line-height: 1.25 !important;
    letter-spacing: -0.02em !important;
}

.dd-profile-content h3 {
    margin: 0 0 14px !important;
    color: var(--dd-navy, #080B3F) !important;
    font-size: 20px !important;
    line-height: 1.3 !important;
    letter-spacing: -0.02em !important;
}

.dd-profile-description,
.dd-profile-content p {
    color: #302955;
    font-size: 15px;
    line-height: 1.7;
}

.dd-profile-description p {
    margin: 0 0 14px;
}

.dd-profile-subsection {
    margin-top: 32px !important;
}


/* =========================================================
   SIDEBAR
   ========================================================= */

.dd-sidebar-box,
.dd-profile-sidebar-box {
    padding: 24px !important;
}

.dd-sidebar-box h3,
.dd-profile-sidebar-box h3 {
    margin: 0 0 16px !important;
    color: var(--dd-navy, #080B3F) !important;
    font-size: 17px !important;
    line-height: 1.3 !important;
    letter-spacing: -0.02em !important;
}

.dd-profile-cta-box,
.dd-cta-stack {
    display: grid !important;
    gap: 10px !important;
}


/* =========================================================
   BUTTONY PROFILU
   ========================================================= */

.dd-profile-btn,
.dd-btn {
    min-height: 44px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 18px !important;
    border-radius: 10px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    box-shadow: none !important;
    transform: none !important;
}

.dd-profile-btn-primary,
.dd-btn--primary {
    background: var(--dd-orange-strong, #d47a5b) !important;
    border: 1px solid var(--dd-orange-strong, #d47a5b) !important;
    color: #ffffff !important;
}

.dd-profile-btn-primary:hover,
.dd-btn--primary:hover {
    background: var(--dd-orange-hover, #c96e50) !important;
    border-color: var(--dd-orange-hover, #c96e50) !important;
    color: #ffffff !important;
    transform: none !important;
    box-shadow: none !important;
}

.dd-profile-btn-secondary,
.dd-btn--secondary {
    background: #ffffff !important;
    border: 1px solid #d8deea !important;
    color: var(--dd-navy, #080B3F) !important;
}

.dd-profile-btn-secondary:hover,
.dd-btn--secondary:hover {
    background: var(--dd-orange-soft, #fff3ef) !important;
    border-color: var(--dd-orange-border, #ffe1d7) !important;
    color: var(--dd-orange-hover, #c96e50) !important;
    transform: none !important;
    box-shadow: none !important;
}


/* =========================================================
   KONTAKT / LOKALIZACJA
   ========================================================= */

.dd-profile-contact-list,
.dd-contact-list {
    display: grid;
    gap: 14px;
}

.dd-profile-contact-item,
.dd-contact-item {
    display: grid;
    gap: 4px;
}

.dd-profile-contact-item span,
.dd-contact-label {
    color: #554f75;
    font-size: 12px;
}

.dd-profile-contact-item a,
.dd-contact-item a {
    color: var(--dd-navy, #080B3F) !important;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none !important;
    word-break: break-word;
}

.dd-profile-contact-item a:hover,
.dd-contact-item a:hover {
    color: var(--dd-orange, #e06f58) !important;
}

.dd-profile-address,
.dd-address {
    margin: 0 0 18px !important;
    color: #302955;
    font-style: normal;
    font-size: 14px;
    line-height: 1.7;
}

.dd-profile-map-link,
.dd-map-box {
    min-height: 128px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 18px;
    border-radius: 14px;
    background:
        linear-gradient(135deg, rgba(136, 196, 168, 0.22), transparent 35%),
        linear-gradient(45deg, transparent 46%, rgba(110, 139, 180, 0.24) 47%, rgba(110, 139, 180, 0.24) 49%, transparent 50%),
        #f2f4f5 !important;
    color: var(--dd-navy, #080B3F) !important;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none !important;
    box-shadow: none !important;
    transform: none !important;
}

.dd-profile-map-link:hover,
.dd-map-box:hover {
    color: var(--dd-orange, #e06f58) !important;
    box-shadow: none !important;
    transform: none !important;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1024px) {
    .dd-profile-page {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }

    .dd-profile-layout,
    .dd-profile-grid {
        grid-template-columns: 1fr !important;
    }

    .dd-profile-sidebar {
        position: static !important;
    }
}

@media (max-width: 720px) {
    .dd-profile-page {
        padding: 24px 12px 44px !important;
    }

    .dd-profile-main,
    .dd-profile-sidebar {
        gap: 16px !important;
    }

    .dd-profile-hero {
        padding: 22px !important;
    }

    .dd-profile-hero-content,
    .dd-profile-hero__content {
        grid-template-columns: 1fr !important;
    }

    .dd-profile-hero-media,
    .dd-profile-hero__media {
        width: 100% !important;
        height: 180px !important;
    }

    .dd-profile-title {
        font-size: 25px !important;
    }

    .dd-tabs,
    .dd-profile-tabs {
        overflow-x: auto !important;
        gap: 24px !important;
        padding: 0 22px !important;
    }

    .dd-tab,
    .dd-profile-tab {
        flex: 0 0 auto !important;
    }

    .dd-profile-content {
        padding: 24px !important;
    }
}