﻿/* --- ОСНОВНЫЕ ПЕРЕМЕННЫЕ И ЦВЕТА --- */
:root {
    --agr-orange: #FB6713;
    --agr-blue: #3498DB;
    --agr-green: #2ECC71;
    --agr-black: #2C3E50;
    --agr-gray: #BDC3C7;
    --agr-light-gray: #ECF0F1;
    --agr-super-light-gray: #F8F9FA;
    --agr-red: #EE5353;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--agr-black);
    background-color: #ffffff;
}

/* --- ХЛЕБНЫЕ КРОШКИ (Breadcrumbs) --- */
.agr-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    padding: 0.8rem 1rem;
    margin-bottom: 0;
    list-style: none;
    background-color: var(--agr-super-light-gray);
    font-size: 14px;
    border-bottom: 1px solid var(--agr-light-gray);
}

.agr-breadcrumb-item + .agr-breadcrumb-item {
    padding-left: 0.5rem;
}

    .agr-breadcrumb-item + .agr-breadcrumb-item::before {
        display: inline-block;
        padding-right: 0.5rem;
        color: var(--agr-gray);
        content: "/";
    }

.agr-breadcrumb-item a {
    color: var(--agr-blue);
    text-decoration: none;
    transition: color 0.2s;
}

    .agr-breadcrumb-item a:hover {
        color: var(--agr-orange);
    }

.agr-breadcrumb-item.active {
    color: var(--agr-gray);
}

/* --- ТЕГИ ЛОКАЦИЙ (Orange Tags) --- */
.orange-tag-border {
    display: inline-flex;
    align-items: center;
    background-color: #ffffff;
    border: 1px solid var(--agr-orange);
    border-radius: 20px;
    padding: 4px 12px;
    margin: 4px 2px;
    color: var(--agr-black);
    font-size: 14px;
    white-space: nowrap;
}

.tag-delete-icon {
    margin-left: 8px;
    cursor: pointer;
    color: var(--agr-orange);
    font-weight: bold;
}

/* --- ПРЕДПРОСМОТР ИЗОБРАЖЕНИЙ (Image Gallery) --- */
.image-line-container {
    position: relative;
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    margin-right: 8px;
}

.image-line-preview {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid var(--agr-light-gray);
}

.image-line-delete {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--agr-red);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    font-size: 14px;
    line-height: 1;
}

/* --- СТИЛИ ФОРМ И ИНПУТОВ --- */
.cursor-pointer {
    cursor: pointer;
}

.link-text-black {
    color: var(--agr-black);
    text-decoration: none;
    font-size: 16px;
}

.form-control:focus {
    border-color: var(--agr-orange);
    box-shadow: 0 0 0 0.2rem rgba(251, 103, 19, 0.25);
}

/* --- МОДАЛЬНЫЕ ОКНА (Custom Bootstrap) --- */
.modal-content {
    border-radius: 12px;
    border: none;
}

.modal-dialog-scrollable .modal-content {
    max-height: 90vh;
}

#modalListContainer div:active {
    background-color: var(--agr-super-light-gray);
}

.check-filter, .check-city {
    transition: opacity 0.2s;
}

/* --- ВСПОМОГАТЕЛЬНЫЕ КЛАССЫ --- */
.text-blue {
    color: var(--agr-blue);
}

.text-orange {
    color: var(--agr-orange);
}

.bg-orange {
    background-color: var(--agr-orange);
}

/* Адаптивный скролл для фото на мобильных */
.overflow-auto::-webkit-scrollbar {
    height: 4px;
}

.overflow-auto::-webkit-scrollbar-thumb {
    background: var(--agr-gray);
    border-radius: 10px;
}

/* Лоадер при загрузке фото */
#loader .spinner-border {
    width: 3rem;
    height: 3rem;
    color: var(--agr-orange) !important;
}
