* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Helvetica Neue', Arial, 'Hiragino Sans', 'Hiragino Kaku Gothic ProN', Meiryo, sans-serif; color: #000; background: #fff; line-height: 1.6; }
.template-container { max-width: 1400px; margin: 0 auto; padding: 15px 20px; }
.page-header { text-align: center; padding: 25px 0 20px; margin-top: 50px; }
 h1 { font-size: 36px; font-weight: 300; letter-spacing: 2px; color: #142640; }
.main-layout { display: flex; gap: 20px; margin-top: 15px; position: relative; }
.sidebar { width: 280px; flex-shrink: 0; transition: all 0.3s ease; }
.sidebar.collapsed { width: 0; overflow: hidden; padding: 0; margin: 0; opacity: 0; position: absolute; }
.sidebar-toggle { display: flex; align-items: center; gap: 8px; padding: 10px 16px; background: #142640; color: #fff; border: none; cursor: pointer; font-size: 14px; margin-bottom: 15px; transition: all 0.2s; width: 100%; }
.sidebar-toggle:hover { background: #1d3a5c; }
.sidebar-toggle .toggle-icon { transition: transform 0.3s; font-size: 12px; }
.sidebar-open-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; background: #142640; color: #fff; border: none; cursor: pointer; font-size: 14px; transition: all 0.2s; }
.sidebar-open-btn:hover { background: #1d3a5c; }
.sidebar-open-btn .toggle-icon { transform: rotate(180deg); font-size: 12px;margin-top: -6px; }
.content { flex: 1; }
.filter-section { margin-bottom: 30px; border-bottom: 1px solid #e0e0e0; padding-bottom: 20px; }
.filter-header { display: flex; justify-content: space-between; align-items: center; cursor: pointer; padding: 15px 0; user-select: none; }
.filter-header h3 { font-size: 18px; font-weight: 500; color: #142640; }
.filter-header .arrow { font-size: 14px; color: #8D9092; transition: transform 0.3s; }
.filter-header .arrow.expanded { transform: rotate(180deg); }
.filter-content { padding-top: 10px; }
.year-selector { margin-bottom: 20px; }
.year-btn { width: 100%; padding: 10px; border: 1px solid #142640; background: #142640; color: #fff; font-size: 14px; }
.month-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.month-btn { padding: 12px 8px; border: 1px solid #e0e0e0; background: #fff; cursor: pointer; font-size: 13px; text-align: center; transition: all 0.2s; color: #142640; }
.month-btn:hover:not(.disabled) { background: #f5f5f5; color: #142640;}
.month-btn.active { background: #142640; color: #fff; border-color: #142640; }
.month-btn.active:hover {background: rgb(106, 107, 109);color: #fff;}
.month-btn.disabled { opacity: 0.3; cursor: not-allowed; background: #fafafa; }
.checkbox-list { max-height: 250px; overflow-y: auto; }
.checkbox-item { display: flex; align-items: center; padding: 8px 0; cursor: pointer; }
.checkbox-item input[type="checkbox"] { width: 18px; height: 18px; margin-right: 10px; cursor: pointer; }
.checkbox-item label { flex: 1; cursor: pointer; font-size: 14px; color: #142640; }
.clear-filters { margin-top: 20px; padding: 12px; background: transparent; border: 1px solid #8D9092; color: #142640; cursor: pointer; width: 100%; font-size: 14px; transition: all 0.2s; }
.clear-filters:hover { background: #f5f5f5; }
.controls-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding-bottom: 15px; border-bottom: 1px solid #e0e0e0; flex-wrap: wrap; gap: 10px; }
.controls-left { display: flex; align-items: center; gap: 15px; flex-wrap: wrap; }
.results-info { font-size: 16px; color: #142640; }
.controls-right { display: flex; gap: 20px; align-items: center; }
.sort-control { display: flex; align-items: center; gap: 10px; }
.sort-control label { font-size: 14px; color: #142640; }
.sort-control select { padding: 8px 12px; border: 1px solid #8D9092; background: #fff; color: #142640; font-size: 14px; cursor: pointer; }
.view-toggle { display: flex; gap: 5px; }
.view-btn { width: 40px; height: 40px; border: 1px solid #8D9092; background: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s; font-size: 20px; }
.view-btn:hover { background: #f5f5f5; }
.view-btn.active { background: #142640; color: #fff; border-color: #142640; }
.cruise-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 30px; align-items: stretch; }
@media (min-width: 1400px) { .cruise-grid { grid-template-columns: repeat(3, 1fr); } }
.cruise-card { background: #fff; border: 1px solid #e0e0e0; overflow: hidden; transition: all 0.3s; display: flex; flex-direction: column; height: 100%; position: relative; }
.cruise-card:hover { border-color: #142640; }
.cruise-card-special-tab {
    position: absolute;
    top: 16px;
    left: 0;
    background: #B10A32;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 14px 6px 12px;
    z-index: 2;
    letter-spacing: 0.05em;
    line-height: 1;
    box-shadow: 2px 2px 6px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
}
.cruise-card-image { width: 100%; height: 250px; object-fit: cover; background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%); flex-shrink: 0; }
.cruise-card-content { padding: 20px; display: flex; flex-direction: column; flex: 1; text-align: center; }
.cruise-card-title {
    font-size: 18px;
    font-weight: 500;
    color: #142640;
    margin-bottom: 8px;
    line-height: 1.4;
    word-break: keep-all;
    overflow-wrap: anywhere;
    text-align: center;
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cruise-card-tagline {
    font-size: 13px;
    color: #8D9092;
    margin-bottom: 12px;
    line-height: 1.5;
    word-break: keep-all;
    text-align: center;
    min-height: 42px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}
.cruise-card-route {
    font-size: 15px;
    color: #8D9092;
    margin-bottom: 8px;
    text-align: center;
    min-height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.cruise-card-dates {
    font-size: 13px;
    color: #142640;
    margin-bottom: 15px;
    text-align: center;
    min-height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}
.cruise-card-dates-label {
    color: #8D9092;
    margin-right: 5px;
}
.cruise-card-bottom { margin-top: auto; }
.cruise-card-stats { display: flex; justify-content: space-between; margin-bottom: 20px; padding-top: 15px; border-top: 1px solid #e0e0e0; }
.stat { text-align: center; flex: 1; }
.stat-value { font-size: 22px; font-weight: 500; color: #142640; display: block; }
.stat-label { font-size: 10px; color: #8D9092; letter-spacing: 0.5px; }
.stat-fare .stat-value.special-fare {
    color: #B10A32;
    font-weight: 600;
}
.cruise-card-actions { display: flex; gap: 10px; }
.btn { flex: 1; padding: 12px 8px; border: none; cursor: pointer; font-size: 11px; letter-spacing: 0.5px; transition: all 0.2s; text-decoration: none; display: inline-block; text-align: center; }
.cruise-card .btn {border-radius: 0;}
.btn-primary { background: #B10A32; color: #fff; }
.btn-primary:hover { background: #8d0825; }
.btn-secondary { background: #8D9092; color: #fff; }
.btn-secondary:hover { background: #6a6b6d; }
.cruise-list { display: flex; flex-direction: column; gap: 20px; }
.cruise-list-item { display: flex; border: 1px solid #e0e0e0; background: #fff; overflow: hidden; transition: all 0.3s; }
.cruise-list-item:hover { border-color: #142640; }
.cruise-list-image { width: 400px; height: 250px; object-fit: cover; flex-shrink: 0; background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%); }
.cruise-list-content { flex: 1; padding: 25px; display: flex; flex-direction: column; }
.cruise-list-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 15px; }
.cruise-list-info { flex: 1; }
.cruise-list-title { font-size: 20px; font-weight: 500; color: #142640; margin-bottom: 8px; word-break: keep-all; overflow-wrap: anywhere; }
.cruise-list-tagline { font-size: 14px; color: #8D9092; margin-bottom: 8px; word-break: keep-all; }
.cruise-list-route { font-size: 15px; color: #8D9092; }
.cruise-list-dates { font-size: 13px; color: #142640; margin-top: 8px; }
.cruise-list-dates-label { color: #8D9092; margin-right: 5px; }
.cruise-list-stats { display: flex; gap: 30px; margin-left: 30px; }
.cruise-list-actions { margin-top: auto; display: flex; gap: 10px; max-width: 500px; }
.modal-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.7); display: flex; align-items: flex-start; justify-content: center; z-index: 1000; padding: 60px 20px 20px; overflow-y: auto; }
.modal-container { position: relative; width: 100%; max-width: 900px; }
.vk-modal { background: #fff; width: 100%; max-height: calc(100vh - 100px); overflow-y: auto; }

.modal-close { position: absolute; top: 0; right: 0; transform: translateY(-100%); background: #333; border: none; font-size: 13px; cursor: pointer; color: #fff; line-height: 1; padding: 10px 15px; z-index: 1001; transition: all 0.2s; display: flex; align-items: center; gap: 8px; font-weight: 500; letter-spacing: 0.5px; }
.modal-close:hover { background: #555; }
/* .vk-modal-top { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 30px; background: #f5f5f5; } */
.vk-modal-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding: 30px;
    background: #f5f5f5;
}
/* .vk-modal-left { display: flex; flex-direction: column; gap: 15px; } */
.vk-modal-left {
    padding-right: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.modal-title-box { background: #2c3e50; color: #fff; padding: 20px; }
.modal-title { font-size: 22px; font-weight: 500; margin-bottom: 10px; line-height: 1.3; word-break: keep-all; overflow-wrap: anywhere; }
.modal-tagline { font-size: 14px; color: #b8c5d6; line-height: 1.5; }
.modal-description { font-size: 14px; color: #333; line-height: 1.8; }
.modal-dates { font-size: 13px; color: #142640; padding: 10px 0; }
.modal-dates-label { color: #8D9092; margin-right: 8px; font-weight: 500; }
.modal-map-container { display: flex; align-items: flex-start; overflow: hidden;}
/* .modal-map { width: 100%; height: auto; max-height: 100%; object-fit: contain; } */
.modal-map {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}
/* Mobile: stack cleanly */
@media (max-width: 1024px) {
    .vk-modal-top {
        grid-template-columns: 1fr;
    }
    .vk-modal-left {padding-right:0;}
}
.vk-modal-body { padding: 30px; }
.modal-section { margin-bottom: 40px; }
.modal-section:last-child { margin-bottom: 0; }
.modal-section-title { font-size: 20px; font-weight: 500; color: #142640; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 2px solid #142640; }
.itinerary-note { font-size: 13px; color: #666; margin-bottom: 15px; }
.itinerary-list { display: flex; flex-direction: column; gap: 1px; background: #e0e0e0; }
.itinerary-item { background: #fff; cursor: pointer; transition: background 0.2s; }
.itinerary-item:hover { background: #f9f9f9; }
.itinerary-item.no-detail:hover {background: #fff;}
.itinerary-header { display: flex; gap: 15px; padding: 20px; align-items: center; position: relative; }
.itinerary-header::after { content: '▼'; position: absolute; right: 20px; font-size: 12px; color: #8D9092; transition: transform 0.3s; }
.itinerary-item.no-detail .itinerary-header {cursor: default;}
.itinerary-item.no-detail .itinerary-header::after {display: none;}
.itinerary-item.expanded .itinerary-header::after { transform: rotate(180deg); }
.itinerary-day { width: 40px; flex-shrink: 0; font-size: 18px; font-weight: 500; color: #142640; text-align: center; }
.itinerary-image { width: 120px; height: 80px; object-fit: cover; flex-shrink: 0; background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%); }
.itinerary-content { flex: 1; display: flex; align-items: center; }
.itinerary-city { font-size: 16px; font-weight: 500; color: #142640; }
.itinerary-description { font-size: 14px; color: #666; line-height: 1.7; padding: 0 20px 20px 75px; border-top: 1px solid #f0f0f0; display: none; }
.itinerary-description.expanded { display: block; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; align-items: stretch; }
.pricing-card { border: 1px solid #e0e0e0; padding: 15px; text-align: center; background: #fafafa; display: flex; flex-direction: column; }
.cabin-image { width: 100%; height: 150px; object-fit: cover; margin-bottom: 10px; background: linear-gradient(135deg, #f5f5f5 0%, #e0e0e0 100%); flex-shrink: 0; }
.cabin-category { font-size: 11px; color: #8D9092; margin-bottom: 5px; text-transform: uppercase; letter-spacing: 0.5px; }
.cabin-type {
    font-size: 14px;
    font-weight: 500;
    color: #142640;
    margin-bottom: 10px;
    word-break: keep-all;
    overflow-wrap: anywhere;
    text-align: center;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.4;
}
.cabin-price {
    font-size: 24px;
    font-weight: 500;
    color: #142640;
    margin-bottom: 5px;
}
.cabin-price-strikethrough {
    font-size: 16px;
    color: #999;
    text-decoration: line-through;
}
.cabin-price-label {
font-size: 10px;
color: #5C6066;
display: block;
margin-bottom: 2px;
}
.cabin-price-label-promo, .cabin-price-promo {
    color: #B10A32;
}
.cabin-note { font-size: 11px; color: #8D9092; }
.cabin-single-note {
    background: #B10A32;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    padding: 4px 8px;
    margin-top: 6px;
    text-align: center;
    line-height: 1.3;
    width: 100%;
}
.no-results { text-align: center; padding: 60px 20px; color: #8D9092; }
.no-results h3 { font-size: 24px; color: #142640; margin-bottom: 10px; }
.modal-cta-row {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    justify-content: center;
    width: 100%;
}
@media (max-width: 768px) {
  .modal-cta-row {
    flex-direction: column;
    align-items: center;
  }
}
.modal-cta-row .modal-cta {
    padding: 14px 30px;
    font-size: 14px;
    letter-spacing: 0.5px;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    min-width: 200px;
    flex: none;
}
.modal-cta-row .btn {
    flex: 1;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    border-radius: 0 !important;
    flex: 0 0 auto; /* Prevents them from growing to fill the row */
}
.modal-cta-row .btn-secondary {
    background: #8D9092;
    color: #fff;
}
.modal-cta-row .btn-secondary:hover {
    background: #6a6b6d;
}
.modal-cta-row .btn-primary {
    background: #B10A32;
    color: #fff;
}
.modal-cta-row .btn-primary:hover {
    background: #8d0825;
}
.loading-container { text-align: center; padding: 80px 20px; }
.loading-spinner { width: 50px; height: 50px; border: 3px solid #e0e0e0; border-top-color: #142640; border-radius: 50%; animation: spin 1s linear infinite; margin: 0 auto 20px; }
@keyframes spin { to { transform: rotate(360deg); } }
.error-container { text-align: center; padding: 60px 20px; background: #fff5f5; border: 1px solid #ffcdd2; margin: 20px; border-radius: 4px; }
.error-container h3 { color: #B10A32; margin-bottom: 10px; }
@media (max-width: 1024px) { .main-layout { flex-direction: column; gap: 15px; } .sidebar { width: 100%; position: relative; } .sidebar.collapsed { height: 0; width: 100%; position: absolute; } .cruise-list-item { flex-direction: column; } .cruise-list-image { width: 100%; height: 300px; } .cruise-list-stats { margin-left: 0; margin-top: 15px; } .vk-modal-top { grid-template-columns: 1fr; } }
@media (max-width: 768px) { .cruise-grid { grid-template-columns: 1fr; } .controls-bar { flex-direction: column; gap: 15px; align-items: flex-start; } .controls-left { width: 100%; } .controls-right { width: 100%; justify-content: space-between; } .pricing-grid { grid-template-columns: 1fr; } .itinerary-header { flex-direction: column; align-items: flex-start !important; } .itinerary-day { width: 100%; text-align: left; } .itinerary-image { width: 100%; height: 150px; } .itinerary-content { width: 100%; } .itinerary-description { padding: 15px 20px 20px 20px; } }
