/* ========== BASE STYLES ========== */

@font-face {
  font-family: 'Material Icons';
  font-style: normal;
  font-weight: 400;
  src: url('../fonts/material-icons.woff2') format('woff2');
}

.material-icons {
  font-family: 'Material Icons';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
}

i.material-icons {
  /*color: #8E44AD;*/
  /*color: dimgrey;*/
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  height: 100%;
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  line-height: 1.15;
  color: var(--font-color-main);
  background-color: var(--background-color);
}

main {
  display: block;
}

hr {
  -webkit-box-sizing: content-box;
          box-sizing: content-box;
  height: 0;
  overflow: visible;
}

a {
  color: var(--link-color);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  background-color: transparent;
}

b, strong {
  font-weight: bolder;
}

img {
  border-style: none;
}

/* ========== TYPOGRAPHY ========== */
h1 { font-size: 2.1rem; margin: 0.84rem 0; }
h2 { font-size: 1.86rem; margin: 1.24rem 0 0.74rem; }
h3 { font-size: 1.65rem; margin: 1.10rem 0 0.66rem; }
h4 { font-size: 1.46rem; margin: 0.97rem 0 0.61rem; }
h5 { font-size: 1.15rem; margin: 0.86rem 0 0.51rem; }
h6 { font-size: 1rem; margin: 0.77rem 0 0.46rem; }

:root {
  --font-size-xl: 1.8rem;    /* Для главных заголовков */
  --font-size-lg: 1.4rem;    /* Подзаголовки */
  --font-size-md: 1.15rem;    /* Основной текст */
  --font-size-sm: 1rem;      /* Вторичный текст */
  --font-size-xs: 0.85rem;   /* Мелкий текст (даты, метки) */
}

.big-text {
  font-size: 1.4rem;
  line-height: 2;
}

small, .small-link {
  font-size: 0.85rem;
}

@media only screen and (max-width: 600.99px) {
  html {font-size: 15.5px; line-height: 1.2;}
  h1 {font-size: 1.8rem; margin: 0.72rem 0;}
  h2 {font-size: 1.4rem; margin: 1rem 0 0.6rem;}
  h3 {font-size: 1.25rem; margin: 0.9rem 0 0.5rem;}
  h4 {font-size: 1.15rem; margin: 0.8rem 0 0.45rem;}
  h5 {font-size: 1.05rem; margin: 0.7rem 0 0.4rem;}
  h6 {font-size: 0.95rem; margin: 0.6rem 0 0.35rem;}
}

.page {
  background-color: var(--surface-color);
}

@media only screen and (min-width : 601px) {
  .page {
    padding: 1.5rem 1rem 1rem 1rem;
  }
}

@media only screen and (max-width : 600.99px) {
  .page {
    padding: 1.5rem 0.5rem 64px 0.5rem;
  }
}

.content {
  padding: 1rem;
}

.gap {
    gap: 0.7rem; /* Задайте желаемое расстояние между ссылками */
}

/* ========== NAVIGATION ========== */

nav {
    color: var(--font-on-primary-color-main);
    background-color: white;
    width: 100%;
}

nav #goBackLink {
  display: none;
  padding-left: 12px;
  padding-right: 12px;
  float: left;
}

nav .brand-logo {
    /*position: absolute;*/
    color: var(--font-on-primary-color-main);
    padding: 0;
}

nav ul:not(.dropdown-content) > li > a {
    font-family: 'Montserrat', sans-serif;
    -webkit-transition: background-color .3s;
    transition: background-color .3s;
    font-size: 1.2rem;
    text-transform: uppercase;
    color: var(--font-color-main);
    display: block;
    padding: 0 8px;
    cursor: pointer;
    border-radius: 12px;
}

nav ul:not(.dropdown-content) > li > a.active {
  background-color: lightgray;
}
nav ul:not(.dropdown-content) > li > a:hover:not(.active) {
  background-color: lightgray;
}

.sidenav {
  background-color: var(--background-color-card);
  z-index: 1005;
}

.sidenav li > a {
    margin: 3px 12px;
    padding: 12px 16px;
    font-size: 18px;
    font-weight: 500;
    border-radius: 8px
}

nav .sidenav-trigger {
    float: right;
    position: relative;
    z-index: 1;
    margin-right: 1rem;
}

.navbar-fixed {
  position: relative;
  height: 87px;
  z-index: 997;
}

.navbar {
  background-color: var(--navbar-background-color);
}

.nav-wrapper.krasota-theme {
    display: flex;
    align-items: center; /* Центрирование по вертикали */
    height: 87px;
}

.brand-logo img {
    min-height: 56px;
    display: block; /* Убираем лишние отступы */e
}

/* ========== ГЛАВНАЯ СТРАНИЦА ========== */

ul.category-buttons {
  display: flex;
  flex-wrap: wrap; /* Перенос кнопок на новую строку, если не хватает места */
  gap: 10px; /* Расстояние между кнопками */
  justify-content: left; /* Центрируем кнопки */
  list-style-type: none;
  margin: 0;
  padding: 0;
}

ul.buttons-stack {
  list-style-type: none;

  padding-left: 0;
}

ul.buttons-stack li {
  display: inline-block;
  font-size: 0.9rem;
}

ul.buttons-stack li a.btn, ul.buttons-stack li a.btn-small {
  
  color: white;
  text-decoration: none;
  border: 1px solid white;
  border-radius: var(--border-radius);
  background-color: rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease;

}

span.ks-category-button {
  font-size: 1.2rem;
}

/* ========== КАТЕГОРИИ ========== */
.categories-grid-container {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 4 колонки на десктопе */
    gap: 1rem;
}

.category-card {
    display: flex;
    background-color: #f0f0f0;
    border-radius: var(--border-radius);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease;
    max-height: 148px;
}

.category-card:hover {
    transform: translateY(-3px);
}

.category-card img {
    width: 35%;
    flex-shrink: 0;
    object-fit: cover;
}

.category-card span {
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    word-break: break-word;
    padding: 1rem;
    flex-grow: 1;
    font-weight: 500;
}

/* Планшет (768px - 1024px) */
@media (max-width: 1024px) {
    .categories-grid-container {
        grid-template-columns: repeat(3, 1fr); /* 3 колонки на планшете */
    }
    .category-card {
        min-height: 94px;
        max-height: 94px;
    }
}

/* Мобильные устройства (481px - 767px) */
@media (max-width: 600.99px) {
    .categories-grid-container {
        grid-template-columns: repeat(2, 1fr); /* 2 колонки на мобильном */
    }
    .category-card {
        min-height: 94px;
        max-height: 94px;
    }
    .category-card span {
        font-size: 1rem;
        justify-content: left;
        word-break: break-word;
        padding: 0.7rem;
    }
}

.category-header {
    position: relative;
    height: 250px;
    overflow: hidden;
    border-radius: var(--border-radius);
    margin-bottom: 2rem;
}

.category-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-header-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
}

.category-tabs {
    display: flex;
    overflow-x: auto;
    margin-bottom: 2rem;
    padding-bottom: 0.5rem;
    scrollbar-width: none;
}

.category-tabs::-webkit-scrollbar {
    display: none;
}

.category-tab {
    flex: 0 0 auto;
    padding: 0.75rem 1.25rem;
    margin-right: 0.5rem;
    background-color: #f5f5f5;
    border-radius: 30px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: all 0.3s ease;
}

.category-tab.active {
    background-color: var(--primary-color);
    color: white;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.objects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.object-card {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.object-card:hover {
    transform: translateY(-5px);
}

.object-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.object-card-content {
    padding: 1rem;
}

.object-card h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.object-card p {
    margin: 0.25rem 0;
    color: #666;
}

.object-card .rating {
    display: flex;
    align-items: center;
    margin-top: 0.5rem;
}

.object-card .rating i {
    color: #FFA000;
    font-size: 1rem;
    margin-right: 0.25rem;
}

.coach-card {
    display: flex;
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.coach-card img {
    width: 120px;
    height: 120px;
    object-fit: cover;
}

.coach-card-content {
    padding: 1rem;
    flex-grow: 1;
}

.coach-card h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.coach-card p {
    margin: 0.25rem 0;
    color: #666;
}

.coach-card .badge {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background-color: var(--primary-color);
    color: white;
    border-radius: 4px;
    font-size: 0.8rem;
    margin-right: 0.5rem;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.event-card-2 {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.event-card-2 img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.event-card-content {
    padding: 1rem;
}

.event-card-2 h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

.event-card-2 p {
    margin: 0.25rem 0;
    color: #666;
}

.event-meta {
    display: flex;
    align-items: center;
    margin-top: 0.5rem;
}

.event-meta i {
    margin-right: 0.25rem;
    font-size: 1rem;
}

#map-container {
    height: 400px;
    border-radius: var(--border-radius);
    overflow: hidden;
    margin-bottom: 2rem;
}

@media (max-width: 600px) {
    .objects-grid,
    .events-grid {
        grid-template-columns: 1fr;
    }
    
    .coach-card {
        flex-direction: column;
    }
    
    .coach-card img {
        width: 100%;
        height: 200px;
    }
}

/* ========== СОБЫТИЯ ========== */

.event-header {
    position: relative;
    margin-bottom: 20px;
}

.event-cover {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.event-meta {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 1rem;
    color: #333;
}

.meta-icon {
    color: #1976d2;
}

.meta-item:last-child {
    margin-bottom: 0;
}

.event-description {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.description-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #141414;
}

.description-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
}

.event-location {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.location-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #141414;
}

.location-address {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    color: #333;
}

.location-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
}

.other-events {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.other-events-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #141414;
}

.event-link {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    color: #333;
    transition: color 0.2s;
}

.event-link:hover {
    color: #1976d2;
}

.event-link:last-child {
    border-bottom: none;
}

.event-info {
    position: absolute;
    bottom: 10px;
    left: 10px;
    color: white;
    text-align: left;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px;
    border-radius: 5px;
}
.event-info h4 {
    margin: 0;
    font-size: 24px;
}
.event-info span {
    display: block;
    font-size: 18px;
}


@media (max-width: 600.99px) {
    .event-cover {
        height: 180px;
        border-radius: 0;
        box-shadow: none;
    }
    
    .event-title {
        font-size: 1.5rem;
        padding: 0 20px;
    }
    
    .event-meta,
    .event-description,
    .event-gallery,
    .event-location,
    .other-events {
        border-radius: 0;
        box-shadow: none;
        margin-bottom: 15px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* ========== АКЦИИ И СПЕЦПРЕДЛОЖЕНИЯ ========== */
.promo-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    margin-bottom: 25px;
    height: 100%;
}

.promo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.promo-image {
    height: 200px;
    object-fit: cover;
    width: 100%;
}

.promo-content {
    padding: 20px;
}

.promo-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #2c3e50;
}

.promo-description {
    color: #546e7a;
    margin-bottom: 15px;
    line-height: 1.6;
}

.promo-details {
    background-color: #F6EFF9;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
}

.promo-price {
    font-size: 1.2rem;
    font-weight: bold;
    margin: 10px 0;
}

.promo-period {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.promo-action {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-promo {
    background-color: #42a5f5;
    border-radius: 30px;
    font-weight: 600;
    text-transform: none;
}

.btn-promo:hover {
    background-color: #1e88e5;
}

/* ========== КНОПКИ ========== */
/* ========== BUTTONS & ACTIONS ========== */


.btn-floating {
  background-color: white;
}

.btn-floating:hover {
  background-color: lightblue;
}

.btn-floating i {
  color: dimgray;
}

.actions-btns {
    display: flex;
    gap: 10px;
    margin: 20px 0;
}

.action-btn, .send-btn {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 0.85rem;
  border: 1px solid black;
  cursor: pointer;
  transition: all 0.3s;
  background-color: white;
  color: black;
}

@media only screen and (max-width: 600.99px) {
  /* Скрываем span внутри action-btn на мобильных */
  button.action-btn > span {
    display: none;
  }
  button.send-btn {
    border: 0;
    align-self: center;
    padding: 6px;
    min-width: 30px;
  }
}

.action-btn:hover {
  background-color: #f0f0f0;
}

.event-card {
  width: 30%;
  display:inline-block;
  margin-right: 0.7rem;
  vertical-align: top;
  height: fit-content;
}

.event-card h3 {
  font-size: 1.4rem;
}

@media only screen and (max-width: 600.99px) {
  .event-card {
    width: 55vw;
  }
  .event-card h3 {
    font-size: 1.3rem;
    word-wrap: break-word;
  }
  .event-card .card-content {
    padding: 10px;
  }
}

/* ========== ЗАСТАВКА ========== */

.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--surface-color); /* Цвет фона заставки */
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.loader {
    animation: scaleUp 3s infinite alternate; /* Анимация для логотипа */
}

@keyframes scaleUp {
    0% { transform: scale(0.75); }
    100% { transform: scale(0.90); }
}



/* ========== SWIPER JS ========== */
/*.swiper-container {
  width: 100%;
  height: 100%;
}
.swiper-slide {
  position: relative;
  text-align: center;
  font-size: 18px;
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
}
.swiper-slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}*/

/* ========== SCROLLER-X - горизонтальная прокрутка ========== */
.scroll-x-container {
  display: flex;
  overflow-x: auto;
  padding-right: 1rem;
  padding-left: 1rem;
  padding-bottom: 1rem;
  gap: 1rem;
}

/* ========== SPOILER - раскладывающийся элемент ========== */
.spoiler {
  margin: 0 1rem 1.5rem 1rem;
}
.spoiler-item {
    border: 1px solid var(--link-color);
    border-radius: var(--border-radius);
    padding: 1rem;
}

.spoiler-title {
  position: relative;
  padding: 0 0 0 30px;
  cursor: pointer;
  line-height: 30px;
}

.spoiler-title:hover {
    text-decoration: underline;
}

.spoiler-title:before, .spoiler-title:after {
  content: '';
  background-color: #000;
  width: 10px;
  height: 2px;
  position: absolute;
  top: 15px;
}

.spoiler-title:before {
  transform: rotate(40deg);
  left: 0;
}

.spoiler-title:after {
  transform: rotate(-40deg);
  left: 8px;
}

.spoiler-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out; /* Плавный переход */
    border-top: 1.5px solid #ddd;
    border-bottom: 1.5px solid #ddd;
}

.spoiler-content.show {
    max-height: 200px; /* Максимальная высота открытого состояния */
}

.spoiler-title.active:before, .spoiler-title.active:after {
  background-color: darkgrey;
}

.spoiler-title.active:before {
    transform: rotate(-40deg);
    left: 0;
}

.spoiler-title.active:after {
    transform: rotate(40deg);
    left: 8px;
}


/* ========== PERSON ========== */
.person-card {
  position: relative;
  border-radius: var(--border-radius);
  border: solid 1px var(--border-color);
  background-color: var(--surface-color);
}

.person-name {
  padding: 1rem;
  text-align: left;
}

.person-picture {
  position: relative;
  width: 100%; /* Занимает 100% ширины родительского контейнера */
  position: relative; /* Для корректного позиционирования внутренних элементов */
  padding-top: 133%; /* Соотношение 4:3 (100 / 4 * 3 = 75) */
  overflow: hidden; /* Обрезаем всё, что выходит за пределы контейнера */
}

.person-picture img {
    position: absolute; /* Позиционируем изображение абсолютно внутри контейнера */
    top: 0;
    left: 0;
    width: 100%; /* Занимает 100% ширины контейнера */
    height: 100%; /* Занимает 100% высоты контейнера */
    object-fit: cover; /* Обрезаем изображение, сохраняя пропорции */
}

.person-categories {
    position: absolute;
    bottom: 10px; /* Отступ от нижнего края изображения */
    left: 10px; /* Отступ от левого края изображения */
    right: 10px; /* Отступ от правого края изображения */
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem; /* Расстояние между категориями */
}

.person-category {
    background-color: rgba(0, 0, 0, 0.7); /* Полупрозрачный черный фон */
    color: white; /* Белый текст */
    padding: 5px 10px; /* Отступы внутри категории */
    border-radius: 3px; /* Закругленные углы */
    font-size: 12px; /* Размер текста */
}

/* ========== Кружочки пользователей ========== */
.user-small-circles {
  display: flex;
}

.user-small-circle {
  width: 32px;
  height:32px;
  transform: translateX(-10%);
}

/* NON-CRITICAL CSS */

.search-results div a {
  margin: 18px;
  line-height: 2rem;
}

.category-prefix, .category-suffix {
  padding: 1rem;
  background-color: var(--surface-color);
}

tr {
  border-bottom: 1px solid var(--separator-color);
}

td, th {
  padding: 8px 5px;
  display: table-cell;
  text-align: left;
  vertical-align: middle;
  border-radius: 0;
}

article {
  max-width: 600px;
}

.article-card {
  height: 100%;
}

.card.horizontal.article-card .card-content {
  justify-content: left;
}

.article-card h3 {
  margin-top: 0;
}

ul.autocomplete-content {
  border-left: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
}

ul.autocomplete-content li {
  padding-left: 1rem;
}

.input-field.outlined input, .input-field.outlined textarea {
    background-color: var(--surface-color);
}

.input-field.outlined input:focus:not([readonly])+label, .input-field.outlined input:not([placeholder=" "])+label, .input-field.outlined input:not(:placeholder-shown)+label, .input-field.outlined textarea:focus:not([readonly])+label, .input-field.outlined textarea:not([placeholder=" "])+label, .input-field.outlined textarea:not(:placeholder-shown)+label {
    background-color: var(--background-color-card);
}

p i.material-icons {
  font-size: 1.2rem;
}

.hideable-element {
  opacity: 1;
  transition: max-height 0.4s ease, opacity 0.4s ease, visibility 0.4s ease, margin 0.4s ease; /* Плавный переход для opacity и visibility */
  visibility: visible; /* По умолчанию видимо */
}

.hideable-element.hidden {
  opacity: 0;
  visibility: hidden; /* Скрываем элемент */
  max-height: 0;
  margin: 0;
}

#primary-header {
  position: sticky;
  top: 0px;
  width: 100%;
  z-index: 990;
  transition: top 0.3s; /* Transition effect when sliding down (and up) */ 
  margin-bottom: 12px;
}

.btn {
    background-color: var(--surface-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.image-wrapper {
    width: 100%;
    position: relative;
    padding-top: 56.25%;
}

.image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

/* стили collapsible и меню в нем */

table.item_menu td {
  padding: 5px 5px;
}

ul.table-of-contents {
  margin-top: 12px;
  list-style-type: none;
  font-size: 1rem;
}

.breadcrumb-line {
  display: flex;
  padding: 0 16px;
  height: 64px;
  line-height: 64px;
}
.breadcrumb, .table-of-contents a {
  display: inline-block;
  font-weight: 500;
}
.breadcrumb:hover, .table-of-contents a:hover {
  font-weight: 500;
}
.breadcrumb.active, .table-of-contents a.active {
  font-weight: 500;
  height: 64px;
  line-height: 64px;
}

.table-of-contents a.active {
  border-left: 2px solid rgba(224, 224, 224, 1);
}

.breadcrumb {
  font-size: 1rem;
}
.breadcrumb:before {
  content: '\E5CC';
  vertical-align: top;
  display: inline-block;
  font-family: 'Material Icons';
  font-weight: normal;
  font-style: normal;
  font-size: 25px;
  margin: 0 10px 0 8px;
  -webkit-font-smoothing: antialiased;
  text-transform: capitalize;
}

span.ks-category-button {
  font-size: 1.2rem;
}

/* Стили для мобильной панели */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
}

.hide-on-med-and-up .mobile-bottom-nav {
    display: block;
}

.bottom-nav-wrapper {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 64px;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.2);
    background-color: white;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 20%;
    color: white;
    text-decoration: none;
    padding: 8px 0;
}

.bottom-nav-item i {
    color: #333;
    font-size: 30px;
    font-weight: lighter;
    margin-top: 10px;
}

.bottom-nav-label {
    font-size: 12px;
    line-height: 1;
}

/* Добавляем отступ для контента */
@media only screen and (max-width: 600.99px) {
    body {
      padding-bottom: 56px;
    }
}

.widget-image {
  width: 100%;
  height: auto !important;
}

.item-title {
  margin-top: 0;
}

@media only screen and (min-width: 601px) {
  .card-content {
    padding: 1rem
  }
}
@media only screen and (max-width: 600.99px) {
  .card-content {
    padding: 1rem;
  }
}

/* Кружочки в карусли */
.carousel .indicators .indicator-item {
  width: 10px;
  height: 10px;
  margin: 10px 6px;
}

/* Стили кнопоко */
.btn-large {
    height: 48px;
    line-height: 48px;
    font-size: 16px;
    padding: 0 28px;
}

.btn, .btn-small, .btn-large,
.btn-flat {
  padding: 0 12px;
  white-space: nowrap;
}

.btn-details {
  margin-left: 1rem;
}

.btn-secondary {
  border: 1px solid grey;
  border-radius: var(--border-radius);
  height: 36px;
  line-height: 36px;
  margin: 0.5rem;
}

/* Кнопки на главной странице */
.btn-small {
    margin-top: 7px;
    letter-spacing: 0px;
    background-color: var(--surface-color);
    border-radius: 20px;
    /*padding: 6px 15px;*/
}

.btn.outlined, .btn-small.outlined, .btn-large.outlined, .btn-details.ourlined {
  border: 1px solid black;
}

a.btn-small.outlined {
  color: black;
}

a.btn-small.outlined:hover {
  background-color: #f0f0f0;
}

.btn-further {
  background-color: white;
  color: black;
}
/* цвет ссылки */
.card .card-action a:not(.btn):not(.btn-small):not(.btn-large):not(.btn-large):not(.btn-floating) {
  color: #039be5;
  -webkit-transition: color .3s ease;
  transition: color .3s ease;
}

.carousel.carousel-slider .carousel-item.oulined {
  background-color: transparent;
  color: var(--link-color);
  border: 1px solid var(--link-color);
}

.collapsible {
  margin: 0;
}

.collapsible-header {
/*  background-color: var(--surface-s-color);
  color: var(--font-on-primary-color-main);*/
}

.collapsible-header h5 {
  margin: 0;
}

.collapsible-body {
/*  padding: 10px;*/
/*background-color: var(--background-color);*/
}

/* Цвет хэщтегов */
.hashtags {
  font-size: 1rem;
  color: var(--font-color-medium);
}

.secondary-link, .copy-coordinates, .copy-address {
  color: dimgray;
  text-decoration: underline;
  cursor: pointer;
  display: inline-block;
  line-height: 1.3rem;
  margin-bottom: 8px;
}

.service-icons {
  font-size: 1.7rem;
  color: var(--font-color-medium)
}

@media only screen and (max-width: 992px) {
  .modal {
    width: 95%;
    height: auto;
  }
}

.modal .modal-content {
    padding: 0;
    overflow-y: hidden;
}

modal .modal-footer {
    border-radius: 0 0 2px 2px;
    height: 38px;
    width: 100%;
    text-align: right;
}

.section {
/*  margin-top: 12px;*/
  padding: 0;
}

/* Временно скрываем FOOTEК */
footer {
}

.page-footer {
    margin-top: 20px;
    border-top: 1px solid var(--border-color);
    padding: 30px 0;
    color: var(--footer-color);
    background-color: var(--footer-background);
}

.page-footer a {
  color: rgba(255, 255, 255, 0.87);
}

/* Стили для страницы объекта */
@media only screen and (max-width: 412px) {
  #vtour, #item_map {
   padding: 12px 18px 12px 0;
  }
}

/* Стили стрелок карусели */
.carousel-arrow {
  position: absolute;
  tsop: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  font-size: 2em;
}

i.photoset_next, i#photomenu_next, i#roll_next, i.photoset_prev, i#photomenu_prev, i#roll_prev {
  position: absolute;
  top: 50%; /* Смещаем верхнюю границу элемента на 50% от высоты родителя */
  transform: translateY(-50%); /* Смещаем элемент вверх на половину его собственной высоты */
  padding: 10px;
  color: #fff;
  background: #634e4e99;
  font-size: 35px;
  font-weight: 800;
  border-radius: 50px;
  cursor: pointer;
}

i.photoset_next, i#photomenu_next, i#roll_next {
  right: 0px;

}
i.photoset_prev, i#photomenu_prev, i#roll_prev {
  left: 0px;
}
i#rotation {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 10px;
  color: #fff;
  background: #634e4e99;
  font-size: 35px;
  font-weight: 800;
  border-radius: 50px;
  cursor: pointer;
}
i#play_icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 10px;
  color: #fff;
  background: #634e4e99;
  font-size: 35px;
  font-weight: 800;
  border-radius: 50px;
  cursor: pointer;
}

ul.showcase-section {
  list-style: none;
  padding: 0;
}

ul.showcase-section li{
  list-style: none;
  padding: 0;
}

/* Стили виртуального тура */
div#panoСontainer {
  width: 100%;
  height: 100%;
  min-height: 400px;
  padding: 0 12px 12px 12px;
  margin: 0 auto;
}

div#panoDIV {
  height:100%;
  position:relative;
  overflow:hidden;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -o-user-select: none;
  user-select: none;
}

blockquote {
    border-left: 5px solid var(--font-color-medium);
}

.elevation-selector {
  width: 144px;
  height: 78px;
}
.elevation-caption {
  height: 78px;
}

.elevation {
  width: 100%;
  height: 26px;
  padding-right: 12px;
}

.elevation.active {
  background-color: rgba(136, 136, 136, 0.3);
}

a.disabled-link {
  pointer-events: none;
  cursor: default;
  color: white;
}

/* ========== PROFILE STYLES ========== */
.profile-header {
  position: relative;
}

.profile-cover {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.profile-avatar {
  position: absolute;
  bottom: -90px;
  left: 12%;
  transform: translateX(-50%);
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 4px solid #fff;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.profile-avatar.avatar-expert {
  /*border: 4px solid lightgreen;*/
}

.profile-avatar.avatar-premium {
  /*border: 4px solid var(--ks-logo);*/
}

.profile-info {
  text-align: center;
  padding: 0 20px;
}

.profile-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 5px;
}

.profile-title {
  color: var(--text-medium);
  margin-bottom: 10px;
  font-size: 1rem;
  margin-left: 200px;
}

/* Profile tabs */
.profile-tabs-container {
  position: sticky;
  top: 0;
  background: white;
  z-index: 10;
}

.profile-tabs-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  white-space: nowrap;
}

.profile-tabs-scroll::-webkit-scrollbar {
  display: none;
}

.profile-tabs {
  display: inline-flex;
  border-bottom: 1px solid var(--border-color);
  min-width: 100%;
}

.profile-tab {
  padding: 15px 20px;
  color: var(--text-medium);
  font-weight: 600;
  position: relative;
  flex-shrink: 0;
}

.profile-tab.active {
  color: var(--primary-color);
}

.profile-tab.active:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 20%;
  right: 20%;
  height: 3px;
  background-color: var(--primary-color);
  border-radius: 3px;
}

.tab-content {
  display: none;
  animation: fadeIn 0.3s ease-out;
}

.tab-content.active {
  display: block;
  padding-top: 1rem;
}

/* Основные стили статьи */
.article-page {
  max-width: 720px;
}

.article-header {
    margin-bottom: 30px;
}
.article-cover {
    width: 100%;
    object-fit: cover;
}
.article-author {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
}
.article-author-name {
    font-size: var(--font-size-md);
    line-height: 1.5;
}
.author-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin-right: 15px;
    object-fit: cover;
}
.author-title {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.4;
}
.article-content {
    line-height: 1.6;
    font-size: 1.1rem;
}
.article-content h2 {
    margin-top: 30px;
    color: #333;
}
.article-content p {
    margin-bottom: 15px;
}
.article-footer {
    margin-top: 2rem;
    /*width: 80%;*/
    border-top: 1px solid #eee;
}

@media only screen and (max-width: 600.99px) {
  .article-footer {
    width: 100%;
  }
}

.related-articles {
    margin-top: 50px;
}
.article-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}
.article-teaser {
    font-size: 1.2rem;
    font-weight: 500;
    color: #333;
    line-height: 1.4;
    padding: 15px;
    background-color: #f9f9f9;
    border-left: 4px solid dimgray;
}

/* Стили для тегов */
.article-tags {
    margin-top: 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.article-tag {
    display: inline-block;
    padding: 4px 12px;
    background-color: #f0f0f0;
    border-radius: 16px;
    font-size: 0.85rem;
    color: #555;
}

/* Стили для блока реакций */
.reactions-block {
    padding: 20px;
    margin-bottom: 20px;
}
.reaction-btn {
    display: flex;
    align-items: center;
    margin-right: 15px;
}
.reaction-btn .btn-text {
    display: none;
}
.reaction-btn .material-icons {
    color: #666;
}

.comments-section {
    margin-top: 30px;
}
.comments-title {
    font-size: var(--font-size-md);
    margin-top: 1.5rem;
    /*margin-bottom: 20px;*/
}
.comments-container {
    /*padding: 15px;*/
    margin-top: 1.5rem;
}
.comment-header {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
}
.comment-meta {
    display: flex;
    flex-direction: column;
    margin-left: 10px;
}
.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}
.comment-author {
    font-weight: bold;
    margin-right: 10px;
}
.comment-time {
    font-size: 0.85rem;
    color: #777;
    margin-top: 5px;
    width: 100%;
}
.comment-text {
    margin-bottom: 10px;
    line-height: 1.5;
    width: 100%;
    margin-left: 0;
}
.comment-divider {
    margin-top: 20px;
    /*padding-top: 20px;*/
    border-top: 1px solid #eee;
}
.comment-replies {
    margin-left: 50px;
    margin-top: 15px;
}
.comment-reply {
    padding-left: 15px;
    border-left: 2px solid #eee;
    margin-bottom: 15px;
}
.comment-form {
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
    gap: 10px;
}
.comment-form .input-field {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 0;
}

.comment-form-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

textarea.comment-textarea {
    flex-grow: 1;
    min-height: 28px;
    line-height: normal;
    padding: 6px;
    resize: vertical;
    overflow-y: hidden; /* prevents scroll bar flash */
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
}

.comment-form .send-btn {
    align-self: flex-end;
}

.send-comment-container {
    display: flex;
    flex-direction: column; /*Отображаем кнопку*/
    /*justify-content: flex-end;*/
    width: 100%;
    gap: 0.5rem;
}

.send-comment-container .send-btn {
    align-self: flex-start; /*Смещает кнопку отправть влеов на десктопе*/
}

@media only screen and (max-width: 600.99px) {
    .send-comment-container {
        display: flex;
        flex-direction: row;
        width: 100%;
        gap: 0.5rem;
    }
    .send-comment-container .send-btn {
        align-self: flex-end;
    }
}

/* Адаптивные стили */
@media only screen and (min-width: 601px) {
    .reaction-btn .btn-text {
        display: inline;
        font-size: 0.8rem;
        margin-left: 5px;
    }
    .comment-replies {
        margin-left: 26px;
    }
}

/* Новые адаптивные стили для мобильных */
@media only screen and (max-width: 600.99px) {
    .comment-replies {
        margin-left: 15px;
    }
    .comment-reply {
        padding-left: 10px;
        border-left-width: 1px;
    }
    .comment-avatar {
        width: 32px;
        height: 32px;
    }
    .comment-header {
        flex-wrap: wrap;
    }
    .comment-meta {
        flex-wrap: wrap;
    }
}

.related-articles .card { /* выравнивает карточки по высоте */
    height: 100%;
    display: flex;
    flex-direction: column;
}


/* ========== CARDS ========== */
.card {
  background-color: var(--surface-color);
  border-radius: var(--border-radius);
  /*border: 1px solid var(--border-color);*/
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
}

.card-image {
  width: 100%;
  /*height: 200px;*/
  object-fit: cover;
}

/* ========== GRID LAYOUT ========== */
.grid-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.grid-item {
  aspect-ratio: 1;
  overflow: hidden;
  cursor: pointer;
}

.grid-item img, 
.grid-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.grid-item:hover img, 
.grid-item:hover video {
  transform: scale(1.05);
}

/* ========== UTILITY CLASSES ========== */
.hide-on-med-and-down {
  display: block;
}

/* ========== MEDIA QUERIES ========== */
@media (max-width: 600.99px) {
  .profile-cover {
    height: 150px;
  }
  
  .profile-avatar {
    width: 150px;
    height: 150px;
    bottom: -50px;
    left: 50%;
  }
  
  .profile-info {
    margin-top: 60px;
  }

  .profile-title {
    margin-left: 0;
  }
  
  .profile-tab {
    padding: 12px 15px;
    font-size: 0.9rem;
  }
  
  .grid-container {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .lightbox-content {
    max-width: 95%;
    max-height: 80%;
  }
  
  .mobile-bottom-nav {
    display: block;
  }
  
  body {
    padding-bottom: 56px;
  }
}

/* ========== ANIMATIONS ========== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Стили для скроллеров */
.events-scroller, .community-scroller {
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 10px;
}

.events-scroller > div {
    display: inline-block;
    width: 100%;
}

.community-scroller > div {
    display: inline-block;
}

.events-section, .articles-section, .community-section {
  margin-top: 1rem;
}

/* Стили для реакций пользователей */
.article-reactions {
    position: relative;
    /*margin-top: 10px;*/
    margin-left: 1rem;
    margin-bottom: 0.5rem;
    height: 32px;
}

/* Дополнительные стили для карточки */
.article-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding-top: 1rem;
}

.article-card h3{
    padding: 0 1rem;
}

.article-card .article-tease {
    flex-grow: 1;
    display: flex;
    flex-direction: row;
}

.article-card .article-tease-text {
    width: 65%;
    line-height: 1.3;
    margin-top: 0;
    padding: 0 1rem;
    max-height: 200px; /* Максимальная высота */
    overflow: hidden; /* Скрываем текст, выходящий за пределы */
    text-overflow: ellipsis; /* Добавляем многоточие */
    display: -webkit-box;
    -webkit-line-clamp: 8; /* Количество строк до обрезки (примерно для 200px при line-height 1.3) */
    -webkit-box-orient: vertical;
}

.article-card .article-tease-image {
    width: 35%;
    /*height: 200px;*/
    object-fit: cover;
}

.article-card .card-bottom {
    margin-top: auto;
    padding: 1rem;
    display: flex;
    flex-direction: row;
}
.article-card .read-btn {
    margin-right: 1rem;
}

.user-reaction-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid white;
    object-fit: cover;
    position: absolute;
    transition: transform 0.3s ease;
}

.user-reaction-circle:hover {
    transform: scale(1.1);
    z-index: 2;
}

.reaction-count {
    position: absolute;
    /*right: 0;*/
    left: 70px;
    top: 0;
    /*background-color: rgba(0,0,0,0.6);*/
    /*color: white;*/
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 0.85rem;
    line-height: 1;
}

.articles-page {
    max-width: 720px;
}
.article-author {
    font-size: 0.9rem;
    color: #666;
    margin: 8px 0;
}

.post-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.post-content {
    padding: 15px;
}

.post-title {
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.post-excerpt {
    color: var(--text-medium);
    margin-bottom: 15px;
    font-size: 0.9rem;
    line-height: 1.5;
}

.post-meta {
    display: flex;
    justify-content: space-between;
    color: var(--text-light);
    font-size: 0.8rem;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.grid-item {
    aspect-ratio: 0.7;
    overflow: hidden;
    cursor: pointer;
}

.grid-item img, .grid-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.grid-item:hover img, 
.grid-item:hover video {
    transform: scale(1.05);
}

.recommendation-card {
    padding: 15px;
    border-bottom: 1px solid #eee;
    background: white;
    border-radius: 8px;
    margin-bottom: 10px;
}

.recommendation-user {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.recommendation-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

.recommendation-text {
    color: var(--text-medium);
    font-size: 0.9rem;
    line-height: 1.5;
}

.contacts-list {
    padding: 15px;
    background: white;
    border-radius: 8px;
}

.contact-item {
    display: flex;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

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

.contact-icon {
    margin-right: 15px;
    color: var(--primary-color);
}

#map {
    height: 300px;
    margin: 20px 0;
    border-radius: 12px;
    background: white;
    padding: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    z-index: 100;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 30px;
    cursor: pointer;
}

.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 99;
    cursor: pointer;
    border: none;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.loading-spinner {
    display: none;
    text-align: center;
    padding: 20px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(0,0,0,0.1);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
    margin: 0 auto;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 600px) {
    .profile-cover {
        height: 150px;
    }
    
    .profile-avatar {
        width: 150px;
        height: 150px;
        bottom: -50px;
        left: 50%;
    }
    
    .profile-info {
        margin-top: 60px;
    }

    .profile-title {
        margin-left: 0;
    }

    
    .profile-tab {
        padding: 12px 15px;
        font-size: 0.9rem;
    }
    
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .lightbox-content {
        max-width: 95%;
        max-height: 80%;
    }
    
    #map {
        height: 250px;
    }
}

.event-header {
    position: relative;
    margin-bottom: 20px;
}

.event-cover {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.event-meta {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 1rem;
    color: #333;
}

.meta-item:last-child {
    margin-bottom: 0;
}

.meta-icon {
    color: #1976d2;
}

.event-description {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.description-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #141414;
}

.description-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #333;
}

.event-gallery {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.gallery-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #141414;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.gallery-item {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 8px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.event-location {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.location-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #141414;
}

.location-address {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    color: #333;
}

.location-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
}

.event-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    position: sticky;
    bottom: 20px;
    z-index: 5;
}

.other-events {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.other-events-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #141414;
}

.event-link {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
    color: #333;
    transition: color 0.2s;
}

.event-link:hover {
    color: #1976d2;
}

.event-link:last-child {
    border-bottom: none;
}

@media (max-width: 600.99px) {
    .event-cover {
        height: 180px;
        border-radius: 0;
        box-shadow: none;
    }
    
    .event-title {
        font-size: 1.5rem;
        padding: 0 20px;
    }
    
    .event-meta,
    .event-description,
    .event-gallery,
    .event-location,
    .other-events {
        border-radius: 0;
        box-shadow: none;
        margin-bottom: 15px;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .event-actions {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 10px;
        background: white;
        margin-bottom: 0;
        box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    }
}

.badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    margin-left: 8px;
    vertical-align: middle;
}

.premium-badge {
    background: linear-gradient(135deg, var(--ks-logo), var(--ks-logo));
    color: white;
}

.expert-badge {
    background: linear-gradient(135deg, lightgreen, #2E7D32);
    color: white;
    position: relative;
    padding-left: 24px;
}

.expert-badge:before {
    content: "✓";
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
}

:root, :host {
  --background-color: white;
  --background-color-deep: #D7DADA;
  --background-color-card: var(--surface-color);
  --background-color-card-s: var(--surface-s-color);
  --background-color-disabled: rgba(0, 0, 0, 0.12);
  --background-color-level-16dp-solid: var(--surface-color);
  --background-color-level-4dp: rgba(0, 0, 0, 0.09);
  --background-color-slight-emphasis: rgba(0, 0, 0, 0.025);
  --ks-logo: #8E44AD;
  --border-color: #424D6B;
  --border-radius: 8px;
  --big-border-radius: 16px;
  --button-surface-color: rgba(255, 255, 255, 0.74);
  --carousel-indicator-active-color: #FFF;
  --carousel-indicator-color: rgba(255, 255, 255, 0.45);
  --error-color: #F44336;
  --focus-color: rgba(0, 0, 0, 0.12);
  --focus-color-solid: #E0E0E0;
  --footer-background: rgba(0, 0, 0, 0.48);;
  --footer-color: rgba(255, 255, 255, 0.87);;
  --font-color-disabled: rgba(0, 0, 0, 0.38);
  --font-color-main: rgba(0, 0, 0, 0.87);
  --font-color-medium: rgba(0, 0, 0, 0.56);
  --font-on-primary-color-dark-main: rgba(255, 255, 255, 0.87);
  --font-on-primary-color-dark-medium: rgba(255, 255, 255, 0.60);
  --font-on-primary-color-disabled: rgba(255, 255, 255, 0.38);
  --font-on-primary-color-main: rgba(255, 255, 255, 0.87);
  --font-on-primary-color-medium: rgba(255, 255, 255, 0.60);
  --font-on-secondary-color-main: rgba(255, 255, 255, 0.87);
  --gradient-top: rgba(0, 0, 0, 0.0);
  --gradient-bottom: rgba(0, 0, 0, 0.7);
  --hover-color: rgba(3, 155, 229, 0.89);
  --link-color: rgba(2, 116, 172, 1);
  --md_sys_color_on-surface: 28, 27, 31;
  --navbar-background-color: var(--surface-color);
  --primary-color: #8E44AD;
  --primary-color-dark: #424242;
  --primary-color-font-disabled-color: rgba(var(--primary-color-numeric), 0.4);
  --primary-color-font-medium-color: rgba(var(--primary-color-numeric), 0.7);
  --primary-color-focus-opaque: rgba(var(--primary-color-numeric), 0.18);
  --primary-color-hover-opaque: rgba(var(--primary-color-numeric), 0.06);
  --primary-color-numeric: 38, 166, 154;
  --primary-color-raised-focus-solid: #92a6ab;
  --primary-color-raised-hover-solid: #039BE5;
  --secondary-color: #37474f;
  --secondary-color-focus-solid: #FF7B78;
  --secondary-color-hover-solid: #FE625F;
  --separator-color: var(--border-color);
  --slider-track-color: rgba(0, 0, 0, 0.26);
  --surface-color: rgba(255, 255, 255, 1);
  --surface-s-color: #616161;
  --switch-thumb-off-color: #ffffff;
  --tooltip-background-color: #313033;
  --tooltip-font-color: rgba(255, 255, 255, 0.77);
}

:root[theme=dark], :host[theme=dark] {
  --background-color: #373942;
  --background-color-deep: #282933;
  --background-color-card: var(--surface-color);
  --background-color-disabled: rgba(255, 255, 255, 0.12);
  --background-color-level-16dp-solid: #262626;
  --background-color-level-4dp: rgba(255, 255, 255, 0.09);
  --background-color-slight-emphasis: rgba(255, 255, 255, 0.05);
  --border-color: #ADADAD;
  --border-radius: 8px;
  --button-surface-color: rgba(0, 20, 0, 0.74);
  --error-color: #CF6679;
  --focus-color: rgba(255, 255, 255, 0.12);
  --focus-color-solid: #424242;
  --footer-background: black;
  --footer-color: var(--font-color-main);
  --font-color-disabled: rgba(255, 255, 255, 0.38);
  --font-color-main: rgba(255, 255, 255, 0.87);
  --font-color-medium: rgba(255, 255, 255, 0.60);
  --font-on-primary-color-dark-main: rgba(255, 255, 255, 0.87);
  --font-on-primary-color-dark-medium: rgba(255, 255, 255, 0.60);
  --font-on-primary-color-disabled: rgba(0, 0, 0, 0.38);
  --font-on-primary-color-main: rgba(0, 0, 0, 0.87);
  --font-on-primary-color-medium: rgba(0, 0, 0, 0.56);
  --gradient-top: rgba(0, 0, 0, 0.87);
  --gradient-bottom: rgba(0, 0, 0, 0.26);
  --hover-color: rgba(255, 255, 255, 0.04);
  --link-color: rgba(255, 255, 255, 0.87);
  --md_sys_color_on-surface: 230, 225, 229;
  --navbar-background-color: darkgrey;
  --primary-color: #424242;
  --primary-color-dark: #9575CD;
  --primary-color-numeric: 179, 157, 219;
  --primary-color-raised-focus-solid: #DBC5FF;
  --primary-color-raised-hover-solid: #C2ACEA;
  --secondary-color: #CDDC39;
  --secondary-color-focus-solid: #F5FF61;
  --secondary-color-hover-solid: #DCEB48;
  --separator-color: var(--border-color);
  --slider-track-color: rgba(255, 255, 255, 0.26);
  --surface-color: #3A3A3A;
  --switch-thumb-off-color: #bababa;
}