/* ==========================================
   Global Styles
   ========================================== */

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


body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: #333;
    background: #27292b;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 0px;
}

/* ==========================================
   Navigation Bar
   ========================================== */

.navbar {
    background: linear-gradient(135deg, #333 0%, #1a191a 100%);
    height: 100px;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    box-shadow: 0 4px 20px rgba(33, 33, 33, 0.5);
    z-index: 100;
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.navbar .container {
    margin-top: 0;
    display: flex;    
    justify-content: space-between;
    align-items: center;
}

.nav-brand h1 {
    color: white;
    font-size: 24px;
    font-family: 'Playfair Display', serif;
    
}
.nav-brand a {
text-decoration: none;
}

.nav-menu {
    vertical-align: top;
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 5px 10px;
    border-radius: 4px;
}

.nav-menu a:hover,
.nav-menu a.active {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* ==========================================
   Hero Section
   ========================================== */

.hero {
    background: linear-gradient(135deg, #303030 0%, #333 100%);
    color: white;
    padding: 50px 20px;
    text-align: center;
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.hero-content h2 {
    font-size: 24px;
    margin-bottom: 20px;
    font-family: 'Roboto Condensed', serif;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero-content p {
    font-size: 16px;
    margin-bottom: 30px;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ==========================================
   Buttons
   ========================================== */

.btn {
    display: inline-block;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-primary {
    background: #3d3d3d;
    color: white;
    box-shadow: 0 4px 7px rgba(102, 126, 234, 0.4);
    
}

.btn-primary:hover {
    background: #5568d3;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
    animation: btn-prim-blink 0.8s infinite;
}
@keyframes btn-prim-blink {
        0%, 100% { opacity: 1; }
        50% { opacity: 0.3; }
}
.btn-secondary {
    background: #3d3d3d;
    color: #ffffff;
    box-shadow: 0 6px 7px rgba(102, 126, 234, 0.6);
    
}



.btn-secondary:hover {
    background: #5568d3;
    color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
    animation: btn-sec-blink 0.8s infinite;
}
@keyframes btn-sec-blink {
        0%, 100% { opacity: 1; }
        50% { opacity: 0.3; }
}

/* ==========================================
   Features Section
   ========================================== */

.features {
    padding: 20px 20px;
    background: #212021
}
.features a {

    text-decoration: none;
}

.features h2 {
    text-align: center;
    font-size: 20px;
    margin-bottom: 50px;
    color: #ffffff;
    font-family: 'Roboto Condensed', serif;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.feature-card {
    background: linear-gradient(135deg, #ffffff 0,5%, rgba(86, 86, 86, 0.1) 100%);
    padding: 20px 25px;
    border-radius: 12px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    backdrop-filter: blur(10px);
}

.feature-card a {
    text-decoration: none;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: #667eea;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
}

.feature-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.feature-card h3 {
    font-size: 22px;
    margin-bottom: 10px;
    color: #f6f4f4;
}

.feature-card p {
    color: #fbd8fd;
    font-size: 15px;
}

/* ==========================================
   Recent Posts Section
   ========================================== */

.recent-posts {
    padding: 20px 20px;
    background: #212021;
    
}

.recent-posts h2 {
    text-align: center;
    font-size: 20px;
    margin-bottom: 20px;
    color: #ffffff;
    font-family: 'Roboto Condensed', serif;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.post-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.post-header {
    background: linear-gradient(135deg, #1e1f1f 0%, #333 100%);
    color: white;
    padding: 12px 16px;
    font-size: 14px;
}

/* --- СЕТКА ФОТО (FIX С ПРИОРИТЕТОМ) --- */

.post-photos {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important; /* Ровно 3 колонки */
    gap: 4px !important;
    margin-top: 10px;
    width: 100%;
    box-sizing: border-box;
}

/* Стили для ссылок или картинок внутри */
.post-photos > * {
    display: block !important;
    width: 100% !important;
    height: 50px !important; /* Высота маленьких фото */
    overflow: hidden;
    margin: 0 !important;
    padding: 0 !important;
}

.post-photos img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    display: block !important;
    border-radius: 4px; /* Небольшое скругление для красоты */
}

/* --- САМОЕ ГЛАВНОЕ: ПЕРВОЕ ФОТО --- */
/* Растягиваем первый элемент (ссылку или img) на всю ширину */
.post-photos > *:first-child {
    grid-column: 1 / -1 !important; /* От первой до последней линии сетки */
    height: 140px !important;       /* Делаем его большим */
}

/* Если фото всего одно - делаем еще выше */
.post-photos > *:only-child {
    height: 180px !important;
}

.post-title {
    font-size: 18px;
    margin: 10px 0 6px;
    font-weight: 700;
}

.post-location {

font-size: 14px;
opacity: 0.9;
}

.post-content {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.post-info {
    font-size: 14px;
    margin-bottom: 10px;
}

.post-info-item {
background: #333;
padding: 10px;
border-radius: 6px;
}

.post-info-label {
font-weight: 600;
color: #667eea;
}

.post-main {
    flex: 1 1 auto;
}

.post-comment {
    font-size: 6px;
    margin-bottom: 10px;
    margin-top: auto;
}

.post-time {

font-size: 12px;
color: #999;
}

.view-all {
text-align: center;
}

/* ==========================================
Locations Section
========================================== */

.locations {
padding: 20px 20px;
background: #212021;
}

.locations h2 {
text-align: center;
font-size: 20px;
margin-bottom: 50px;
color: #ffffff;
font-family: 'Roboto Condensed', serif;
}

.locations-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
gap: 20px;
}

.location-card {
    position: relative;
    overflow: hidden;
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.location-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.location-image {
    width: 240px;
    height: 128px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.location-card:hover .location-image {
    transform: scale(1.05);
}

.location-card h3 {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    margin: 0;
    padding: 15px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
    font-size: 18px;
    font-weight: 600;
}

/* ==========================================
Footer
========================================== */

.footer {
background: #333;
color: white;
padding: 40px 20px;
text-align: center;
}

.footer p {
margin: 10px 0;
}

.footer p:last-child {
font-size: 14px;
opacity: 0.8;
}

/* ==========================================
Loading State
========================================== */

.loading {
text-align: center;
color: #999;
padding: 40px 20px;
font-size: 16px;
}

/* ==========================================
Responsive Design
========================================== */

@media (max-width: 768px) {
.navbar .container {
flex-direction: column;
gap: 15px;
}

.nav-menu {
    flex-direction: column;
    gap: 10px;
    text-align: center;
}

.nav-menu a {
    display: block;
}

.hero-content h2 {
    font-size: 32px;
}

.hero-content p {
    font-size: 16px;
}

.features h2,
.recent-posts h2,
.locations h2 {
    font-size: 32px;
}

.hero-buttons {
    flex-direction: column;
}

.btn {
    width: 100%;
}
}

@media (max-width: 480px) {
.nav-brand h1 {
font-size: 20px;
}

.hero {
    padding: 50px 20px;
}

.hero-content h2 {
    font-size: 24px;
}

.features-grid,
.posts-grid,
.locations-grid {
    grid-template-columns: 1fr;
}
}

/* ==========================================
   Search Page Styles
   ========================================== */

.page-header {
    background: linear-gradient(135deg, #303032 0%, #1c1c1c 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
    margin-top: 20px;
}

.page-header h1 {
    font-size: 48px;
    margin-bottom: 10px;
    font-family: 'Playfair Display', serif;
}

.page-header p {
    font-size: 18px;
    opacity: 0.95;
}

/* Search Section */
.search-section {
    padding: 60px 20px;
    background: white;
}

.search-filters {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 40px;
}

.filter-group {
    margin-bottom: 20px;
}

.filter-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.search-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-input-wrapper {
    display: flex;
    gap: 10px;
}

.search-input-wrapper .search-input {
    flex: 1;
}

.search-input-wrapper .btn {
    white-space: nowrap;
}

.filter-select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-select:hover,
.filter-select:focus {
    border-color: #667eea;
    outline: none;
}

.filters-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

#reset-filters-btn {
    margin-top: 10px;
}

/* Search Results */
.search-results {
    margin-bottom: 40px;
}

.search-results-header {
    margin-bottom: 30px;
}

.search-results-header h2 {
    font-size: 32px;
    margin-bottom: 10px;
    color: #333;
    font-family: 'Roboto Condensed', serif;
}

.results-count {
    color: #666;
    font-size: 16px;
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 12px;
    color: #666;
}

.no-results p {
    font-size: 18px;
    margin-bottom: 10px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 40px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 12px;
}

.page-info {
    font-weight: 600;
    color: #333;
    min-width: 150px;
    text-align: center;
}

.pagination .btn {
    padding: 10px 20px;
}

.pagination .btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination .btn:disabled:hover {
    transform: none;
}

/* Fish Stats (для графиков) */
.fish-stat {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.fish-stat span {
    min-width: 150px;
    font-weight: 600;
}

.stat-bar {
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 15px;
    border-radius: 4px;
    min-width: 50px;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-bar:hover {
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.simple-chart {
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

/* Location Map */
.location-map {
    background: white;
    padding: 30px;
    border-radius: 12px;
    
}

.location-map h2 {
    margin-bottom: 10px;
    font-family: 'Roboto Condensed', serif;
}

.map-info {
color: #666;
margin-bottom: 20px;
}

.map-placeholder {
background: #f8f9fa;
border: 2px dashed #ddd;
padding: 40px 20px;
border-radius: 8px;
text-align: center;
color: #999;
margin: 20px 0;

}

.posts-list {
margin-top: 30px;
}

.posts-list h3 {
margin-bottom: 20px;
color: #cac5c5;
}

/* All Locations */
.all-locations {
text-align: center;
padding: 40px 20px;
background: #f8f9fa;
border-radius: 12px;
}

.all-locations h2 {
margin-bottom: 10px;
color: #e1dfdf;
}

/* Responsive */
@media (max-width: 768px) {
.page-header h1 {
font-size: 32px;
}

.search-input-wrapper {
    flex-direction: column;
}

.filters-row {
    grid-template-columns: 1fr;
}

.pagination {
    flex-direction: column;
}
}

/* ==========================================
   Posts Section Styles
   ========================================== */

.posts-section {
    padding: 60px 20px;
    background: white;
}

.posts-filters {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    align-items: end;
}

.posts-filters .filter-group {
    margin: 0;
}

.posts-filters .btn {
    height: 46px;
    padding: 0 20px;
}

/* Posts Grid */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.post-card {
    background: #333;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.post-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.post-header {
    background: linear-gradient(135deg, #191919 0%, #333 100%);
    color: white;
    padding: 20px;
   
}

.post-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.post-location {
    font-size: 14px;
    opacity: 0.9;
}

.post-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-info {
    font-size: 14px;
    margin-bottom: 10px;
}
.post-info p {
    margin: 2px 0;
    color: #e0e0e0 !important;
}

.post-info-item {
    background: #424243;
    padding: 10px;
    border-radius: 6px;
    border-left: 3px solid #667eea;
}

.post-info-label {
    font-weight: 600;
    color: #667eea;
    display: block;
    margin-bottom: 4px;
}

.post-comment {
    color: #d5d5d5;
    font-size: 12px;
    line-height: 1.5;
    margin-bottom: 15px;
    flex: 1;
    background: #333;
    padding: 12px;
    border-radius: 6px;
}

.post-time {
    font-size: 12px;
    color: #eef0eb;
    border-top: 0px solid #eee;
    padding-top: 10px;
    margin-left: 10%;
}



.post-photos {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.post-photo {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.post-photo:hover {
    transform: scale(1.05);
}


/* Responsive */
@media (max-width: 768px) {
    .posts-filters {
        grid-template-columns: 1fr;
    }
    
    .posts-grid {
        grid-template-columns: 1fr;
    }
    
    .post-info {
        grid-template-columns: 1fr;
    }
}
/* ==========================================
   Map Page Styles
   ========================================== */

.map-section {
    padding: 60px 20px;
    background: white;
}

.map-container {
    margin-bottom: 40px;
}

.map {
    width: 100%;
    height: 600px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.location-info {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
}

.location-info-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.location-info h2 {
    color: #333;
    font-family: 'Roboto Condensed', serif;
    font-size: 32px;
}

.location-description {
    color: #666;
    font-size: 16px;
    margin-bottom: 20px;
    line-height: 1.6;
}

.location-stats {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.location-stats h3 {
    margin-bottom: 15px;
    color: #333;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.stat-item:last-child {
    border-bottom: none;
}

.stat-label {
    font-weight: 600;
    color: #667eea;
}

.stat-value {
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

.location-posts-list {
    margin-bottom: 20px;
}

.compact-post-card {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    border-left: 3px solid #667eea;
    transition: all 0.3s ease;
}

.compact-post-card:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.compact-post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.post-fish {
    font-weight: 600;
    color: #333;
}

.compact-post-info {
    display: flex;
    gap: 15px;
    margin-bottom: 8px;
    font-size: 13px;
    color: #666;
}

.compact-post-comment {
    font-size: 13px;
    color: #666;
    font-style: italic;
}

.btn-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 5px 10px;
    transition: all 0.3s ease;
}

.btn-close:hover {
    color: #333;
    transform: rotate(90deg);
}

/* ==========================================
   Stats Page Styles
   ========================================== */

.stats-section {
    padding: 60px 20px;
    background: white;
}

.stats-filters {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    align-items: end;
}

.stats-filters .filter-group {
    margin: 0;
}

.stats-filters .btn {
    height: 46px;
    padding: 0 20px;
}

.summary-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    padding: 25px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 20px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.stat-card:hover {
    border-color: #667eea;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.2);
}

.stat-icon {
    font-size: 48px;
}

.stat-content {
    flex: 1;
}

.stat-card .stat-value {
    font-size: 32px;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 5px;
}

.stat-card .stat-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.charts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}

.chart-container {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.chart-container h2 {
    color: #333;
    font-family: 'Roboto Condensed', serif;
    margin-bottom: 10px;
}

.chart-description {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
}

.chart-container canvas {
    max-height: 400px;
}

/* ==========================================
   Guide Page Styles
   ========================================== */

.guide-section {
    padding: 60px 20px;
    background: white;
}

.guide-search {
    max-width: 600px;
    margin: 0 auto 40px;
}

.fish-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 25px;
}

.fish-card {
    background: white;
    padding: 30px 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.fish-card:hover {
    border-color: #667eea;
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
}

.fish-icon {
    font-size: 64px;
    margin-bottom: 15px;
}

.fish-name {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.fish-description-short {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.5;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 14px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    background: white;
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: modalFadeIn 0.3s ease-out;
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px 30px;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    font-size: 28px;
    margin: 0;
    font-family: 'Roboto Condensed', serif;
}

.modal-header .btn-close {
    color: white;
}

.modal-body {
    padding: 30px;
}

.fish-icon-large {
    font-size: 96px;
    text-align: center;
    margin-bottom: 20px;
}

.fish-description {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 25px;
}

.fish-stats h3 {
    color: #333;
    margin-bottom: 15px;
}

.stats-list {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.stats-list .stat-item {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 0;
}

.modal-actions {
    text-align: center;
}

.modal-actions .btn {
    width: 100%;
}

/* Responsive */
@media (max-width: 768px) {
    .map {
        height: 400px;
    }
    
    .summary-stats {
        grid-template-columns: 1fr;
    }
    
    .stat-card {
        flex-direction: column;
        text-align: center;
    }
    
    .stats-filters {
        grid-template-columns: 1fr;
    }
    
    .fish-grid {
        grid-template-columns: 1fr;
    }
    
    .modal-content {
        max-height: 95vh;
    }
    
    .location-info h2 {
        font-size: 24px;
    }
}
.post-content {
    flex-grow: 1;
}

.post-comment {
    font-size: 12px;
    line-height: 1.4;
    vertical-align: bottom;
    
    /* Обрезаем до 3 строк */
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
    
}

@media (max-width: 768px) {
    .post-comment {
        -webkit-line-clamp: 5;
        font-size: 13px;
    }
}

.post-photo-wrapper {
    flex: 0 0 calc(33% - 8px);
}

.post-photo-wrapper img.post-photo {
    width: 100%;
    border-radius: 8px;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.2s;
}

.post-photo-wrapper img.post-photo:hover {
    transform: scale(1.05);
}

.post-photo {
    width: 100%;
    height: auto;
    border-radius: 8px;
    object-fit: cover;
}

/*для карты Тунгуска*/
.map-wrapper {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.map-container {
  position: relative;
  width: 900px; /* можно менять */
}

.map-container img {
  width: 100%;
  display: block;
}

.tooltip {
  position: absolute;
  pointer-events: none;
  background: rgba(0,0,0,0.75);
  color: #fff;
  padding: 4px 6px;
  font-size: 12px;
  border-radius: 4px;
  transform: translate(10px, 10px);
}

.marker {
  position: absolute;
  width: 14px;
  height: 14px;
  background: red;
  border-radius: 50%;
  border: 3px solid darkred;
  transform: translate(-50%, -50%);
  display: none;
}

.controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.controls input {
  width: 100px;
}

/* --- Стили для страницы карты (Dashboard) --- */

/* Общий контейнер: 2 колонки */
/* Макет во всю ширину экрана */
.map-dashboard-full {
    display: flex;
    width: 100%;       /* Занимаем всю ширину экрана */
    max-width: 100%;   /* Убираем ограничения контейнера */
    height: calc(100vh - 80px); /* Высота во весь экран минус шапка (примерно) */
    overflow: hidden;  /* Чтобы скролл был только у правой части */
}

/* Левая часть (Карта) - Фиксированная */
/* 1. Левая колонка: Ширина "подстраивается" под содержимое (картинку) */
.map-column {
    /* Было: flex: 0 0 65%; */
    flex: 0 0 auto;   /* Не растягиваться, занимать место только по контенту */
    height: 100%;
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid #333;
    /* --- ДОБАВИЛИ ОТСТУПЫ --- */
    padding-left: 40px;    /* Твои 40 пикселей слева */
    padding-right: 20px;   /* И немного справа, чтобы не прилипало к линии */
    
}

/* 2. Правая колонка: Забирает ВСЁ свободное место */
.sidebar-column {
    flex: 1;          /* Растягивается на всю оставшуюся ширину */
    height: 100%;
    overflow-y: auto;
    padding: 20px;
    background: #121212;
    min-width: 400px; /* Чтобы совсем не схлопнулась на узких экранах */
}

/* Блок управления (Input X/Y) */
.controls-panel {
    display: flex;
    flex-direction: column;
    
    gap: 10px;
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #eee;
}

.input-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.input-group label {
    font-weight: bold;
    width: 20px;
}

.input-group input {
    flex: 1;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Блок фильтров (Выпадающие списки) */
.filters-panel {
    display: flex;
    gap: 10px;
    
}

.filter-box {
    flex: 1;
}

.filter-box h4 {
    
    margin: 0 0 4px 0;
    font-size: 14px;
    color: #a4bfa7;
}

.filter-box select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}
.filter-box select {
    appearance: auto; /* Вернуть стандартную стрелочку и поведение браузера */
    -webkit-appearance: auto;
    -moz-appearance: auto;
    background: #333; /* Твой темный фон */
    color: white;
    cursor: pointer;
    z-index: 10;
}

/* Сетка постов (2 в ряд) */
/* 3. Сетка постов: Уменьшим минимум с 250px до 210px, чтобы 3 шт. влезали легче */
.sidebar-posts-grid {
    display: grid;
    /* Было: minmax(210px, 1fr) */
    /* Стало: minmax(300px, 1fr) - карточки будут широкими */
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); 
    gap: 15px;
    margin-top: 20px;
}

/* Адаптивность для мобилок */
@media (max-width: 900px) {
    .map-dashboard {
        flex-direction: column;
    }
    .map-column {
        flex: none;
        width: 100%;
        position: static;
    }
}
/* --- Адаптация карты под ТЕМНУЮ ТЕМУ --- */

/* 1. Левая колонка (Карта) */
.map-column {
    background: #1a1a1a; /* Темный фон вместо белого */
    border: 1px solid #333;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    border-radius: 8px; /* Скруглим углы */
    overflow: hidden;
}

/* 2. Правая панель (Инструменты) */
.controls-panel {
    background: #252525; /* Темно-серый фон карточки */
    border: 1px solid #3d3d3d;
    color: #fff; /* Белый текст */
}

/* Поля ввода (Input) в темном стиле */
.input-group input {
    background: #333;
    border: 1px solid #444;
    color: #fff;
}
.input-group input:focus {
    border-color: #757575; /* Подсветка при клике */
    outline: none;
}

/* Внутренности панели фильтров */
.filters-panel{
  display:flex;
  gap:10px 50px;
  background:#252525;
  padding:6px 10px;
  border-radius:8px;
  border:1px solid #3d3d3d;
  align-items:flex-end;

  flex-wrap: wrap;
  overflow-x: auto;
  overflow-y: hidden;
  max-width: 100%;
  box-sizing: border-box;

  scrollbar-width: none;      /* Firefox: скрыть */
}
.filters-panel::-webkit-scrollbar{ display:none; }  /* Chrome/Edge: скрыть */

.filters-panel .filter-box{
  flex: 0 0 auto;             /* элементы не сжимаем */
}

/*.filter-box {
    flex: 1; /* Чтобы они делили место поровну */
    
 /*} */



.filter-box select {
    background: #333;
    border: 1px solid #444;
    color: #fff;
    width: 100%;
    padding: 8px;
    border-radius: 4px;
}

/* Кнопка */
#setPoint {
    background: #2a2b2c; /* Приятный синий */
    color: white;
    border: none;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background 0.2s;
}
#setPoint:hover {
    background: #2a2b2c;
}

/* Текст "Точек пока нет" */
#location-posts-container p {
    color: #888;
    text-align: center;
    font-style: italic;
}
/* --- Джим делает компактные панели --- */

/* Ограничиваем ширину блока ввода координат и фильтров */
.controls-panel,
.filters-panel {
    max-width: 400px; /* Оптимальная ширина, чтобы не выглядело растянуто */
    width: 100%;      /* На мобильных они займут всё место, не ломая верстку */
}

/* Если хочешь, чтобы кнопка "Поставить точку" была не во всю ширину панели, 
   а компактной, добавь это: */
/*
#setPoint {
    width: auto !important;
    padding-left: 30px;
    padding-right: 30px;
}
*/
/* --- Контейнер для двух верхних панелей --- */
.top-panels-wrapper {
    display: flex;         /* Включаем режим "в строку" */
    gap: 30px;            /* Расстояние между панелями */
    align-items: flex-start; /* Выравниваем по верхнему краю */
    flex-wrap: nowrap;      /* Если экран узкий, вторая панель перепрыгнет вниз */
    margin-bottom: 30px;  /* Отступ до сетки с постами */
}

/* Напоминаю, у блоков .controls-panel и .filters-panel 
   должно остаться ограничение ширины, которое мы писали ранее (max-width: 400px), 
   чтобы они не были слишком огромными. */
   /* --- СТИЛИ МОДАЛЬНОГО ОКНА --- */

/* Затемненный фон */
.modal-overlay {
    display: none; /* Скрыто по умолчанию */
    position: fixed;
    z-index: 2000; /* Поверх всего */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85); /* Сильное затемнение */
    backdrop-filter: blur(5px); /* Размытие фона */
    align-items: center;
    justify-content: center;
}

/* Само окно */
.modal-content {
    background-color: #252525;
    border: 1px solid #444;
    border-radius: 12px;
    width: 90%;
    max-width: 900px; /* Широкое окно */
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    position: relative;
    animation: slideIn 0.3s ease;
    overflow: hidden;
}

@keyframes slideIn {
    from {transform: translateY(20px); opacity: 0;}
    to {transform: translateY(0); opacity: 1;}
}

/* Кнопка закрытия (крестик) */
.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
}
.modal-close:hover { color: #fff; }

/* Внутренняя сетка (Картинка + Инфо) */
.modal-body {
    display: flex;
    flex-wrap: wrap;
}

/* Левая колонка (Фото) */
.modal-image-col {
    flex: 1;
    min-width: 300px;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: 500px; /* Ограничение высоты фото */
}
.modal-image-col img {
    max-width: 100%;
    max-height: 500px;
    object-fit: contain;
}

/* Правая колонка (Текст) */
.modal-info-col {
    flex: 1;
    min-width: 300px;
    padding: 30px;
    color: #e0e0e0;
}

.modal-info-col h2 {
    margin-top: 0;
    color: #4CAF50; /* Зеленый заголовок */
    font-size: 24px;
}

.modal-meta {
    font-size: 13px;
    color: #888;
    margin-bottom: 15px;
}

.modal-details p {
    margin: 8px 0;
    font-size: 16px;
    border-bottom: 1px solid #333;
    padding-bottom: 8px;
}

.modal-comment-box {
    background: #333;
    padding: 15px;
    border-radius: 8px;
    margin-top: 20px;
    font-style: italic;
    color: #ccc;
}

/* --- СЛАЙДЕР В МОДАЛЬНОМ ОКНЕ --- */

.modal-image-col {
    position: relative; /* Чтобы кнопки позиционировались внутри этого блока */
}

/* Кнопки (Влево/Вправо) */
.slider-btn {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px; /* Центрируем по вертикали */
    color: white;
    font-weight: bold;
    font-size: 24px;
    transition: 0.3s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0,0,0,0.3); /* Полупрозрачный фон */
    text-decoration: none;
}

/* Правая кнопка */
.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

/* Левая кнопка */
.prev {
    left: 0;
}

.slider-btn:hover {
    background-color: rgba(0,0,0,0.8); /* Темнее при наведении */
}

/* Счетчик (1 / 3) */
.photo-counter {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: #f2f2f2;
    padding: 5px 10px;
    border-radius: 10px;
    font-size: 12px;
}
/* Активная точка на карте (при клике на пост) */
/* Активная точка на карте (при клике на пост) */
.active-marker {
    transform: translate(-50%, -50%) scale(2.0) !important; /* Увеличиваем в 2 раза */
    background-color: #fff !important; /* Белый цвет */
    border: 3px solid #ff0000 !important; /* Красная рамка */
    z-index: 200 !important; /* Поверх всех */
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.8) !important; /* Красное свечение */
    
    /* Анимация пульсации (опционально, для красоты) */
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { transform: translate(-50%, -50%) scale(2.0); }
    50% { transform: translate(-50%, -50%) scale(2.4); }
    100% { transform: translate(-50%, -50%) scale(2.0); }
}

/* --- ГОРИЗОНТАЛЬНАЯ ЛЕНТА ДЛЯ ПОСЛЕДНИХ ПОСТОВ --- */

/* Переопределяем сетку только внутри секции .recent-posts */
.recent-posts .posts-grid {
    scroll-snap-type: x mandatory;
    display: flex;              /* Вместо grid используем flex */
    flex-wrap: nowrap;          /* Запрещаем перенос на новую строку */
    overflow-x: auto;           /* Включаем горизонтальную прокрутку */
    gap: 20px;                  /* Расстояние между карточками */
    padding-bottom: 15px;       /* Отступ снизу для скроллбара */
    /* Добавляем отступы, чтобы карточка не обрезалась при всплытии */
    padding-top: 15px;    /* Место для движения вверх */
    padding-bottom: 20px; /* Место для тени снизу */
    
    /* Чтобы скролл был плавным */
    scroll-behavior: smooth; 
    -webkit-overflow-scrolling: touch; /* Для мягкости на iPhone */
}

/* Фиксируем ширину карточек, чтобы они не сжимались */
.recent-posts .post-card {
    /* 
       calc(25% - 15px) 
       Это заставит браузер впихнуть ровно 4 карточки в ширину контейнера.
       15px - это поправка на отступы (gap).
    */
   /* Если gap: 20px */
    flex: 0 0 calc((100% - 60px) / 4); 
    width: calc((100% - 60px) / 4);
    height: 500px;     /* можешь менять: 480–560 */
    display: flex;
    flex-direction: column;
    
    /* Оставляем min-width, чтобы на мобилках всё-таки включался скролл, 
       иначе 4 карточки будут микроскопическими */
    min-width: 275px; 
    
    font-size: 13px;
    
    /* Добавляем "прилипание" (Snap), чтобы скролл останавливался ровно на карточке */
    scroll-snap-align: start;
}

/* --- СТИЛИЗАЦИЯ ПОЛОСЫ ПРОКРУТКИ (для Chrome/Edge/Opera) --- */
.recent-posts .posts-grid::-webkit-scrollbar {
    height: 8px;                /* Высота полоски */
}

.recent-posts .posts-grid::-webkit-scrollbar-track {
    background: #2a2a2a;        /* Цвет дорожки (темный) */
    border-radius: 4px;
}

.recent-posts .posts-grid::-webkit-scrollbar-thumb {
    background: #555;           /* Цвет бегунка (серый) */
    border-radius: 4px;
}

.recent-posts .posts-grid::-webkit-scrollbar-thumb:hover {
    background: #777;           /* Цвет бегунка при наведении */
}

/* --- КНОПКИ СЛАЙДЕРА НА ГЛАВНОЙ --- */

.scroll-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.6); /* Полупрозрачный черный */
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%; /* Круглые */
    font-size: 18px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.scroll-arrow:hover {
    background: #4CAF50; /* Зеленый при наведении */
    border-color: #4CAF50;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
}

.scroll-left {
    left: -20px; /* Выносим немного за пределы блока */
}

.scroll-right {
    right: -20px;
}

/* Скрываем кнопки на мобильных (там удобнее пальцем) */
@media (max-width: 768px) {
    .scroll-arrow {
        display: none;
    }
    .scroll-left, .scroll-right {
        left: 0; right: 0; /* Или можно просто display: none */
    }
}
/* --- СТРЕЛКИ ДЛЯ ЛАЙТБОКСА --- */
/* Кнопки */
.lb-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 40px;
    font-weight: bold;
    padding: 20px;
    cursor: pointer;
    z-index: 3002;
    user-select: none;
    background: rgba(0,0,0,0.1);
    border-radius: 8px;
    transition: 0.3s;
} /* <--- ВОТ ЭТУ СКОБКУ ТЫ ЗАБЫЛ */

.lb-btn:hover {
    background: rgba(255,255,255,0.2);
    color: #4CAF50;
}

.lb-prev { left: 20px; }
.lb-next { right: 20px; }

/* САМ ЛАЙТБОКС (Вставь этот блок, его у тебя, похоже, нет или он сломан) */
.lightbox-overlay {
    display: none; 
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9); /* Черный фон */
    justify-content: center;
    align-items: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
}
/* Скрываем стрелки, если фото одно (добавим класс JS-ом) */
.hidden { display: none !important; }
.info-val {
    margin-left: 15px; /* Отступ слева от двоеточия */
    color: #b17373;      /* Белый цвет значения */
    font-weight: normal;
    
}

/* Строка информации */
.info-row {
    display: flex;              /* Включаем Flexbox */
    justify-content: space-between; /* Разносим по краям */
    align-items: center;        /* Выравниваем по центру по вертикали */
    border-bottom: 1px solid rgba(255,255,255,0.1); /* Тонкая линия (опционально) */
    padding: 4px 0;             /* Немного воздуха */
    margin: 0 !important;       /* Убираем старые отступы */
}

/* Заголовок (слева) */
.info-row strong {
    color: #4CAF50; /* Зеленый */
    margin-right: 10px; /* Чтобы не слипались, если текст длинный */
}

/* Значение (справа) */
.info-row span {
    color: #fff;
    text-align: right; /* Выравнивание текста вправо */
    flex: 1;           /* Занимает всё свободное место (если нужно переносить) */
}

/* --- КОМПАКТНЫЙ РЕЖИМ ДЛЯ ГЛАВНОЙ (МЕНЬШЕ НА 25%) --- */

/* 1. Уменьшаем ширину самой карточки */
.recent-posts .post-card {
    flex: 0 0 240px; /* Было 300px -> Стало 240px */
    width: 240px;
    font-size: 13px; /* Уменьшаем шрифт во всей карточке */
}

/* 2. Уменьшаем шапку (Локация/Дата) */
.recent-posts .post-header {
    padding: 8px 10px; /* Меньше отступы */
    font-size: 12px;   /* Мелкий текст */
}

/* 3. Уменьшаем тело карточки */
.recent-posts .post-content {
    padding: 10px; /* Было 20px, стало теснее */
}

/* 4. Сжимаем строки (Рыба, Наживка...) */
.recent-posts .info-row {
    padding: 2px 0;    /* Строки плотнее друг к другу */
    font-size: 12px;   /* Шрифт поменьше */
}

/* 5. САМОЕ ГЛАВНОЕ: Уменьшаем картинки! */

/* Главная (первая) картинка */
.recent-posts .post-photos > *:first-child {
    height: 110px !important; /* Было ~180px */
}

/* Если картинка всего одна */
.recent-posts .post-photos > *:only-child {
    height: 150px !important;
}

/* Маленькие картинки снизу */
.recent-posts .post-photos > * {
    height: 40px !important; /* Было 70px */
}

/* === КОММЕНТАРИЙ С ЗАТУХАНИЕМ (FADE) === */
.recent-posts .post-comment {
    font-size: 12px;
    margin-bottom: 5px;
    -webkit-line-clamp: 2;
}




/* Скрываем скроллбар, но оставляем функционал */
.recent-posts .posts-grid::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
}
.recent-posts .posts-grid {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE */
}

/* Прижимаем футер к низу */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Минимальная высота - весь экран */
    margin: 0;
}

/* Секция с контентом должна занять всё свободное место */
.locations-hub {
    flex: 1; /* Растягивается */
}
/* На странице карты футер фиксирован внизу поверх всего (как полоска) */
.map-page footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    font-size: 10px; /* Поменьше */
    padding: 0px;
    background: rgba(0,0,0,0.8);
} 
/* И уменьшить высоту карты, чтобы не перекрывала */
.map-dashboard-full {
    height: calc(100vh - 40px); /* Место под футер */
}

.seo-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.logo-link {
    display: flex;
    align-items: top;
    text-decoration: none;
    gap: 0;
}

.logo-img {
    align-items: top;
    width: 70px;
    height: 70px;
    object-fit: contain;
    
}

.logo-text {
    margin-left: 5px;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-size: 35px;
    font-weight: 600;
    color: #57dc35;
    opacity: 0.7;
    
}

@media (max-width: 600px) {
    .logo-text {
        display: none;
    }
}

#showBaitsBtn {
    color: #e1e0e0;
    background-color: rgba(65, 129, 240, 0.9); /* Черный фон */
    width: 100%;
    height: 35px;
    border-radius: 9px;
}
.filter-box select,
#showBaitsBtn {
    height: 28px;
    padding: 3px 6px;
    font-size: 13px;
}

.filters-panel .filter-box {
    flex: 0 0 auto;   /* блок по содержимому */
    
    
}

/* окно модальное Наживки */
/* ===== BAITS MODAL LIST ===== */
#baitsModal .modal-content{
  max-height: 85vh;
  overflow: hidden; /* чтобы скролл был внутри контейнера */
}

#baitsContainer{
  margin-top: 12px;
  max-height: 70vh;
  overflow-y: auto;
  padding-right: 8px;
}

/* одна строка наживки */
.bait-row{
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 6px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.bait-img{
  width: 42px;
  height: 42px;
  object-fit: contain;
  flex: 0 0 42px;
  border-radius: 8px;
  background: rgba(0,0,0,0.25);
}

.bait-info{
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0; /* чтобы длинные названия нормально обрезались */
}

.bait-name{
  font-size: 16px;
  font-weight: 700;
  color: #e6e6e6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 520px;
}

.bait-meta{
  font-size: 13px;
  opacity: 0.8;
  color: #cfcfcf;
}

.baits-loading, .baits-empty, .baits-error{
  padding: 12px 6px;
  opacity: 0.85;
}
#baitsModal h2{
  background-color: #414040;
  color: #f1f1f1;
  opacity: 1;
  font-weight: 400;
  font-size: 18px;
  margin: 0 0 12px 0;
  letter-spacing: 0.2px;
  text-align: center;
}

/* ===== BAITS MODAL LIST (как на доноре) ===== */

#baitsContainer{
  margin-top: 10px;
}

.bait-row{
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;           /* <-- тут уже есть “20px справа” */
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.bait-icons{
  width: 58px;
  min-width: 58px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
}

.bait-icon{
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 10px;
  background: rgba(0,0,0,0.18);
  padding: 6px;
}

.bait-text{
  flex: 1;
  min-width: 0;
}

.bait-name{
  font-size: 20px;
  font-weight: 400;
  color: #e7e7e7;
  line-height: 1.12;
  word-break: break-word;
}

.bait-right{
  min-width: 60px;
  text-align: right;
  padding-right: 10px;          /* <-- дополнительный отступ от правого края */
}

.bait-rec{
  font-size: 25px;
  font-weight: 400;
  color: #bdbdbd;
}