/* Страница /katalog/ — Сетка стран */
.country-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.country-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.2s;
}

.country-card:hover {
    transform: translateY(-4px);
}

.country-link {
    display: flex;
    text-decoration: none;
    color: inherit;
    padding: 12px;
    align-items: center;
}

.country-flag {
    width: 60px;
    height: 40px;
    object-fit: cover;
    margin-right: 15px;
    border-radius: 4px;
    background: #f0f0f0;
    flex-shrink: 0;
}

.country-info h2 {
    margin: 0;
    font-size: 1.2rem;
    color: #222;
    font-weight: 600;
}

.country-info p {
    margin: 4px 0 0;
    font-size: 0.9rem;
    color: #666;
}

/* Страница /country_slug/ — Список отелей */
.hotel-listing {
    display: grid;
    gap: 24px;
    margin-top: 20px;
}

.hotel-item {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.hotel-item:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

/* Контейнер карточки отеля */
.hotel-card {
    display: flex;
    height: 100%;
}

.hotel-thumb {
    width: 160px;
    height: 120px;
    object-fit: cover;
    flex-shrink: 0;
}

.hotel-details {
    padding: 12px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

.hotel-details h3 {
    margin: 0 0 6px;
    font-size: 1.1rem;
    color: #222;
    font-weight: 600;
}

.hotel-location,
.hotel-rating,
.hotel-stars {
    font-size: 0.9rem;
    margin: 2px 0;
    color: #555;
}

.hotel-desc {
    font-size: 0.95rem;
    margin-top: 8px;
    color: #333;
    flex-grow: 1;
}

/* Ссылка — только название отеля */
.hotel-name-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.hotel-name-link:hover {
    color: #d32f2f;
    text-decoration: underline;
}

/* Поиск по отелям */
.hotel-search-box {
    margin: 20px 0;
    text-align: center;
}

#hotelSearchInput {
    width: 100%;
    max-width: 500px;
    padding: 10px 16px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.1);
    transition: border-color 0.2s;
}
#hotelSearchInput:focus {
    outline: none;
    border-color: #1a73e8;
    box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.2);
}

/* Хлебные крошки */
.breadcrumbs {
    margin: 10px 0 20px;
    font-size: 0.95rem;
    color: #666;
}

.breadcrumbs ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.breadcrumbs li {
    display: inline-flex;
    align-items: center;
}

.breadcrumbs li:not(:last-child)::after {
    content: "→";
    margin: 0 8px;
    color: #999;
}

.breadcrumbs a {
    color: #1a73e8;
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumbs a:hover {
    color: #d32f2f;
    text-decoration: underline;
}

.breadcrumb-current {
    color: #333;
    font-weight: 500;
}

/* Адаптив */
@media (max-width: 600px) {
    .hotel-card {
        flex-direction: column;
    }
    .hotel-thumb {
        width: 100%;
        height: auto;
    }
    .country-link {
        flex-direction: column;
        text-align: center;
    }
    .country-flag {
        margin-right: 0;
        margin-bottom: 10px;
    }
}
/* Компактная информационная строка */
.hotel-compact-info {
    display: flex;
    gap: 12px;
    margin: 6px 0 12px;
    font-size: 0.9rem;
    color: #555;
    flex-wrap: wrap;
}
.hotel-compact-info .compact-stars {
    white-space: nowrap;
}
.hotel-compact-info .compact-location,
.hotel-compact-info .compact-rating {
    /* ничего особого */
}

/* Кнопки туров */
.hotel-buttons {
    margin-top: 12px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

/* Кнопка "Туры в отель" */
.hotel-btn-current {
    display: inline-block;
    padding: 0.3rem 0.6rem;
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-light);
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    line-height: 1.4;
}
.hotel-btn-current:hover {
    background-color: var(--primary-light);
    color: #fff;
}

/* Кнопка "Больше туров" */
.hotel-btn-more {
    display: inline-block;
    padding: 0.3rem 0.6rem;
    background-color: transparent;
    color: var(--gray-600);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    line-height: 1.4;
}
.hotel-btn-more:hover {
    color: var(--primary-color);
    border-color: var(--primary-light);
}

/* Ссылки на туры в карточке отеля */
.hotel-tours-section {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid #eee;
}
.hotel-tours-section h4 {
    margin: 0 0 8px;
    font-size: 1rem;
    color: #222;
}
.hotel-tour-link {
    display: block;
    padding: 0.3rem 0;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
}
.hotel-tour-link:hover {
    color: var(--primary-light);
    text-decoration: underline;
}
/* Сетка стран — с фоновым фото */
.country-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.country-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.country-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.country-photo {
	width: 100%;
    height: 160px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.country-info {
    padding: 16px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.country-info h2 {
    margin: 0 0 8px;
    font-size: 1.2rem;
    color: #222;
    font-weight: 600;
}
.country-info p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

/* Адаптив */
@media (max-width: 600px) {
    .country-photo {
        height: 120px;
		width: 100%;
    }
    .country-info h2 {
        font-size: 1.1rem;
    }
}
/* === БЛОК ТУРОВ НА СТРАНИЦЕ ОТЕЛЯ === */

.hotel-tours-section {
    margin: 24px 0;
    padding: 16px;
    background-color: #f9f9f9;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}
.hotel-tours-section h4 {
    margin: 0 0 12px;
    font-size: 1.1rem;
    color: var(--text-color);
}
.hotel-tour-link {
    display: block;
    padding: 8px 0;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s;
}
.hotel-tour-link:hover {
    color: var(--primary-light);
    text-decoration: underline;
}

/* Кнопка "Больше туров" */
.hotel-buttons {
    margin-top: 8px;
}
.hotel-btn-more {
    display: inline-block;
    padding: 0.3rem 0.6rem;
    background-color: transparent;
    color: var(--gray-600);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    line-height: 1.4;
}
.hotel-btn-more:hover {
    color: var(--primary-color);
    border-color: var(--primary-light);
}