
.config-items-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}


.config-epic-item { background: white; border-radius: 20px; overflow: hidden; box-shadow: 0 10px 30px -10px rgba(0,0,0,0.08); border: 2px solid transparent; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); cursor: pointer; position: relative; display: flex; flex-direction: column; }
.config-epic-item:hover { transform: translateY(-8px); box-shadow: 0 20px 40px -10px rgba(0,0,0,0.15); border-color: rgba(212, 175, 55, 0.3); }
.config-epic-item.selected { border-color: var(--accent); box-shadow: 0 15px 35px rgba(212, 175, 55, 0.2); transform: translateY(-4px); }
.config-epic-img-box { height: 220px; position: relative; overflow: hidden; }
.config-epic-img-box img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s ease; }
.config-epic-item:hover .config-epic-img-box img { transform: scale(1.1); }
.config-epic-duration { position: absolute; top: 15px; left: 15px; background: rgba(15, 23, 42, 0.8); backdrop-filter: blur(4px); color: white; padding: 6px 12px; border-radius: 30px; font-size: 0.8rem; font-weight: 600; z-index: 2; }
.config-epic-check { position: absolute; inset: 0; background: rgba(212, 175, 55, 0.85); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s ease; z-index: 3; }
.config-epic-item.selected .config-epic-check { opacity: 1; }
.config-epic-check svg { transform: scale(0.5); transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.config-epic-item.selected .config-epic-check svg { transform: scale(1); }
.config-epic-content { padding: 25px; flex: 1; display: flex; flex-direction: column; justify-content: space-between; background: white; }
.config-epic-title { font-size: clamp(1.1rem, 2.5vw, 1.3rem); font-weight: 700; color: var(--primary); margin: 0 0 15px 0; line-height: 1.4; }
.config-epic-footer { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 15px; border-top: 1px solid #f1f5f9; }
.config-epic-price { font-size: 1.3rem; font-weight: 800; color: var(--primary); }
.config-epic-price small { font-size: 0.85rem; color: var(--text-muted); font-weight: 600; }
.config-epic-btn { background: #f8fafc; color: var(--primary); padding: 8px 16px; border-radius: 10px; font-weight: 700; font-size: 0.9rem; transition: all 0.3s ease; }
.config-epic-item:hover .config-epic-btn { background: var(--accent); color: white; }
.config-epic-item.selected .config-epic-btn { background: var(--primary); color: white; content: "Wybrano"; }


.config-floating-bar { position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%); background: rgba(15, 23, 42, 0.95); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); padding: 15px 30px; border-radius: 100px; box-shadow: 0 20px 40px rgba(0,0,0,0.3); z-index: 990; border: 1px solid rgba(255,255,255,0.1); width: 90%; max-width: 800px; animation: slideUpBar 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards; }
@keyframes slideUpBar { from { transform: translate(-50%, 100px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }
.config-floating-inner { display: flex; justify-content: space-between; align-items: center; }
.config-floating-info { display: flex; align-items: center; }
.config-floating-actions { display: flex; gap: 15px; }
.config-floating-date { padding-right: 20px; }
.config-floating-sep { width: 1px; height: 30px; background: rgba(255,255,255,0.2); margin-right: 20px; }

@media (max-width: 768px) {
    .config-floating-bar { bottom: 50px; border-radius: 24px 24px 0 0; width: 100%; padding: 20px; }
    .config-floating-inner { flex-direction: column; gap: 20px; }
    .config-floating-info { width: 100%; justify-content: space-between; }
    .config-floating-actions { width: 100%; }
    .config-floating-actions button { flex: 1; }
}

.tour-gallery-grid { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 200px 200px; gap: 15px; margin-bottom: 40px; border-radius: 20px; overflow: hidden; }
.tour-gallery-main { grid-row: 1 / 3; grid-column: 1 / 2; position: relative; overflow: hidden; cursor: pointer; }
.tour-gallery-side { position: relative; overflow: hidden; cursor: pointer; }
.tour-gallery-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.tour-gallery-main:hover .tour-gallery-img, .tour-gallery-side:hover .tour-gallery-img { transform: scale(1.05); }
.tour-gallery-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.2); opacity: 0; transition: opacity 0.3s; display: flex; align-items: center; justify-content: center; color: white; font-size: 2rem; pointer-events: none; }
.tour-gallery-main:hover .tour-gallery-overlay, .tour-gallery-side:hover .tour-gallery-overlay { opacity: 1; }
.tour-content-layout { display: grid; grid-template-columns: 1fr 380px; gap: 50px; align-items: start; }
.tour-sticky-sidebar { position: static; }
.reading-mode { background-color: rgba(212, 175, 55, 0.1); border-left: 4px solid var(--accent); padding: 20px; border-radius: 0 12px 12px 0; transition: all 0.5s ease; }

.config-banner-dark { background: #0f172a; border-radius: 20px; padding: 30px; margin-bottom: 40px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px; border: 1px solid rgba(255,255,255,0.1); }
.config-header { background: #0f172a; color: white; padding: 40px 20px; text-align: center; position: relative; overflow: hidden; }
.config-sticky-bar { position: sticky; top: 70px; z-index: 900; background: white; border-bottom: 1px solid #e2e8f0; padding: 15px 20px; box-shadow: 0 4px 10px rgba(0,0,0,0.05); }
.config-item-card { cursor: pointer; transition: transform 0.2s; border-radius: 16px; overflow: hidden; }
.config-item-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.config-item-card.selected { border: 2px solid var(--accent); transform: scale(0.98); }
.config-item-card.selected .check-overlay { opacity: 1; }
.config-item-card.disabled { opacity: 0.5; cursor: not-allowed; filter: grayscale(1); }
.config-item-card.unavailable { pointer-events: none; }
.config-item-card.unavailable .unavailable-overlay { display: flex; }
.config-item-card.unavailable img { filter: grayscale(1); opacity: 0.5; }
.check-overlay { position: absolute; inset: 0; background: rgba(212, 175, 55, 0.8); display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.2s; }
.unavailable-overlay { position: absolute; inset: 0; background: rgba(255,255,255,0.85); z-index: 5; display: none; align-items: center; justify-content: center; flex-direction: column; text-align: center; padding: 10px; }
.cal-day-btn {
    border: 1px solid #e2e8f0;
    border-radius: 12px;

    background: white;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: var(--primary);
    transition: all 0.2s ease;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 40px;
}
.cal-day-slots {
    font-size: 0.65rem;
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    padding: 3px 6px;
    border-radius: 6px;
    line-height: 1;
    white-space: nowrap;
    width: 90%;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    display:none;
}
.cal-day-btn.full .cal-day-slots {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}
.cal-day-num {
    font-size: 1.1rem;
    line-height: 1;
}
.cal-day-btn:hover:not(.disabled):not(.full) {
    border-color: var(--accent);
    background: #f8fafc;
    transform: translateY(-2px);
}
.cal-day-btn.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
    box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3);
    transform: translateY(-2px);
}
.cal-day-btn.available {
    background: #ecfdf5;
    border-color: #10b981;
    color: #047857;
}
.cal-day-btn.available:hover {
    background: #d1fae5;
    border-color: #059669;
}
.cal-day-btn.disabled {
    background: #f8fafc;
    color: #cbd5e1;
    border-color: #f1f5f9;
    cursor: default;
}
.cal-day-btn.full {
    background: #fef2f2;
    color: #ef4444;
    border-color: #fecaca;
    cursor: default;
}


@media (max-width: 768px) {
    .cal-day-btn {
        min-height: 45px;
        padding: 4px 2px;
        gap: 2px;
    }
    .cal-day-num {
        font-size: 0.9rem;
    }
    .cal-day-slots {
        font-size: 0.55rem;
        padding: 2px 4px;
        width: 95%;
    }
    #calGrid, #confCalGrid {
        gap: 4px !important;
    }
    .config-calendar-wrapper {
        padding: 10px !important;
    }
}


.cruise-booking-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    align-items: start;
}
.cruise-booking-left {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 25px;
    position: sticky;
    top: 100px;
}
.cruise-booking-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
@media (max-width: 900px) {
    .cruise-booking-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .cruise-booking-left {
        position: static;
    }
}

.configurator-wrapper { background: var(--bg-body); min-height: 100vh; padding-bottom: 100px; }
.config-epic-header { position: relative; height: 45vh; min-height: 400px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.config-epic-header-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.config-epic-header-bg-fallback { position: absolute; inset: 0; background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%); z-index: 0; }
.config-epic-header-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(15,23,42,0.6) 0%, rgba(15,23,42,0.9) 100%); z-index: 1; }
.config-form-section { margin-top: 60px; }
.config-summary-box { background: #f8fafc; border-radius: 20px; padding: 30px; border: 1px solid #e2e8f0; }
@media (min-width: 992px) {
    .tour-sticky-sidebar {
        position: sticky;
        top: 100px;
        align-self: start;
    }
}
.tour-details-gallery-section {
    margin-top: 40px;
    border-top: 1px solid #e2e8f0;
    padding-top: 30px;
}
.tour-details-gallery-title {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 20px;
}
.tour-details-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    padding-bottom: 15px;
}
.tour-details-gallery-item {
    aspect-ratio: 4/3;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.tour-details-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.tour-details-gallery-item:hover img {
    transform: scale(1.05);
}
.tour-details-gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.tour-details-gallery-item:hover .tour-details-gallery-overlay {
    opacity: 1;
}
.tour-hero-title {
    text-shadow: 0 2px 4px rgba(0,0,0,0.8), 0 4px 12px rgba(0,0,0,0.6), 0 8px 24px rgba(0,0,0,0.5);
}