/**
 * Blade sayfalarından toplanan stiller – tek dosyada tutarlı tasarım.
 * app.blade.php üzerinden yüklenir.
 */

/* ========== Map sayfası (harita) ========== */
.hk-main-map {
    padding: 0 !important;
    padding-bottom: 0 !important;
    overflow: hidden;
    height: 100%;
    max-height: 100%;
    min-height: 0;
}
.hk-main-map .hk-map-container {
    padding: 0 !important;
    max-width: none;
    height: 100%;
}
.hk-map-page {
    position: relative;
    width: 100%;
    height: 100%;
    max-height: 100%;
    overflow: hidden;
    overscroll-behavior: none;
}
.hk-map-page #map {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    min-height: 0;
    border: none;
    border-radius: 0;
    touch-action: none;
}
.map-search-wrap {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    max-width: 100%;
    padding: 10px 12px 0;
    box-sizing: border-box;
    pointer-events: none;
}
.hk-map-page.map-search-active .map-search-wrap {
    pointer-events: auto;
    max-height: min(72vh, calc(100% - 120px));
    overflow: visible;
}
.map-search-wrap > *,
.map-search-wrap .hk-map-search-field,
.map-search-wrap .hk-map-search-input,
.map-search-wrap #searchResultsCard {
    pointer-events: auto;
}
.hk-map-page.map-search-active #map {
    pointer-events: none;
}
@media (max-width: 768px) {
    .map-page.hk-map-page {
        position: fixed;
        inset: 0;
        padding-top: var(--safe-top, 0);
        padding-bottom: calc(96px + var(--safe-bottom, 0px));
        overflow: hidden;
        background: #fff;
        height: 100dvh;
        height: 100vh;
        width: 100%;
        margin: 0;
    }
    .map-page .map-topbar,
    .map-page .hk-map-top {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        padding: 0;
        z-index: auto;
        background: transparent;
        box-sizing: border-box;
    }
    .map-page .map-topbar *,
    .map-page .hk-map-top * {
        box-sizing: border-box;
    }
    .map-page #map {
        position: absolute;
        inset: 0;
        z-index: 0;
        width: 100%;
        height: 100%;
        min-height: 0;
    }
    .map-page .map-bottom-sheet,
    .map-page .map-info-card,
    .map-page #searchResultsCard {
        border-radius: var(--radius-lg, 22px) var(--radius-lg, 22px) 0 0;
    }
    .map-page .map-bottom-sheet:not(#searchResultsCard) .map-bottom-sheet__content,
    .map-page .map-bottom-sheet:not(#searchResultsCard) .card-body {
        overflow: hidden !important;
    }
    .map-page .map-search-input,
    .map-page .hk-map-search-input {
        height: auto;
        min-height: 0;
        line-height: 1.35;
        padding: 0;
        border-radius: 0;
    }
    .map-page .hk-map-search-field {
        min-height: 48px;
        height: 48px;
        padding: 0 0.9rem;
        align-items: center;
        overflow: visible;
    }
    .map-page .leaflet-bottom {
        bottom: calc(72px + var(--safe-bottom, 0px)) !important;
    }
    .map-page .leaflet-control {
        margin-bottom: 8px;
    }
    .page-map .map-fab-stack {
        right: 10px;
        bottom: var(--app-nav-mobile-offset, calc(92px + env(safe-area-inset-bottom, 0px)));
        gap: 6px;
        align-items: flex-end;
        max-width: calc(100vw - 20px);
    }
    .page-map .map-fab {
        width: 40px;
        height: 40px;
        box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
    }
    .page-map .map-fab-locate,
    .page-map .map-fab-box-search {
        width: auto;
        min-width: 0;
        max-width: 100%;
        height: 38px;
        padding: 0 10px;
        font-size: 0.95rem;
        gap: 5px;
        font-weight: 700;
    }
    .page-map .map-fab-locate__label,
    .page-map .map-fab-box-search__label {
        font-size: 12px;
        letter-spacing: -0.01em;
    }
    .page-map .map-fab-kumbara-icon {
        width: 1.3rem;
        height: 1.3rem;
    }
}
/* Harita: sağ alt FAB grubu (kumbara ara + konum) */
.map-fab-stack {
    position: fixed;
    right: 16px;
    bottom: calc(92px + env(safe-area-inset-bottom, 0px));
    z-index: 9000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.map-fab {
    width: 52px;
    height: 52px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.12);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    cursor: pointer;
    touch-action: manipulation;
}
.map-fab-locate {
    width: auto;
    min-width: 52px;
    height: 48px;
    padding: 0 14px;
    border-radius: 999px;
    color: var(--green-600, #16a34a);
    font-size: 1.15rem;
    gap: 8px;
    font-weight: 800;
}
.map-fab-locate__label {
    font-size: 14px;
    line-height: 1;
    white-space: nowrap;
}
.map-fab-locate:hover { background: var(--green-050, #eefbf2); color: var(--green-600); }
.map-fab-locate:disabled { opacity: 0.65; cursor: wait; }
.map-fab-box-search {
    width: auto;
    min-width: 52px;
    height: 48px;
    padding: 0 14px;
    border-radius: 999px;
    color: var(--green-600, #167A5D);
    background: #fff;
    font-weight: 800;
    gap: 8px;
}
.map-fab-box-search:hover {
    background: var(--green-050, #eefbf2);
}
.map-fab-box-search__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: auto;
    height: auto;
}
.map-fab-box-search__label {
    font-size: 14px;
    line-height: 1;
    white-space: nowrap;
}
.map-fab-kumbara-icon {
    width: 1.85rem;
    height: 1.85rem;
    color: var(--green-600, #167A5D);
    flex-shrink: 0;
    display: block;
}
.map-fab-kumbara-box path {
    fill: #fff;
}
.map-fab-kumbara-coin circle {
    fill: #FACC15;
    stroke: #D97706;
    stroke-width: 2.2;
}
.map-fab-kumbara-coin__mark {
    stroke: #B45309;
    stroke-width: 1.55;
    stroke-linecap: round;
    fill: none;
}
.map-bulk-assign {
    position: fixed;
    left: 50%;
    bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    transform: translateX(-50%);
    z-index: 9500;
    width: min(560px, calc(100vw - 24px));
    background: #fff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 18px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.map-bulk-assign.hidden { display: none !important; }
.map-bulk-assign__info {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
    color: var(--ink-900, #1B1B2E);
    font-size: 14px;
}
.map-bulk-assign__hint {
    color: var(--ink-600, #8E8E93);
    font-size: 12px;
}
.map-bulk-assign__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}
.map-bulk-assign__actions .form-select {
    flex: 1 1 180px;
    min-width: 160px;
}
.map-bulk-assign__msg {
    font-size: 13px;
}
@media (min-width: 992px) {
    .map-fab-stack { bottom: 24px; }
}
html.dark .map-page.hk-map-page {
    background: #0b1220;
}
.map-info-card.global-modal-layer { z-index: 9999; }

/* Arama sonuçları: arama barının altında, input'u kapatmaz; listeyi kaydırılabilir yap */
.hk-map-search-field { position: relative; z-index: 9501; }
.map-search-wrap .hk-map-top {
    flex: 0 0 auto;
    position: relative;
    top: auto;
    left: auto;
    right: auto;
}
#searchResultsCard.search-results-below-bar,
.search-results-below-bar {
    position: relative !important;
    top: auto !important;
    left: 0 !important;
    right: 0 !important;
    bottom: auto !important;
    margin-top: 8px;
    z-index: 9500;
    max-height: min(52vh, 420px);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: visibility 0.2s, opacity 0.2s, transform 0.2s;
    border-radius: 18px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.12);
    background: #fff;
    overflow: hidden;
    width: 100%;
    display: block;
    flex: 0 1 auto;
    min-height: 0;
    height: auto;
}
#searchResultsCard.search-results-below-bar .map-bottom-sheet__content,
#searchResultsCard.search-results-below-bar .card-body {
    display: block !important;
    flex: none !important;
    min-height: 0 !important;
    height: auto !important;
    overflow: hidden !important;
    padding-bottom: 0.5rem !important;
}
#searchResultsCard.search-results-below-bar .sheet-header {
    flex: 0 0 auto;
}
#searchResultsCard.search-results-below-bar.search-results-card--open,
.search-results-below-bar.search-results-card--open {
    visibility: visible !important;
    opacity: 1 !important;
    transform: translateY(0) !important;
}
.search-results-below-bar #searchResultsScroll {
    display: block;
    max-height: min(38vh, 340px);
    overflow-y: auto !important;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y !important;
    overscroll-behavior: contain;
    pointer-events: auto;
    padding-bottom: 48px;
    scroll-padding-bottom: 40px;
    box-sizing: border-box;
}
.search-results-below-bar #searchResultsList {
    touch-action: pan-y;
    padding-bottom: 8px;
}
.search-results-below-bar #searchResultsList::after {
    content: "";
    display: block;
    height: 24px;
    pointer-events: none;
}
.search-results-below-bar #searchResultsList .list-group-item {
    touch-action: manipulation;
}

#searchResultsCard.search-results-popup { z-index: 9998; }
.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 9997;
}
.popup-overlay[aria-hidden="true"] { display: none !important; }
.popup-overlay[aria-hidden="false"] { display: block !important; }
.search-results-popup .map-bottom-sheet__content {
    overflow: visible !important;
}
.search-results-popup .card-body {
    display: flex;
    flex-direction: column;
}
.search-results-popup .sheet-header {
    flex: 0 0 auto;
}
.search-results-popup:not(.search-results-below-bar) .sheet-body,
#searchResultsCard:not(.search-results-below-bar) #searchResultsScroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y !important;
    max-height: calc(60dvh - 60px);
}
.search-results-popup {
    overflow: hidden;
    max-height: 60dvh;
}
.bottom-sheet,
.map-info-card,
#searchResultsCard:not(.search-results-below-bar) {
    position: fixed;
    left: 0;
    right: 0;
    bottom: calc(92px + var(--safe-bottom, 0px));
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    max-height: 60dvh;
    overflow: hidden;
    border-radius: var(--radius-lg, 22px) var(--radius-lg, 22px) 0 0;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.1);
    transform: translateY(100%);
    visibility: hidden;
    transition: transform 0.3s ease-out, visibility 0.3s;
    background: #fff;
}
.search-results-popup.bottom-sheet {
    z-index: 9998;
}
@media (max-width: 767.98px) {
    .map-info-card .card-body,
    #searchResultsCard:not(.search-results-below-bar) .card-body {
        padding: 0.5rem 0.75rem;
        padding-bottom: calc(0.5rem + env(safe-area-inset-bottom, 0px));
    }
    #searchResultsCard.search-results-below-bar .card-body {
        padding: 0.5rem 0.75rem 0.25rem !important;
    }
    .map-info-card .card-title,
    #searchResultsCard .card-title { font-size: 0.9rem; margin-bottom: 0.35rem; }
    .map-info-card .card-text,
    .map-info-card .form-label,
    #searchResultsCard .card-text { font-size: 0.8rem; margin-bottom: 0.25rem; }
    .map-info-card .d-grid.gap-2 { gap: 0.35rem !important; }
    .map-info-card .btn { padding: 0.4rem 0.6rem; font-size: 0.85rem; }
    .map-info-card .mb-2 { margin-bottom: 0.35rem !important; }
    .map-info-card .mt-3 { margin-top: 0.5rem !important; }
    #searchResultsList {
        max-height: none;
        overflow: visible;
        padding-bottom: 4px;
    }
    #searchResultsList .list-group-item { padding: 0.4rem 0.5rem; font-size: 0.85rem; }
    .map-page .map-search-wrap {
        top: var(--safe-top, 0);
        max-height: calc(100dvh - var(--app-nav-mobile-offset, 96px) - env(safe-area-inset-bottom, 0px));
        overflow: visible;
        padding: 10px 12px 0;
    }
    .map-page .map-search-wrap .hk-map-top,
    .map-page .map-search-wrap .map-topbar {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        padding: 0;
    }
    #searchResultsCard.search-results-below-bar.search-results-card--open {
        max-height: calc(100dvh - 120px - var(--app-nav-mobile-offset, 96px) - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    }
    #infoCardTitle,
    #infoCardLocation { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
}
.map-info-card.map-info-card--open,
#searchResultsCard.search-results-card--open:not(.search-results-below-bar) {
    transform: translateY(0);
    visibility: visible;
}
@media (min-width: 768px) {
    .map-page .map-search-wrap {
        top: 8px;
        left: 12px;
        right: auto;
        width: min(100%, 480px);
        max-height: none;
        padding: 0;
    }
    #searchResultsCard.search-results-below-bar.search-results-card--open {
        max-height: min(420px, calc(100vh - 140px));
    }
    .map-info-card,
    #searchResultsCard:not(.search-results-below-bar) {
        bottom: 12px;
        left: 50%;
        right: auto;
        width: 92%;
        max-width: 420px;
        max-height: 70vh;
        transform: translate(-50%, 100%);
    }
    .map-info-card.map-info-card--open,
    #searchResultsCard.search-results-card--open:not(.search-results-below-bar) {
        transform: translate(-50%, 0);
    }
}
.map-info-card { display: block; }
.map-info-card .card-body,
#searchResultsCard:not(.search-results-below-bar) .card-body {
    padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    background: #fff;
    border-radius: 1rem 1rem 0 0;
}
#searchResultsCard.search-results-below-bar .card-body {
    background: #fff;
    border-radius: 18px;
}
#searchResultsList {
    max-height: none;
    overflow: visible;
}
#searchResultsList .list-group-item {
    white-space: normal;
    text-align: left;
}
.sheet-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    z-index: 11000;
}
.box-sheet-modal {
    position: fixed;
    inset: 0;
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    transform: translateY(12px);
    border-radius: 0;
    background: #fff;
    box-shadow: none;
    z-index: 11010;
    opacity: 0;
    transition: transform 0.22s ease, opacity 0.22s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.box-sheet-modal.is-open {
    opacity: 1;
    transform: translateY(0);
}
.hidden {
    display: none !important;
}
body.box-sheet-open {
    overflow: hidden;
}
body.box-sheet-open .app-nav--mobile,
body.box-sheet-open .app-nav--desktop {
    visibility: hidden;
    pointer-events: none;
}
.box-sheet__appbar {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 56px;
    padding: max(10px, env(safe-area-inset-top, 0px)) 14px 10px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.08);
    background: #fff;
}
.box-sheet__back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    background: transparent;
    color: var(--ink-900, #1b1b2e);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.2;
    padding: 10px 8px 10px 2px;
    min-height: 48px;
    cursor: pointer;
}
.box-sheet__back-arrow {
    font-size: 22px;
    line-height: 1;
}
.box-sheet__appbar-brand {
    flex: 1 1 auto;
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    color: var(--ink-700, #475569);
}
.box-sheet__appbar-spacer {
    width: 88px;
    flex: 0 0 auto;
}
.box-sheet__scroll {
    flex: 1 1 auto;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 12px 0 20px;
}
.box-sheet__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px 8px;
}
.box-sheet__image {
    margin: 0 16px 8px;
    border-radius: 16px;
    overflow: hidden;
    background: #f1f5f9;
    border: 1px solid rgba(15, 23, 42, 0.08);
}
.box-sheet__image img {
    width: auto;
    height: auto;
    max-width: 100%;
    display: block;
    max-height: 350px;
    object-fit: contain;
}
.box-sheet__title {
    font-size: 22px;
    font-weight: 800;
    margin: 4px 16px 12px;
    color: var(--ink-900, #0f172a);
    line-height: 1.25;
}
.box-sheet__image {
    margin: 4px 16px 12px;
    width: calc(100% - 32px);
    height: auto;
    max-height: 350px;
    border-radius: var(--radius-md, 16px);
    overflow: hidden;
    background: var(--primary-050, #EEEAF6);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.box-sheet__image-img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 350px;
    object-fit: contain;
    border-radius: var(--radius-md, 16px);
    background: #fff;
}
.box-sheet__image-img.box-photo--cover { object-fit: contain; }
.box-sheet__image-img.box-photo--contain { object-fit: contain; background: #fff; }
.box-sheet__image-img + .box-sheet__image-placeholder { display: none; }
.box-sheet__image:has(.box-sheet__image-img[src]:not([src=""])) {
    cursor: zoom-in;
}
.box-sheet__image-zoom {
    position: absolute;
    right: 10px;
    bottom: 10px;
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 999px;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.72);
    color: #fff;
    font-size: 16px;
    pointer-events: none;
}
.box-sheet__image:has(.box-sheet__image-img[src]:not([src=""])) .box-sheet__image-zoom {
    display: inline-flex;
}
.box-sheet__image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--primary, #4361EE);
    opacity: 0.35;
    font-size: 2.5rem;
}
.box-sheet__readonly-hint {
    margin: 4px 16px 8px;
    font-size: 14px;
    color: #64748b;
}
.box-sheet__actions {
    flex: 0 0 auto;
    display: flex;
    gap: 12px;
    margin: 0;
    padding: 12px 16px calc(16px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    background: #fff;
}
.box-sheet__actions .btn-pill {
    flex: 1;
    min-height: 52px;
    font-size: 16px;
}
/* Image Lightbox */
.img-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10100;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    animation: lbFadeIn 0.2s ease;
}
.img-lightbox.hidden { display: none !important; }
@keyframes lbFadeIn { from { opacity: 0; } to { opacity: 1; } }
.img-lightbox__img {
    max-width: 92vw;
    max-height: 72vh;
    object-fit: contain;
    border-radius: var(--radius-md, 16px);
    box-shadow: 0 8px 40px rgba(0,0,0,0.4);
}
.img-lightbox__img {
    max-width: min(96vw, 1200px);
    max-height: min(78vh, 900px);
    width: auto;
    height: auto;
    object-fit: contain;
}
.img-lightbox__close {
    position: absolute;
    top: max(12px, env(safe-area-inset-top));
    right: 12px;
    z-index: 2;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    font-size: 20px;
    cursor: pointer;
}
.img-lightbox__close:hover { background: rgba(255, 255, 255, 0.28); }
.img-lightbox__back {
    margin-top: 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    background: var(--primary, #4361EE);
    border: none;
    border-radius: var(--radius-pill, 999px);
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease;
}
.img-lightbox__back:hover { background: var(--primary-hover, #5B78F0); }
.img-lightbox__back:active { transform: scale(0.96); }
.img-lightbox__back i { font-size: 20px; }
.box-sheet__pill {
    margin: 0 16px;
    margin-bottom: 8px;
    background: var(--ink-900, #0f172a);
    color: #f9fafb;
    border-radius: var(--radius-md, 16px);
    padding: 8px 12px;
    font-size: var(--text-sm, 14px);
    font-weight: 600;
    opacity: 0.95;
}
.box-sheet__info {
    margin: 4px 16px 8px;
    background: var(--green-050, #eefbf2);
    border-radius: var(--radius-md, 16px);
    padding: 10px 12px;
    font-size: var(--text-sm, 14px);
    color: var(--ink-900, #0f172a);
}
.box-sheet__qr {
    margin: 0 16px 8px;
    color: #f59e0b;
    font-size: 12px;
    font-weight: 700;
}
.box-sheet__address .info-label {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 2px;
}
.box-sheet__address .info-value {
    display: block;
    color: #0f172a;
    text-decoration: underline;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    max-width: 100%;
    font-size: 15px;
    line-height: 1.4;
    word-break: break-word;
}
.hk-map-top {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.hk-map-search {
    width: 100%;
    flex-shrink: 0;
}
.hk-map-search-field {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #ffffff;
    border-radius: 999px;
    padding: 0 0.9rem;
    min-height: 48px;
    height: 48px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    border: 1px solid rgba(15, 23, 42, 0.08);
    font-size: 0.95rem;
    color: #6c757d;
    overflow: visible;
    box-sizing: border-box;
}
.hk-map-search-field i {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    line-height: 1;
    color: var(--green-600, #16a34a);
}
.place-suggestion-item strong,
.box-suggestion-item strong {
    font-weight: 600;
}

/* Kumbara arama popup */
.box-search-modal {
    max-width: min(420px, calc(100vw - 24px));
    max-height: min(78dvh, calc(100dvh - 3rem));
    display: flex;
    flex-direction: column;
}
.box-search-modal .ui-modal__body {
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}
.box-search-field {
    flex: 0 0 auto;
}
.box-search-results-scroll {
    flex: 1 1 auto;
    min-height: 120px;
    max-height: min(50dvh, 320px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
}
.box-search-results-scroll .list-group-item {
    border-left: 0;
    border-right: 0;
}
.hk-map-search-input {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    outline: none;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
    font-size: 16px;
    line-height: 1.35;
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0;
    align-self: center;
    color: #212529;
}
.hk-map-search-input::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
}
.hk-map-search-input::placeholder {
    color: #6c757d;
}
.hk-map-filters {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
}
.hk-map-filters::-webkit-scrollbar {
    display: none;
}
.hk-map-user-filter {
    position: static;
    flex-shrink: 0;
}
.hk-map-user-filter .form-select,
.map-user-filter-select {
    min-height: 52px;
    height: 52px;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    background: #fff;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
    font-size: 0.95rem;
    padding: 0 1rem;
}
.create-box-close-pos {
    top: 0.5rem;
    right: 0.5rem;
}
#pwa-install-banner[aria-hidden="true"] {
    display: none !important;
}

/* ========== Box create sayfası (yeni kumbara – harita alanı) ========== */
.hk-box-map-container #map {
    width: 100%;
    height: calc(100vh - 220px);
    min-height: 360px;
    border-radius: 0.75rem;
}
.hk-box-map-container {
    margin-bottom: 1rem;
}
@media (max-width: 768px) {
    .hk-box-map-container #map {
        height: calc(100vh - 200px);
        min-height: 320px;
    }
}

/* ========== İstatistikler sayfası ========== */
.stats-skeleton-page { max-width: 1200px; margin: 0 auto; }
.stats-skeleton-page .card { min-height: 0; }
@media (max-width: 768px) {
    .stats-skeleton-page { overflow: hidden; }
    .stats-skeleton-page .row { margin-bottom: 0.5rem; }
}

/* ========== Offline sayfası (standalone) ========== */
body.offline-body {
    background: #EAF7F0;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    margin: 0;
    font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    color: #0f172a;
}
.offline-container {
    background: #fff;
    border-radius: 24px;
    padding: 32px 24px;
    text-align: center;
    box-shadow: 0 16px 46px rgba(16, 24, 40, 0.10);
    border: 1px solid rgba(15, 23, 42, 0.08);
    max-width: 420px;
    width: 100%;
}
.offline-icon {
    width: 84px;
    height: 84px;
    margin: 0 auto 18px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    color: #167A5D;
    background: #DDF3EA;
}
.offline-container h1 {
    font-size: 1.4rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 10px;
}
.offline-container p {
    color: #64748b;
    font-size: 0.95rem;
    margin-bottom: 12px;
}
.offline-container .lead { font-size: 1rem; }
.offline-container .btn-retry,
.offline-container .btn {
    margin-top: 12px;
    width: 100%;
    height: 52px;
    border-radius: 999px;
    border: 0;
    background: #167A5D;
    color: #fff;
    font-weight: 800;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.offline-container .btn:hover { background: #13684F; color: #fff; }

/* ========== Etiket yazdırma (labels – A4) ========== */
@page {
    margin: 0;
    size: A4 portrait;
}
.body-labels-print {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    font-size: 10px;
}
.label-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(5, 1fr);
    width: 210mm;
    height: 297mm;
    gap: 0;
    page-break-after: always;
}
.label-grid:last-child {
    page-break-after: auto;
}
.label {
    width: 105mm;
    height: 59.4mm;
    border: 1px solid #ccc;
    padding: 3mm;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}
.label-name {
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 2mm;
    word-wrap: break-word;
    max-width: 100%;
}
.label-id {
    font-size: 10px;
    color: #666;
    margin-bottom: 2mm;
}
.label-barcode {
    margin: 2mm 0;
    max-width: 100%;
    max-height: 20mm;
}
.label-qr {
    margin: 2mm 0;
    width: 25mm;
    height: 25mm;
}
.label-barcode-value {
    font-size: 8px;
    color: #333;
    margin-top: 1mm;
}

/* ========== Kumbara detay (boxes/show) ========== */
.box-show-qr-img,
.box-show-barcode-img {
    max-height: 150px;
}
.box-show-placeholder {
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.box-show-placeholder-icon {
    font-size: 3rem;
    color: #ccc;
}

/* ========== QR okut sayfası ========== */
#qr-reader {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}
#qr-reader__scan_region {
    border-radius: 0.5rem;
}
.scan-status {
    text-align: center;
    padding: 1rem;
    margin-bottom: 1rem;
}
.scan-camera-off-icon {
    font-size: 3rem;
}
.scan-controls.d-none {
    display: none !important;
}

/* ========== Admin kullanıcılar (form select genişlik) ========== */
.form-select-min-w-120 { min-width: 120px; }
.form-select-min-w-110 { min-width: 110px; }

/* ========== Uyarı modal (component) ========== */
.warning-modal-icon {
    font-size: 4rem;
}

/* ========== Welcome / SVG blend (dekoratif) ========== */
.svg-blend-hard-light { mix-blend-mode: hard-light; }
.svg-blend-plus-darker { mix-blend-mode: plus-darker; }
