/* Новый дизайн детальной страницы тура */
/* Подключение шрифтов */
@import url('https://fonts.googleapis.com/css2?family=Montserrat+Alternates:wght@500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;500;600&display=swap');

/* Подключение базовых стилей хедера */
@import url('header-new.css');
@import url('page-header-themes.css');

:root {
    --primary-color: #00b894;
    --primary-hover: #00a085;
    --accent-color: #2d8cff;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f7fafc;
    --bg-muted: #eceff7;
    --border-color: rgba(15, 52, 96, 0.12);
    --border-radius: 18px;
    --shadow-light: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-medium: 0 16px 34px rgba(15, 52, 96, 0.16);
}

body {
    font-family: 'Open Sans', Arial, sans-serif;
    background: linear-gradient(180deg, #f0f4ff 0%, #ffffff 40%);
    color: var(--text-dark);
    margin: 0;
    padding: 0;
}

body.theme-hurghada {
    --accent-color: #2d8cff;
}

body.theme-sharm {
    --accent-color: #2563eb;
}

body.theme-phuket {
    --accent-color: #059669;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--primary-hover);
}

.tour-detail-container {
    max-width: 1140px;
    margin: 0 auto 80px;
    padding: 0 2rem;
}

.tour-title {
    font-family: 'Montserrat Alternates', sans-serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

/* Ссылка в заголовке тура (слово-ссылка) */
.tour-title-link {
    color: #2563eb;
    text-decoration: none;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(37, 99, 235, 0.15));
    padding: 0.1em 0.4em;
    border-radius: 6px;
    transition: all 0.2s ease;
    position: relative;
}

.tour-title-link::after {
    content: '';
    display: inline-block;
    width: 0.6em;
    height: 0.6em;
    margin-left: 0.25em;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232563eb' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6'/%3E%3Cpolyline points='15 3 21 3 21 9'/%3E%3Cline x1='10' y1='14' x2='21' y2='3'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    vertical-align: middle;
}

.tour-title-link:hover {
    color: #1d4ed8;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(37, 99, 235, 0.25));
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.2);
}

.tour-description h3 {
    font-family: 'Montserrat Alternates', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.tour-description p {
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    line-height: 1.4;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

/* Ссылки в описании тура */
.tour-description a {
    color: #2563eb;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    text-decoration-color: rgba(37, 99, 235, 0.4);
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
    cursor: pointer;
}

.tour-description a:hover {
    color: #1d4ed8;
    text-decoration-color: rgba(37, 99, 235, 0.8);
}

.tour-description a:visited {
    color: #7c3aed;
}

/* Иконки с ключевой информацией */
.tour-info-icons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.35rem;
    margin: 2.5rem 0;
}

.info-icon-item {
    display: flex;
    align-items: center;
    gap: 1.15rem;
    padding: 1.15rem 1.35rem;
    background: #fff;
    border: 1px solid rgba(15, 52, 96, 0.08);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.info-icon-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
    border-color: rgba(15, 52, 96, 0.18);
}


.info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0.5rem;
    border-radius: 14px;
    background: rgba(45, 140, 255, 0.1);
    color: var(--accent-color);
    flex-shrink: 0;
}

.info-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.2;
}

.info-text.price-with-discount {
    gap: 0.25rem;
}

.price-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.15);
    color: inherit;
}

.price-current {
    font-size: 1.85rem;
    font-weight: 700;
    line-height: 1.1;
    color: inherit;
}

.price-original {
    font-size: 1.1rem;
}

.price-saving {
    display: inline-flex;
    align-items: baseline;
    gap: 0.35rem;
}

.info-icon-item.price-highlight {
    background: linear-gradient(135deg, #ffe259, #ffa751);
    border: none;
    box-shadow: 0 16px 28px rgba(255, 167, 81, 0.25);
    color: #fff;
}

.info-icon-item.price-highlight .info-icon {
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.info-icon-item.price-highlight .info-text {
    color: #fff;
}

.info-icon-item.price-secondary {
    background: rgba(255, 247, 231, 0.95);
    border: 1px solid rgba(255, 193, 111, 0.6);
    box-shadow: 0 12px 28px rgba(255, 193, 111, 0.18);
}

.info-icon-item.price-secondary .info-icon {
    background: rgba(255, 193, 111, 0.2);
    color: #c55d00;
}

/* Список кнопок с информацией */
.tour-info-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.payment-methods-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.payment-method-card {
    background: #ffffff;
    border: 1px solid rgba(15, 52, 96, 0.08);
    border-radius: 16px;
    padding: 1.1rem 1.25rem;
    box-shadow: var(--shadow-light);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.payment-method-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.payment-method-card__title {
    font-family: 'Montserrat Alternates', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 0.5rem;
}

.payment-method-card__description {
    font-size: 0.9rem;
    color: var(--text-muted, #666);
    margin: 0 0 0.75rem;
    line-height: 1.5;
}

.payment-method-card__list {
    margin: 0;
    padding-left: 1.1rem;
    color: var(--text-dark);
    font-size: 0.95rem;
    line-height: 1.4;
}

.payment-method-card__list li + li {
    margin-top: 0.35rem;
}

@media (max-width: 640px) {
    .payment-method-card__title {
        font-size: 1rem;
    }

    .payment-method-card {
        padding: 1rem;
    }
}

.info-icon-item.price-highlight .price-original {
    font-size: 1.1rem;
    text-decoration: line-through;
    color: rgba(255, 255, 255, 0.75);
}

.info-icon-item.price-highlight .price-saving {
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff3c0;
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
}

.info-icon-item.price-highlight .price-saving-percent {
    font-size: 0.9rem;
    color: #ffeb3b;
}

.info-icon-item.price-secondary .info-icon {
    color: #c55d00;
}

.info-icon-item.price-secondary .info-text {
    color: #c55d00;
    font-size: 1.15rem;
    font-weight: 600;
}

/* Theme overrides for tour info icons */
body.theme-sharm .tour-info-icons .info-icon-item {
    border-color: rgba(37, 99, 235, 0.16);
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.14);
}

body.theme-sharm .tour-info-icons .info-icon {
    background: rgba(96, 165, 250, 0.22);
    color: #1d4ed8;
}

body.theme-sharm .tour-info-icons .info-icon-item.price-highlight {
    background: linear-gradient(135deg, #60a5fa 0%, #2563eb 100%);
    box-shadow: 0 18px 36px rgba(37, 99, 235, 0.28);
    color: #ffffff;
}

body.theme-sharm .tour-info-icons .info-icon-item.price-highlight .info-icon {
    background: rgba(255, 255, 255, 0.24);
    color: #ffffff;
}

body.theme-sharm .tour-info-icons .info-icon-item.price-highlight .price-saving {
    color: rgba(219, 234, 254, 0.95);
}

body.theme-sharm .tour-info-icons .info-icon-item.price-highlight .price-saving-percent {
    color: #bfdbfe;
}

body.theme-sharm .tour-info-icons .info-icon-item.price-secondary {
    background: rgba(219, 234, 254, 0.92);
    border: 1px solid rgba(37, 99, 235, 0.35);
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.16);
}

body.theme-sharm .tour-info-icons .info-icon-item.price-secondary .info-icon {
    background: rgba(59, 130, 246, 0.2);
    color: #1d4ed8;
}

body.theme-sharm .tour-info-icons .info-icon-item.price-secondary .info-text {
    color: #1d4ed8;
}

body.theme-phuket .tour-info-icons .info-icon-item {
    border-color: rgba(5, 150, 105, 0.16);
    box-shadow: 0 14px 28px rgba(5, 150, 105, 0.14);
}

body.theme-phuket .tour-info-icons .info-icon {
    background: rgba(52, 211, 153, 0.22);
    color: #047857;
}

body.theme-phuket .tour-info-icons .info-icon-item.price-highlight {
    background: linear-gradient(135deg, #34d399 0%, #059669 100%);
    box-shadow: 0 18px 36px rgba(5, 150, 105, 0.28);
    color: #ffffff;
}

body.theme-phuket .tour-info-icons .info-icon-item.price-highlight .info-icon {
    background: rgba(255, 255, 255, 0.24);
    color: #ffffff;
}

body.theme-phuket .tour-info-icons .info-icon-item.price-highlight .price-saving {
    color: rgba(209, 250, 229, 0.95);
}

body.theme-phuket .tour-info-icons .info-icon-item.price-highlight .price-saving-percent {
    color: #bbf7d0;
}

body.theme-phuket .tour-info-icons .info-icon-item.price-secondary {
    background: rgba(209, 250, 229, 0.92);
    border: 1px solid rgba(16, 185, 129, 0.35);
    box-shadow: 0 12px 28px rgba(5, 150, 105, 0.16);
}

body.theme-phuket .tour-info-icons .info-icon-item.price-secondary .info-icon {
    background: rgba(16, 185, 129, 0.2);
    color: #047857;
}

body.theme-phuket .tour-info-icons .info-icon-item.price-secondary .info-text {
    color: #047857;
}

.info-label {
    font-size: 0.85rem;
    color: var(--text-light);
    display: block;
    margin-top: 2px;
}

.info-icon-item.price-highlight .info-label {
    color: #fff6d1;
    font-weight: 600;
}

.info-icon-item.price-secondary .info-label {
    color: rgba(197, 93, 0, 0.75);
}

body.theme-sharm .tour-info-icons .info-icon-item:not(.price-highlight) .info-label {
    color: #2563eb;
}

body.theme-phuket .tour-info-icons .info-icon-item:not(.price-highlight) .info-label {
    color: #047857;
}

body.theme-hurghada .tour-info-icons .info-icon-item:not(.price-highlight) .info-label {
    color: #b45309;
}

/* Основная карусель */
.tour-carousel {
    position: relative;
    margin-bottom: 2rem;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-medium);
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

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

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Навигация карусели */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-light);
}

.carousel-nav:hover {
    background: white;
    transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
    left: 1rem;
}

.carousel-next {
    right: 1rem;
}

.carousel-nav svg {
    width: 20px;
    height: 20px;
    color: var(--text-dark);
}

/* Индикаторы карусели */
.carousel-indicators {
    position: absolute;
    bottom: 1rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicator.active {
    background: white;
    transform: scale(1.2);
}

/* Миниатюры галереи (внизу карусели) */
.tour-gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 0.75rem;
    margin-bottom: 2rem;
    max-height: none;
}

.gallery-thumb {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-light);
    aspect-ratio: 1 / 1; /* Делаем квадратными */
}

.gallery-thumb:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-thumb.active {
    border: 3px solid var(--primary-color);
}

/* Секции с информацией - общие отступы */
.tour-description,
.tour-info-buttons,
.tour-useful-info,
.tour-variants-section,
.reviews-section {
    margin-bottom: 2rem;
    padding: 0 1.5rem; /* Увеличенные боковые отступы (24px) для всех секций */
}

/* Короткое описание */
.tour-description {
    margin-bottom: 2rem;
}

.tour-description h3 {
    font-family: 'Montserrat Alternates', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.tour-description p {
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    line-height: 1.4;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

/* Список кнопок с информацией */
.tour-info-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tour-useful-info {
    margin-bottom: 2.5rem;
    padding: 2rem 1.5rem;
    background: linear-gradient(135deg, rgba(79, 172, 254, 0.08), rgba(0, 242, 254, 0.08));
    border: 1px solid rgba(15, 52, 96, 0.08);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
}

.tour-useful-info__header {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-bottom: 1.5rem;
}

.tour-useful-info__badge {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #ffe8a1, #ffc94d);
    color: #5d3b00;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(255, 201, 77, 0.35);
}

.tour-useful-info__header h3 {
    margin: 0;
    font-size: 1.45rem;
    font-weight: 600;
    color: var(--text-dark);
}

.tour-useful-info__header p {
    margin: 0;
    max-width: 620px;
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
}

.tour-useful-info__list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}

.tour-useful-info__item {
    background: #fff;
    border: 1px solid rgba(15, 52, 96, 0.08);
    border-radius: var(--border-radius);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.tour-useful-info__item:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-medium);
    transform: translateY(-2px);
}

.tour-useful-info__item-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.75rem;
}

.tour-useful-info__item-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.3;
}

.tour-useful-info__item-title a {
    color: inherit;
    text-decoration: none;
}

.tour-useful-info__item-title a:hover {
    color: var(--primary-color);
}

.tour-useful-info__lang {
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    background: rgba(45, 140, 255, 0.12);
    color: var(--primary-color);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
}

.tour-useful-info__excerpt {
    margin: 0;
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.55;
}

.tour-useful-info__link {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.tour-useful-info__link span {
    transition: transform 0.2s ease;
}

.tour-useful-info__link:hover span {
    transform: translateX(4px);
}

.info-button-container {
    background: white;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: all 0.3s ease;
}

.info-button-container:hover,
.info-button-container:focus-within {
    border-color: #ffb347;
    box-shadow: var(--shadow-medium);
}

.info-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    background: white;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Open Sans', sans-serif;
    width: 100%;
    text-align: left;
}

.info-button:hover {
    background: var(--bg-light);
}

.info-button-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.info-button-content--warm {
    padding: 0;
    border-radius: 0;
    background: transparent;
}

.info-button-content--warm .info-button-icon {
    color: #ffb347;
}

.info-button-content--warm .info-button-text {
    color: #8a4b00;
}

/* Стили для кнопки "Заявка на тур" - те же что и --warm */
.info-button-content--booking {
    padding: 0;
    border-radius: 0;
    background: transparent;
}

.info-button-content--booking .info-button-icon {
    color: #ffb347;
}

.info-button-content--booking .info-button-text {
    color: #8a4b00;
}

.info-button-icon {
    width: 20px;
    height: 20px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.info-button-text {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-dark);
}

.info-button-arrow {
    width: 16px;
    height: 16px;
    color: var(--text-light);
    transition: transform 0.3s ease;
}

.info-button-container.active .info-button-arrow {
    transform: rotate(90deg);
}

body.theme-sharm .info-button-container:not(.important-info-blue) {
    border-color: rgba(37, 99, 235, 0.18);
}

body.theme-sharm .info-button-container:not(.important-info-blue):hover,
body.theme-sharm .info-button-container:not(.important-info-blue):focus-within {
    border-color: rgba(37, 99, 235, 0.5);
    box-shadow: 0 18px 36px rgba(37, 99, 235, 0.18);
}

body.theme-sharm .info-button-container:not(.important-info-blue) .info-button:hover {
    background: rgba(219, 234, 254, 0.45);
}

body.theme-sharm .info-button-container:not(.important-info-blue) .info-button-content--warm .info-button-icon,
body.theme-sharm .info-button-container:not(.important-info-blue) .info-button-content--booking .info-button-icon,
body.theme-sharm .info-button-container:not(.important-info-blue) .info-button-icon {
    color: #2563eb;
}

body.theme-sharm .info-button-container:not(.important-info-blue) .info-button-content--warm .info-button-text,
body.theme-sharm .info-button-container:not(.important-info-blue) .info-button-content--booking .info-button-text,
body.theme-sharm .info-button-container:not(.important-info-blue) .info-button-text {
    color: #1d4ed8;
}

body.theme-sharm .info-button-container:not(.important-info-blue) .info-button-arrow {
    color: rgba(59, 130, 246, 0.7);
}

body.theme-phuket .info-button-container:not(.important-info-blue) {
    border-color: rgba(5, 150, 105, 0.18);
}

body.theme-phuket .info-button-container:not(.important-info-blue):hover,
body.theme-phuket .info-button-container:not(.important-info-blue):focus-within {
    border-color: rgba(16, 185, 129, 0.45);
    box-shadow: 0 18px 36px rgba(5, 150, 105, 0.18);
}

body.theme-phuket .info-button-container:not(.important-info-blue) .info-button:hover {
    background: rgba(209, 250, 229, 0.45);
}

body.theme-phuket .info-button-container:not(.important-info-blue) .info-button-content--warm .info-button-icon,
body.theme-phuket .info-button-container:not(.important-info-blue) .info-button-content--booking .info-button-icon,
body.theme-phuket .info-button-container:not(.important-info-blue) .info-button-icon {
    color: #059669;
}

body.theme-phuket .info-button-container:not(.important-info-blue) .info-button-content--warm .info-button-text,
body.theme-phuket .info-button-container:not(.important-info-blue) .info-button-content--booking .info-button-text,
body.theme-phuket .info-button-container:not(.important-info-blue) .info-button-text {
    color: #047857;
}

body.theme-phuket .info-button-container:not(.important-info-blue) .info-button-arrow {
    color: rgba(16, 185, 129, 0.65);
}

/* Выпадающий контент */
.info-dropdown-content {
    max-height: 0;
    overflow: hidden;
    background: var(--bg-light);
    transition: max-height 0.3s ease;
    /* Добавляем поддержку автоматической высоты */
    box-sizing: border-box;
}

.info-dropdown-content.active {
    max-height: 2000px; /* Очень большое значение для полного отображения */
    overflow: visible; /* Показываем весь контент */
}

.dropdown-inner {
    padding: 1.5rem;
    font-family: 'Open Sans', sans-serif;
    line-height: 1.4;
    color: var(--text-dark);
}

/* Стили для списков с галочками */
.dropdown-inner ul {
    list-style: none;
    padding-left: 0;
}

.dropdown-inner ul li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 10px;
}

.dropdown-inner ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
    font-size: 1.2em;
}

.dropdown-inner ul li.fmt-red-item,
.dropdown-inner ul li.fmt-red-item::before {
    color: #dc2626;
}

.dropdown-inner ul li.fmt-blue-item,
.dropdown-inner ul li.fmt-blue-item::before {
    color: #2563eb;
}

.dropdown-inner ul li.fmt-green-item,
.dropdown-inner ul li.fmt-green-item::before {
    color: #059669;
}

.dropdown-inner ul li.fmt-gold-item,
.dropdown-inner ul li.fmt-gold-item::before {
    color: #d97706;
}

.dropdown-inner ul li:has(.fmt-red) {
    color: #dc2626;
}

.dropdown-inner ul li:has(.fmt-red)::before {
    color: #dc2626;
}

.dropdown-inner ul li:has(.fmt-blue) {
    color: #2563eb;
}

.dropdown-inner ul li:has(.fmt-blue)::before {
    color: #2563eb;
}

.dropdown-inner ul li:has(.fmt-green) {
    color: #059669;
}

.dropdown-inner ul li:has(.fmt-green)::before {
    color: #059669;
}

.dropdown-inner ul li:has(.fmt-gold) {
    color: #d97706;
}

.dropdown-inner ul li:has(.fmt-gold)::before {
    color: #d97706;
}



/* Форма заявки на тур */
.tour-booking-form {
    background: var(--bg-light);
    padding: 2rem 3rem; /* Увеличены боковые отступы */
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    margin: 0 1rem; /* Отступы от краёв контейнера */
}

.booking-form-title {
    font-family: 'Montserrat Alternates', sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    text-align: center; /* Заголовок по центру */
}

.booking-form-subtitle {
    text-align: center; /* Подзаголовок по центру */
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.booking-form {
    display: flex;
    flex-direction: column; /* Вертикальная раскладка */
    gap: 1rem;
    max-width: 600px; /* Ограничение ширины для центрирования */
    margin: 0 auto; /* Выравнивание по центру */
}

.form-section {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(255, 183, 77, 0.28);
    border-radius: 18px;
    padding: 1.5rem 1.75rem;
    box-shadow: 0 12px 28px rgba(255, 179, 71, 0.12);
    transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.form-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    border-radius: 18px 18px 0 0;
    background: linear-gradient(135deg, #ffd66b 0%, #ffb347 100%);
}

.form-section-title {
    font-family: 'Montserrat Alternates', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: #d97706;
    margin-bottom: 0.5rem;
    text-align: left; /* Заголовок секции слева */
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-label {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.form-input,
.form-select,
.form-textarea {
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: 'Open Sans', sans-serif;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    background: white;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    outline: none;
    border-color: rgba(255, 179, 71, 0.75);
    box-shadow: 0 0 0 3px rgba(255, 179, 71, 0.18);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
    grid-column: 1 / -1;
}

.form-submit {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #ffd66b 0%, #ffb347 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-family: 'Open Sans', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
    align-self: center; /* Кнопка по центру в flex контейнере */
    min-width: 250px; /* Минимальная ширина кнопки */
}

.form-submit:hover {
    background: linear-gradient(135deg, #ffc94d 0%, #ffa733 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-medium);
}

body.theme-sharm .form-section {
    border-color: rgba(37, 99, 235, 0.2);
    box-shadow: 0 14px 32px rgba(37, 99, 235, 0.16);
}

body.theme-sharm .form-section::before {
    background: linear-gradient(135deg, #60a5fa 0%, #2563eb 100%);
}

body.theme-sharm .form-section-title {
    color: #1d4ed8;
}

body.theme-sharm .form-submit {
    background: linear-gradient(135deg, #60a5fa 0%, #2563eb 100%);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.28);
}

body.theme-sharm .form-submit:hover {
    background: linear-gradient(135deg, #4f8df7 0%, #1d4ed8 100%);
    box-shadow: 0 12px 34px rgba(37, 99, 235, 0.34);
}

body.theme-phuket .form-section {
    border-color: rgba(5, 150, 105, 0.22);
    box-shadow: 0 14px 32px rgba(5, 150, 105, 0.16);
}

body.theme-phuket .form-section::before {
    background: linear-gradient(135deg, #34d399 0%, #059669 100%);
}

body.theme-phuket .form-section-title {
    color: #047857;
}

body.theme-phuket .form-submit {
    background: linear-gradient(135deg, #34d399 0%, #059669 100%);
    box-shadow: 0 8px 24px rgba(5, 150, 105, 0.28);
}

body.theme-phuket .form-submit:hover {
    background: linear-gradient(135deg, #2fb488 0%, #047857 100%);
    box-shadow: 0 12px 34px rgba(5, 150, 105, 0.34);
}

body.theme-sharm .form-label {
    color: #1d4ed8;
}

body.theme-phuket .form-label {
    color: #047857;
}

body.theme-sharm .form-input:focus,
body.theme-sharm .form-select:focus,
body.theme-sharm .form-textarea:focus {
    border-color: rgba(59, 130, 246, 0.75);
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.22);
}

body.theme-phuket .form-input:focus,
body.theme-phuket .form-select:focus,
body.theme-phuket .form-textarea:focus {
    border-color: rgba(16, 185, 129, 0.75);
    box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.22);
}

/* Блок обязательной информации для туров Пхукета */
.phuket-important-info {
    border-color: rgba(255, 107, 0, 0.3);
    background: linear-gradient(135deg, rgba(255, 248, 240, 0.5), rgba(255, 236, 220, 0.5));
}

.phuket-important-info:hover {
    border-color: rgba(255, 107, 0, 0.5);
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.15);
}

.phuket-important-info .info-button-icon {
    color: #ff6b00;
}

.phuket-important-info .info-button-text {
    color: #d32f2f;
    font-weight: 600;
}

.important-info-blue {
    border-color: rgba(211, 47, 47, 0.4);
    background: linear-gradient(135deg, rgba(254, 235, 238, 0.85), rgba(251, 205, 207, 0.85));
}

.important-info-blue:hover {
    border-color: rgba(183, 28, 28, 0.6);
    box-shadow: 0 4px 12px rgba(211, 47, 47, 0.2);
}

.important-info-blue .info-button {
    background: linear-gradient(135deg, #d32f2f, #b71c1c);
    color: #fff;
}

.important-info-blue .info-button:hover {
    background: linear-gradient(135deg, #b71c1c, #880e4f);
}

.important-info-blue .info-button-icon,
.important-info-blue .info-button-text,
.important-info-blue .info-button-arrow {
    color: #fff;
}

.important-info-blue .info-button-text {
    font-weight: 600;
}

/* Мобильная адаптация */
@media (max-width: 768px) {
    .tour-detail-container {
        padding: 1rem 1.5rem; /* Увеличены боковые отступы для мобильных */
        margin-top: 45px;
    }
    
    .tour-booking-form {
        padding: 1.5rem; /* Уменьшены отступы для мобильных */
        margin: 0 0.5rem; /* Меньшие отступы от краёв на мобильных */
    }

    .form-section {
        padding: 1.25rem 1.25rem;
    }
    
    /* Информационные секции на мобильных */
    .tour-description,
    .tour-info-buttons,
    .tour-useful-info,
    .tour-variants-section,
    .reviews-section {
        padding: 0 0.75rem; /* Уменьшенные отступы (12px) для мобильных */
    }
    .tour-useful-info {
        padding: 1.5rem 1rem;
        margin-bottom: 2rem;
    }

    .tour-useful-info__list {
        grid-template-columns: 1fr;
    }
    
    .tour-title {
        font-size: 2rem;
    }
    
    .tour-info-icons {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.75rem;
    }

    .tour-info-icons .info-icon-item {
        width: 100%;
    }

    .tour-info-icons .info-icon-item:not(.price-highlight):not(.price-secondary) {
        grid-column: 1 / -1;
    }

    .info-icon-item.price-highlight .info-text {
        align-items: center;
        justify-content: center;
        text-align: center;
        width: 100%;
    }
    
    .carousel-container {
        height: 250px;
    }
    
    .carousel-nav {
        width: 40px;
        height: 40px;
    }
    
    .tour-gallery-thumbs {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 0.5rem;
    }
    
    /* aspect-ratio уже установлен в основных стилях */
    
    .booking-form {
        max-width: 100%; /* На мобильных форма занимает всю ширину */
    }
    
    .form-submit {
        width: 100%; /* Кнопка на всю ширину на мобильных */
        min-width: auto;
    }
    
    /* Исправляем dropdown для мобильных */
    .info-dropdown-content.active {
        max-height: 2500px; /* Большое значение для мобильных */
        overflow: visible; /* Показываем весь контент */
    }
    
    .dropdown-inner {
        padding: 1.1rem; /* Небольшой отступ для читаемости */
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    .tour-description p {
        font-size: 1rem;
        line-height: 1.5;
    }
}

@media (max-width: 480px) {
    .tour-title {
        font-size: 1.8rem;
    }
    
    .carousel-container {
        height: 200px;
    }
    
    .tour-info-icons {
        padding: 1rem;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .info-icon-item {
        flex-direction: column;
        text-align: center;
        gap: 0.35rem;
    }

    .tour-info-icons .info-icon-item:not(.price-highlight):not(.price-secondary) {
        grid-column: 1 / -1;
    }

    .info-icon-item.price-highlight,
    .info-icon-item.price-secondary {
        align-items: center;
    }
    
    .info-icon-item.price-highlight {
        padding: 0.75rem 1rem;
    }
    
    /* Дополнительные стили для маленьких экранов */
    .info-dropdown-content.active {
        max-height: 3000px; /* Максимальное значение для маленьких экранов */
        overflow: visible;
    }
    
    .dropdown-inner {
        padding: 0.9rem;
        font-size: 0.95rem;
        line-height: 1.45;
    }
    
    .tour-description p {
        font-size: 0.95rem;
        line-height: 1.45;
    }

    .info-text {
        font-size: 1.05rem;
    }
}

/* Полноэкранный просмотр галереи */
.fullscreen-gallery {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    justify-content: center;
    align-items: center;
}

.fullscreen-gallery.active {
    display: flex;
}

.fullscreen-gallery img {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
}

.fullscreen-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    z-index: 10001;
    background: rgba(0, 0, 0, 0.5);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.fullscreen-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.fullscreen-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    border: none;
    padding: 20px;
    font-size: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10001;
}

.fullscreen-nav:hover {
    background: rgba(255, 255, 255, 0.2);
}

.fullscreen-nav.prev {
    left: 20px;
}

.fullscreen-nav.next {
    right: 20px;
}

.fullscreen-counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 18px;
    background: rgba(0, 0, 0, 0.5);
    padding: 10px 20px;
    border-radius: 20px;
}