/* =============================================================================================
   KABİN SEÇİCİ — B2B tur detayı "Fiyat Hesaplama" formu (2026-10-04)
   Bkz. b2b/cruise-tour/price-calc-form.php ("KABİN SEÇİCİ" bloğu) ve sk-script.js ("skc-").
   Fikir: her kabin satırının solunda kategorisini renk + simgeyle gösteren bir "lumbuz"
   (gemi penceresi) var; kategori renkleri filtre çiplerinde de aynı, böylece uzun listede
   İç / Dış / Balkonlu / Suit ayrımı bir bakışta okunuyor. Fiyat sağda, en uygun fiyata göre
   farkıyla birlikte.
   ============================================================================================= */

.price-calc-room {
    --skc-ink: #0F2A3A;
    --skc-muted: #6B7C8A;
    --skc-line: #E3EAF0;
    --skc-soft: #F4F8FB;
    --skc-blue: #0071A3;
    --skc-blue-soft: #E5F2F8;
    --skc-yellow: #F9B000;
    --skc-yellow-soft: #FFF5DC;
}

/* ---- Oda başlığı ---------------------------------------------------------------------------- */
.price-calc-room > .price-calc-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 0 14px;
    font-size: 15px !important;
    font-weight: 700;
    color: var(--skc-ink);
}
.price-calc-room > .price-calc-label strong {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}
.price-calc-room > .price-calc-label strong > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 26px;
    padding: 0 6px;
    border-radius: 8px;
    background: var(--skc-blue);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
}
.price-calc-room > .price-calc-label .price-calc-room-remove {
    font-size: 12.5px !important;
    font-weight: 600 !important;
    color: #C2410C !important;
    background: transparent;
    padding: 4px 8px;
    border-radius: 8px;
}
.price-calc-room > .price-calc-label .price-calc-room-remove:hover {
    background: #FFF1EB;
}

.skc-section-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--skc-ink);
}

/* ---- Fiyat kategorisi (radio kartları) ------------------------------------------------------ */
.skc-fare { margin-bottom: 16px; }
.skc-fare .skc-section-title { margin-bottom: 8px; }
.skc-fare-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 8px;
}
.skc-fare-item { position: relative; margin: 0; cursor: pointer; }
.skc-fare-item input {
    position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none;
}
.skc-fare-body {
    display: flex;
    flex-direction: column;
    gap: 2px;
    height: 100%;
    padding: 10px 12px;
    border: 1.5px solid var(--skc-line);
    border-radius: 12px;
    background: #fff;
    transition: border-color .15s ease, background-color .15s ease;
}
.skc-fare-name { font-size: 13px; font-weight: 700; color: var(--skc-ink); line-height: 1.25; }
.skc-fare-price { font-size: 12px; color: var(--skc-muted); }
.skc-fare-flag {
    align-self: flex-start; margin-top: 4px; padding: 1px 7px; border-radius: 6px;
    font-size: 11px; font-weight: 700; background: var(--skc-yellow-soft); color: #7A5200;
}
.skc-fare-item:hover .skc-fare-body { border-color: #B9CFDC; }
.skc-fare-item input:checked + .skc-fare-body {
    border-color: var(--skc-blue);
    background: var(--skc-blue-soft);
}
.skc-fare-item input:checked + .skc-fare-body .skc-fare-name { color: var(--skc-blue); }
.skc-fare-item input:focus-visible + .skc-fare-body { outline: 2px solid var(--skc-blue); outline-offset: 2px; }

/* ---- Kabin seçici kapsayıcı ----------------------------------------------------------------- */
.skc { margin-bottom: 18px; }
.skc-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}
.skc-head-note { font-size: 12px; color: var(--skc-muted); text-align: right; }

/* Kategori çipleri: dar sütunda yatay kaydırılır, kategori rengi noktada */
.skc-chips {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 4px;
    margin-bottom: 10px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}
.skc-chips::-webkit-scrollbar { height: 4px; }
.skc-chips::-webkit-scrollbar-thumb { background: #D5DFE7; border-radius: 4px; }
.skc-chip {
    --skc-c: var(--skc-blue);
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
    padding: 7px 12px;
    border: 1.5px solid var(--skc-line);
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    text-align: left;
    transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.skc-chip-name {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 12.5px; font-weight: 700; color: var(--skc-ink); white-space: nowrap;
}
.skc-chip-sub { font-size: 11.5px; color: var(--skc-muted); white-space: nowrap; }
.skc-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--skc-c); }
.skc-chip:hover { border-color: #B9CFDC; }
.skc-chip.is-active {
    border-color: var(--skc-c);
    background: color-mix(in srgb, var(--skc-c) 9%, #fff);
    box-shadow: inset 0 0 0 1px var(--skc-c);
}
.skc-chip[data-cat="all"].is-active { --skc-c: var(--skc-blue); }
.skc-chip:focus-visible { outline: 2px solid var(--skc-blue); outline-offset: 2px; }

/* Arama */
.skc-search { position: relative; margin-bottom: 10px; }
.skc-search i {
    position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
    font-size: 16px; color: var(--skc-muted); pointer-events: none;
}
.skc-search-input {
    width: 100%;
    height: 38px;
    padding: 0 12px 0 36px;
    border: 1.5px solid var(--skc-line);
    border-radius: 10px;
    background: var(--skc-soft);
    font-size: 13px;
    color: var(--skc-ink);
    outline: none;
    transition: border-color .15s ease, background-color .15s ease;
}
.skc-search-input::placeholder { color: #93A3B0; }
.skc-search-input:focus { border-color: var(--skc-blue); background: #fff; }

/* ---- Liste ---------------------------------------------------------------------------------- */
.skc-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.skc-list.is-scroll {
    max-height: 372px;
    overflow-y: auto;
    padding-right: 4px;
    margin-right: -4px;
    scrollbar-width: thin;
    overscroll-behavior: contain;
}
.skc-list.is-scroll::-webkit-scrollbar { width: 5px; }
.skc-list.is-scroll::-webkit-scrollbar-thumb { background: #D5DFE7; border-radius: 5px; }

.skc-item {
    --skc-c: #94A3B8;
    position: relative;
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 10px 12px 10px 10px;
    border: 1.5px solid var(--skc-line);
    border-radius: 14px;
    background: #fff;
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease;
}
.skc-item.is-hidden { display: none; }
.skc-item input {
    position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none;
}
.skc-item:hover { border-color: #B9CFDC; background: #FBFDFE; }

/* Lumbuz: kategori renginde halka + simge */
.skc-port {
    width: 40px; height: 40px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: color-mix(in srgb, var(--skc-c) 12%, #fff);
    box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--skc-c) 55%, #fff);
    color: var(--skc-c);
    transition: background-color .15s ease, box-shadow .15s ease, color .15s ease;
}
.skc-port i { font-size: 18px; color: inherit; }

.skc-main { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.skc-cat { font-size: 11.5px; font-weight: 700; color: var(--skc-c); line-height: 1.2; }
.skc-name {
    display: flex; align-items: center; flex-wrap: wrap; gap: 6px;
    font-size: 13.5px; font-weight: 700; color: var(--skc-ink); line-height: 1.3;
}
.skc-code {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 6px;
    background: var(--skc-soft);
    border: 1px solid var(--skc-line);
    font-size: 11px; font-weight: 700; color: #4A5D6B;
    letter-spacing: .2px;
}
.skc-tags { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 2px; }
.skc-avail, .skc-cap { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; color: var(--skc-muted); }
.skc-cap i { font-size: 13px; color: inherit; }
.skc-avail::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #16A34A; }
.skc-item.is-low .skc-avail { color: #9A6700; font-weight: 600; }
.skc-item.is-low .skc-avail::before { background: var(--skc-yellow); }
.skc-item.is-ask .skc-avail { color: #B45309; font-weight: 700; }
.skc-item.is-ask .skc-avail::before { background: #EA580C; }
.skc-item.is-ask .skc-amount { color: #6B7C8A; }

.skc-price { display: flex; flex-direction: column; align-items: flex-end; text-align: right; gap: 1px; }
.skc-amount { font-size: 15px; font-weight: 800; color: var(--skc-ink); white-space: nowrap; line-height: 1.2; }
.skc-amount.is-muted { font-size: 12.5px; font-weight: 700; color: var(--skc-muted); }
.skc-unit { font-size: 11px; color: var(--skc-muted); }
.skc-diff { margin-top: 2px; font-size: 11px; font-weight: 600; color: var(--skc-muted); white-space: nowrap; }
.skc-best {
    margin-top: 3px; padding: 1px 7px; border-radius: 6px;
    font-size: 11px; font-weight: 700; white-space: nowrap;
    background: var(--skc-yellow); color: var(--skc-ink);
}

/* Seçili satır: çerçeve mavi, lumbuz dolu (kategori renginde), seçim tiki */
.skc-item:has(input:checked) {
    border-color: var(--skc-blue);
    background: var(--skc-blue-soft);
    box-shadow: 0 0 0 1px var(--skc-blue);
}
.skc-item:has(input:checked) .skc-port {
    background: var(--skc-c);
    box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .55), 0 0 0 2px var(--skc-c);
    color: #fff;
}
.skc-item:has(input:checked) .skc-amount { color: var(--skc-blue); }
.skc-item:has(input:focus-visible) { outline: 2px solid var(--skc-blue); outline-offset: 2px; }

/* :has() desteklemeyen eski tarayıcılar için JS'in eklediği sınıf */
.skc-item.is-checked {
    border-color: var(--skc-blue);
    background: var(--skc-blue-soft);
    box-shadow: 0 0 0 1px var(--skc-blue);
}
.skc-item.is-checked .skc-port { background: var(--skc-c); color: #fff; }

.skc-no-match, .skc-empty-state {
    display: flex; align-items: center; gap: 10px;
    padding: 14px; border: 1.5px dashed var(--skc-line); border-radius: 14px;
    font-size: 12.5px; color: var(--skc-muted); background: var(--skc-soft);
}
.skc-no-match[hidden] { display: none; }
.skc-no-match i, .skc-empty-state i { font-size: 20px; color: var(--skc-muted); }

/* Dar ekran: fiyat alt satıra iner, lumbuz küçülür */
@media (max-width: 420px) {
    .skc-item { grid-template-columns: 34px minmax(0, 1fr); row-gap: 6px; }
    .skc-port { width: 34px; height: 34px; }
    .skc-price { grid-column: 2; flex-direction: row; align-items: baseline; gap: 6px; flex-wrap: wrap; justify-content: flex-start; text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
    .skc-item, .skc-chip, .skc-port, .skc-fare-body, .skc-search-input { transition: none; }
}
