/* Marketplace Specific Styles */

/* Hero Search Section */
.hero-marketplace {
    background: var(--gradient-dark);
    color: white;
    padding: 3.5rem 0;
    position: relative;
    overflow: visible;
}
.hero-search-box {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 15px 40px rgba(0,0,0,0.1);
    transform: translateY(3rem);
}
.hero-search-box .form-control, .hero-search-box .form-select {
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    border: 1px solid #e9ecef;
}

/* New Hero Providers */
.hero-providers {
    background: linear-gradient(180deg, #f3f8fc 0%, #eef5fb 100%);
    position: relative;
    overflow: hidden;
    padding: 5rem 0 6rem;
}

.hero-curve {
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: auto;
    z-index: 0;
}

/* --- GLASSMORPHISM ORBITAL BACKGROUND --- */
.hero-glassy {
    background: radial-gradient(circle at 10% 20%, #ffffff 0%, #ebf4fc 90%);
    position: relative;
    overflow: hidden;
    padding: 5rem 0 6rem;
}

.orbital-svg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
    filter: drop-shadow(0 0 10px rgba(255,255,255,1));
}

.glass-square {
    position: absolute;
    border-radius: 25%;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    z-index: 0;
}

/* Glass Blue */
.gb1 { 
    width: 60px; height: 60px; 
    background: linear-gradient(135deg, rgba(144, 196, 255, 0.7) 0%, rgba(102, 166, 255, 0.4) 100%);
    box-shadow: 0 10px 25px rgba(102, 166, 255, 0.3), inset 0 0 12px rgba(255,255,255,0.7);
    top: 25%; right: 15%; transform: rotate(15deg);
}

.gb2 { 
    width: 35px; height: 35px; 
    background: linear-gradient(135deg, rgba(144, 196, 255, 0.6) 0%, rgba(102, 166, 255, 0.3) 100%);
    box-shadow: 0 5px 15px rgba(102, 166, 255, 0.2), inset 0 0 8px rgba(255,255,255,0.6);
    top: 60%; right: 28%; transform: rotate(-10deg);
}

/* Glass Green */
.gg1 { 
    width: 45px; height: 45px; 
    background: linear-gradient(135deg, rgba(168, 224, 99, 0.6) 0%, rgba(86, 171, 47, 0.4) 100%);
    box-shadow: 0 10px 20px rgba(168, 224, 99, 0.2), inset 0 0 10px rgba(255,255,255,0.6);
    top: 40%; right: 8%; transform: rotate(-20deg);
}

.gg2 { 
    width: 30px; height: 30px; 
    background: linear-gradient(135deg, rgba(168, 224, 99, 0.5) 0%, rgba(86, 171, 47, 0.3) 100%);
    box-shadow: 0 5px 15px rgba(168, 224, 99, 0.15), inset 0 0 8px rgba(255,255,255,0.5);
    top: 15%; right: 30%; transform: rotate(25deg);
}

/* Glass White / Frosted */
.gw1 {
    width: 50px; height: 50px;
    background: rgba(255, 255, 255, 0.5);
    box-shadow: 0 10px 25px rgba(255,255,255,0.4), inset 0 0 15px rgba(255,255,255,0.9);
    top: 55%; right: 18%; transform: rotate(45deg);
}

.glass-particle {
    position: absolute;
    width: 4px; height: 4px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 0 8px 3px rgba(255,255,255,0.8);
    z-index: 0;
}
/* --- END GLASSMORPHISM --- */

.hero-square {
    position: absolute;
    border-radius: 12px;
    z-index: 0;
}
.company-card {
    background: white;
    border: 1px solid #edf2f7;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -1px rgba(0,0,0,0.03);
}
.company-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px -5px rgba(0,0,0,0.12), 0 10px 20px -5px rgba(0,0,0,0.04);
}
.company-card-img-wrap {
    position: relative;
    height: 220px;
    border-bottom: 0;
}
.company-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    transition: transform 0.5s ease;
}
.company-card:hover .company-card-img-wrap img {
    transform: scale(1.05);
}
.company-logo {
    position: absolute;
    bottom: 0;
    transform: translateY(50%);
    left: 20px;
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 20px;
    padding: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}
.company-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 0 !important;
}
.company-card-body {
    padding: 3rem 1.5rem 1.5rem;
}

/* Floating Heart */
.card-heart-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    color: #475569;
    transition: all 0.2s ease;
    z-index: 2;
    cursor: pointer;
    z-index: 10;
}
.card-heart-btn:hover, .card-heart-btn.active {
    color: #ef4444;
    transform: scale(1.1);
}

/* Badges */
.badge-premium-img {
    background: linear-gradient(135deg, #e0f970 0%, #c4ee33 100%);
    color: #1e293b;
    padding: 0.35rem 0.75rem;
    border-radius: 50rem;
    font-size: 0.7rem;
    font-weight: 700;
}
.badge-capacity-img {
    background: #059669;
    color: white;
    padding: 0.35rem 0.75rem;
    border-radius: 50rem;
    font-size: 0.7rem;
    font-weight: 600;
}

/* Service Tags */
.service-tag {
    background-color: #f0f7ff;
    color: #3b82f6;
    font-size: 0.75rem;
    padding: 0.35rem 0.65rem;
    border-radius: 6px;
    display: inline-block;
    margin-right: 0.3rem;
    margin-bottom: 0.4rem;
    font-weight: 500;
}

/* View Buttons */
.view-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.5rem;
    background: white;
    border: 1px solid #e2e8f0;
    color: #64748b;
    transition: all 0.2s;
    cursor: pointer;
}
.view-btn.active {
    background: #f0f7fc;
    color: #0056b3;
    border-color: #0056b3;
}
.view-btn:hover:not(.active) {
    background: #f8fafc;
}

/* Gradient Button */
.btn-primary-gradient {
    background: linear-gradient(90deg, #007bff 0%, #20c997 100%);
    color: white;
    border: none;
    font-weight: 500;
    transition: all 0.3s ease;
}
.btn-primary-gradient:hover {
    background: linear-gradient(90deg, #0069d9 0%, #1ba87e 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(32, 201, 151, 0.3);
}

/* Search Box Elevate */
.search-box-elevated {
    background: white;
    border-radius: 1.5rem;
    padding: 0.75rem 1rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.06);
    border: 1px solid #f1f5f9;
}
.search-input-group {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    border-radius: 1rem;
    background: #f8fafc;
    border: 1px solid transparent;
    transition: all 0.2s;
}
.search-input-group:focus-within {
    background: white;
    border-color: #cbd5e1;
    box-shadow: 0 0 0 4px rgba(0, 86, 179, 0.05);
}
.search-input-group input {
    background: transparent;
    border: none;
    box-shadow: none !important;
}

.btn-target {
    background: #f0f7fc;
    color: #0056b3;
    border: none;
    border-radius: 0.5rem;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.btn-target:hover {
    background: #e0f0fa;
}

/* Custom Switch Toggle */
.custom-switch .form-check-input {
    width: 2.75rem;
    height: 1.5rem;
    cursor: pointer;
}
.custom-switch .form-check-input:checked {
    background-color: #0056b3;
    border-color: #0056b3;
}

/* Fix for button centering and Enterprise look */
.btn-outline-dark-enterprise {
    border: 1px solid #cbd5e1;
    color: #475569;
    background: transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    transition: all 0.2s;
}
.btn-outline-dark-enterprise:hover {
    background: #f8fafc;
    color: #0f172a;
    border-color: #94a3b8;
}

/* Category Card */
.category-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    text-align: center;
    border: 1px solid rgba(0,0,0,0.05);
}
.category-icon {
    font-size: 3rem;
    color: var(--care-blue);
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Job Card */
.job-card {
    background: white;
    border-radius: 0.75rem;
    border-left: 4px solid var(--care-cyan);
    padding: 1.5rem;
}

/* Trust Section */
.trust-section {
    background-color: var(--care-white);
    padding: 4rem 0;
}

/* Footer */
.site-footer {
    background-color: var(--care-bg);
    color: rgba(255,255,255,0.7);
    padding: 4rem 0 2rem;
}
.site-footer h5 {
    color: white;
    margin-bottom: 1.5rem;
}
.site-footer a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.3s;
}
.site-footer a:hover {
    color: var(--care-cyan);
}

/* ==========================================
   PREMIUM ENTERPRISE LIST VIEW & SIDEBAR UX
   ========================================== */

/* Premium List View Card */
.company-list-card {
    border-radius: 16px !important;
    background: #ffffff;
    border: 1px solid #eef2f6 !important;
    position: relative;
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.02), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    cursor: pointer;
    overflow: hidden;
}

.company-list-card:hover {
    transform: translateY(-4px);
    border-color: #cbd5e1 !important;
    box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.06), 0 8px 10px -6px rgba(15, 23, 42, 0.02) !important;
}

/* Premium Selection State */
.company-list-card.selected-card {
    border-color: #0d6efd !important;
    background: linear-gradient(to right, #ffffff, #f8fafc);
    box-shadow: 0 0 0 2px #0d6efd, 0 20px 25px -5px rgba(13, 110, 253, 0.12), 0 8px 10px -6px rgba(13, 110, 253, 0.06) !important;
    animation: selectionPulse 0.4s ease-out;
}

@keyframes selectionPulse {
    0% {
        transform: scale(0.98);
        box-shadow: 0 0 0 0px #0d6efd, 0 0 0 0 rgba(13, 110, 253, 0);
    }
    50% {
        transform: scale(1.015);
        box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.25), 0 10px 15px rgba(13, 110, 253, 0.08);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 2px #0d6efd, 0 20px 25px -5px rgba(13, 110, 253, 0.12);
    }
}

/* Selected button style */
.company-list-card.selected-card .btn-anfrage {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
    border-color: transparent !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25) !important;
}

/* Image container with high aesthetics */
.list-card-img-wrap {
    width: 224px; 
    height: 178px; 
    flex-shrink: 0; 
    border-radius: 12px; 
    overflow: hidden; 
    position: relative;
    background: #f1f5f9;
}

.list-card-img-wrap .pz-cover-img {
    position: absolute; 
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
    object-fit: cover;
    transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.company-list-card:hover .list-card-img-wrap .pz-cover-img {
    transform: scale(1.05);
}

/* Premium Badges */
.badge-glass-premium {
    background: rgba(254, 243, 199, 0.9);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(252, 211, 77, 0.4);
    color: #92400e;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.3rem 0.6rem;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 6px rgba(252, 211, 77, 0.1);
}

.badge-glass-capacity {
    background: rgba(209, 250, 229, 0.9);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(110, 231, 183, 0.4);
    color: #065f46;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.3rem 0.6rem;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 6px rgba(110, 231, 183, 0.1);
}

/* Action Sidebar Glassmorphic card */
.b-card {
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(226, 232, 240, 0.9) !important;
    border-radius: 20px !important;
    box-shadow: 0 20px 45px -15px rgba(15, 23, 42, 0.06), 0 8px 16px -8px rgba(15, 23, 42, 0.04) !important;
    transition: all 0.3s ease;
}

/* Step Progress indicator premium */
.step-node {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    color: #94a3b8;
}

.step-node.active {
    background: #0d6efd;
    border-color: #0d6efd;
    color: #ffffff;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.18), 0 4px 10px rgba(13, 110, 253, 0.15);
}

.step-node.completed {
    background: #eff6ff;
    border-color: #0d6efd;
    color: #0d6efd;
}

.progress-bar-connector {
    position: absolute;
    top: 16px;
    left: 0;
    height: 2px;
    background: #e2e8f0;
    z-index: 1;
    transition: all 0.4s ease;
}

.progress-bar-connector-filled {
    position: absolute;
    top: 16px;
    left: 0;
    height: 2px;
    background: #0d6efd;
    z-index: 1.5;
    transition: all 0.4s ease;
}

/* Input enhancements */
.b-card .form-control, .b-card .form-select {
    border-radius: 10px !important;
    border: 1.5px solid #e2e8f0 !important;
    padding: 0.75rem 1rem !important;
    color: #1e293b !important;
    background-color: #f8fafc !important;
    transition: all 0.2s ease !important;
    font-size: 0.9rem !important;
}

.b-card .form-control:focus, .b-card .form-select:focus {
    border-color: #0d6efd !important;
    background-color: #ffffff !important;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.08) !important;
}

/* Custom Tab switch premium */
.active-tab-btn {
    background: #ffffff !important;
    color: #1e293b !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05), 0 1px 3px rgba(15, 23, 42, 0.03) !important;
}

/* Selected list items in sidebar */
.selected-item-card {
    border-radius: 10px !important;
    border: 1px solid #f1f5f9 !important;
    background: #ffffff !important;
    padding: 0.75rem !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.02) !important;
    transition: all 0.2s ease !important;
    animation: slideInItem 0.25s ease-out;
}

@keyframes slideInItem {
    0% { opacity: 0; transform: translateY(8px); }
    100% { opacity: 1; transform: translateY(0); }
}

.selected-item-card:hover {
    border-color: #e2e8f0 !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04) !important;
}

/* Fix for Sidebar cutoff on smaller screens */
#inquirySidebarContainer {
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    padding-right: 4px;
}
/* Custom scrollbar for sidebar */
#inquirySidebarContainer::-webkit-scrollbar {
    width: 6px;
}
#inquirySidebarContainer::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 10px;
}
#inquirySidebarContainer::-webkit-scrollbar-track {
    background-color: transparent;
}

/* ==========================================================================
   PFLEGEZENTRALE ENTERPRISE SILO UI (MATCHING REFERENCE DESIGN)
   Applies to /pflegedienste, /24-stunden-pflege, /pflegeheime, /alltagshilfe & all silos
   ========================================================================== */

.pz-silo-page-bg {
    background: linear-gradient(180deg, #eff5fc 0%, #f5f8fc 260px, #f6f9fc 100%);
    width: 100%;
}

.pz-silo-page-bg > .container-fluid,
.pz-silo-hero > .container-fluid,
.pz-bottom-trust-strip > .container-fluid,
.pz-fluid-shell {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: clamp(16px, 2.2vw, 44px) !important;
    padding-right: clamp(16px, 2.2vw, 44px) !important;
}

.pz-silo-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(95deg, #dcecfc 0%, #e7f2fd 46%, #f0f6fe 100%);
    border-bottom: 1px solid #d5e3f3;
    padding: 2.35rem 0 2.55rem;
    min-height: clamp(290px, 21vw, 375px);
    display: flex;
    align-items: center;
}

.pz-hero-photo-wrap {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 53%;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.25) 10%, rgba(0, 0, 0, 0.78) 24%, #000000 38%);
    mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.25) 10%, rgba(0, 0, 0, 0.78) 24%, #000000 38%);
}

.pz-hero-photo {
    width: 204%;
    max-width: none;
    height: 100%;
    margin-left: -104%;
    object-fit: cover;
    object-position: right 28%;
    display: block;
}

/* Warm Yellow Brush Sticker on Right Hero Photo */
.pz-yellow-brush {
    position: absolute;
    right: clamp(18px, 2.4vw, 44px);
    bottom: 20px;
    transform: rotate(-3.5deg);
    z-index: 3;
    background: linear-gradient(135deg, #fde047 0%, #facc15 100%);
    color: #0b2545;
    font-family: 'Outfit', 'Inter', sans-serif;
    font-weight: 800;
    font-size: 0.92rem;
    line-height: 1.25;
    padding: 0.68rem 1.25rem;
    border-radius: 22px 28px 20px 26px / 24px 18px 28px 20px;
    box-shadow: 0 10px 26px rgba(180, 130, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.65);
    pointer-events: none;
    max-width: 225px;
    text-align: left;
}

.pz-silo-title {
    font-family: 'Outfit', 'Inter', sans-serif;
    font-size: clamp(1.9rem, 2.5vw, 2.85rem);
    font-weight: 800;
    color: #0b2545;
    letter-spacing: -0.025em;
    line-height: 1.14;
    margin-bottom: 0.7rem;
    max-width: clamp(620px, 54vw, 1080px);
}

.pz-silo-subtitle {
    font-size: clamp(1rem, 1.05vw, 1.14rem);
    font-weight: 500;
    color: #1e3a5f;
    line-height: 1.5;
    max-width: clamp(600px, 52vw, 1000px);
    margin-bottom: 1.55rem;
}

/* Hero Search Row (4 Separate Crisp Controls in Frosted Tray) */
.pz-hero-search-tray {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem;
    background: rgba(255, 255, 255, 0.56);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.88);
    border-radius: 16px;
    padding: 0.55rem;
    width: 100%;
    max-width: clamp(950px, 60vw, 1360px);
    box-shadow: 0 14px 34px rgba(11, 37, 69, 0.08);
}

.pz-hero-input-box {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    background: #ffffff;
    border: 1px solid #dbe6f3;
    border-radius: 12px;
    padding: 0 0.95rem;
    height: 50px;
    box-shadow: 0 2px 6px rgba(11, 37, 69, 0.03);
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
    min-width: 0;
}

.pz-hero-input-box:focus-within {
    border-color: #1565c0;
    box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.12);
}

.pz-hero-input-box input {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: transparent !important;
    font-size: 0.92rem;
    font-weight: 500;
    color: #0b2545;
    width: 100%;
    height: 100%;
}

.pz-hero-input-box input::placeholder {
    color: #64748b;
    font-weight: 400;
}

.pz-locate-inline-btn {
    border: none;
    background: transparent;
    color: #64748b;
    padding: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    cursor: pointer;
    transition: color 0.15s ease, background 0.15s ease;
}

.pz-locate-inline-btn:hover {
    color: #1565c0;
    background: #eff6ff;
}

.pz-btn-suchen-blue {
    background: linear-gradient(180deg, #1976d2 0%, #0d47a1 100%);
    color: #ffffff !important;
    border: none;
    border-radius: 12px;
    height: 50px;
    padding: 0 1.75rem;
    font-weight: 700;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    white-space: nowrap;
    box-shadow: 0 6px 16px rgba(13, 71, 161, 0.25);
    transition: all 0.18s ease;
    cursor: pointer;
}

.pz-btn-suchen-blue:hover {
    background: linear-gradient(180deg, #1565c0 0%, #0a3880 100%);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(13, 71, 161, 0.32);
}

.pz-btn-ki-white {
    background: rgba(255, 255, 255, 0.95);
    color: #0b2545 !important;
    border: 1.5px solid #93c5fd;
    border-radius: 12px;
    height: 50px;
    padding: 0 1.25rem;
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(21, 101, 192, 0.08);
    transition: all 0.18s ease;
    cursor: pointer;
}

.pz-btn-ki-white:hover {
    background: #ffffff;
    border-color: #1565c0;
    color: #0d47a1 !important;
    transform: translateY(-1px);
}

/* Filter Pills Strip */
.pz-silo-filter-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1.15rem 0 0.85rem;
}

.pz-pill-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.48rem;
    background: #ffffff;
    border: 1px solid #dbe5f1;
    border-radius: 9999px;
    padding: 0.48rem 1.05rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #1e293b;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(15, 35, 65, 0.04);
    transition: all 0.18s ease;
    white-space: nowrap;
}

.pz-pill-chip:hover {
    border-color: #93c5fd;
    color: #0b2545;
    background: #f8fbff;
    transform: translateY(-1px);
}

.pz-pill-chip.active {
    background: #eff6ff;
    border-color: #1565c0;
    color: #0d47a1;
    box-shadow: 0 3px 10px rgba(21, 101, 192, 0.12);
}

.pz-sort-pill {
    display: inline-flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #dbe5f1;
    border-radius: 9999px;
    padding: 0.35rem 0.95rem;
    box-shadow: 0 2px 6px rgba(15, 35, 65, 0.04);
}

/* Provider Result Card (Matching Reference Mockup) */
.pz-silo-card {
    background: #ffffff;
    border: 1px solid #e1eaf4 !important;
    border-radius: 18px !important;
    padding: 0.95rem 1.05rem;
    box-shadow: 0 4px 18px rgba(15, 35, 65, 0.045);
    transition: all 0.22s ease !important;
}

.pz-silo-card h3 {
    font-size: 1.04rem !important;
}

.pz-silo-card:hover,
.pz-silo-card.pz-card-highlighted {
    border-color: #60a5fa !important;
    box-shadow: 0 12px 28px rgba(13, 71, 161, 0.11) !important;
    transform: translateY(-2px);
}

.pz-silo-thumb {
    width: 196px;
    height: 146px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    background: #e2e8f0;
}

.pz-silo-thumb img.pz-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.pz-silo-card:hover .pz-silo-thumb img.pz-cover-img {
    transform: scale(1.05);
}

.pz-ribbon-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.28rem 0.72rem;
    border-radius: 9999px;
    font-size: 0.74rem;
    font-weight: 800;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.18);
}

.pz-ribbon-gold {
    background: linear-gradient(135deg, #fef08a 0%, #f59e0b 55%, #d97706 100%);
    color: #3f1d06;
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow: 0 4px 12px rgba(180, 83, 9, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

/* ==========================================================================
   MANDATORY LUXURY GOLD SKIN UI FOR ALL PREMIUM COMPANIES
   ========================================================================== */
.pz-silo-card.pz-gold-skin {
    background: linear-gradient(135deg, #fffdf5 0%, #fef5d4 48%, #fffbeb 100%) !important;
    border: 1.5px solid #f59e0b !important;
    box-shadow: 0 10px 28px rgba(217, 119, 6, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 0 0 1px rgba(251, 191, 36, 0.25) !important;
    position: relative;
}

.pz-silo-card.pz-gold-skin::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 5px;
    background: linear-gradient(180deg, #fde047 0%, #f59e0b 50%, #b45309 100%);
    z-index: 3;
}

.pz-silo-card.pz-gold-skin:hover,
.pz-silo-card.pz-gold-skin.pz-card-highlighted {
    border-color: #d97706 !important;
    box-shadow: 0 16px 36px rgba(180, 83, 9, 0.24), 0 0 0 2px rgba(245, 158, 11, 0.36) !important;
    transform: translateY(-2px);
}

.pz-silo-card.pz-gold-skin .pz-silo-thumb {
    border: 2px solid rgba(245, 158, 11, 0.65);
    box-shadow: 0 6px 16px rgba(180, 83, 9, 0.16);
}

.pz-silo-card.pz-gold-skin .pz-card-pin-index {
    background: linear-gradient(135deg, #fde047 0%, #f59e0b 60%, #d97706 100%);
    color: #3f1d06;
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 3px 8px rgba(180, 83, 9, 0.28);
}

.pz-gold-inline-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.24rem;
    padding: 0.14rem 0.52rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #fef08a 0%, #fbbf24 100%);
    border: 1px solid #f59e0b;
    color: #78350f;
    font-size: 0.67rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    box-shadow: 0 2px 6px rgba(217, 119, 6, 0.16);
}

.pz-silo-card.pz-gold-skin .pz-service-check-pill {
    background: rgba(254, 243, 199, 0.9);
    border-color: rgba(245, 158, 11, 0.45);
    color: #92400e;
}

.pz-silo-card.pz-gold-skin .pz-card-right-col {
    border-left-color: rgba(245, 158, 11, 0.3) !important;
}

.pz-silo-card.pz-gold-skin .pz-btn-details-blue {
    background: linear-gradient(180deg, #f59e0b 0%, #d97706 55%, #b45309 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 6px 16px rgba(180, 83, 9, 0.3) !important;
}

.pz-silo-card.pz-gold-skin .pz-btn-details-blue:hover {
    background: linear-gradient(180deg, #d97706 0%, #b45309 60%, #92400e 100%) !important;
    box-shadow: 0 8px 20px rgba(146, 64, 14, 0.38) !important;
}

.pz-silo-card.pz-gold-skin .pz-btn-call-outline {
    background: #fffdf7;
    border-color: #f59e0b;
    color: #78350f !important;
}

.pz-silo-card.pz-gold-skin .pz-btn-call-outline i {
    color: #b45309 !important;
}

.pz-silo-card.pz-gold-skin .pz-btn-call-outline:hover {
    background: #fef3c7;
    border-color: #d97706;
    color: #451a03 !important;
}

/* Grid Card Gold Skin Fallback (_CompanyCardPartial) */
.company-card.company-card-gold {
    background: linear-gradient(155deg, #fffdf5 0%, #fef5d4 52%, #fffbeb 100%) !important;
    border: 1.5px solid #f59e0b !important;
    box-shadow: 0 12px 28px rgba(217, 119, 6, 0.16) !important;
}

.company-card.company-card-gold .company-logo {
    border: 2px solid #f59e0b;
}

.company-card.company-card-gold .service-tag {
    background-color: #fef3c7;
    color: #92400e;
    border: 1px solid rgba(245, 158, 11, 0.4);
}

.pz-ribbon-green {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: #ffffff;
}

.pz-service-check-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: #eef5ff;
    border: 1px solid #dbeafe;
    color: #155eef;
    border-radius: 9999px;
    padding: 0.2rem 0.56rem;
    font-size: 0.72rem;
    font-weight: 600;
    white-space: nowrap;
}

.pz-heart-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: #475569;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.pz-heart-btn:hover,
.pz-heart-btn.active {
    background: #fef2f2;
    color: #ef4444;
}

.pz-avail-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.32rem;
    background: #dcfce7;
    color: #15803d;
    border-radius: 9999px;
    padding: 0.34rem 0.85rem;
    font-size: 0.76rem;
    font-weight: 700;
    width: 100%;
}

.pz-avail-pill.on-request {
    background: #f1f5f9;
    color: #475569;
}

.pz-btn-details-blue {
    background: linear-gradient(180deg, #1976d2 0%, #0d47a1 100%);
    color: #ffffff !important;
    border: none;
    border-radius: 9999px;
    padding: 0.52rem 1rem;
    font-size: 0.84rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    text-decoration: none;
    width: 100%;
    box-shadow: 0 4px 12px rgba(13, 71, 161, 0.22);
    transition: all 0.18s ease;
}

.pz-btn-details-blue:hover {
    background: linear-gradient(180deg, #1565c0 0%, #0a3880 100%);
    color: #ffffff !important;
    transform: translateY(-1px);
}

.pz-btn-call-outline {
    background: #ffffff;
    color: #0b2545 !important;
    border: 1.5px solid #cbd5e1;
    border-radius: 9999px;
    padding: 0.48rem 1rem;
    font-size: 0.84rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    text-decoration: none;
    width: 100%;
    transition: all 0.18s ease;
}

.pz-btn-call-outline:hover {
    background: #f8fbff;
    border-color: #1565c0;
    color: #0d47a1 !important;
}

/* Right Map Card ("Anbieter in Ihrer Nähe") */
.pz-map-card {
    position: sticky;
    top: 82px;
    background: #ffffff;
    border: 1px solid #e1eaf4;
    border-radius: 20px;
    padding: 1rem;
    box-shadow: 0 8px 28px rgba(15, 35, 65, 0.06);
}

.pz-map-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.15rem 0.25rem 0.85rem;
}

.pz-card-pin-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    border-radius: 999px;
    background: linear-gradient(180deg, #1976d2 0%, #0d47a1 100%);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 2px 6px rgba(13, 71, 161, 0.25);
    flex-shrink: 0;
}

.pz-silo-card.pz-card-highlighted .pz-card-pin-index {
    background: linear-gradient(135deg, #fde047 0%, #f59e0b 100%);
    color: #0b2545;
}

.pz-card-address-trigger:hover {
    color: #0d47a1 !important;
    text-decoration: underline;
}

.pz-map-count-pill {
    display: inline-flex;
    align-items: center;
    background: #eef5ff;
    border: 1px solid #dbeafe;
    color: #155eef;
    border-radius: 999px;
    padding: 0.2rem 0.65rem;
    font-size: 0.74rem;
    font-weight: 700;
}

#providerListColumn.pz-page-loading {
    opacity: 0.52;
    pointer-events: none;
    transition: opacity 0.18s ease;
}

.pz-map-canvas-wrap {
    height: calc(100vh - 190px);
    min-height: 500px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    position: relative;
}

.pz-map-canvas-wrap .leaflet-tile-pane {
    filter: saturate(0.95) contrast(1.01) brightness(1.01);
}

/* Circular Zoom Controls like Reference Image */
.pz-map-canvas-wrap .leaflet-bar {
    border: none !important;
    box-shadow: none !important;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-right: 12px !important;
    margin-bottom: 14px !important;
}

.pz-map-canvas-wrap .leaflet-bar a {
    width: 36px !important;
    height: 36px !important;
    line-height: 34px !important;
    border-radius: 50% !important;
    background: #ffffff !important;
    color: #0b2545 !important;
    border: 1px solid #dbe5f1 !important;
    box-shadow: 0 4px 12px rgba(15, 35, 65, 0.14) !important;
    font-weight: 700 !important;
}

.pz-map-canvas-wrap .leaflet-bar a:hover {
    background: #eff6ff !important;
    color: #1565c0 !important;
}

/* Teardrop Map Markers (Blue + Featured Gold) */
.pz-teardrop-marker {
    background: transparent !important;
    border: none !important;
}

.pz-pin-svg {
    filter: drop-shadow(0 5px 10px rgba(11, 37, 69, 0.28));
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-origin: bottom center;
}

.pz-pin-svg.is-featured,
.pz-pin-svg:hover {
    transform: scale(1.22);
    filter: drop-shadow(0 8px 16px rgba(217, 119, 6, 0.42));
}

/* Floating White Popup Card on Map */
.leaflet-popup-content-wrapper {
    border-radius: 14px !important;
    box-shadow: 0 12px 30px rgba(11, 37, 69, 0.18) !important;
    border: 1px solid #e2eaf4;
    padding: 0 !important;
    overflow: hidden;
}

.leaflet-popup-content {
    margin: 0 !important;
    width: auto !important;
    min-width: 235px;
}

/* Bottom Trust & CTA Strip */
.pz-bottom-trust-strip {
    background: #ffffff;
    border-top: 1px solid #e1eaf4;
    border-bottom: 1px solid #e1eaf4;
    padding: 1.1rem 0;
    margin-top: 2rem;
}

.pz-trust-col {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding-right: 1.5rem;
    border-right: 1px solid #dce5f1;
}

.pz-trust-col:last-of-type {
    border-right: none;
}

@media (max-width: 991.98px) {
    .pz-hero-photo-wrap,
    .pz-yellow-brush {
        display: none;
    }
    .pz-silo-title,
    .pz-silo-subtitle,
    .pz-hero-search-tray {
        max-width: 100%;
    }
    .pz-trust-col {
        border-right: none;
        padding-right: 0;
    }
}

@media (max-width: 767.98px) {
    .pz-silo-thumb {
        width: 100%;
        height: 185px;
    }
}

/* ==========================================================================
   IMMOSCOUT24-INSPIRED FULL SPLIT-SCREEN WORKSPACE
   Left: Independent Vertical Scroll + 3-Col Card Grid | Right: Full-Fixed Map
   ========================================================================== */

:root {
    --pz-split-sticky-top: 66px;
}

.bc-header:has(#main-navbar.navbar-scrolled) {
    padding-top: var(--pz-split-sticky-top, 64px);
}

.pz-immo-split-shell {
    display: flex;
    align-items: stretch;
    width: 100%;
    max-width: 100%;
    background: #ffffff;
    border-bottom: 1px solid #dce6f2;
    height: calc(100vh - var(--pz-split-sticky-top, 64px));
    scroll-margin-top: var(--pz-split-sticky-top, 64px);
    min-height: 640px;
    position: relative;
}

/* Left Vertically Scrollable 3-Column Provider Grid Container (Aligned with Right Map Card) */
.pz-left-cards-scroll {
    max-height: calc(100vh - 161px);
    min-height: 500px;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior-y: contain;
    padding-right: 10px;
    padding-bottom: 0.5rem;
    scrollbar-width: auto;
    scrollbar-color: #94a3b8 #e8eef6;
}

.pz-left-cards-scroll::-webkit-scrollbar {
    width: 10px;
}

.pz-left-cards-scroll::-webkit-scrollbar-track {
    background: #e8eef6;
    border-radius: 999px;
}

.pz-left-cards-scroll::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 999px;
    border: 2px solid #e8eef6;
}

.pz-left-cards-scroll::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

/* Desktop Split Proportion: Flush Right Edge Map for Maximum Map Width (59% Left 3-Col / 41% Right Map) */
@media (min-width: 992px) {
    .pz-silo-page-bg > .pz-fluid-shell {
        padding-right: 0 !important;
    }

    .pz-silo-page-bg > .pz-fluid-shell > .pz-silo-filter-row {
        padding-right: 1rem;
    }

    #mainContent > .row {
        margin-right: 0 !important;
    }

    #mainContent > .row > #providerListColumn {
        flex: 0 0 59% !important;
        width: 59% !important;
        max-width: 59% !important;
        padding-right: 0.85rem !important;
        transition: flex-basis 0.24s ease, width 0.24s ease, max-width 0.24s ease;
    }

    #mainContent > .row > #mapColumn {
        flex: 0 0 41% !important;
        width: 41% !important;
        max-width: 41% !important;
        padding-left: 0.25rem !important;
        padding-right: 0 !important;
        transition: flex-basis 0.24s ease, width 0.24s ease, max-width 0.24s ease;
    }

    #mainContent.is-map-expanded > .row > #providerListColumn {
        flex: 0 0 53% !important;
        width: 53% !important;
        max-width: 53% !important;
    }

    #mainContent.is-map-expanded > .row > #mapColumn {
        flex: 0 0 47% !important;
        width: 47% !important;
        max-width: 47% !important;
    }

    #mapColumn > .pz-map-card {
        border-radius: 20px 0 0 20px;
        border-right: none;
        padding: 0.85rem 0 0 0.85rem;
    }

    #mapColumn .pz-map-card-header {
        padding: 0.1rem 1rem 0.75rem 0.2rem;
    }

    #mapColumn .pz-map-canvas-wrap {
        border-radius: 14px 0 0 14px;
        border-right: none;
    }
}

@media (max-width: 991.98px) {
    .pz-left-cards-scroll {
        max-height: none;
        overflow-y: visible;
        padding-right: 0;
    }
}

/* Expanded Map State (Toggled via `<` button on map) */
.pz-immo-split-shell.is-map-expanded .pz-immo-left-scroll {
    flex: 0 0 43%;
    width: 43%;
    max-width: 43%;
}

.pz-immo-split-shell.is-map-expanded .pz-immo-right-map {
    flex: 0 0 57%;
    width: 57%;
    max-width: 57%;
}

/* Sticky Filter Strip Inside Top of Left Scroll Pane */
.pz-immo-filter-bar {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid #e8eef6;
    padding: 0.72rem clamp(14px, 1.5vw, 26px);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.55rem;
}

.pz-immo-scroll-inner {
    padding: 0.9rem clamp(14px, 1.5vw, 26px) 1.5rem;
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}

.pz-immo-results-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.95rem;
}

.pz-immo-results-count {
    font-size: 1.02rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    letter-spacing: -0.01em;
}

.pz-immo-sort-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: 0.28rem 0.8rem;
}

/* Always 3-Column Card Grid Across Desktop (>= 992px) */
.pz-immo-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(10px, 0.9vw, 16px);
    align-items: stretch;
}

@media (min-width: 992px) and (max-width: 1680px) {
    .pz-immo-body {
        padding: 0.65rem 0.68rem 0.72rem;
    }
    .pz-immo-title {
        font-size: 0.85rem;
    }
    .pz-immo-metrics-row {
        font-size: 0.73rem;
        gap: 0.28rem;
        flex-wrap: nowrap;
        white-space: nowrap;
        overflow: hidden;
    }
    .pz-immo-tags-row .pz-service-check-pill {
        font-size: 0.67rem;
        padding: 0.16rem 0.44rem;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .pz-immo-btn-main {
        font-size: 0.74rem;
        padding: 0.34rem 0.45rem;
    }
}

@media (max-width: 820px) {
    .pz-immo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .pz-immo-grid {
        grid-template-columns: 1fr;
    }
}

/* Vertical ImmoScout24-Style Marketplace Card */
.pz-immo-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    position: relative;
    height: 100%;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.035);
}

.pz-immo-card:hover,
.pz-immo-card.pz-card-highlighted {
    border-color: #3b82f6;
    box-shadow: 0 12px 26px rgba(15, 35, 65, 0.1);
    transform: translateY(-2px);
}

.pz-immo-photo-box {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10.6;
    background: #e2e8f0;
    overflow: hidden;
    flex-shrink: 0;
}

.pz-immo-photo-box img.pz-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s ease;
}

.pz-immo-card:hover .pz-immo-photo-box img.pz-cover-img {
    transform: scale(1.05);
}

.pz-immo-photo-box::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 46px;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.48), transparent);
    pointer-events: none;
}

/* Top-Left Status / Gold Ribbon on Card Photo */
.pz-immo-top-left {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 5px;
    max-width: calc(100% - 68px);
}

.pz-immo-pill-white {
    background: rgba(255, 255, 255, 0.95);
    color: #0f172a;
    font-size: 0.71rem;
    font-weight: 700;
    padding: 0.24rem 0.65rem;
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.16);
    white-space: nowrap;
}

.pz-immo-pill-green {
    background: rgba(22, 163, 74, 0.95);
    color: #ffffff;
    font-size: 0.71rem;
    font-weight: 700;
    padding: 0.24rem 0.65rem;
    border-radius: 999px;
    box-shadow: 0 2px 8px rgba(22, 163, 74, 0.28);
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

/* Top-Right White Company Crest Box (1:1 ImmoScout24 Logo Box) */
.pz-immo-logo-crest {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 4;
    width: 38px;
    height: 30px;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.15);
    padding: 3px 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.pz-immo-logo-crest img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Bottom-Left Pin Number + Subtle Carousel Dots on Photo */
.pz-immo-photo-bottom {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 8px;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
}

.pz-immo-dots {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 0 auto;
}

.pz-immo-dots span {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
}

.pz-immo-dots span:first-child {
    width: 6px;
    height: 6px;
    background: #ffffff;
}

/* Card Body (ImmoScout24 Scannable Rhythm) */
.pz-immo-body {
    padding: 0.78rem 0.88rem 0.85rem;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.pz-immo-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 0.35rem;
}

.pz-immo-title {
    font-size: 0.93rem;
    font-weight: 700;
    line-height: 1.3;
    color: #0f172a;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pz-immo-title a {
    color: inherit;
    text-decoration: none;
}

.pz-immo-title a:hover {
    color: #1565c0;
}

/* Metrics Row (Equivalent to ImmoScout's Price · m² · Rooms · [A] Green Badge) */
.pz-immo-metrics-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem;
    font-size: 0.81rem;
    color: #1e293b;
    margin-bottom: 0.36rem;
}

.pz-immo-mdk-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    background: #16a34a;
    color: #ffffff;
    font-size: 0.69rem;
    font-weight: 800;
    padding: 0.12rem 0.46rem;
    border-radius: 4px;
    letter-spacing: 0.01em;
    line-height: 1.3;
}

.pz-immo-address {
    font-size: 0.78rem;
    color: #64748b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    margin-bottom: 0.55rem;
}

.pz-immo-address:hover {
    color: #1565c0;
    text-decoration: underline;
}

.pz-immo-tags-row {
    display: flex;
    flex-wrap: nowrap;
    overflow: hidden;
    gap: 4px;
    margin-bottom: 0.65rem;
}

.pz-immo-footer-actions {
    margin-top: auto;
    padding-top: 0.55rem;
    border-top: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pz-immo-btn-main {
    flex: 1 1 auto;
    background: #eff6ff;
    color: #0d47a1 !important;
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    padding: 0.38rem 0.65rem;
    font-size: 0.79rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    transition: all 0.16s ease;
}

.pz-immo-btn-main:hover {
    background: #1565c0;
    border-color: #1565c0;
    color: #ffffff !important;
}

.pz-immo-btn-call {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid #dbe5f1;
    background: #ffffff;
    color: #0b2545 !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    flex-shrink: 0;
    transition: all 0.16s ease;
}

.pz-immo-btn-call:hover {
    border-color: #1565c0;
    color: #1565c0 !important;
    background: #f8fbff;
}

/* Mandatory Luxury Gold Skin UI for Premium Cards inside 3-Col Grid */
.pz-immo-card.pz-gold-skin {
    background: linear-gradient(160deg, #fffdf6 0%, #fef5d4 52%, #fffbeb 100%) !important;
    border: 1.5px solid #f59e0b !important;
    box-shadow: 0 8px 22px rgba(217, 119, 6, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
}

.pz-immo-card.pz-gold-skin:hover,
.pz-immo-card.pz-gold-skin.pz-card-highlighted {
    border-color: #d97706 !important;
    box-shadow: 0 14px 30px rgba(180, 83, 9, 0.24), 0 0 0 2px rgba(245, 158, 11, 0.34) !important;
}

.pz-immo-card.pz-gold-skin .pz-immo-title {
    color: #3f1d06;
}

.pz-immo-card.pz-gold-skin .pz-card-pin-index {
    background: linear-gradient(135deg, #fde047 0%, #f59e0b 60%, #d97706 100%);
    color: #3f1d06;
    border: 1px solid rgba(255, 255, 255, 0.75);
}

.pz-immo-card.pz-gold-skin .pz-immo-logo-crest {
    border-color: #f59e0b;
}

.pz-immo-card.pz-gold-skin .pz-service-check-pill {
    background: rgba(254, 243, 199, 0.9);
    border-color: rgba(245, 158, 11, 0.45);
    color: #92400e;
}

.pz-immo-card.pz-gold-skin .pz-immo-footer-actions {
    border-top-color: rgba(245, 158, 11, 0.28);
}

.pz-immo-card.pz-gold-skin .pz-immo-btn-main {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 60%, #b45309 100%) !important;
    border-color: transparent !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(180, 83, 9, 0.26);
}

.pz-immo-card.pz-gold-skin .pz-immo-btn-main:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 65%, #92400e 100%) !important;
}

.pz-immo-card.pz-gold-skin .pz-immo-btn-call {
    background: #fffdf7;
    border-color: #f59e0b;
    color: #92400e !important;
}

/* Row-4 Grid Completion Native Partner Banner (Fills cols 2-3 beside Card #10) */
.pz-immo-promo-span2 {
    grid-column: span 2;
    background: linear-gradient(135deg, #f0f7ff 0%, #ffffff 55%, #ecfdf5 100%);
    border: 1.5px dashed #93c5fd;
    border-radius: 14px;
    padding: 1.35rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.pz-immo-split-shell.is-map-expanded .pz-immo-promo-span2 {
    display: none;
}

@media (max-width: 1480px) {
    .pz-immo-promo-span2 {
        display: none;
    }
}

/* Right Full-Fixed Map Panel (Edge-to-Edge like ImmoScout24) */
.pz-immo-right-map {
    flex: 0 0 42%;
    width: 42%;
    max-width: 42%;
    height: 100%;
    position: relative;
    border-left: 1px solid #d8e2ee;
    background: #e5eef7;
    transition: flex-basis 0.26s ease, width 0.26s ease, max-width 0.26s ease;
}

.pz-immo-map-surface {
    width: 100%;
    height: 100%;
    position: relative;
}

/* ImmoScout24 Top-Left Circular `<` Collapse/Expand Button */
.pz-immo-map-collapse-btn {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 600;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #dbe5f1;
    color: #0f172a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.16);
    cursor: pointer;
    transition: all 0.18s ease;
}

.pz-immo-map-collapse-btn:hover {
    background: #f8fbff;
    color: #1565c0;
    transform: scale(1.05);
}

/* ImmoScout24 Top-Right Floating Control Pills */
.pz-immo-map-top-pills {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pz-immo-map-pill {
    background: #ffffff;
    border: 1px solid #dbe5f1;
    color: #0f172a;
    font-size: 0.79rem;
    font-weight: 700;
    padding: 0.42rem 0.88rem;
    border-radius: 999px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.14);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

button.pz-immo-map-pill {
    cursor: pointer;
    transition: all 0.16s ease;
}

button.pz-immo-map-pill:hover {
    background: #eff6ff;
    border-color: #93c5fd;
    color: #1565c0;
}

/* ImmoScout24 Top-Right Stacked Zoom Controls (`+` / `-`) Below Pills */
.pz-immo-right-map .leaflet-top.leaflet-right {
    top: 60px !important;
    right: 14px !important;
}

.pz-immo-right-map .leaflet-bar {
    border: 1px solid #dbe5f1 !important;
    border-radius: 10px !important;
    overflow: hidden;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.14) !important;
    margin: 0 !important;
}

.pz-immo-right-map .leaflet-bar a {
    width: 36px !important;
    height: 36px !important;
    line-height: 34px !important;
    background: #ffffff !important;
    color: #0f172a !important;
    font-weight: 700 !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

.pz-immo-right-map .leaflet-bar a:last-child {
    border-bottom: none !important;
}

.pz-immo-right-map .leaflet-bar a:hover {
    background: #eff6ff !important;
    color: #1565c0 !important;
}

/* Mobile / Tablet Fallback (< 992px): Normal Stacked Flow */
@media (max-width: 991.98px) {
    .pz-immo-split-shell {
        flex-direction: column;
        height: auto;
        min-height: 0;
    }

    .pz-immo-left-scroll {
        flex: 1 1 auto;
        width: 100%;
        max-width: 100%;
        height: auto;
        overflow-y: visible;
    }

    .pz-immo-right-map {
        display: none;
    }
}
