.laboratory-detail-container {
    max-width: 1450px;
    margin: 0 auto 48px auto;
    padding: 0 24px;
    font-family: 'Inter', Arial, sans-serif;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.laboratory-hero-card {
    background: #074d78;
    color: #ffffff;
    border-radius: 0.5rem;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    position: relative;
    overflow: hidden;
}

.laboratory-hero-info {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.laboratory-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.15);
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 600;
}

.laboratory-hero-title {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 2.5rem;
    margin: 0;
    color: #ffffff;
    font-family: system-ui, sans-serif;
}

.laboratory-hero-icon img {
    width: 140px;
    height: auto;
    opacity: 0.4;
}

.laboratory-hero-icon--has-image {
    width: 200px;
    max-width: 40%;
    height: 140px;
    border-radius: 0.5rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.25);
    opacity: 1;
}

.laboratory-hero-icon--has-image .laboratory-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0.5rem;
    opacity: 1;
}

.laboratory-image-clickable {
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.laboratory-image-clickable:hover {
    opacity: 0.9;
    transform: scale(1.02);
}

/* Resim Modal Stilleri */
.image-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.image-modal-content {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.image-modal-close {
    position: absolute;
    top: 30px;
    right: 30px;
    color: #ffffff;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    line-height: 25px;
    width: 30px;
    height: 30px;
    text-align: center;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.5);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.image-modal-close:hover,
.image-modal-close:focus {
    background-color: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.image-modal-caption {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: #ffffff;
    font-size: 1.125rem;
    font-weight: 500;
    text-align: center;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 10px 20px;
    border-radius: 8px;
    max-width: 80%;
}

@media (max-width: 768px) {
    .image-modal-close {
        top: 20px;
        right: 20px;
        font-size: 30px;
        width: 30px;
        height: 30px;
        line-height: 30px;
    }

    .image-modal-content {
        max-width: 95%;
        max-height: 85vh;
    }

    .image-modal-caption {
        bottom: 20px;
        font-size: 1rem;
        padding: 8px 16px;
        max-width: 90%;
    }
}

.laboratory-tabs-card {
    background: #ffffff;
    border-radius: 0.5rem;
    border: 1px solid #e5e7eb;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.laboratory-tabs {
    display: flex;
    /*gap: 24px;
    padding: 0 24px;*/
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
}

.laboratory-tabs .tab-btn {
    background: none;
    border: none;
    padding: 16px 24px;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-family: system-ui, sans-serif;
    font-weight: 600;
    color: #737b8c;
    border-radius: 0;
    transition: color 0.2s ease;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    outline: none;
}

/*.laboratory-tabs .tab-btn:hover:not(.active) {
    color: #0f172a;
}*/

.laboratory-tabs .tab-btn.active {
    color: #2b303b;
    border-bottom-color: #074d78;
}

.laboratory-content-card {
    background: #ffffff;
    border-radius: 0 0 16px 16px;
    padding: 32px;
    min-height: 360px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    font-size: 1.1rem;
    color: #1f2937;
    margin-top: 8px;
}

.tab-content {
    min-height: 280px;
}

.tab-state {
    display: none;
    font-size: 0.95rem;
    line-height: 1.4;
    color: #475569;
    background: rgba(15, 23, 42, 0.03);
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 18px;
    align-items: center;
    gap: 8px;
}

.tab-state i {
    color: inherit;
}

.tab-state.tab-loading {
    display: none;
    color: #2563eb;
    background: rgba(37, 99, 235, 0.08);
}

.tab-state.tab-error {
    color: #b91c1c;
    background: rgba(248, 113, 113, 0.18);
}

.tab-state.tab-empty {
    color: #475569;
    background: rgba(15, 23, 42, 0.04);
}

.laboratory-description {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    margin-bottom: 20px;
    font-family: system-ui, sans-serif;
}

.laboratory-description b {
    color: #2b303b;
    font-weight: 600;
    font-family: system-ui, sans-serif;
    font-size: 1rem;
}

.laboratory-description span {
    color: #737b8c;
    font-family: system-ui, sans-serif;
    font-size: 1rem;
    text-transform: none;
}

.laboratory-link {
    color: #074d78;
    text-decoration: none;
    font-family: system-ui, sans-serif;
    font-size: 1rem;
}

.laboratory-link:hover,
.laboratory-link:focus,
.laboratory-link:active,
.laboratory-link:visited {
    text-decoration: underline;
    /*color: #074d78;*/
}

.back-link-wrapper {
    /*margin-top: 16px;*/
    display: flex;
    justify-content: flex-start;
}

.back-link {
    color: #074d78;
    text-decoration: none;
    font-family: system-ui, sans-serif;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.875rem;
    line-height: 1.25rem;
    padding: 8px 10px;
    border-radius: 0.5rem;
    transition: background 0.2s ease, color 0.2s ease;
}

.back-link-icon {
    width: 18px;
    height: 18px;
}

.back-link:hover {
    background: #facc14;
    color: #074d78;
    border-radius: 0.5rem;
}

.laboratory-description>div:first-child {
    flex: 1;
}

.laboratory-description h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.laboratory-description h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 18px 0 8px 0;
}

.laboratory-description ul {
    margin: 0 0 0 18px;
    padding: 0;
}

.laboratory-video {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.laboratory-devices h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.device-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 32px;
}

@media (max-width: 1100px) {
    .device-cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 800px) {
    .device-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .device-cards {
        grid-template-columns: 1fr;
    }
}

.device-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.device-card {
    background: #fff;
    border: 1.5px solid #e5e7eb;
    border-radius: 14px;
    padding: 18px 12px 10px 12px;
    width: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    /*align-items: center;*/
    font-size: 0.875rem;
    color: #1a2746;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    transition: box-shadow 0.2s, transform 0.2s;
    gap: 5px;
    cursor: pointer;
}

.device-card img {
    width: 60px;
    height: 60px;
    margin-bottom: 8px;
    border-radius: 0.5rem;
}

.device-card-link:hover .device-card {
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.08);
    transform: translateY(-2px);
}

.device-info-row {
    display: flex;
    gap: 6px;
    line-height: 1.3;
    font-family: system-ui, sans-serif;
}

.device-info-row b {
    color: #2b303b;
    font-weight: 600;
}

.device-info-row span {
    color: #737b8c;
    transition: color 0.2s ease, text-decoration 0.2s ease;
}

.device-name {
    color: #737b8c;
    transition: color 0.2s ease, text-decoration 0.2s ease;
}

.experiment-name {
    color: #737b8c;
    transition: color 0.2s ease, text-decoration 0.2s ease;
}

.device-card-link:hover .device-card .device-name {
    color: #074d78 !important;
    text-decoration: underline;
    text-decoration-color: #074d78;
    text-underline-offset: 2px;
}

.device-card-link:hover .device-card .experiment-name {
    color: #074d78 !important;
    text-decoration: underline;
    text-decoration-color: #074d78;
    text-underline-offset: 2px;
}

.laboratory-lab h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.lab-info {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

.lab-info>div:first-child {
    min-width: 220px;
}

.lab-price {
    margin-top: 12px;
    font-size: 1.3rem;
    color: #1a2746;
}

.lab-price span {
    font-weight: 700;
    color: #19305a;
    margin-left: 8px;
}

.card-icon-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 12px;
}

.card-icon {
    width: 48px;
    height: 48px;
    display: block;
}

@media (max-width: 900px) {
    .laboratory-detail-container {
        padding: 12px 2vw;
    }

    .laboratory-detail-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
    }

    .lab-info {
        flex-direction: column;
        gap: 18px;
    }

    .device-cards {
        flex-direction: column;
        gap: 12px;
    }

    .laboratory-description {
        flex-direction: column;
        gap: 18px;
    }
}

@media (max-width: 700px) {

    .laboratory-content,
    .tab-content {
        min-height: 220px;
    }
}

/* Map Styles - Same as device detail */
.device-map-container {
    width: 100%;
    margin-top: 16px;
}

.device-map-wrapper {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 16px;
}

.device-map-iframe {
    width: 100%;
    height: 450px;
    border: 0;
    display: block;
}

.device-map-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 12px 0;
}

.device-map-address {
    font-size: 1rem;
    line-height: 1.5;
    color: #1f2937;
}

.device-map-link {
    padding: 8px 16px;
    background: #074d78;
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: background 0.2s ease;
}

.device-map-link:hover {
    background: #063d60;
    color: #ffffff;
}

@media (max-width: 1024px) {
    .device-map-iframe {
        height: 350px;
    }

    .device-map-info {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .device-map-iframe {
        height: 300px;
    }

    .device-map-info {
        flex-direction: column;
        gap: 12px;
    }

    .device-map-link {
        width: 100%;
        text-align: center;
    }
}

.tab-section-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1a2746;
    margin: 0 0 16px 0;
    font-family: system-ui, sans-serif;
}