.container {
    display: flex;
    flex-direction: row; /* По умолчанию контейнер в строку */
    width: 90%;
    max-width: 1200px;
    background-color: var(--color-bg-secondary);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin: 20px;
    box-sizing: border-box; /* Учитываем padding и border в ширине */
}

/* Левая часть: Профиль объекта */
.profile {
    width: 30%;
    padding: 20px;
    background-color: var(--color-bg-tertiary);
    border-right: 1px solid var(--color-bg-input);
    box-sizing: border-box; /* Учитываем padding и border в ширине */
    display: flex;
    flex-direction: column;
}

.profile-properties {
    margin-top: 20px;
}

.profile-properties p {
    margin: 10px 0;
    color: var(--color-text-primary);
}

.profile-description {
    margin-top: 20px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--color-text-tertiary);
    overflow-y: auto; /* Добавляем скролл для длинного текста */
    flex-grow: 0; /* Описание не занимает оставшееся пространство */
}

/* ========================================
   BREWERY PROFILE PANEL
   Стили для панели профиля пивоварни
   ======================================== */

.brewery-profile-panel {
    gap: 16px;
    align-items: center;
}

/* Название пивоварни */
.brewery-profile-name {
    font-size: 1.6em;
    font-weight: 700;
    color: var(--color-text-primary);
    text-align: center;
    margin: 0 0 10px 0;
    line-height: 1.3;
}

.brewery-profile-name a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

.brewery-profile-name a:hover {
    color: var(--color-primary, #f5a623);
}

/* Изображение пивоварни */
.brewery-profile-image {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

.brewery-avatar {
    width: 100%;
    max-width: 200px;
    height: auto;
    border-radius: var(--radius-lg);
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Admin info */
.brewery-admin-info {
    text-align: center;
    margin-bottom: 12px;
}

.brewery-untappd-id {
    font-size: 11px;
    color: var(--color-text-muted, #666);
    background-color: var(--color-bg-element, #1a1a1a);
    padding: 4px 8px;
    border-radius: 4px;
}

/* Рейтинг */
.brewery-rating-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--color-bg-card, #252525);
    padding: 16px;
    border-radius: var(--radius-lg);
    margin-bottom: 16px;
    width: 100%;
    box-sizing: border-box;
}

.brewery-rating-score {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.brewery-rating-score .rating-value {
    font-size: 2em;
    font-weight: 700;
    color: var(--color-primary, #f5a623);
}

.brewery-rating-score .rating-max {
    font-size: 1em;
    color: var(--color-text-muted, #888);
}

.brewery-rating-count {
    font-size: 12px;
    color: var(--color-text-tertiary);
    margin-top: 4px;
}

/* Описание */
.brewery-description {
    text-align: center;
    font-size: 14px;
    line-height: 1.6;
    color: var(--color-text-secondary);
    margin-bottom: 16px;
    padding: 0 8px;
}

.brewery-description p {
    margin: 0;
}

/* Локация */
.brewery-location-block {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.brewery-location-text,
.brewery-address {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--color-text-secondary);
}

.brewery-location-text i,
.brewery-address i {
    color: var(--color-primary, #f5a623);
    width: 16px;
    text-align: center;
    flex-shrink: 0;
}

/* Карта */
.brewery-map-container {
    width: 100%;
    margin-bottom: 16px;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.brewery-map-container #map {
    width: 100%;
    height: 180px;
    border-radius: var(--radius-lg);
}

/* Социальные сети */
.brewery-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 16px;
}

.brewery-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background-color: var(--color-bg-card, #252525);
    border-radius: var(--radius-md);
    transition: all 0.2s;
    border: 1px solid var(--color-border-light, #333);
}

.brewery-social-link:hover {
    background-color: var(--color-bg-hover, #3a3a3a);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.brewery-social-link img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.brewery-social-link i {
    font-size: 22px;
    color: var(--color-text-secondary);
    transition: color 0.2s;
}

.brewery-social-link:hover i {
    color: var(--color-primary, #f5a623);
}

.brewery-social-link-vk i {
    color: #4a76a8;
}

.brewery-social-link-vk:hover i {
    color: #5d8ec6;
}

/* Телефон */
.brewery-phone {
    width: 100%;
    margin-bottom: 16px;
}

.brewery-phone-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 16px;
    background-color: var(--color-bg-card, #252525);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--color-text-primary);
    font-size: 14px;
    transition: all 0.2s;
    border: 1px solid var(--color-border-light, #333);
}

.brewery-phone-link:hover {
    background-color: var(--color-bg-hover, #3a3a3a);
    border-color: var(--color-primary, #f5a623);
}

.brewery-phone-link i {
    color: var(--color-primary, #f5a623);
}

/* Статистика */
.brewery-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    width: 100%;
    margin-bottom: 16px;
}

.brewery-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 12px 8px;
    background-color: var(--color-bg-card, #252525);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border-light, #333);
}

.brewery-stat-item i {
    font-size: 16px;
    color: var(--color-primary, #f5a623);
    margin-bottom: 6px;
}

.brewery-stat-item .stat-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-text-primary);
}

.brewery-stat-item .stat-label {
    font-size: 11px;
    color: var(--color-text-muted, #888);
    text-align: center;
    margin-top: 4px;
}

/* Статус производства */
.brewery-production-status {
    width: 100%;
    text-align: center;
}

.brewery-production-status .status-active {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--color-success, #28a745);
    font-size: 13px;
    font-weight: 500;
}

.brewery-production-status .status-inactive {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--color-danger, #dc3545);
    font-size: 13px;
    font-weight: 500;
}

/* Медиазапрос для мобильных устройств */
@media (max-width: 768px) {
    .container {
        flex-direction: column; /* Меняем направление на колонку */
        width: 100%;
        margin: 0;
        border-radius: 0;
    }

    .profile {
        width: 100%; /* Профиль занимает всю ширину */
        border-right: none;
        border-bottom: 1px solid var(--color-bg-input); /* Добавляем границу снизу */
    }

    .brewery-profile-name {
        font-size: 1.4em;
    }

    .brewery-avatar {
        max-width: 150px;
    }

    .brewery-stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .brewery-stat-item {
        padding: 10px 6px;
    }

    .brewery-stat-item .stat-value {
        font-size: 16px;
    }

    .brewery-stat-item .stat-label {
        font-size: 10px;
    }
}





/* ########################### */

/* Стили для вложенного списка */
.nested-list {
    list-style-type: none; /* Убираем маркеры списка */
    padding: 0;
    margin: 10px 0;
    background-color: transparent; /* Убираем фон */
}

.nested-list li {
    display: flex;
    align-items: center;
    padding: 10px;
    margin-bottom: 10px;
    background-color: var(--color-bg-tertiary); /* Фон как у .object-item */
    border-radius: var(--radius-lg); /* Скругленные углы */
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3); /* Тень как у .object-item */
    color: var(--color-text-tertiary); /* Цвет текста */
}

.nested-list li:last-child {
    margin-bottom: 0; /* Убираем отступ у последнего элемента */
}

/* Иконка внутри вложенного списка (если нужна) */
.nested-list .object-icon {
    width: 80px; /* Немного меньше, чем у основного списка */
    height: 80px;
    border-radius: var(--radius-round);
    margin-right: 10px;
}

/* Текст внутри вложенного списка */
.nested-list .object-info {
    flex-grow: 1;
}

.nested-list .object-info h3 {
    margin: 0;
    font-size: 14px; /* Немного меньше, чем у основного списка */
    color: var(--color-text-primary);
}

.nested-list .object-info p {
    margin: 5px 0 0;
    font-size: 12px; /* Немного меньше, чем у основного списка */
    color: var(--color-text-tertiary);
}

/* Стили для выпадающего блока */
details {
    margin-top: 10px;
}

summary {
    cursor: pointer; /* Курсор в виде указателя */
    color: var(--color-btn-success); /* Цвет текста */
    font-weight: bold; /* Жирный текст */
}

summary:hover {
    color: var(--color-btn-success-hover); /* Цвет при наведении */
}

#map {  
        /* configure the size of the map */
  position: relative;
  width: 100%;
  height: 200px;
}

.mt-6 {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 10px;
  justify-content: center;
}

/* Venues with brewery products */
#beerOnVenues {
  padding: 10px;
}

#venues-loading {
  text-align: center;
  padding: 20px;
  color: var(--color-text-tertiary);
}

.venue-with-beers {
  background-color: var(--color-bg-tertiary);
  border-radius: var(--radius-lg);
  margin-bottom: 15px;
  padding: 15px;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
}

.venue-header {
  margin-bottom: 10px;
}

.venue-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--color-text-primary);
}

.venue-link:hover {
  color: var(--color-btn-success);
}

.venue-thumb {
  width: 60px;
  height: 60px;
  border-radius: var(--radius-md);
  object-fit: cover;
  margin-right: 15px;
}

.venue-info h3 {
  margin: 0;
  font-size: 16px;
  color: var(--color-text-primary);
}

.venue-city {
  font-size: 12px;
  color: var(--color-text-tertiary);
}

.beers-at-venue {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--color-bg-input);
}

.beer-item {
  display: flex;
  align-items: center;
  background-color: var(--color-bg-secondary);
  border-radius: var(--radius-md);
  padding: 8px;
  min-width: 200px;
  flex: 1;
  max-width: calc(50% - 5px);
}

.beer-thumb {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  margin-right: 10px;
}

.beer-info {
  display: flex;
  flex-direction: column;
}

.beer-name {
  font-size: 14px;
  font-weight: bold;
  color: var(--color-text-primary);
}

.beer-style {
  font-size: 12px;
  color: var(--color-text-tertiary);
}

.beer-abv {
  font-size: 11px;
  color: var(--color-btn-success);
}

.empty {
  text-align: center;
  padding: 20px;
  color: var(--color-text-tertiary);
}

.error {
  text-align: center;
  padding: 20px;
  color: var(--color-btn-danger);
}

@media (max-width: 768px) {
  .beer-item {
    min-width: 100%;
    max-width: 100%;
  }
}

/* ========================================
   BREWERY VENUES SECTION (TAB4)
   Improved styles for venues list
   ======================================== */

.brewery-venues-container {
    padding: 16px;
}

/* Loading state */
.venues-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 40px;
    color: var(--color-text-tertiary);
    font-size: 14px;
}

.venues-loading i {
    font-size: 20px;
    color: var(--color-primary, #f5a623);
}

/* Venues list */
.brewery-venues-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Venue card */
.brewery-venue-card {
    background-color: var(--color-bg-card, #252525);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border-light, #333);
    overflow: hidden;
    transition: all 0.2s;
}

.brewery-venue-card:hover {
    border-color: var(--color-border-medium, #444);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

/* Venue header */
.brewery-venue-header {
    display: flex;
    align-items: center;
    padding: 16px;
    background-color: var(--color-bg-tertiary, #2a2a2a);
    border-bottom: 1px solid var(--color-border-light, #333);
}

.brewery-venue-link {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    text-decoration: none;
    min-width: 0;
}

.brewery-venue-link:hover .brewery-venue-name {
    color: var(--color-primary, #f5a623);
}

.brewery-venue-image {
    width: 70px;
    height: 70px;
    border-radius: var(--radius-md);
    overflow: hidden;
    flex-shrink: 0;
    background-color: var(--color-bg-element, #1a1a1a);
}

.brewery-venue-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brewery-venue-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.brewery-venue-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text-primary);
    margin: 0;
    transition: color 0.2s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.brewery-venue-city {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--color-primary, #f5a623);
}

.brewery-venue-city i {
    font-size: 11px;
}

.brewery-venue-address {
    font-size: 12px;
    color: var(--color-text-muted, #888);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Badge with beer count */
.brewery-venue-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    background-color: var(--color-bg-element, #1a1a1a);
    border-radius: var(--radius-md);
    flex-shrink: 0;
}

.brewery-venue-badge .beer-count {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-primary, #f5a623);
    line-height: 1;
}

.brewery-venue-badge .beer-label {
    font-size: 11px;
    color: var(--color-text-muted, #888);
    margin-top: 2px;
}

/* Beverages section */
.brewery-venue-beverages {
    padding: 16px;
}

.brewery-venue-beverages-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 13px;
    font-weight: 500;
    color: var(--color-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.brewery-venue-beverages-header i {
    color: var(--color-primary, #f5a623);
}

.brewery-venue-beverages-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 10px;
}

/* Individual beverage item */
.brewery-venue-beverage-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background-color: var(--color-bg-tertiary, #2a2a2a);
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.brewery-venue-beverage-item:hover {
    background-color: var(--color-bg-hover, #3a3a3a);
    border-color: var(--color-border-medium, #444);
}

.brewery-venue-beverage-item .beverage-thumb {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
    background-color: var(--color-bg-element, #1a1a1a);
}

.brewery-venue-beverage-item .beverage-details {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.brewery-venue-beverage-item .beverage-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.brewery-venue-beverage-item .beverage-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px;
    font-size: 12px;
}

.brewery-venue-beverage-item .beverage-meta > span:not(:first-child)::before {
    content: '·';
    margin-right: 4px;
    color: var(--color-text-muted, #666);
}

.brewery-venue-beverage-item .beverage-style {
    color: var(--color-text-muted, #888);
    font-style: italic;
}

.brewery-venue-beverage-item .beverage-abv {
    color: var(--color-success, #28a745);
    font-weight: 500;
}

.brewery-venue-beverage-item .beverage-ibu {
    color: var(--color-text-secondary, #aaa);
}

.brewery-venue-beverage-item .beverage-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--color-primary, #f5a623);
    font-weight: 600;
    margin-top: 2px;
}

.brewery-venue-beverage-item .beverage-rating i {
    font-size: 10px;
}

/* Empty and error states */
.brewery-venues-empty,
.brewery-venues-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.brewery-venues-empty i,
.brewery-venues-error i {
    font-size: 48px;
    color: var(--color-text-muted, #666);
    margin-bottom: 16px;
}

.brewery-venues-empty p,
.brewery-venues-error p {
    font-size: 14px;
    color: var(--color-text-tertiary);
    margin: 0;
    max-width: 300px;
}

.brewery-venues-error i {
    color: var(--color-danger, #dc3545);
}

.brewery-venues-error p {
    color: var(--color-danger, #dc3545);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .brewery-venues-container {
        padding: 12px;
    }

    .brewery-venue-header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .brewery-venue-link {
        flex-direction: column;
        align-items: flex-start;
    }

    .brewery-venue-image {
        width: 100%;
        height: 120px;
    }

    .brewery-venue-badge {
        flex-direction: row;
        gap: 8px;
        justify-content: center;
    }

    .brewery-venue-badge .beer-count {
        font-size: 20px;
    }

    .brewery-venue-beverages-list {
        grid-template-columns: 1fr;
    }

    .brewery-venue-beverage-item {
        padding: 10px;
    }

    .brewery-venue-beverage-item .beverage-thumb {
        width: 45px;
        height: 45px;
    }

    .brewery-venue-beverage-item .beverage-name {
        font-size: 13px;
    }

    .brewery-venue-beverage-item .beverage-meta {
        font-size: 11px;
    }
}
