/* ===== مركز التسعير ===== */
.pc { display: flex; flex-direction: column; gap: 14px; --pc-acc: #c2410c; --pc-acc-bg: #fff7ed; --pc-soft: #f8fafc; }
.pc-ico { width: 16px; height: 16px; flex: none; }
.pc small { font-weight: 700; }
/* top bar */
.pc-top { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pc-search { flex: 1 1 300px; min-width: 0; display: flex; align-items: center; gap: 8px; padding: 0 .8rem; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--muted); transition: border-color .15s, box-shadow .15s; }
.pc-search:focus-within { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(247, 147, 30, .15); }
.pc-search input { flex: 1; min-width: 0; border: 0; outline: 0; padding: .62rem 0; font: inherit; background: transparent; color: var(--ink); }
.pc-seg { display: inline-flex; background: #eef1f5; border-radius: 11px; padding: 3px; gap: 2px; }
.pc-seg button { border: 0; background: transparent; padding: .42rem .85rem; border-radius: 8px; font: inherit; font-size: .84rem; font-weight: 800; color: var(--muted); cursor: pointer; white-space: nowrap; transition: background .15s, color .15s; }
.pc-seg button small { font-size: .72rem; opacity: .7; margin-inline-start: 2px; }
.pc-seg button:hover { color: var(--ink); }
.pc-seg button.is-on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(15, 23, 42, .12); }
.pc-calc-btn { display: inline-flex; align-items: center; gap: 6px; }
.pc-calc-n { background: var(--orange); color: #fff; border-radius: 999px; min-width: 1.3rem; padding: 0 .35rem; font-size: .72rem; line-height: 1.3rem; text-align: center; }
.pc-stats { margin: -4px 0 0; color: var(--muted); font-size: .8rem; font-weight: 700; }
/* country / city chips */
.pc-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; }
.pc-country { flex: none; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); background: #fff; border-radius: 14px; padding: .5rem .85rem .5rem 1rem; font: inherit; cursor: pointer; text-align: start; transition: border-color .15s, background .15s, box-shadow .15s; }
.pc-country:hover { border-color: #fdba74; }
.pc-country > span:last-child { display: flex; flex-direction: column; line-height: 1.35; }
.pc-country b { font-size: .92rem; }
.pc-country small { color: var(--muted); font-size: .72rem; white-space: nowrap; }
.pc-country.is-on { border-color: var(--orange); background: var(--pc-acc-bg); box-shadow: 0 0 0 3px rgba(247, 147, 30, .14); }
.pc-flag { font-size: 1.45rem; line-height: 1; }
.pc-chips--sm { flex-wrap: wrap; overflow: visible; gap: 6px; }
.pc-chipbtn { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: .32rem .8rem; font: inherit; font-size: .82rem; font-weight: 700; cursor: pointer; color: var(--ink); transition: background .15s, border-color .15s, color .15s; }
.pc-chipbtn small { color: var(--muted); font-size: .7rem; margin-inline-start: 3px; }
.pc-chipbtn:hover { border-color: #fdba74; }
.pc-chipbtn.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.pc-chipbtn.is-on small { color: #cbd5e1; }
/* main */
.pc-main { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.pc-main-h { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; padding-top: 4px; border-top: 1px solid var(--line); padding-top: 14px; }
.pc-main-h h3 { margin: 0; font-size: 1.1rem; }
.pc-group { display: flex; flex-direction: column; gap: 6px; }
.pc-group-h { margin: 8px 0 0; font-size: .92rem; display: flex; gap: 8px; align-items: baseline; }
.pc-group-h small { color: var(--muted); font-size: .74rem; }
.pc-list { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
/* hotel rows */
.pc-hotel + .pc-hotel { border-top: 1px solid var(--line); }
.pc-hotel-h { width: 100%; display: flex; align-items: center; gap: 12px; border: 0; background: #fff; padding: .8rem 1rem; font: inherit; text-align: start; cursor: pointer; transition: background .15s; }
.pc-hotel-h:hover { background: var(--pc-soft); }
.pc-hotel-h:focus-visible { outline: 2px solid var(--orange); outline-offset: -2px; }
.pc-hotel-n { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.pc-hotel-n b { font-size: .95rem; }
.pc-hotel-n small { flex-basis: 100%; color: var(--muted); font-size: .76rem; }
.pc-stars { color: #d97706; letter-spacing: 1px; font-size: .74rem; }
.pc-from { display: flex; align-items: baseline; gap: 4px; white-space: nowrap; }
.pc-from b { font-size: 1.05rem; }
.pc-from small { color: var(--muted); font-size: .72rem; }
.pc-chev { color: var(--muted); transition: transform .2s; }
.pc-hotel.is-open .pc-chev { transform: rotate(180deg); }
.pc-hotel.is-open > .pc-hotel-h { background: var(--pc-acc-bg); }
.pc-hotel-b { padding: 4px 1rem 14px; background: #fffdf9; border-top: 1px dashed #fed7aa; }
.pc-offer + .pc-offer { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); }
.pc-addr { display: flex; align-items: center; gap: 6px; margin-top: 10px; color: var(--muted); font-size: .78rem; }
/* agreement line */
.pc-agr { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin: 8px 0; font-size: .8rem; }
.pc-agr-sup { color: var(--muted); font-weight: 700; }
.pc-link { border: 0; background: none; padding: 0; color: #b45309; font: inherit; font-weight: 800; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.pc-link:hover { color: #92400e; }
/* rate tables */
.pc-rt { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; font-size: .84rem; }
.pc-rt thead th { background: var(--pc-soft); color: var(--muted); font-size: .74rem; font-weight: 800; padding: .5rem .7rem; text-align: start; white-space: nowrap; border-bottom: 1px solid var(--line); }
.pc-rt tbody th, .pc-rt td { padding: .45rem .7rem; text-align: start; vertical-align: middle; border-bottom: 1px solid #f1f3f6; }
.pc-rt tbody tr:last-child > * { border-bottom: 0; }
.pc-rt tbody th { font-weight: 700; min-width: 170px; }
.pc-rt tbody th small { display: block; color: var(--muted); font-size: .72rem; font-weight: 600; }
.pc-rt tbody tr:hover { background: #fcfcfd; }
.pc-none { color: #cbd5e1; }
.pc-price { position: relative; display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 0 4px; border: 1px solid transparent; background: transparent; border-radius: 8px; padding: .2rem .45rem; padding-inline-end: 1.5rem; font: inherit; cursor: pointer; text-align: start; transition: background .15s, border-color .15s; }
.pc-price b { font-size: .95rem; }
.pc-price small { color: var(--muted); font-size: .7rem; }
.pc-price em { flex-basis: 100%; font-style: normal; color: var(--muted); font-size: .7rem; }
.pc-price i { position: absolute; inset-inline-end: 4px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 18px; height: 18px; border-radius: 6px; background: var(--orange); color: #fff; opacity: 0; transition: opacity .15s; }
.pc-price i .pc-ico { width: 12px; height: 12px; }
.pc-price:hover, .pc-price:focus-visible { background: var(--pc-acc-bg); border-color: #fed7aa; outline: 0; }
.pc-price:hover i, .pc-price:focus-visible i { opacity: 1; }
.pc-price.is-added { background: #dcfce7; border-color: #86efac; }
.pc-notes { margin: 8px 0 0; padding-inline-start: 18px; color: var(--muted); font-size: .76rem; line-height: 1.7; }
.pc-note { white-space: normal; max-width: 300px; line-height: 1.5; }
/* transport */
.pc-tcard { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; min-width: 0; }
.pc-tcard > header { display: flex; align-items: baseline; gap: 8px; }
.pc-tcard h4 { margin: 0; font-size: 1rem; }
.pc-tcard > header small { color: var(--muted); font-size: .74rem; }
.pc-kind { margin: 10px 0 6px; font-size: .8rem; color: var(--pc-acc); }
/* shared bits */
.pc-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; box-shadow: var(--shadow); min-width: 0; }
.pc-card > header { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 6px; }
.pc-card h4 { margin: 0; font-size: 1rem; }
.pc-muted { color: var(--muted); font-size: .8rem; }
.pc-chip { padding: .1rem .55rem; border-radius: 999px; font-size: .72rem; font-weight: 800; background: #f1f5f9; color: var(--ink); white-space: nowrap; }
.pc-chip.is-ok { background: #dcfce7; color: #166534; }
.pc-chip.is-bad { background: #fee2e2; color: #b91c1c; }
.pc-chip.is-warn { background: #fef3c7; color: #92400e; }
.pc-chip.is-old { background: #e2e8f0; color: #475569; }
.pc-file { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: .22rem .6rem; font: inherit; font-size: .76rem; font-weight: 700; cursor: pointer; max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: border-color .15s, background .15s; }
.pc-file .pc-ico { width: 14px; height: 14px; color: var(--pc-acc, #c2410c); }
.pc-file:hover { border-color: var(--orange); background: #fff7ed; }
.pc-files { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pc-hint { color: var(--muted); font-size: .76rem; margin: 0; }
.pc-empty { color: var(--muted); padding: 28px; text-align: center; background: #fff; border: 1px dashed var(--line); border-radius: 14px; }
.pc-agr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 12px; align-items: start; }
.pc-agr-card.is-old { opacity: .75; }
.pc-agr-tags { display: flex; gap: 6px; margin-bottom: 8px; }
.pc-dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0 0 10px; font-size: .84rem; }
.pc-dl dt { color: var(--muted); font-weight: 700; }
.pc-dl dd { margin: 0; font-weight: 700; }
.pc-kv { display: flex; gap: 8px; font-size: .84rem; padding: 3px 0; align-items: baseline; }
.pc-kv span { color: var(--muted); min-width: 64px; }
.pc-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.pc-danger { color: var(--red) !important; }
.pc-term { border-inline-start: 3px solid var(--line); padding: 2px 10px; margin: 6px 0; }
.pc-term p { margin: 2px 0; font-size: .84rem; line-height: 1.8; white-space: pre-line; }
.pc-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pc-bar h3 { margin: 0; font-size: 1.05rem; }
.pc-pending { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; background: #fff7ed; border: 1px solid #fed7aa; border-radius: 12px; padding: 10px 12px; font-size: .85rem; }
@media (max-width: 640px) {
  .pc-hotel-h { flex-wrap: wrap; gap: 6px 10px; padding: .75rem .8rem; }
  .pc-hotel-n { flex-basis: calc(100% - 30px); }
  .pc-from { order: 3; }
  .pc-hotel-b { padding-inline: .6rem; }
  .pc-top .pc-seg { flex: 1; }
  .pc-top .pc-seg button { flex: 1; }
}
/* viewer */
.pc-modal-wide { width: min(1100px, 96vw) !important; max-width: 96vw !important; }
.pc-viewer-h { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 8px; }
.pc-viewer-h h3 { flex: 1; margin: 0; font-size: 1rem; overflow-wrap: anywhere; }
.pc-viewer iframe { width: 100%; height: 75vh; border: 1px solid var(--line); border-radius: 10px; background: #f8fafc; }
.pc-viewer img { display: block; max-width: 100%; margin: 0 auto; border-radius: 10px; }
/* upload */
.pc-drop { display: flex; flex-direction: column; gap: 4px; align-items: center; justify-content: center; border: 2px dashed var(--line); border-radius: 14px; padding: 26px 14px; cursor: pointer; text-align: center; transition: border-color .15s, background .15s; }
.pc-drop:hover, .pc-drop.is-over { border-color: var(--orange); background: #fff7ed; }
.pc-prog { min-height: 1.4em; margin-top: 8px; font-size: .85rem; font-weight: 700; }
/* editor */
.pc-ai { background: #ecfdf5; border: 1px solid #a7f3d0; border-radius: 12px; padding: 10px 12px; font-size: .85rem; line-height: 1.8; }
.pc-doubts { background: #fffbeb; border: 1px solid #fde68a; border-radius: 12px; padding: 10px 12px; font-size: .84rem; }
.pc-doubts ul { margin: 4px 0 0; padding-inline-start: 18px; line-height: 1.8; }
.pc-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.pc-form label { display: flex; flex-direction: column; gap: 4px; font-size: .8rem; font-weight: 700; color: var(--muted); }
.pc-form input, .pc-form select, .pc-form textarea, .pc-term-ed input, .pc-term-ed textarea { font: inherit; color: var(--ink); padding: .45rem .6rem; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.pc-form .pc-wide { grid-column: 1 / -1; }
#pcSup .fld { display: flex; flex-direction: column; gap: 4px; font-size: .8rem; font-weight: 700; color: var(--muted); }
.pc-term-ed { display: grid; grid-template-columns: 200px 1fr auto; gap: 6px; margin: 6px 0; }
.pc-grid-tools { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 8px; }
.pc-grid-tools input { font: inherit; font-size: .8rem; padding: .35rem .5rem; border: 1px solid var(--line); border-radius: 8px; width: 120px; }
.pc-grid-tools .pc-grid-q { width: 180px; }
.pc-grid-wrap { max-height: 70vh; overflow: auto; }
.pc-grid th { position: sticky; top: 0; background: #f8fafc; z-index: 1; white-space: nowrap; font-size: .74rem; }
.pc-grid td { padding: 2px 3px; }
.pc-grid input, .pc-grid select { font: inherit; font-size: .78rem; padding: .28rem .35rem; border: 1px solid transparent; border-radius: 6px; background: transparent; width: 100%; min-width: 90px; }
.pc-grid input:hover, .pc-grid select:hover { border-color: var(--line); }
.pc-grid input:focus, .pc-grid select:focus { border-color: var(--orange); background: #fff; outline: none; }
.pc-grid input[type="checkbox"] { min-width: 0; width: auto; }
.pc-grid .pc-num { min-width: 70px; width: 80px; }
.pc-ccy { width: 64px !important; min-width: 0 !important; text-transform: uppercase; }
.pc-x { border: 0; background: none; color: var(--muted); font-size: 1.1rem; cursor: pointer; padding: 0 6px; border-radius: 6px; }
.pc-x:hover { color: var(--red); background: #fee2e2; }
@media (max-width: 860px) {
  .pc-term-ed { grid-template-columns: 1fr auto; }
  .pc-term-ed textarea { grid-column: 1 / -1; }
}
