/* Telekom Vendégház portál
   Arculat: magenta domináns, szöveg csak fekete, fehér és magenta, háttérminta csak magenta árnyalatokból. */

@font-face { font-family: "Figtree"; font-weight: 400; font-display: swap; src: url("fonts/figtree-latin-ext-400-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Figtree"; font-weight: 400; font-display: swap; src: url("fonts/figtree-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Figtree"; font-weight: 500; font-display: swap; src: url("fonts/figtree-latin-ext-500-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Figtree"; font-weight: 500; font-display: swap; src: url("fonts/figtree-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Figtree"; font-weight: 700; font-display: swap; src: url("fonts/figtree-latin-ext-700-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Figtree"; font-weight: 700; font-display: swap; src: url("fonts/figtree-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Figtree"; font-weight: 800; font-display: swap; src: url("fonts/figtree-latin-ext-800-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Figtree"; font-weight: 800; font-display: swap; src: url("fonts/figtree-latin-800-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --magenta: #E20074;
  --magenta-dark: #B3005C;
  --magenta-deep: #8A0047;
  --magenta-tint: #FDEBF4;
  --magenta-tint-2: #F9CDE3;
  --black: #000;
  --muted: #5E5E5E;
  --line: #E4E4E4;
  --bg: #F4F4F4;
  --white: #fff;
  --radius: 14px;
  --radius-s: 9px;
  --shadow: 0 1px 2px rgba(0,0,0,.06), 0 8px 24px rgba(0,0,0,.06);
  --gutter: clamp(16px, 4vw, 32px);
  --max: 1120px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--black);
  font: 400 16px/1.55 "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; }
img { max-width: 100%; display: block; }
svg { width: 1.15em; height: 1.15em; flex: 0 0 auto; vertical-align: -.2em; }
a { color: var(--magenta); text-underline-offset: 2px; }
a:hover { color: var(--magenta-dark); }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: clamp(28px, 4.2vw, 44px); }
h2 { font-size: clamp(22px, 2.6vw, 28px); }
h3 { font-size: 19px; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: 760px; }
.wrap-wide { max-width: 1480px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--magenta); outline-offset: 2px; }

/* ------------------------------------------------------------ fejléc */
.top { background: var(--magenta); color: var(--white); position: relative; z-index: 20; }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { color: var(--white); text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: -.01em; white-space: nowrap; display: flex; align-items: baseline; gap: 10px; }
.brand:hover { color: var(--white); }
.brand small { font-weight: 500; font-size: 14px; opacity: .85; }
.nav { display: flex; gap: 4px; align-items: center; }
.nav a { color: var(--white); text-decoration: none; font-weight: 700; font-size: 15px; padding: 9px 14px; border-radius: 999px; }
.nav a:hover, .nav a[aria-current="page"] { background: rgba(255,255,255,.18); color: var(--white); }
.menu { display: none; position: relative; }
.menu summary { list-style: none; cursor: pointer; padding: 8px 12px; border-radius: 999px; font-weight: 700; border: 2px solid rgba(255,255,255,.6); }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] .menu-list { display: flex; }
.menu-list { display: none; position: absolute; right: 0; top: calc(100% + 8px); flex-direction: column; background: var(--white); border-radius: var(--radius-s); box-shadow: var(--shadow); padding: 6px; min-width: 220px; }
.menu-list a { color: var(--black); padding: 12px 14px; border-radius: 8px; text-decoration: none; font-weight: 700; }
.menu-list a:hover { background: var(--magenta-tint); color: var(--black); }
@media (max-width: 760px) { .nav { display: none; } .menu { display: block; } }

/* app fejléc fülekkel (porta, gondnok) */
.tabs { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 15; }
.tabs-in { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding-top: 8px; padding-bottom: 8px; }
.tabs-in::-webkit-scrollbar { display: none; }
.tab { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; color: var(--black); text-decoration: none; font-weight: 700; font-size: 15px; }
.tab svg { width: 18px; height: 18px; }
.tab:hover { background: var(--bg); color: var(--black); }
.tab[aria-current="page"] { background: var(--magenta); color: var(--white); }
.tab-sep { flex: 1 0 12px; }
.userbox { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.userbox form { margin: 0; }
.linkbtn { background: none; border: 0; color: var(--white); font: inherit; font-weight: 700; cursor: pointer; padding: 8px 12px; border-radius: 999px; border: 2px solid rgba(255,255,255,.6); }
.linkbtn:hover { background: rgba(255,255,255,.15); }

/* ------------------------------------------------------------ minta háttér */
.pattern { background-color: var(--magenta); background-image: url("img/waves.svg"); background-size: cover; background-position: center bottom; color: var(--white); }
.hero { padding: clamp(40px, 8vw, 88px) 0 clamp(96px, 12vw, 132px); }
.hero h1 { color: var(--white); max-width: 20ch; }
.hero p { font-size: clamp(17px, 2vw, 20px); max-width: 44ch; opacity: .95; }
.hero .addr { display: inline-flex; gap: 8px; align-items: center; font-weight: 700; background: rgba(0,0,0,.18); padding: 8px 14px; border-radius: 999px; font-size: 15px; margin: 0; }
.page-head { padding: clamp(32px, 6vw, 56px) 0 clamp(64px, 9vw, 88px); }
.page-head h1 { color: var(--white); margin: 0; }
.page-head p { margin: 10px 0 0; max-width: 56ch; opacity: .95; font-size: 18px; }
.lift { margin-top: clamp(-72px, -8vw, -48px); position: relative; }

/* ------------------------------------------------------------ kártyák */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } }
.card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; }
.action-card { display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: var(--black); border: 2px solid transparent; transition: border-color .15s, transform .15s; }
.action-card:hover { border-color: var(--magenta); color: var(--black); transform: translateY(-2px); }
.action-card .ico { width: 52px; height: 52px; border-radius: 14px; background: var(--magenta-tint); color: var(--magenta); display: grid; place-items: center; }
.action-card .ico svg { width: 28px; height: 28px; }
.action-card h2 { font-size: 22px; margin: 4px 0 0; }
.action-card p { color: var(--muted); margin: 0; flex: 1; }
.action-card .go { font-weight: 800; color: var(--magenta); display: inline-flex; align-items: center; gap: 6px; }

.section { padding: clamp(40px, 6vw, 64px) 0; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.contact { background: var(--white); border-radius: var(--radius); padding: 22px 24px; border-left: 6px solid var(--magenta); }
.contact h3 { margin: 0 0 6px; }
.contact p { margin: 0 0 4px; }
.contact a { font-weight: 700; text-decoration: none; }
.contact .tag { display: inline-block; font-size: 13px; font-weight: 700; color: var(--magenta); margin-bottom: 6px; }

/* ------------------------------------------------------------ tartalom (tájékoztató) */
.prose { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(22px, 4vw, 44px); }
.prose h2, .prose h3, .prose h4 { margin-top: 1.4em; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin: 0 0 .35em; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
.prose figure { margin: 16px 0; }
.prose figure img { border-radius: var(--radius-s); }
.prose blockquote { margin: 0 0 1em; padding: 4px 0 4px 16px; border-left: 4px solid var(--magenta); }
.prose code { background: var(--bg); padding: 1px 6px; border-radius: 5px; font-size: .92em; }
.callout { background: var(--magenta-tint); border-radius: var(--radius-s); padding: 16px 18px; margin: 0 0 1em; }
.callout > :last-child { margin-bottom: 0; }
.callout-warn { background: var(--black); color: var(--white); }
.callout-warn a { color: var(--white); }
.acc { border-top: 1px solid var(--line); }
.acc:last-of-type { border-bottom: 1px solid var(--line); }
.acc summary { cursor: pointer; list-style: none; padding: 18px 44px 18px 0; font-weight: 800; font-size: 18px; position: relative; }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; border-right: 3px solid var(--magenta); border-bottom: 3px solid var(--magenta); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.acc[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.acc summary:hover { color: var(--magenta); }
.acc-body { padding: 0 0 18px; }
.file-link { display: inline-flex; gap: 10px; align-items: center; font-weight: 700; padding: 12px 16px; border: 2px solid var(--magenta); border-radius: var(--radius-s); text-decoration: none; }
.file-link::before { content: "PDF"; font-size: 11px; font-weight: 800; background: var(--magenta); color: var(--white); padding: 3px 6px; border-radius: 4px; }
.table-wrap { overflow-x: auto; }
.table-wrap table { border-collapse: collapse; width: 100%; }
.table-wrap td, .table-wrap th { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }

/* ------------------------------------------------------------ űrlapok */
.form { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(22px, 4vw, 40px); }
.form h2 { font-size: 20px; margin: 8px 0 14px; padding-top: 18px; border-top: 1px solid var(--line); }
.form h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
@media (max-width: 640px) { .grid2 { grid-template-columns: 1fr; } }
.field { margin: 0 0 18px; }
.field > label, .field > .label { display: block; font-weight: 700; margin: 0 0 6px; }
.field .hint { color: var(--muted); font-size: 14px; margin: 6px 0 0; }
.req { color: var(--magenta); }
input[type=text], input[type=email], input[type=tel], input[type=date], input[type=password], input[type=search], select, textarea {
  width: 100%; font: inherit; color: var(--black); background: var(--white);
  border: 2px solid #CFCFCF; border-radius: var(--radius-s); padding: 11px 14px; min-height: 50px;
  transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--magenta) 50%), linear-gradient(135deg, var(--magenta) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--magenta); box-shadow: 0 0 0 4px rgba(226,0,116,.15); }
.has-err input, .has-err select, .has-err textarea { border-color: var(--magenta); background: var(--magenta-tint); }
.err { color: var(--magenta); font-weight: 700; font-size: 14px; margin: 6px 0 0; }
.alert { border-radius: var(--radius-s); padding: 14px 18px; margin: 0 0 20px; font-weight: 600; }
.alert-err { background: var(--magenta); color: var(--white); }
.alert-ok { background: var(--black); color: var(--white); }
.alert-info { background: var(--magenta-tint); }
.choices { display: grid; gap: 10px; }
.choice { display: flex; gap: 12px; align-items: flex-start; border: 2px solid #CFCFCF; border-radius: var(--radius-s); padding: 14px 16px; cursor: pointer; background: var(--white); }
.choice:hover { border-color: var(--magenta); }
.choice input { margin-top: 3px; accent-color: var(--magenta); width: 20px; height: 20px; flex: 0 0 auto; }
.choice:has(input:checked) { border-color: var(--magenta); background: var(--magenta-tint); }
.choice strong { display: block; }
.choice span { color: var(--muted); font-size: 14px; }
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.check input { accent-color: var(--magenta); width: 20px; height: 20px; margin-top: 2px; flex: 0 0 auto; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.drop { border: 2px dashed var(--magenta); border-radius: var(--radius); background: var(--magenta-tint); padding: 22px; text-align: center; cursor: pointer; display: block; }
.drop:hover { background: var(--magenta-tint-2); }
.drop strong { display: flex; justify-content: center; align-items: center; gap: 8px; font-size: 17px; color: var(--black); }
.drop span { color: var(--muted); font-size: 14px; }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.previews { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; margin-top: 12px; }
.previews figure { margin: 0; position: relative; aspect-ratio: 1; border-radius: var(--radius-s); overflow: hidden; background: var(--bg); }
.previews img { width: 100%; height: 100%; object-fit: cover; }
.previews button { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: var(--black); color: var(--white); font-size: 16px; line-height: 1; cursor: pointer; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 800; font-size: 16px; padding: 14px 24px; min-height: 52px; border-radius: var(--radius-s); border: 2px solid var(--magenta); background: var(--magenta); color: var(--white); cursor: pointer; text-decoration: none; transition: background .15s, transform .1s; }
.btn:hover { background: var(--magenta-dark); border-color: var(--magenta-dark); color: var(--white); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .6; cursor: progress; }
.btn-ghost { background: var(--white); color: var(--magenta); }
.btn-ghost:hover { background: var(--magenta-tint); color: var(--magenta-dark); }
.btn-black { background: var(--black); border-color: var(--black); }
.btn-black:hover { background: #262626; border-color: #262626; }
.btn-s { padding: 8px 14px; min-height: 40px; font-size: 14px; }
.btn-block { width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 8px; }

/* ------------------------------------------------------------ üzenet oldal */
.done { text-align: center; padding: clamp(28px, 5vw, 48px); }
.done .big-ico { width: 76px; height: 76px; border-radius: 50%; background: var(--magenta); color: var(--white); display: grid; place-items: center; margin: 0 auto 18px; }
.done .big-ico svg { width: 40px; height: 40px; }
.ticket-no { display: inline-block; font-size: clamp(30px, 6vw, 44px); font-weight: 800; color: var(--magenta); letter-spacing: .02em; margin: 6px 0 14px; }

/* ------------------------------------------------------------ lábléc */
.foot { background: var(--black); color: var(--white); margin-top: 56px; }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; padding-top: 28px; padding-bottom: 28px; font-size: 14px; }
.foot a { color: var(--white); }
.foot strong { font-weight: 800; }
.foot .op { opacity: .8; }
.app .foot { margin-top: 32px; }

/* ------------------------------------------------------------ chipek, jelvények */
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 999px; white-space: nowrap; border: 2px solid var(--black); color: var(--black); background: var(--white); }
.chip-m { background: var(--magenta); border-color: var(--magenta); color: var(--white); }
.chip-mo { border-color: var(--magenta); color: var(--magenta); }
.chip-k { background: var(--black); color: var(--white); }
.chip-g { border-color: #BDBDBD; color: var(--muted); }
.pill { display: inline-block; background: var(--magenta); color: var(--white); font-weight: 800; border-radius: 8px; padding: 3px 9px; font-size: 14px; }

/* ------------------------------------------------------------ porta eszköztár */
.app-main { padding-top: 22px; padding-bottom: 8px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 18px; }
.toolbar h1 { font-size: 26px; margin: 0 12px 0 0; }
.search { flex: 1 1 260px; max-width: 420px; position: relative; }
.search input { padding-left: 44px; min-height: 46px; }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--muted); }
.seg { display: inline-flex; background: var(--white); border-radius: 999px; padding: 4px; gap: 2px; border: 1px solid var(--line); flex-wrap: wrap; }
.seg a, .seg button { border: 0; background: none; font: inherit; font-weight: 700; font-size: 14px; padding: 8px 14px; border-radius: 999px; color: var(--black); cursor: pointer; text-decoration: none; }
.seg .on { background: var(--black); color: var(--white); }
.stamp { margin-left: auto; font-size: 13px; color: var(--muted); }

/* lakókönyv galéria */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.rcard { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.rcard .ph { aspect-ratio: 4/3; background: var(--magenta-tint); position: relative; overflow: hidden; }
.rcard .ph img { width: 100%; height: 100%; object-fit: cover; }
.rcard .ph .ini { position: absolute; inset: 0; display: grid; place-items: center; font-size: 56px; font-weight: 800; color: var(--magenta); }
.rcard .ph .pill { position: absolute; left: 12px; top: 12px; font-size: 16px; padding: 4px 10px; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.rcard .ph .chip { position: absolute; right: 12px; top: 12px; }
.rcard .bd { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.rcard h3 { margin: 0; font-size: 18px; }
.rcard .kv { display: grid; grid-template-columns: 20px 1fr; gap: 6px 8px; font-size: 14px; align-items: start; }
.rcard .kv svg { width: 18px; height: 18px; color: var(--magenta); margin-top: 1px; }
.rcard .kv a { color: var(--black); font-weight: 700; text-decoration: none; }
.rcard .kv a:hover { color: var(--magenta); }
.rcard .mate { display: flex; gap: 10px; align-items: center; border-top: 1px solid var(--line); padding-top: 10px; margin-top: auto; font-size: 14px; }
.rcard .mate .av { width: 40px; height: 40px; border-radius: 50%; background: var(--magenta-tint); color: var(--magenta); font-weight: 800; display: grid; place-items: center; overflow: hidden; flex: 0 0 auto; }
.rcard .mate .av img { width: 100%; height: 100%; object-fit: cover; }
.rcard .note { font-size: 13px; color: var(--muted); background: var(--bg); border-radius: 8px; padding: 8px 10px; }
.empty { background: var(--white); border-radius: var(--radius); padding: 40px; text-align: center; color: var(--muted); }

/* hibajegy lista */
.tlist { display: grid; gap: 14px; }
.tcard { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 20px; display: grid; gap: 10px; border-left: 6px solid var(--magenta); }
.tcard.is-sent { border-left-color: var(--black); }
.tcard.is-done { border-left-color: #CFCFCF; }
.tcard .row1 { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.tcard .tno { font-weight: 800; font-size: 18px; }
.tcard .when { margin-left: auto; font-size: 13px; color: var(--muted); }
.tcard .desc { margin: 0; white-space: pre-line; }
.tcard .meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; color: var(--muted); }
.tcard .meta b { color: var(--black); }
.tcard .meta a { color: var(--black); font-weight: 700; text-decoration: none; }
.thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.thumbs a { display: block; width: 84px; height: 84px; border-radius: 8px; overflow: hidden; background: var(--bg); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }

/* szobatükör */
.today { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
@media (max-width: 760px) { .today { grid-template-columns: 1fr; } }
.today .box { background: var(--white); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.today .box h3 { font-size: 15px; margin: 0 0 8px; display: flex; justify-content: space-between; }
.today .box h3 span { color: var(--magenta); }
.today ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 15px; }
.today li { display: flex; gap: 8px; align-items: baseline; }
.today li .pill { font-size: 13px; padding: 1px 7px; }
.today .none { color: var(--muted); font-size: 14px; }
.board-wrap { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); overflow: auto; max-height: 75vh; }
.board { border-collapse: separate; border-spacing: 0; font-size: 13px; min-width: 100%; }
.board th, .board td { border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); padding: 0; height: 44px; min-width: 56px; text-align: center; }
.board thead th { position: sticky; top: 0; background: var(--white); z-index: 2; font-weight: 700; padding: 6px 4px; height: auto; line-height: 1.2; }
.board thead th small { display: block; font-weight: 500; color: var(--muted); font-size: 11px; }
.board thead th.wkend small { color: var(--magenta); }
.board th.room { position: sticky; left: 0; background: var(--white); z-index: 1; min-width: 64px; font-size: 15px; font-weight: 800; }
.board thead th.room { z-index: 3; }
.board .is-today { background: var(--magenta-tint); }
.board thead th.is-today { background: var(--magenta); color: var(--white); }
.board thead th.is-today small { color: var(--white); }
.board td.occ { padding: 4px 3px; }
.board td.occ div { background: var(--magenta); color: var(--white); border-radius: 7px; height: 34px; display: flex; align-items: center; justify-content: flex-start; padding: 0 8px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.board td.occ.past div { background: var(--magenta-tint-2); color: var(--black); }
.board td.occ.cont-l div { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.board td.occ.cont-r div { border-top-right-radius: 0; border-bottom-right-radius: 0; }

/* gondnoki jegy oldal */
.split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 980px) { .split { grid-template-columns: 1fr; } }
.panel { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: clamp(18px, 3vw, 28px); scroll-margin-top: 80px; }
.panel h2 { font-size: 20px; margin-bottom: 14px; }
.mailprev { border: 1px solid var(--line); border-radius: var(--radius-s); overflow: hidden; }
.mailprev .mh { background: var(--bg); padding: 12px 16px; font-size: 14px; display: grid; gap: 2px; }
.mailprev .mh b { display: inline-block; min-width: 64px; color: var(--muted); font-weight: 600; }
.mailprev .mb { padding: 16px; overflow-wrap: anywhere; }
.mailprev .mb img { display: inline-block; }
.steps { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 18px; }
.steps span { flex: 1 1 140px; text-align: center; padding: 10px; border-radius: var(--radius-s); background: var(--bg); font-weight: 700; font-size: 14px; color: var(--muted); }
.steps span.on { background: var(--magenta); color: var(--white); }
.steps span.past { background: var(--magenta-tint); color: var(--black); }
.photo-edit { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; margin-bottom: 12px; }
.photo-edit label { position: relative; display: block; aspect-ratio: 1; border-radius: var(--radius-s); overflow: hidden; cursor: pointer; }
.photo-edit img { width: 100%; height: 100%; object-fit: cover; }
.photo-edit input { position: absolute; top: 8px; left: 8px; width: 22px; height: 22px; accent-color: var(--magenta); z-index: 1; }
.photo-edit label:has(input:checked) img { opacity: .3; }
.photo-edit label:has(input:checked)::after { content: "Törlésre jelölve"; position: absolute; inset: auto 0 0 0; background: var(--magenta); color: var(--white); font-size: 12px; font-weight: 700; padding: 4px; text-align: center; }
.tbl { width: 100%; border-collapse: collapse; }
.tbl td, .tbl th { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }

/* nagyító */
.lb { position: fixed; inset: 0; background: rgba(0,0,0,.9); display: none; align-items: center; justify-content: center; z-index: 100; padding: 16px; }
.lb.on { display: flex; }
.lb img { max-width: 100%; max-height: 100%; border-radius: 8px; }
.lb button { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--white); font-size: 22px; cursor: pointer; }

/* belépés */
.login { max-width: 440px; margin: 0 auto; }

@media print { .top, .tabs, .foot, .toolbar { display: none; } body { background: #fff; } }
[hidden] { display: none !important; }
.field > label.check { font-weight: 400; display: flex; }
@media (max-width: 480px) { .tab svg { display: none; } .tab { padding: 9px 13px; } .toolbar h1 { font-size: 23px; } }
.rcard .mate a { color: var(--black); font-weight: 700; text-decoration: none; }
