﻿#map {
    height: 100%;
    width: 100%;
}

.grid-header {
    color: white;
    padding: 0.3rem;
    border-bottom: 1px solid #dee2e6;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr; /* Default olarak tek sütun */
    gap: 0.2rem;
}

.grid-item {
    display: grid;
    grid-template-columns: repeat(2, 8fr 10fr); /* Her satır için dört sütun */
    gap: 0.2rem;
}

.grid-label {
    min-width: 120px;
}

.grid-label,
.grid-value {
    padding: 0.2rem;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
}

.grid-label {
    background-color: #6c757d;
    color: #fff;
}

.grid-value {
    background-color: #f8f9fa;
}

@media (max-width: 570px) {
    .grid-item {
        grid-template-columns: 1fr 3fr; /* 768px'den küçük ekranlarda tek sütun */
    }

    .info-grid .grid-item[style*="repeat(3, 8fr 10fr)"] {
        grid-template-columns: 1fr 3fr !important;
    }

    #main-div {
        max-width: 420px;
        margin: 0 auto !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

        #main-div .card-body > .d-flex {
            display: flex !important;
            flex-wrap: nowrap !important;
            align-items: center !important;
            justify-content: space-between !important;
            gap: 6px;
            padding: 6px 6px;
        }

            #main-div .card-body > .d-flex > div:first-child {
                flex: 0 0 48px;
                max-width: 48px;
                display: flex;
                align-items: center;
                justify-content: flex-start;
            }

            #main-div .card-body > .d-flex > div:nth-child(2) {
                flex: 1;
                text-align: center;
                padding: 0 4px;
            }

            #main-div .card-body > .d-flex > div:last-child {
                flex: 0 0 48px;
                max-width: 48px;
                display: flex;
                justify-content: flex-end;
                align-items: center;
            }

        #main-div .card-body img {
            max-height: 40px !important;
            width: auto !important;
            object-fit: contain;
        }

        #main-div h3 {
            font-size: 15px !important;
            margin: 0;
            line-height: 1.1;
            font-weight: 600;
        }

        #main-div h4 {
            font-size: 12px !important;
            margin: 2px 0 0 0;
            line-height: 1.1;
            opacity: .9;
        }
}

@media print {
    @page {
        size: A4;
        margin: 0;
    }

    body {
        width: 100%;
        margin: 0;
        padding: 0;
        font-size: 12px; /* Metni küçült */
    }

    #main-div {
        width: 100% !important;
        margin: 0;
    }

    #map {
        height: 200px; /* Haritayı küçült */
    }

    .container {
        width: 100%;
        max-width: none;
        padding: 0;
    }

    img {
        max-width: 100% !important;
        height: auto !important;
    }

    h1, h2, h3, h4, h5, h6 {
        page-break-after: avoid;
        page-break-inside: avoid;
        margin-bottom: 0.1rem;
    }

    p, blockquote, ul, ol, dl, table {
        page-break-inside: avoid;
    }

    .no-print {
        display: none !important;
    }

    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;

    .card {
        margin-bottom: 0.5rem; /* Kartlar arası boşluğu azalt */
    }

    .card-body {
        padding: 0.2rem; /* Kart içeriği boşluğunu azalt */
    }

    .info-grid {
        gap: 0.25rem; /* Grid aralıklarını azalt */
    }

    .grid-item {
        gap: 0.25rem; /* Grid öğeleri arası boşluğu azalt */
    }

    .grid-label,
    .grid-value {
        padding: 0.2rem; /* Grid öğeleri içi boşluğunu azalt */
    }

    .grid-item {
        grid-template-columns: repeat(4, 1fr); /* Her satır için dört sütun */
    }

    .card.border-secondary.border-2 {
        margin-bottom: 0
    }
}
