/* ========================================
   City Layout - Tours Grid
   ======================================== */

/* Подключаем шрифт Montserrat */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');

/* Применяем шрифт к карточкам туров */
.tours-grid,
.tour-card,
.tour-info,
.tour-title,
.tour-details,
.tour-price {
    font-family: 'Montserrat', sans-serif;
}

.tours-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
    margin-bottom: 30px;
}

@media (max-width: 992px) {
    .tours-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .tours-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

.tour-card {
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.tour-card:hover {
    transform: translateY(-2px);

}

.tour-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
    background-color: #f8f8f8;
}

.tour-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tour-image-wrapper a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.tour-image-wrapper a:hover {
    opacity: 0.9;
}

.favorite-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 27px;
    height: 27px;
    background-color: transparent;
    border: 2px solid #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: background-color 0.2s ease;
    z-index: 10;
}

.favorite-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.favorite-btn svg {
    width: 16px;
    height: 16px;
    stroke: #fff;
}

.tour-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    font-family: 'Montserrat', sans-serif;
    padding: 10px!important;
}

.tour-rating {
    display: flex;
    align-items: center;
    gap: 5px;
}

.star-icon {
    width: 12px;
    height: 12px;
    color: #000000;
    fill: #000000;
}

.rating-value {
    font-size: 16px;
    font-weight: 700;
    line-height: 19.20px;
    color: var(--accent-color, #F05633);
    font-family: 'Montserrat', sans-serif;
}

.rating-count {
    font-size: 14px;
    font-weight: 300;
    color: #808080;
    font-family: 'Montserrat', sans-serif;
}

.tour-title {
    font-size: 18px;
    font-weight: 700;
    line-height: 23px;
    color: #141414;
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 23px;
    margin-bottom: 5px;
}

.tour-title a {
    color: #141414;
    text-decoration: none;
    display: block;
}

.tour-title a:hover {
    color: var(--accent-color, #F05633);
    text-decoration: none;
}

.tour-details {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 10px;
    font-weight: 300;
    color: #808080;
    flex-wrap: wrap;
    font-family: 'Montserrat', sans-serif;
    line-height: 1.5;
    margin-bottom: 10px;
}

.tour-details span {
    white-space: nowrap;
}

.tour-details .dot {
    color: #808080;
    margin: 0 2px;
    flex-shrink: 0;
}

.tour-price {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-top: auto;
}

.price-from {
    font-size: 18px;
    font-weight: 700;
    line-height: 19.20px;
    color: var(--accent-color, #F05633);
    font-family: 'Montserrat', sans-serif;
}

.price-per {
    font-size: 14px;
    font-weight: 300;
    color: #808080;
    font-family: 'Montserrat', sans-serif;
}

/* Sidebar styles */
.sidebar {
    padding-right: 20px;
}

@media (max-width: 991px) {
    .sidebar {
        padding-right: 0;
        margin-bottom: 30px;
    }
}

/* Breadcrumb and title styles for city layout */
.container > .breadcrumb-line {
    margin-bottom: 15px;
}

.container > h1.geo-page__title {
    margin-bottom: 10px;
}

.container > p.geo-page__description {
    margin-bottom: 20px;
}

/* Tour card image hover effect */
.tour-image-wrapper {
    transition: opacity 0.2s ease;
}

.tour-card:hover .tour-image-wrapper {
    opacity: 0.95;
}

/* Tour card padding for content */
.tour-card {
    padding: 0;
}

.tour-info {
    padding: 0;
}

/* Скрываем элемент сравнения товаров */
#compare-total,
a[href*="compare"],
p > a[href*="compare"],
p:has(a[href*="compare"]) {
    display: none !important;
}

/* Скрываем параграф, содержащий только ссылку на сравнение */
p:only-child > a[href*="compare"] {
    display: none !important;
}

p:only-child:has(a[href*="compare"]) {
    display: none !important;
}

/* ========================================
   Sorting Section
   ======================================== */
.sorting-section {
    background-color: #ffffff;
    margin-bottom: 20px;
}

.sorting-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    margin-bottom: 0;
}

.sorting-label {
    font-size: 20px;
    font-weight: 700;
    line-height: 23px;
    color: #141414;
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 0;
}

.sorting-tabs {
    display: flex;
    gap: 10px;
    padding: 20px 0;
    flex-wrap: wrap;
}

.sort-tab {
    font-size: 16px;
    font-weight: 400;
    line-height: 18.40px;
    color: #141414;
    cursor: pointer;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    background-color: #ffffff;
    border: none;
    padding: 10px 24px;
    border-radius: 50px;
    display: inline-block;
    white-space: nowrap;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.sort-tab:hover {
    background-color: #f0f0f0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
}

.sort-tab.active {
    background-color: #f0f0f0;
    color: #141414;
   /* ========================================
   City Layout - Tours Grid
   ======================================== */

/* Подключаем шрифт Montserrat */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&display=swap');

/* Применяем шрифт к карточкам туров */
.tours-grid,
.tour-card,
.tour-info,
.tour-title,
.tour-details,
.tour-price {
    font-family: 'Montserrat', sans-serif;
}

.tours-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 20px;
    margin-bottom: 30px;
}

@media (max-width: 992px) {
    .tours-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .tours-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

.tour-card {
    display: flex;
    flex-direction: column;
    background-color: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.tour-card:hover {
    transform: translateY(-2px);

}

.tour-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
    background-color: #f8f8f8;
}

.tour-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tour-image-wrapper a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.tour-image-wrapper a:hover {
    opacity: 0.9;
}

.favorite-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 27px;
    height: 27px;
    background-color: transparent;
    border: 2px solid #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: background-color 0.2s ease;
    z-index: 10;
}

.favorite-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.favorite-btn svg {
    width: 16px;
    height: 16px;
    stroke: #fff;
}

.tour-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    font-family: 'Montserrat', sans-serif;
    padding: 10px!important;
}

.tour-rating {
    display: flex;
    align-items: center;
    gap: 5px;
}

.star-icon {
    width: 12px;
    height: 12px;
    color: #000000;
    fill: #000000;
}

.rating-value {
    font-size: 16px;
    font-weight: 700;
    line-height: 19.20px;
    color: var(--accent-color, #F05633);
    font-family: 'Montserrat', sans-serif;
}

.rating-count {
    font-size: 14px;
    font-weight: 300;
    color: #808080;
    font-family: 'Montserrat', sans-serif;
}

.tour-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 23px;
    color: #141414;
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 23px;
    margin-bottom: 5px;
}

.tour-title a {
    color: #141414;
    text-decoration: none;
    display: block;
}

.tour-title a:hover {
    color: var(--accent-color, #F05633);
    text-decoration: none;
}

.tour-details {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 10px;
    font-weight: 300;
    color: #808080;
    flex-wrap: wrap;
    font-family: 'Montserrat', sans-serif;
    line-height: 1.5;
    margin-bottom: 10px;
}

.tour-details span {
    white-space: nowrap;
}

.tour-details .dot {
    color: #808080;
    margin: 0 2px;
    flex-shrink: 0;
}

.tour-price {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-top: auto;
}

.price-from {
    font-size: 20px;
    font-weight: 700;
    line-height: 19.20px;
    color: var(--accent-color, #F05633);
    font-family: 'Montserrat', sans-serif;
}

.price-per {
    font-size: 14px;
    font-weight: 300;
    color: #808080;
    font-family: 'Montserrat', sans-serif;
}

/* Sidebar styles */
.sidebar {
    padding-right: 20px;
}

@media (max-width: 991px) {
    .sidebar {
        padding-right: 0;
        margin-bottom: 30px;
    }
}

/* Breadcrumb and title styles for city layout */
.container > .breadcrumb-line {
    margin-bottom: 15px;
}

.container > h1.geo-page__title {
    margin-bottom: 10px;
}

.container > p.geo-page__description {
    margin-bottom: 20px;
}

/* Tour card image hover effect */
.tour-image-wrapper {
    transition: opacity 0.2s ease;
}

.tour-card:hover .tour-image-wrapper {
    opacity: 0.95;
}

/* Tour card padding for content */
.tour-card {
    padding: 0;
}

.tour-info {
    padding: 0;
}

/* Скрываем элемент сравнения товаров */
#compare-total,
a[href*="compare"],
p > a[href*="compare"],
p:has(a[href*="compare"]) {
    display: none !important;
}

/* Скрываем параграф, содержащий только ссылку на сравнение */
p:only-child > a[href*="compare"] {
    display: none !important;
}

p:only-child:has(a[href*="compare"]) {
    display: none !important;
}

/* ========================================
   Sorting Section
   ======================================== */
.sorting-section {
    background-color: #ffffff;
    margin-bottom: 20px;
}

.sorting-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    margin-bottom: 0;
}

.sorting-label {
    font-size: 20px;
    font-weight: 700;
    line-height: 23px;
    color: #141414;
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 0;
}

.sorting-tabs {
    display: flex;
    gap: 10px;
    padding: 20px 0;
    flex-wrap: wrap;
}

.sort-tab {
    font-size: 16px;
    font-weight: 400;
    line-height: 18.40px;
    color: #141414;
    cursor: pointer;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    background-color: #ffffff;
    border: none;
    padding: 10px 24px;
    border-radius: 50px;
    display: inline-block;
    white-space: nowrap;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.sort-tab:hover {
    background-color: #f0f0f0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.12);
}

.sort-tab.active {
    background-color: #f0f0f0;
    color: #141414;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

@media (max-width: 768px) {
    .sorting-tabs {
        gap: 20px;
    }
    
    .sort-tab {
        font-size: 14px;
        padding: 6px 12px;
    }
}

}

@media (max-width: 768px) {
    .sorting-tabs {
        gap: 20px;
    }
    
    .sort-tab {
        font-size: 14px;
        padding: 6px 12px;
    }
}
