/* Kurum (hastane/klinik) detay — DoktorSitesi benzeri düzen */

:root {
    --mp-fd-brand: var(--primary_color, #005450);
    --mp-fd-brand-accent: var(--tertiary_color, #13aa65);
    --mp-fd-brand-rgb: var(--primary_color_rgb, 0, 84, 80);
    --mp-fd-bg: var(--mp-page-bg, #f0f2f5);
    --mp-fd-border: var(--mp-border, rgba(17, 24, 39, 0.08));
    --mp-fd-text: var(--mp-text, #111827);
    --mp-fd-muted: var(--mp-text-muted, #6b7280);
}

.mp-fd-page {
    padding: 0 0 48px;
    background: var(--mp-fd-bg);
    scroll-behavior: smooth;
}

.mp-fd-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--mp-fd-muted);
    padding: 16px 0 12px;
}

.mp-fd-breadcrumb a {
    color: #2563eb;
    text-decoration: none;
}

.mp-fd-breadcrumb a:hover {
    text-decoration: underline;
}

/* Galeri şeridi */
.mp-fd-gallery {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 8px;
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
    min-height: 220px;
    max-height: 360px;
}

.mp-fd-gallery--single {
    grid-template-columns: 1fr;
}

.mp-fd-gallery__main {
    position: relative;
    min-height: 220px;
    background: #e5e7eb;
}

.mp-fd-gallery__main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    min-height: 220px;
}

.mp-fd-gallery__thumbs {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 8px;
}

.mp-fd-gallery__thumb {
    position: relative;
    background: #e5e7eb;
    overflow: hidden;
    min-height: 0;
}

.mp-fd-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mp-fd-gallery__more {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-weight: 700;
    font-size: 18px;
    text-decoration: none;
}

/* Hero */
.mp-fd-hero {
    background: #fff;
    border: 1px solid var(--mp-fd-border);
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 16px;
}

.mp-fd-hero-top {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.mp-fd-logo {
    width: 80px;
    height: 80px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid var(--mp-fd-border);
    background: #f9fafb;
}

.mp-fd-logo--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mp-fd-muted);
    font-size: 28px;
}

.mp-fd-hero-body {
    flex: 1;
    min-width: 0;
}

.mp-fd-name {
    font-size: clamp(22px, 2.8vw, 28px);
    font-weight: 800;
    color: var(--mp-fd-text);
    margin: 0 0 6px;
    line-height: 1.2;
}

.mp-fd-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--mp-fd-brand);
    background: rgba(var(--mp-fd-brand-rgb), 0.08);
    border-radius: 6px;
    padding: 4px 10px;
    margin-bottom: 8px;
}

.mp-fd-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    font-size: 14px;
    color: var(--mp-fd-muted);
    margin-bottom: 12px;
}

.mp-fd-meta i {
    color: var(--mp-fd-brand);
    margin-right: 4px;
}

.mp-fd-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 14px;
    color: var(--mp-fd-text);
}

.mp-fd-stats strong {
    color: var(--mp-fd-brand);
}

.mp-fd-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.mp-fd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.mp-fd-btn--primary {
    background: var(--mp-fd-brand-accent);
    color: #fff;
}

.mp-fd-btn--primary:hover {
    filter: brightness(0.95);
    color: #fff;
}

.mp-fd-btn--outline {
    background: #fff;
    color: var(--mp-fd-text);
    border: 1px solid var(--mp-fd-border);
}

.mp-fd-btn--outline:hover {
    background: #f9fafb;
    color: var(--mp-fd-text);
}

.mp-fd-btn--whatsapp {
    background: #25d366;
    color: #fff;
}

.mp-fd-btn--whatsapp:hover {
    background: #1ebe57;
    color: #fff;
}

/* Sticky nav */
.mp-fd-nav {
    background: #fff;
    border: 1px solid var(--mp-fd-border);
    border-radius: 10px;
    margin-bottom: 16px;
    overflow-x: auto;
    scrollbar-width: none;
}

.mp-fd-nav::-webkit-scrollbar {
    display: none;
}

.mp-fd-nav-list {
    display: flex;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 6px 8px;
    min-width: max-content;
}

.mp-fd-nav-link {
    display: block;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--mp-fd-muted);
    text-decoration: none;
    border-radius: 8px;
    white-space: nowrap;
}

.mp-fd-nav-link:hover,
.mp-fd-nav-link.is-active {
    color: var(--mp-fd-brand);
    background: rgba(var(--mp-fd-brand-rgb), 0.08);
}

/* Kartlar */
.mp-fd-card {
    background: #fff;
    border: 1px solid var(--mp-fd-border);
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 16px;
}

.mp-fd-card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--mp-fd-text);
    margin: 0 0 16px;
}

/* İmkanlar */
.mp-fd-amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.mp-fd-amenity {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: #f9fafb;
    border: 1px solid var(--mp-fd-border);
    border-radius: 8px;
    font-size: 13px;
    color: var(--mp-fd-text);
}

.mp-fd-amenity i {
    color: var(--mp-fd-brand);
}

/* Branş grid */
.mp-fd-branches-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 10px;
}

.mp-fd-branch-chip {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 14px;
    background: #f9fafb;
    border: 1px solid var(--mp-fd-border);
    border-radius: 8px;
    text-decoration: none;
    color: var(--mp-fd-text);
    transition: border-color 0.15s, background 0.15s;
}

.mp-fd-branch-chip:hover {
    border-color: rgba(var(--mp-fd-brand-rgb), 0.35);
    background: rgba(var(--mp-fd-brand-rgb), 0.04);
    color: var(--mp-fd-text);
}

.mp-fd-branch-chip__name {
    font-weight: 600;
    font-size: 14px;
}

.mp-fd-branch-chip__count {
    font-size: 12px;
    color: var(--mp-fd-muted);
}

/* Uzman kartları */
.mp-fd-doctor-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.mp-fd-doctor-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 0;
    border-bottom: 1px solid var(--mp-fd-border);
}

.mp-fd-doctor-card:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.mp-fd-doctor-card:first-child {
    padding-top: 0;
}

.mp-fd-doctor-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px var(--mp-fd-border);
}

.mp-fd-doctor-body {
    flex: 1;
    min-width: 0;
}

.mp-fd-doctor-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--mp-fd-text);
    text-decoration: none;
    display: block;
    margin-bottom: 2px;
}

.mp-fd-doctor-name:hover {
    color: var(--mp-fd-brand);
}

.mp-fd-doctor-branch {
    font-size: 13px;
    color: var(--mp-fd-muted);
    margin-bottom: 2px;
}

.mp-fd-doctor-title {
    font-size: 13px;
    color: var(--mp-fd-muted);
}

.mp-fd-doctor-action {
    flex-shrink: 0;
}

/* Sidebar */
.mp-fd-layout {
    align-items: flex-start;
}

.mp-fd-sidebar-col {
    position: sticky;
    top: 88px;
}

.mp-fd-booking-card {
    background: #fff;
    border: 1px solid var(--mp-fd-border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(17, 24, 39, 0.06);
}

.mp-fd-booking-head--primary {
    background: linear-gradient(135deg, #1d6fd8 0%, #1558b0 100%);
    border-bottom: none;
    color: #fff;
}

.mp-fd-booking-head--primary h3 {
    color: #fff;
    font-size: 18px;
}

.mp-fd-booking-head--primary p {
    color: rgba(255, 255, 255, 0.92);
    font-size: 13px;
}

.mp-fd-picker {
    margin-bottom: 14px;
}

.mp-fd-picker-row {
    display: flex;
    align-items: stretch;
    gap: 0;
    border: 1px solid var(--mp-fd-border);
    border-radius: 10px;
    overflow: hidden;
    background: #f9fafb;
}

.mp-fd-picker-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    flex-shrink: 0;
    background: #fff;
    border-right: 1px solid var(--mp-fd-border);
    color: var(--mp-fd-muted);
    font-size: 16px;
}

.mp-fd-picker-select {
    flex: 1;
    min-width: 0;
    border: none !important;
    background: transparent !important;
    margin-bottom: 0 !important;
    box-shadow: none !important;
}

.mp-fd-picker-select + .select2-container {
    flex: 1;
    min-width: 0;
}

.mp-fd-picker-row .select2-container--default .select2-selection--single {
    border: none;
    background: transparent;
    min-height: 44px;
    display: flex;
    align-items: center;
}

.mp-fd-calendar-wrap {
    margin-top: 8px;
    min-height: 120px;
}

.mp-fd-calendar-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 28px 16px;
    border: 1px dashed var(--mp-fd-border);
    border-radius: 10px;
    color: var(--mp-fd-muted);
    text-align: center;
    font-size: 13px;
}

.mp-fd-calendar-placeholder i {
    font-size: 28px;
    opacity: 0.5;
}

.mp-fd-calendar-placeholder p {
    margin: 0;
}

.mp-fd-calendar-loading {
    padding: 24px;
    text-align: center;
    color: var(--mp-fd-muted);
    font-size: 14px;
}

.mp-fd-calendar-wrap.loading {
    position: relative;
    min-height: 80px;
    opacity: 0.65;
    pointer-events: none;
}

.mp-fd-booking-head {
    padding: 18px 20px;
    border-bottom: 1px solid var(--mp-fd-border);
    background: linear-gradient(180deg, rgba(var(--mp-fd-brand-rgb), 0.06) 0%, #fff 100%);
}

.mp-fd-booking-head h3 {
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 4px;
    color: var(--mp-fd-text);
}

.mp-fd-booking-head p {
    font-size: 13px;
    color: var(--mp-fd-muted);
    margin: 0;
}

.mp-fd-booking-body {
    padding: 20px;
}

.mp-fd-booking-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--mp-fd-muted);
    margin-bottom: 6px;
}

.mp-fd-booking-select {
    width: 100%;
    margin-bottom: 14px;
}

.mp-fd-contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mp-fd-contact-list li {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--mp-fd-border);
    font-size: 14px;
}

.mp-fd-contact-list li:last-child {
    border-bottom: none;
}

.mp-fd-contact-list i {
    width: 18px;
    color: var(--mp-fd-brand);
    margin-top: 2px;
}

.mp-fd-map {
    height: 260px;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 12px;
}

.mp-fd-social {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.mp-fd-social a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: #f3f4f6;
    color: var(--mp-fd-muted);
    text-decoration: none;
    font-size: 16px;
}

.mp-fd-social a:hover {
    background: rgba(var(--mp-fd-brand-rgb), 0.1);
    color: var(--mp-fd-brand);
}

.mp-fd-empty {
    color: var(--mp-fd-muted);
    font-size: 14px;
    margin: 0;
}

@media (max-width: 991.98px) {
    .mp-fd-sidebar-col {
        position: static;
    }

    .mp-fd-gallery {
        grid-template-columns: 1fr;
        max-height: none;
    }

    .mp-fd-gallery__thumbs {
        display: none;
    }

    .mp-fd-doctor-card {
        flex-wrap: wrap;
    }

    .mp-fd-doctor-action {
        width: 100%;
        padding-left: 78px;
    }

    .mp-fd-doctor-action .mp-fd-btn {
        width: 100%;
    }
}
