/*
@media (min-width: 1400px) {
  .container{
    max-width: 1140px;
  }
}
*/
/* Системный стек вместо загружаемого шрифта. Roboto оставлен первым: на
   Android и ChromeOS он уже стоит в системе, и вид страницы не меняется, а
   скачивать 991 КБ ttf на каждой странице больше не нужно. */
body {
  font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI",
               "Helvetica Neue", "Noto Sans", Arial, sans-serif;
  font-size: 15px;
}

h1, .h1{font-size: 1.7rem; margin: 0;}
h2, .h2{font-size: 1.5rem; margin: 0;}
h3, .h3{font-size: 1.2rem; margin: 0;}
h4, .h4{font-size: 15px; margin: 0;}
h5, .h5{font-size: 15px; margin: 0;}
h6, .h6{font-size: 15px; margin: 0;}

h1, h2 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}
p{
  margin-bottom: 0.5rem;
}

.container {
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
}

.fs-17{font-size: 17px;}
.fw-500{font-weight: 500;}
.fw-600{font-weight: 600;}

textarea:focus,
input[type="text"]:focus,
input[type="password"]:focus,
input[type="datetime"]:focus,
input[type="datetime-local"]:focus,
input[type="date"]:focus,
input[type="month"]:focus,
input[type="time"]:focus,
input[type="week"]:focus,
input[type="number"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="search"]:focus,
input[type="tel"]:focus,
input[type="color"]:focus,
.uneditable-input:focus {
  border-color: rgb(196, 207, 216);
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075) inset, 0 0 2px rgb(196, 207, 216);
  outline: 0 none;
}

table th{
  font-weight: 500;
}

.sticky-top { top: 1em; z-index: 1;}

.hero-section {

  background-position: center;
  color: white;
  padding: 80px 0px;
  margin-bottom: 30px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

.card-img-background-top{
  background: linear-gradient(0deg, #00000088 30%, #ffffff44 100%);
  /*background: linear-gradient(to bottom, rgb(0 0 0 / 30%), transparent);*/
  text-shadow: 0 2px 3px rgba(0, 0, 0, 0.3);
  font-size: 17px;
  overflow: hidden;
}
.card-img-background-bottom{
  /*background: linear-gradient(0deg, #00000088 30%, #ffffff44 100%);*/
  /*background: linear-gradient(to top, rgb(0 0 0 / 30%), transparent);*/
  /*text-shadow: 0 2px 3px rgba(0, 0, 0, 0.3);*/
  overflow: hidden;
}
.card-img-background{
  background: linear-gradient(to top, rgb(0 0 0 / 70%), transparent);
  text-shadow: 0 2px 3px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}
.city-card {
  height: 140px!important;
  width: 100%;
}
.city-card img {
  width: 100%;
  height: auto;
}
.card-font-background{
  background-color: #5f5f5f98;
  padding: 0 5px;
  border-radius: 3px;
  font-size: 14px;
  font-weight: 500;
}
.card-font-responsitive{
  font-size: 1.1rem;
  font-weight: 500;
}
a .scale .card-font-responsitive{
  transition: font 0.6s ease;
}
a .scale:hover .card-font-responsitive{
  font-size: 1.15rem;
}
a .scale{
  overflow: hidden;
  display: inline-block;
}
a .scale img {
  transition: 0.6s;
  }
a:hover .scale img {
  transform: scale(1.15);
 }

 .scale img {transition: 0.6s;}
 .scale:hover img {transform: scale(1.15);}
 .scale{
  overflow: hidden;
 }
 .spoiler{
  overflow: hidden;
 }
 #sight-filter-spoiler{
  height: 30rem;
  overflow: hidden;
 }
 #hidden-phone{
  height: 0;
  overflow: hidden;
 }

 .lined .nav-link {
  border: none;
  border-bottom: 2px solid transparent;
  font-size: 16px;
  font-weight: 600;
  color: #2e65bd;
}

.lined .nav-link:hover {
  border: none;
  border-bottom: 2px solid transparent;
}

.lined .nav-link.active {
  /*background: none;*/
  color: #2e65bd ;
  border-color: #2e65bd;
}
.table-td-text-break>tbody>tr>td{
  word-wrap: break-word!important;
  /*word-break: break-all!important;*/
}


/* RATING FORM START */
.rating-area {
	overflow: hidden;
	min-width: 190px;
	margin: 0;
	display: flex;
	flex-direction: row-reverse;
	justify-content: start;
}
.rating-area:not(:checked) > input {
	display: none;
}
.rating-area:not(:checked) > label {
	float: right;
	width: 42px;
	padding: 0;
	cursor: pointer;
	font-size: 32px;
	line-height: 32px;
	color: lightgrey;
	text-shadow: 1px 1px #bbb;
}
.rating-area:not(:checked) > label:before {
	content: '★';
}
.rating-area > input:checked ~ label {
	color: gold;
	text-shadow: 1px 1px #c60;
}
.rating-area:not(:checked) > label:hover,
.rating-area:not(:checked) > label:hover ~ label {
	color: gold;
}
.rating-area > input:checked + label:hover,
.rating-area > input:checked + label:hover ~ label,
.rating-area > input:checked ~ label:hover,
.rating-area > input:checked ~ label:hover ~ label,
.rating-area > label:hover ~ input:checked ~ label {
	color: gold;
	text-shadow: 1px 1px goldenrod;
}
.rate-area > label:active {
	position: relative;
}
/* RATING FORM END */


#blog_post_carousel .carousel-inner {
  justify-content: start;
  align-items: center;
}

#blog_post_carousel .carousel-item {
  margin-bottom: 5px;
}

#blog_post_carousel .carousel-item .card {
  margin: 0 0.5em;
  height: 100%;
}
#blog_post_carousel .carousel-control-next, #blog_post_carousel .carousel-control-prev{
  width: 5%;
  opacity: 1;
}
#blog_post_carousel .carousel-title-height{
  height: 61px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

@media (min-width: 992px) {
  #blog_post_carousel .carousel-inner {
    display: flex;
  }
  #blog_post_carousel .carousel-item {
    flex: 0 0 25%;
    margin-right: 0;
    display: block;
  }
}
@media (max-width: 991px) {
  #blog_post_carousel .carousel-inner {
    display: flex;
  }
  #blog_post_carousel .carousel-item {
    flex: 0 0 50%;
    margin-right: 0;
    display: block;
  }
}
@media (max-width: 767px) {
  #blog_post_carousel .carousel-inner {
    display: flex;
  }
  #blog_post_carousel .carousel-item {
    flex: 0 0 100%;
    margin-right: 0;
    display: block;
  }
}

/* КНОПКИ КАТЕГОРИЙ В ШАПКЕ */
.hero-section .categories-container {
  text-shadow: none;
}
.btn-category {
  background-color: #e1e1e1;
  opacity: 0.9;
  font-weight: 500;
  color: #363636ff;
  font-size: 15px;
}
.btn-category:hover, .btn-category.active {
    background-color: rgba(var(--bs-danger-rgb),var(--bs-bg-opacity))!important;
    opacity: 0.9;
}

/* Скрываем лишние кнопки на мобильных */
@media (max-width: 767.98px) {
    .mobile-hidden {
        display: none !important;
    }

    .categories-container.show-all .mobile-hidden {
        display: inline-block !important;
    }

    .categories-container.show-all .toggle-categories i {
        transform: rotate(180deg);
    }
}

    .categories-scroller {
        padding: 0 2rem;
        width: 100%;
    }

    .scroll-btn {
        width: 2rem;
        height: 2rem;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .scroll-content {
        overflow-x: auto;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE and Edge */
    }

    .scroll-content::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
    }


/* Свайпер отзывов*/
.reviews-section, .sights-section {
    position: relative;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.review-content {
    min-height: 150px;
}

.review-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    height: 100%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
    border: 1px solid #eee;
    display: flex;
    flex-direction: column;
    min-height: 360px;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.review-user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.review-date {
    color: #6c757d;
    font-size: 0.9rem;
    white-space: nowrap;
}

.review-username {
    font-weight: 600;
    margin-bottom: 0;
    color: #333;
}

.review-text {
    color: #555;
    line-height: 1.6;
    flex-grow: 1;
    margin-bottom: 15px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.four-lines {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.review-text.expanded {
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
    text-overflow: unset;
}

.read-more-btn {
    display: none;
    background: none;
    border: none;
    color: #007bff;
    cursor: pointer;
    padding: 0;
    font-size: 0.875rem;
    text-decoration: none;
    align-self: flex-start;
    margin-top: 5px;
}

.read-more-btn.visible {
    display: block;
}

.read-more-btn.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.read-more-btn.expanded .text-collapsed {
    display: none;
}

.read-more-btn.expanded .text-expanded {
    display: inline;
}

.read-more-btn:not(.expanded) .text-collapsed {
    display: inline;
}

.read-more-btn:not(.expanded) .text-expanded {
    display: none;
}

.read-more-btn:hover {
    color: #0056b3;
    text-decoration: underline;
}

.swiper {
    padding: 20px 0 40px;
}

/* Стили для кнопок отзывов */
.swiper-button-next,
.swiper-button-prev {
    background-color: rgba(0, 0, 0, 0.3);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: white;
    position: static;
    margin-top: 0;
    transform: none;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 18px;
    font-weight: bold;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background-color: rgba(0, 0, 0, 0.5);
}

/* Стили для кнопок достопримечательностей */
.sights-button-next,
.sights-button-prev {
    background-color: #28a74678; /* Зеленый цвет для достопримечательностей */
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: white;
    position: static;
    margin-top: 0;
    transform: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sights-button-next:hover,
.sights-button-prev:hover {
    background-color: #218838;
    transform: scale(1.1);
}

.sights-button-next::after,
.sights-button-prev::after {
    font-family: 'bootstrap-icons';
    font-size: 18px;
    color: white;
    font-weight: bold;
}

.sights-button-next::after {
    content: '\f285'; /* bi-chevron-right */
}

.sights-button-prev::after {
    content: '\f284'; /* bi-chevron-left */
}

/* Стили для пагинации отзывов */
.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background-color: #ddd;
}

.swiper-pagination-bullet-active {
    background-color: #0d6efd;
}

/* Стили для пагинации достопримечательностей */
.sights-pagination {
  text-align: center;
}
.sights-pagination .swiper-pagination-bullet {

    opacity: 0.5;
    width: 12px;
    height: 12px;
}

.sights-pagination .swiper-pagination-bullet-active {
    background-color: #28a74678;
    opacity: 1;
}

.navigation-buttons {
    display: flex;
    gap: 10px;
}

/* Адаптивность */
@media (max-width: 992px) {
    .swiper-slide {
        opacity: 0.7;
    }

    .swiper-slide-active {
        opacity: 1;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .navigation-buttons {
        align-self: flex-end;
    }
}

@media (max-width: 768px) {
    .review-card {
        padding: 15px;
    }

    .swiper {
        padding: 10px 0 30px;
    }

    .review-header {
        flex-direction: row;
        align-items: flex-start;
    }

    .review-date {
        align-self: flex-end;
    }

    .navigation-buttons {
        align-self: center;
        margin-top: 10px;
    }

    /* Адаптивность для кнопок достопримечательностей */
    .sights-button-next,
    .sights-button-prev,
    .swiper-button-next,
    .swiper-button-prev {
        width: 36px;
        height: 36px;
    }

    .sights-button-next::after,
    .sights-button-prev::after {
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .section-header {
        align-items: center;
        text-align: center;
    }

    .navigation-buttons {
        align-self: center;
    }

    /* Адаптивность для кнопок на мобильных */
    .sights-button-next,
    .sights-button-prev,
    .swiper-button-next,
    .swiper-button-prev {
        width: 32px;
        height: 32px;
    }

    .sights-button-next::after,
    .sights-button-prev::after {
        font-size: 14px;
    }
}

.categories-scroller {
    padding: 0 0;
}
#posts .scroll-content {
    grid-auto-columns: 305px;
}
#categories .scroll-content {
    grid-auto-columns: 205px;
}
.scroll-content {
    display: grid !important;
    grid-auto-flow: column;
    gap: 1rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 0;
    scrollbar-width: none;
}
.scroll-content::-webkit-scrollbar {
    display: none;
}
#posts .card {
    height: 100%;
}
.text-truncate-multiline-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 24px; /* 72px / 3 = 24px */
    max-height: 72px;
}