/* עיצוב אחיד לכל כלי הכרטיס */
.tl-body a, .tl-body button { -webkit-tap-highlight-color: transparent; }
.tl-body a:focus, .tl-body button:focus { outline: 0; }
.tl-body a:focus-visible, .tl-body button:focus-visible { box-shadow: 0 0 0 3px rgba(255, 255, 255, .7); }
.tl-body { margin: 0; min-height: 100vh; font-family: Tahoma, Arial, sans-serif; color: #efefef; direction: rtl; text-align: right; background: none !important; }
.tl-bg { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: -1; background-size: cover !important; }
html.cs-framed { scrollbar-width: none; }
html.cs-framed::-webkit-scrollbar { display: none; }
.tl-body *, .tl-body *::before, .tl-body *::after { box-sizing: border-box; }
/* מעבר הדרגתי בקצוות, בלי קו בין הדף לאזורי הדפדפן */
.tl-body::before, .tl-body::after { content: ""; position: fixed; left: 0; right: 0; pointer-events: none; }
.tl-body::before { top: 0; height: calc(44px + env(safe-area-inset-top, 0px)); background: linear-gradient(to bottom, var(--bar-top) 12%, transparent); }
.tl-body::after { bottom: 0; height: calc(56px + env(safe-area-inset-bottom, 0px)); background: linear-gradient(to top, var(--bar-bottom) 12%, transparent); }
.tl-wrap { position: relative; z-index: 1; width: 100%; max-width: 860px; margin: 0 auto; padding: calc(14px + env(safe-area-inset-top, 0px)) 16px calc(24px + env(safe-area-inset-bottom, 0px)); }
.tl-back { display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font-size: 15px; padding: 7px 14px; border: 1px solid #ffffff99; border-radius: 20px; }
.tl-back:hover { background: #ffffff22; }
.tl-head { display: flex; flex-direction: column; align-items: center; text-align: center; margin: 14px 0 20px; }
.tl-head img { width: 72px; height: 72px; object-fit: cover; border-radius: 50%; border: 2px solid #fff; margin-bottom: 10px; }
.tl-head h1 { margin: 0; font-size: 28px; font-weight: normal; color: #efefef; }
.tl-head h2 { margin: 4px 0 0; font-size: 17px; font-weight: normal; color: #efefef; }
.tl-head::after { content: ""; display: block; width: 150px; margin-top: 12px; border-top: 4px double #fff; }
.tl-copy { margin: 26px 0 0; text-align: center; font-size: 13px; color: #efefef; }
.tl-copy a { color: #fff; font-weight: bold; text-decoration: none; }

/* תיבה לבנה: קו"ח, רשיונות, המלצות וטופס */
.tl-box { background: rgba(255, 255, 255, .45); color: #111; border-radius: 8px; padding: 16px 18px; margin-bottom: 14px; }
.tl-box h3 { margin: 0; font-size: 18px; color: #111; }
.tl-box p { margin: 6px 0 0; font-size: 15px; line-height: 1.55; color: #1a1a1a; overflow-wrap: anywhere; }
.tl-box p.tl-meta { font-size: 14px; color: #2a2a2a; margin-top: 2px; }
.tl-box a { color: #0c3a4f; }
.tl-section { scroll-margin-top: 12px; margin: 22px 0 10px; font-size: 20px; font-weight: normal; color: #efefef; }
.tl-details { list-style: none; margin: 0; padding: 0; }
.tl-details li { padding: 3px 0; overflow-wrap: anywhere; }

/* גלריה ותיק עבודות */
.tl-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 14px; }
.tl-filters button { background: none; border: 1px solid #ffffff99; border-radius: 16px; color: #fff; padding: 5px 14px; font: inherit; font-size: 14px; cursor: pointer; }
.tl-filters button.is-on { background: #fff; color: #222; }
.tl-map + .tl-center { margin-bottom: 0; }
.tl-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 700px) { .tl-grid { grid-template-columns: repeat(4, 1fr); } }
.tl-item { display: block; color: #fff; text-decoration: none; min-width: 0; }
.tl-item[hidden] { display: none; }
.tl-item img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 6px; }
.tl-item span { display: block; margin-top: 5px; font-size: 14px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* תמונה מוגדלת */
.tl-light { position: fixed; top: 0; right: 0; bottom: 0; left: 0; z-index: 20; display: flex; flex-direction: column; align-items: center; justify-content: center; background: rgba(0, 0, 0, .92); padding: 54px 12px 14px; }
.tl-light[hidden] { display: none; }
.tl-light img { display: block; max-width: 100%; max-height: calc(100% - 90px); object-fit: contain; border-radius: 4px; }
.tl-light h3 { margin: 10px 0 0; font-size: 18px; font-weight: normal; color: #fff; text-align: center; }
.tl-light p { margin: 4px 0 0; font-size: 14px; color: #ddd; text-align: center; max-height: 60px; overflow: auto; }
.tl-light button { position: absolute; background: none; border: 0; color: #fff; font-size: 34px; line-height: 1; padding: 10px 14px; cursor: pointer; }
.tl-close { top: 4px; left: 4px; }
.tl-next { top: 50%; left: 0; margin-top: -27px; }
.tl-prev { top: 50%; right: 0; margin-top: -27px; }

/* מפה */
.tl-map { display: block; width: 100%; height: 62vh; min-height: 300px; border: 0; border-radius: 8px; background: #ddd; }
.tl-address { text-align: center; margin: 0 0 12px; font-size: 15px; }

/* כפתור וטופס */
.tl-btn { display: inline-block; background: none; border: 1px solid #fff; border-radius: 6px; color: #fff; padding: 10px 26px; font: inherit; font-size: 16px; text-decoration: none; cursor: pointer; }
.tl-center { text-align: center; margin-top: 14px; }
.tl-form { position: relative; overflow: hidden; }
.tl-form label { display: block; margin: 0 0 4px; font-size: 14px; color: #111; }
.tl-form input, .tl-form textarea { display: block; width: 100%; margin-bottom: 12px; padding: 10px 12px; border: 1px solid #333; border-radius: 6px; font: inherit; font-size: 16px; color: #111; background: transparent; }
.tl-form textarea { min-height: 130px; resize: vertical; }
.tl-form .tl-btn { width: 100%; border-color: #25284b; color: #25284b; }
.tl-form .tl-btn[disabled] { opacity: .6; cursor: default; }
.tl-msg { text-align: center; font-size: 17px; margin: 0 0 14px; color: #fff; }
.tl-msg-error { color: #ffb3b3; }

/* סימון בתוך טופס */
.tl-form .tl-check { display: flex; align-items: flex-start; gap: 8px; margin: 10px 0; font-weight: normal; line-height: 1.5; cursor: pointer; }
.tl-form .tl-check input { flex: 0 0 auto; width: 18px; height: 18px; margin: 3px 0 0; }
