:root {
    --bg-topbar: rgba(15, 23, 42, 0.96);
    --bg-topbar-elevated: #1e293b;
    --bg-surface: #0f172a;
    --border-subtle: rgba(255, 255, 255, 0.1);
    --border-focus: #38bdf8;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --accent-primary: #f43f5e;
    --accent-secondary: #38bdf8;

    /* Kategorijų spalvos */
    --cat-all: #f43f5e;
    --cat-cruise: #06b6d4;
    --cat-car: #f59e0b;
    --cat-plane: #8b5cf6;
    --cat-lt: #10b981;

    --shadow-lg: 0 10px 30px -5px rgba(0, 0, 0, 0.45);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-pill: 9999px;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: var(--font-sans);
    background-color: var(--bg-surface);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
}

.app-layout {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100dvh;
}

/* ==========================================================================
   Viršutinė moderni tamsi juosta
   ========================================================================== */
.top-bar {
    position: relative;
    z-index: 1000;
    background: var(--bg-topbar);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
    flex-shrink: 0;
}

.top-bar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 1.25rem;
    max-width: 1920px;
    margin: 0 auto;
    flex-wrap: wrap;
}

/* 1) Logotipo ir grįžimo mygtuko dalis */
.brand-section {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-shrink: 0;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.48rem 0.85rem;
    background-color: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.back-btn:hover {
    background-color: rgba(255, 255, 255, 0.12);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.22);
    transform: translateX(-2px);
}

.back-btn__arrow {
    font-size: 0.95rem;
    line-height: 1;
    transition: transform 0.2s ease;
}

.back-btn:hover .back-btn__arrow {
    transform: translateX(-2px);
}

.brand-divider {
    width: 1px;
    height: 26px;
    background-color: var(--border-subtle);
}

.brand-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    color: var(--text-primary);
    transition: opacity 0.2s ease;
}

.brand-logo:hover {
    opacity: 0.9;
}

.brand-logo__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, #f43f5e 0%, #fb7185 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(244, 63, 94, 0.35);
    flex-shrink: 0;
}

.brand-logo__text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.brand-logo__title {
    font-size: 1.02rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.brand-logo__subtitle {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-secondary);
}

/* 2) Statistikos skaitikliai (Šalys | Vietos | Vlogai) */
.stats-bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.42rem 1rem;
    background: rgba(30, 41, 59, 0.75);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-pill);
    flex-shrink: 0;
}

.stat-item {
    display: inline-flex;
    align-items: baseline;
    gap: 0.35rem;
}

.stat-item__value {
    font-size: 0.98rem;
    font-weight: 800;
    color: #38bdf8;
    font-variant-numeric: tabular-nums;
}

.stat-item__label {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.stat-divider {
    color: rgba(255, 255, 255, 0.16);
    font-size: 0.85rem;
    user-select: none;
}

/* 3) Paieškos laukelis ir kategorijų filtrai */
.controls-section {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 220px;
}

.search-box__icon {
    position: absolute;
    left: 0.75rem;
    color: var(--text-secondary);
    pointer-events: none;
}

.search-box__input {
    width: 100%;
    padding: 0.48rem 2rem 0.48rem 2.2rem;
    background-color: rgba(30, 41, 59, 0.85);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-pill);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.83rem;
    outline: none;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.search-box__input::placeholder {
    color: var(--text-muted);
}

.search-box__input:focus {
    background-color: #1e293b;
    border-color: var(--border-focus);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.18);
}

/* Pašaliname numatytąjį WebKit kryželį search inpute */
.search-box__input::-webkit-search-cancel-button {
    -webkit-appearance: none;
    appearance: none;
}

.search-box__clear {
    position: absolute;
    right: 0.55rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-secondary);
    font-size: 0.68rem;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.search-box__clear:hover {
    background: rgba(255, 255, 255, 0.24);
    color: var(--text-primary);
}

/* Kategorijų filtrai */
.category-filters {
    display: flex;
    align-items: center;
    gap: 0.38rem;
    flex-wrap: wrap;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    padding: 0.44rem 0.82rem;
    background-color: rgba(30, 41, 59, 0.7);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-pill);
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s ease;
    white-space: nowrap;
}

.filter-chip:hover {
    background-color: rgba(51, 65, 85, 0.75);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.22);
}

.filter-chip.is-active {
    background-color: var(--text-primary);
    color: #0f172a;
    border-color: var(--text-primary);
    box-shadow: 0 2px 10px rgba(255, 255, 255, 0.18);
}

.filter-chip__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.filter-chip__dot--all {
    background-color: var(--cat-all);
}

.filter-chip__dot--cruise {
    background-color: var(--cat-cruise);
}

.filter-chip__dot--car {
    background-color: var(--cat-car);
}

.filter-chip__dot--plane {
    background-color: var(--cat-plane);
}

.filter-chip__dot--lt {
    background-color: var(--cat-lt);
}

.controls-divider {
    width: 1px;
    height: 22px;
    background-color: var(--border-subtle);
}

/* Filtravimas pagal šeimos narį (Tomas / Sandra / Lukas / Linas) */
.traveler-filters {
    display: flex;
    align-items: center;
    gap: 0.32rem;
    flex-wrap: wrap;
}

.traveler-filters__label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-right: 0.15rem;
}

.traveler-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.36rem 0.68rem;
    background-color: rgba(30, 41, 59, 0.65);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-pill);
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.76rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s ease;
    white-space: nowrap;
}

.traveler-chip:hover {
    background-color: rgba(51, 65, 85, 0.75);
    color: var(--text-primary);
    border-color: rgba(56, 189, 248, 0.35);
}

.traveler-chip.is-active {
    background-color: rgba(56, 189, 248, 0.2);
    color: #38bdf8;
    border-color: #38bdf8;
    box-shadow: 0 2px 8px rgba(56, 189, 248, 0.18);
}

/* ==========================================================================
   Žemėlapio sritis (visas likęs ekranas po juosta)
   ========================================================================== */
.map-wrapper {
    position: relative;
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
}

#map {
    width: 100%;
    height: 100%;
    z-index: 1;
    background-color: #e2e8f0;
}

/* Švelnus pastelinis filtras OpenStreetMap plytelėms (neveikia smeigtukų ir šalių poligonų) */
#map .leaflet-tile-pane {
    filter: saturate(0.68) contrast(0.94) brightness(1.04);
}

/* Tuščios paieškos pranešimas */
.empty-state {
    position: absolute;
    inset: 0;
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    padding: 1rem;
}

.empty-state[hidden] {
    display: none;
}

.empty-state__card {
    pointer-events: auto;
    background: rgba(15, 23, 42, 0.94);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.6rem;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.empty-state__title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.85rem;
}

.empty-state__btn {
    padding: 0.48rem 1rem;
    border: none;
    border-radius: var(--radius-pill);
    background: linear-gradient(135deg, #f43f5e 0%, #fb7185 100%);
    color: #fff;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.15s ease, opacity 0.15s ease;
}

.empty-state__btn:hover {
    opacity: 0.92;
    transform: translateY(-1px);
}

/* ==========================================================================
   Individualūs Leaflet žymekliai (CSS Smeigtukai) ir Popup kortelės
   ========================================================================== */
.custom-pin-wrapper {
    background: transparent;
    border: none;
}

.custom-pin {
    position: relative;
    width: 36px;
    height: 36px;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.42);
    border: 2.5px solid #ffffff;
    transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.22s ease;
    cursor: pointer;
}

.custom-pin::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: -6px;
    width: 10px;
    height: 10px;
    background: rgba(15, 23, 42, 0.28);
    border-radius: 50%;
    filter: blur(2px);
    z-index: -1;
}

.custom-pin:hover {
    transform: rotate(-45deg) scale(1.18) translateY(-2px);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.55);
}

.custom-pin__inner {
    transform: rotate(45deg);
    font-size: 15px;
    line-height: 1;
    user-select: none;
}

/* Skirtingų spalvų CSS smeigtukai pagal kategoriją */
.custom-pin--cruise {
    background: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%);
}

.custom-pin--car {
    background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%);
}

.custom-pin--plane {
    background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 100%);
}

.custom-pin--lt {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
}

/* Leaflet Popup kortelės dizainas */
.leaflet-popup-content-wrapper {
    background: #0f172a;
    color: var(--text-primary);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.6);
    padding: 0;
    overflow: hidden;
}

.leaflet-popup-content {
    margin: 0;
    width: 300px !important;
    font-family: var(--font-sans);
}

.leaflet-popup-tip {
    background: #0f172a;
}

.leaflet-container a.leaflet-popup-close-button {
    color: #cbd5e1;
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(30, 41, 59, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    padding: 0;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.leaflet-container a.leaflet-popup-close-button:hover {
    background: #f43f5e;
    color: #ffffff;
}

.popup-card__header {
    padding: 1.05rem 1.15rem 0.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(180deg, rgba(30, 41, 59, 0.6) 0%, rgba(15, 23, 42, 0) 100%);
}

.popup-card__badges {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 0.55rem;
    padding-right: 1.5rem;
}

.popup-card__category {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-pill);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #ffffff;
}

.popup-card__category--cruise {
    background: rgba(6, 182, 212, 0.25);
    border: 1px solid rgba(6, 182, 212, 0.5);
    color: #67e8f9;
}

.popup-card__category--car {
    background: rgba(245, 158, 11, 0.25);
    border: 1px solid rgba(245, 158, 11, 0.5);
    color: #fcd34d;
}

.popup-card__category--plane {
    background: rgba(139, 92, 246, 0.25);
    border: 1px solid rgba(139, 92, 246, 0.5);
    color: #c4b5fd;
}

.popup-card__category--lt {
    background: rgba(16, 185, 129, 0.25);
    border: 1px solid rgba(16, 185, 129, 0.5);
    color: #6ee7b7;
}

.popup-card__country {
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.popup-card__title {
    font-size: 1.08rem;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.3;
    margin-bottom: 0.35rem;
}

.popup-card__date {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.76rem;
    font-weight: 500;
    color: #38bdf8;
}

.popup-card__travelers {
    display: flex;
    flex-wrap: wrap;
    gap: 0.32rem;
    margin-top: 0.55rem;
}

.popup-card__traveler-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.16rem 0.52rem;
    border-radius: var(--radius-pill);
    background: rgba(56, 189, 248, 0.14);
    border: 1px solid rgba(56, 189, 248, 0.35);
    color: #e0f2fe;
    font-size: 0.69rem;
    font-weight: 600;
}

.popup-card__body {
    padding: 0.85rem 1.15rem 1.1rem;
}

.popup-card__desc {
    font-size: 0.84rem;
    line-height: 1.55;
    color: #cbd5e1;
    margin-bottom: 0.95rem;
}

.popup-card__desc:last-child {
    margin-bottom: 0;
}

.popup-card__videos {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.popup-card__yt-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.62rem 0.95rem;
    border-radius: 10px;
    background: linear-gradient(135deg, #ef4444 0%, #f43f5e 100%);
    color: #ffffff !important;
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 700;
    box-shadow: 0 4px 14px rgba(239, 68, 68, 0.4);
    transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.popup-card__yt-btn:hover {
    filter: brightness(1.08);
    box-shadow: 0 6px 18px rgba(239, 68, 68, 0.55);
    transform: translateY(-1px);
}

/* Aplankytos šalies Tooltip dizainas */
.leaflet-tooltip.country-tooltip {
    background: rgba(15, 23, 42, 0.94);
    color: #f8fafc;
    border: 1px solid rgba(56, 189, 248, 0.45);
    border-radius: 8px;
    padding: 0.35rem 0.7rem;
    font-family: var(--font-sans);
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.35);
    backdrop-filter: blur(8px);
}

.leaflet-tooltip-top.country-tooltip::before {
    border-top-color: rgba(15, 23, 42, 0.94);
}

/* ==========================================================================
   Administravimo režimas: spynos mygtukas ir šoninis skydelis
   ========================================================================== */
.admin-lock-btn {
    position: absolute;
    left: 14px;
    bottom: 14px;
    z-index: 800;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(8px);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0.48;
    transition: opacity 0.2s ease, transform 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.admin-lock-btn:hover,
.admin-lock-btn.is-active {
    opacity: 1;
    background: rgba(15, 23, 42, 0.96);
    color: #38bdf8;
    border-color: rgba(56, 189, 248, 0.5);
    transform: scale(1.06);
}

.admin-panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 400px;
    max-width: 100%;
    z-index: 900;
    background: rgba(15, 23, 42, 0.97);
    backdrop-filter: blur(18px);
    border-left: 1px solid var(--border-subtle);
    box-shadow: -12px 0 36px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    color: var(--text-primary);
}

.admin-panel[hidden] {
    display: none;
}

.admin-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 1.15rem;
    border-bottom: 1px solid var(--border-subtle);
    flex-shrink: 0;
}

.admin-panel__title-wrap {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.admin-panel__badge {
    padding: 0.18rem 0.5rem;
    border-radius: 6px;
    background: rgba(56, 189, 248, 0.18);
    border: 1px solid rgba(56, 189, 248, 0.45);
    color: #38bdf8;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.05em;
}

.admin-panel__title {
    font-size: 0.98rem;
    font-weight: 700;
}

.admin-panel__close {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--border-subtle);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.admin-panel__close:hover {
    background: rgba(244, 63, 94, 0.85);
    color: #ffffff;
}

/* Eksportavimo mygtukai */
.admin-export-bar {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 0.55rem;
    padding: 0.75rem 1.15rem;
    background: rgba(30, 41, 59, 0.65);
    border-bottom: 1px solid var(--border-subtle);
    flex-shrink: 0;
}

.admin-panel__content {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 1rem 1.15rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.admin-section {
    background: rgba(30, 41, 59, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-md);
    padding: 0.95rem;
}

.admin-section__header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.65rem;
}

.admin-section__heading {
    font-size: 0.88rem;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 0.5rem;
}

.admin-section__header-row .admin-section__heading {
    margin-bottom: 0;
}

.admin-hint {
    font-size: 0.76rem;
    line-height: 1.45;
    color: #cbd5e1;
    background: rgba(56, 189, 248, 0.1);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.65rem;
    margin-bottom: 0.8rem;
}

.admin-form {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.admin-form__row--2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
}

.admin-field {
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
}

.admin-field__label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.admin-add-video-btn {
    padding: 0.18rem 0.5rem;
    border-radius: 6px;
    border: 1px solid rgba(56, 189, 248, 0.45);
    background: rgba(56, 189, 248, 0.14);
    color: #38bdf8;
    font-family: inherit;
    font-size: 0.7rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.admin-add-video-btn:hover {
    background: rgba(56, 189, 248, 0.28);
}

.admin-videos-container {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.admin-videos-empty {
    font-size: 0.73rem;
    color: var(--text-muted);
    font-style: italic;
    padding: 0.25rem 0;
}

.admin-video-row {
    display: grid;
    grid-template-columns: 1fr 1.3fr auto;
    gap: 0.35rem;
    align-items: center;
}

.admin-video-row__remove {
    width: 26px;
    height: 28px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.72rem;
}

.admin-video-row__remove:hover {
    background: rgba(244, 63, 94, 0.22);
    border-color: rgba(244, 63, 94, 0.5);
    color: #fb7185;
}

.admin-field label {
    font-size: 0.73rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.admin-field input,
.admin-field select,
.admin-field textarea,
.admin-country-form__input {
    width: 100%;
    padding: 0.46rem 0.65rem;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.8rem;
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.admin-field textarea {
    resize: vertical;
    min-height: 56px;
}

.admin-field input:focus,
.admin-field select:focus,
.admin-field textarea:focus,
.admin-country-form__input:focus {
    border-color: var(--border-focus);
    box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.18);
}

.admin-form__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.admin-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.5rem 0.8rem;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.16s ease;
    white-space: nowrap;
}

.admin-btn--primary {
    background: linear-gradient(135deg, #0284c7 0%, #06b6d4 100%);
    color: #ffffff;
}

.admin-btn--primary:hover {
    filter: brightness(1.08);
}

.admin-btn--secondary {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.16);
    color: var(--text-primary);
}

.admin-btn--secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

.admin-btn--accent {
    flex: 1;
    background: linear-gradient(135deg, #f43f5e 0%, #fb7185 100%);
    color: #ffffff;
}

.admin-btn--accent:hover {
    filter: brightness(1.08);
}

.admin-btn--ghost {
    background: transparent;
    border-color: var(--border-subtle);
    color: var(--text-secondary);
}

.admin-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

/* Šalių ISO kodų valdymas */
.admin-country-form {
    display: flex;
    gap: 0.45rem;
    margin-bottom: 0.65rem;
}

.admin-country-form__input {
    text-transform: uppercase;
}

.admin-countries-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.admin-country-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.22rem 0.5rem;
    background: rgba(6, 182, 212, 0.16);
    border: 1px solid rgba(6, 182, 212, 0.4);
    border-radius: var(--radius-pill);
    color: #67e8f9;
    font-size: 0.73rem;
    font-weight: 700;
}

.admin-country-chip__remove {
    border: none;
    background: transparent;
    color: #94a3b8;
    cursor: pointer;
    font-size: 0.72rem;
    line-height: 1;
    padding: 0 2px;
}

.admin-country-chip__remove:hover {
    color: #f43f5e;
}

/* Esamų taškų sąrašas */
.admin-places-list {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    max-height: 290px;
    overflow-y: auto;
    padding-right: 2px;
}

.admin-place-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.55rem 0.65rem;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
}

.admin-place-item__info {
    min-width: 0;
    flex: 1;
}

.admin-place-item__title {
    font-size: 0.8rem;
    font-weight: 700;
    color: #f8fafc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-place-item__meta {
    font-size: 0.7rem;
    color: var(--text-secondary);
}

.admin-place-item__actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
}

.admin-icon-btn {
    padding: 0.28rem 0.5rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.admin-icon-btn:hover {
    background: rgba(56, 189, 248, 0.18);
    border-color: rgba(56, 189, 248, 0.45);
    color: #38bdf8;
}

.admin-icon-btn--danger:hover {
    background: rgba(244, 63, 94, 0.2);
    border-color: rgba(244, 63, 94, 0.5);
    color: #fb7185;
}

/* Šeimos narių varnelės (checkboxes) admin formoje */
.admin-travelers-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.45rem;
}

.admin-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.42rem 0.6rem;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-primary) !important;
    cursor: pointer;
    user-select: none;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.admin-checkbox-label:hover {
    border-color: rgba(56, 189, 248, 0.45);
}

.admin-checkbox-label input[type="checkbox"] {
    width: 15px;
    height: 15px;
    accent-color: #38bdf8;
    cursor: pointer;
    margin: 0;
}

/* Laikinas paspaudimo žymeklis žemėlapyje admin režime */
.admin-pick-pin {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #f43f5e;
    border: 3px solid #ffffff;
    box-shadow: 0 0 0 4px rgba(244, 63, 94, 0.35), 0 4px 12px rgba(0, 0, 0, 0.45);
}

/* ==========================================================================
   Adaptyvumas (Responsive)
   ========================================================================== */
@media (max-width: 1180px) {
    .top-bar__inner {
        gap: 0.75rem;
    }

    .controls-section {
        width: 100%;
        justify-content: space-between;
        padding-top: 0.35rem;
        border-top: 1px solid rgba(255, 255, 255, 0.06);
    }

    .search-box {
        flex: 1 1 240px;
    }
}

@media (max-width: 768px) {
    .top-bar__inner {
        padding: 0.65rem 0.85rem;
        gap: 0.6rem;
    }

    .brand-section {
        width: 100%;
        justify-content: space-between;
    }

    .brand-divider,
    .controls-divider {
        display: none;
    }

    .brand-logo {
        order: -1;
    }

    .stats-bar {
        width: 100%;
        justify-content: center;
    }

    .controls-section {
        flex-direction: column;
        align-items: stretch;
        gap: 0.55rem;
    }

    .search-box {
        flex: 1 1 auto;
        width: 100%;
    }

    .category-filters,
    .traveler-filters {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 2px;
        scrollbar-width: none;
    }

    .category-filters::-webkit-scrollbar,
    .traveler-filters::-webkit-scrollbar {
        display: none;
    }
}
