﻿/* 1. Alapértelmezett világos téma */
:root {
    --primary: #1565ff;
    --bg: #f4f7fc;
    --card: #ffffff;
    --text: #102040;
    --border: #e3e9f2;
    --success: #2bbf6a;
    --warning: #f8b400;
    --info: #d2e2d9;
    --infotext: #057b29;
    --activebg: #eaf2ff;
    --icon: #1565ff;
}

/* 2. Alapértelmezett sötét téma */
[data-theme="dark"] {
    --primary: #3b82f6;
    --bg: #0f172a;
    --card: #1e293b;
    --text: #f8fafc;
    --border: #334155;
    --success: #22c55e;
    --warning: #f59e0b;
    --info:#1e293b;	
    --infotext:#b3e9c3;
    --activebg:#2b3e5e;	
    --icon: #3b82f6;
}

/* 3. Karácsonyi világos téma */
[data-theme="xmas-light"] {
    --primary: #c81d25;
    --bg: #f8f6f4;
    --card: #ffffff;
    --text: #1c1917;
    --border: #e7e2dd;
    --success: #14532d;
    --warning: #d97706;
    --info: #e6f0ec;
    --infotext: #14532d;
    --activebg: #fef2f2;
    --icon: #c81d25;
}

/* 4. Karácsonyi sötét téma */
[data-theme="xmas-dark"] {
    --primary: #e03131;
    --bg: #0f1318;
    --card: #122b22;
    --text: #f3f4f6;
    --border: #2a3340;
    --success: #22c55e;
    --warning: #f59e0b;
    --info: #122b22;
    --infotext: #6ee7b7;
    --activebg: #2c1619;
    --icon: #e03131;
}

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    --switch-height: 30px;
    --switch-padding: 8px;
    --switch-width: calc((var(--switch-height) * 2) - var(--switch-padding));
    --slider-height: calc(var(--switch-height) - var(--switch-padding));
    --slider-on: calc(var(--switch-height) - var(--switch-padding));
}

body{
    font-family:'Inter',sans-serif;
    background:var(--bg);
    color:var(--text);
}

.container{
    width:min(1440px,95%);
    margin:auto;
}

.themes{
  border:none;
  background:var(--primary);
  color:white;
  padding:12px 16px;
  border-radius:12px;
  cursor:pointer;
}

/* HEADER */

header{
    background:var(--card);
    border-bottom:1px solid var(--border);
}

.navbar{
    height:60px;
    display:flex;
    align-items:center;
    justify-content:space-between;
}

.logo{
    display:flex;
    align-items:center;
    gap:14px;
}

.logo-icon{
    width:40px;
    height:40px;
    border-radius:12px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:28px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    fill: var(--primary);
}

.bus-icon{
	fill-rule:evenodd;
	clip-rule:evenodd;
	fill:var(--primary);
}

.logo-text h2{
    font-size:22px;
}

.logo-text p{
    font-size:13px;
    color:#6a7690;
}

.menu{
    display:flex;
    gap:34px;
}

.menu a{
    text-decoration:none;
    color:var(--text);
    font-weight:500;
}

.menu a.active{
    color:var(--primary);
}

.theme-switcher button{
    background-color:var(--infobg);
    color: transparent;  
    text-shadow: 0 0 0 var(--infotext);
    border:none;
    padding:4px;
    border-radius:12px;
    cursor:pointer;
}
/* HERO */

.hero{
/*    background-image:
    linear-gradient(
        rgba(0,40,90,.35),
        rgba(0,40,90,.35)
    ),
    url("../../images/hero-god3.png");
*/
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.hero-overlay{
    background:rgba(0,30,80,.35);
    min-height:360px;
}
.kiosk .hero-overlay{
    background:rgba(0,30,80,.35);
    min-height:360px;
}
.kiosk .search-box {
    display:none;	
}
.hero-content{
    padding-top:50px;
}

.hero h1{
    color:white;
    font-size:72px;
    font-weight:800;
}

.hero p{
    color:white;
    font-size:32px;
    font-weight:600;
}

.search-box{
    margin-top:30px;
    display:flex;
    max-width:850px;
    background:white;
    border-radius:60px;
    overflow:hidden;
    box-shadow:0 10px 25px rgba(0,0,0,.12);
}

.search-box input{
    flex:1;
    border:none;
    padding:22px 28px;
    font-size:18px;
    outline:none;
}

.search-box button{
    border:none;
    background:var(--primary);
    color:white;
    padding:0 40px;
    font-size:17px;
    cursor:pointer;
}
.kiosk .weather {
    right:50px;
    top:180px;
}
.weather{
    position:absolute;
    right:50px;
    top:180px;
    background:var(--card);
    padding:24px;
    border-radius:24px;
    width:200px;
}

.weather p{
    color:var(--text);
    font-size:12px;
    font-weight:600;
}
/* FILTERS */

.filters{
    margin-top:-30px;
    display:flex;
    flex-wrap:wrap;
    gap:15px;
    position:relative;
    z-index:10;
}

.filter-btn{
    background:var(--card);
    color:var(--text);	
    border:none;
    padding:18px 28px;
    border-radius:16px;
    cursor:pointer;
    box-shadow:0 3px 10px rgba(0,0,0,.04);
}

.filter-btn.active{
    background:var(--primary);
    color:white;
}

/* LAYOUT */

.grid{
    margin-top:24px;
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:24px;
}
.grid.kiosk {
    margin-top:24px;
    display:grid;
    grid-template-columns:1fr;
    gap:24px;
}

.card{
    background:var(--card);
    border-radius:24px;
    padding:24px;
    box-shadow:0 5px 20px rgba(0,0,0,.04);
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.card h2 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: -5px;
}
.kiosk .card h2 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 0px;
}
.card p {
    font-size: 14px;
    color: var(--text);
    margin-top: 8px;
    margin-bottom: 8px;
}
.kiosk .card p {
    font-size: 24px;
    color: var(--text);
    margin-top: 8px;
    margin-bottom: 8px;
}
.card span {
    font-size: 12px;
    color: var(--text);
    margin-bottom: 4px;
    font-weight: 100;
}
.kiosk .card span {
    font-size: 18px;
    color: var(--text);
    margin-bottom: 4px;
    font-weight: 100;
}

.card-subtitle {
    font-size: 13px;
    color: var(--color-alsószöveg);
    margin-bottom: 20px;
}

/* TABLE */


table{
    width:100%;
    border-collapse:collapse;
}

th{
    text-align:left;
    color:#6f7c97;
    padding:15px;
}

td{
    padding:18px 5px;
    border-top:1px solid #edf1f7;
}

.table-header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:20px;
}

table.table tbody tr {
   transition: transform .2s;
}

table.table tbody tr:hover,
table.table tbody tr.selected {
   cursor:pointer; 
   transform: scale(1.02);
   background:var(--border);
}
.timelist.selected {
   cursor:pointer; 
   transform: scale(1.02);
   background:var(--bg);
   color:var(--infotext);
}
/* .text-center in tables */
table.text-center,
table.text-center td,
table.text-center th {
  text-align: center;
}

.status{
    color:var(--success);
    font-weight:600;
}

.status.warning{
    color:var(--warning);
}

/* ROUTE */

.route-top{
    display:flex;
    justify-content:space-between;
    align-items:center;
    margin-bottom:25px;
}

.route-layout{
    display:grid;
    grid-template-columns:300px 1fr;
    gap:20px;
}

.stops{
    list-style:none;
}

.stops li{
    padding:10px 0;
    border-left:3px solid var(--primary);
    padding-left:20px;
    margin-left:10px;
}
.stops span.time {
}
.stops span.megallo {
}
.timeline-item:hover {
  cursor:pointer;
}
.timeline-item.selected {
   cursor:pointer; 
   transform: scale(1.02);
   background:var(--border);
   color:var(--infotext);
}

.map{
    min-height:360px;
    border-radius:20px;
    background:#e6eef8;
    display:flex;
    align-items:center;
    justify-content:center;
    color:#6a7690;
    font-weight:600;
}

/* BOTTOM */

.bottom-grid{
    display:grid;
    grid-template-columns:1.3fr 1fr 320px;
    gap:24px;
    margin-top:24px;
    margin-bottom:40px;
}
.bottom-grid.kiosk {
    display:grid;
    grid-template-columns:1fr;
    gap:24px;
    margin-top:24px;
    margin-bottom:40px;
}

.download{
    display:flex;
    gap:15px;
    margin-top:20px;
}

.pdf{
    flex:1;
    background:var(--bg);
    border:1px solid var(--border);
    padding:12px;
    border-radius:14px;
   cursor: pointer;
}
.lg-icon{
    width:32px;
    height:32px;
    background:none;
    border-radius:12px;
    display:flex;
    align-items:center;
    justify-content:left;
    font-size:34px;
    float:left;	
    margin-right:6px;	
}
.sm-icon{
    width:16px;
    height:16px;
    background:none;
    border-radius:12px;
    display:flex;
    align-items:center;
    justify-content:left;
    font-size:16px;
    float:left;	
    margin-right:6px;	
}
.default-icon {color:var(--icon) !important;}
.icon-red {color:red !important;}
.icon-orange {color:orange !important;}
.icon-blue {color:blue !important;}
.icon-navy {color:navy !important;}
.icon-green {color:#1f8d52 !important;}
.bg-red{
  border:5px solid red !important;
}
.info-card{
    background:var(--info);
    color:var(--infotext);
}
.info-card p {
    margin-top:20px;
}
.contact-number{
    font-size:30px;
    color:var(--primary);
    font-weight:700;
    margin:0 0;
}

.jarat-id {
  border:none;
  border-radius:14px;
  padding:15px 15px;
  background:blue;
  font-weight:bold;
  color:#fff;
}
.timeline {
    position: relative;
    width: 300px;
    padding: 4px 0;
}
.kiosk .timeline {
    width: 340px;
}
/* Egy sor a menetrendben */
.timeline-item {
    display: grid;
    grid-template-columns: 60px 11px 14px;
    column-gap: 12px;
    align-items: center;
    height: 33px;
    position: relative;
}

/* Időpont */
.time {
    font-size: 14px;
    color: #61799f;
    text-align: left;
    white-space: nowrap;
}
.kiosk .time {
    font-size: 18px;
}
/* Megálló neve */
.station {
    font-size: 14px;
    white-space: nowrap;
    padding-left: 4px;
}
.kiosk .station {
    font-size: 18px;
}

/* Függőleges kék vonal */
.timeline-item:not(.endpoint)::before,
.timeline-item.endpoint:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 77px;
    top: 0;
/*    bottom: 0;*/
    width: 2px;
    background: #0875ff;
    transform: translateX(-50%);
}

/* A vonal a teljes menetrenden át */
.timeline::before {
    content: "";
    position: absolute;
    left: 77px;
    top: 10px;
    bottom: 30px;
    width: 4px;
    background: #0875ff;
    transform: translateX(-50%);
}

/* Megállókat jelölő körök */
.marker {
    position: relative;
    z-index: 1;
    width: 12px;
    height: 12px;
    border: 1.5px solid #0875ff;
    border-radius: 50%;
    background: #ffffff;
    justify-self: center;
}

/* Kezdő- és végállomás */
.endpoint .marker {
    width: 20px;
    height: 20px;
    border: 5px solid #0875ff;
}

.endpoint .time,
.endpoint .station {
    color: var(--infotext);
    font-weight: 700;
}

.main-footer {
    text-align:center;
    font-size:12px;
}


.switch {
  position: relative;
  display: inline-block;
  width: var(--switch-width);
  height: var(--switch-height);
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--primary);
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
/*    content: '☀️';*/
  content: "";
  position: absolute;
  height: var(--slider-height);
  width: var(--slider-height);
  left: calc(var(--switch-padding) / 2);
  bottom: calc(var(--switch-padding) / 2);
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
  z-index:10;
}
.slider:after {
    content: '🌙';
    position: absolute;
    top: 2px;
    left: 26px;
    z-index: 2;
    color: #aaa;
}

input:checked+.slider {
  background-color: var(--bg);
}

input:focus+.slider {
  box-shadow: 0 0 1px #2196F3;
}

input:checked+.slider:before {
  transform: translateX(var(--slider-on));
}

.slider.round {
  border-radius: var(--slider-height);
}

.slider.round:before {
  border-radius: 50%;
}
/* TERKEP */
.layout{
	display:grid;
	grid-template-columns:360px 1fr;
	height:calc(100vh - 72px);
}

.sidebar{
	background:var(--card);
	border-right:1px solid var(--border);
	overflow-y:auto;
	padding:20px;
}
.tcard{
	background:var(--bg);
	border-radius:18px;
	padding:18px;
	margin-bottom:16px;
}

.tcard-title{
	font-size:20px;
	font-weight:700;
	margin-bottom:12px;
}

.location-box{
	background:var(--activebg);
	padding:14px;
	border-radius:12px;
}

.route{
	padding:14px;
	border-radius:12px;
	border:1px solid var(--border);
	margin-bottom:10px;
	cursor:pointer;
}

.route.active{
	background:var(--activebg);
	border-color:#2979ff;
}

.stop{
	padding:12px;
	margin-bottom:8px;
	background:var(--card);
	border-radius:12px;
	cursor:pointer;
}

.stop:hover{
	background:var(--activebg);
}

.map-area{
	position:relative;
}

.map{
	height:100%;
	background:linear-gradient(135deg,#cfe8ff,#dbeafe);
	display:flex;
	align-items:center;
	justify-content:center;
	font-size:34px;
	font-weight:700;
	color:#2563eb;
}

.floating{
	position:absolute;
	top:20px;
	right:20px;
	width:320px;
	z-index:10000;
}

.info{
	background:var(--card);
	padding:20px;
	border-radius:18px;
	box-shadow:0 8px 30px rgba(0,0,0,.12);
}

.info h3{
	margin-bottom:10px;
}

.badge{
	display:inline-block;
	padding:6px 10px;
	border-radius:10px;
	background:#dcfce7;
	color:#15803d;
	font-weight:700;
	margin-top:10px;
}

.controls{
	display:flex;
	gap:10px;
	margin-top:15px;
}

.control-btn{
	flex:1;
	background:var(--primary);
	color:white;
	border:none;
	padding:12px;
	border-radius:12px;
	cursor:pointer;
}
.mobile-nav{
	display:none;
}
.tsearch{
	margin-bottom:15px;
}

.tsearch input{
	width:100%;
	padding:14px;
	border-radius:12px;
	border:1px solid var(--border);
	background:var(--activebg);
	color:var(--text) !important;
}
.tsearch input[placeholder], [placeholder], *[placeholder] {
	color:var(--text) !important;
}

/* NEWS */
.news-layout{
	display:grid;
	grid-template-columns:2fr 1fr;
	gap:24px;
}
.news-card{
	background:var(--card);
	border-radius:20px;
	padding:24px;
	margin-bottom:20px;
	box-shadow:0 6px 20px rgba(0,0,0,.05);
}
.news-badge{
	display:inline-block;
	padding:8px 12px;
	border-radius:999px;
	font-size:12px;
	font-weight:700;
	margin-bottom:16px;
}

.news-success{
	background:#dcfce7;
	color:#15803d;
}

.news-warning{
	background:#fef3c7;
	color:#b45309;
}

.news-danger{
	background:#fee2e2;
	color:#b91c1c;
}

.news-title{
	font-size:24px;
	font-weight:700;
	margin-bottom:10px;
}

.news-date{
	font-size:14px;
	opacity:.7;
	margin-bottom:16px;
}

.news-text{
	line-height:1.7;
}
.sidebar-card{
	background:var(--card);
	border-radius:20px;
	padding:24px;
	margin-bottom:20px;
}

.sidebar-title{
	font-size:20px;
	font-weight:700;
	margin-bottom:16px;
}

.alert-item{
	padding:12px;
	border-left:4px solid var(--primary);
	background:var(--bg);
	margin-bottom:12px;
	border-radius:10px;
}

.archive-item{
	padding:12px;
	border-bottom:1px solid var(--border);
	cursor:pointer;
}

.archive-item:hover{
	opacity:.8;
}

.stats{
	display:grid;
	grid-template-columns:1fr 1fr;
	gap:12px;
}

.stat{
	background:var(--bg);
	padding:18px;
	border-radius:14px;
	text-align:center;
}

.stat-number{
	font-size:28px;
	font-weight:800;
}



@media(max-width:900px){

 .layout{
	grid-template-columns:1fr;
 }

 .sidebar{
	display:none;
 }

 .floating{
	left:10px;
	right:10px;
	top:auto;
	bottom:10px;
	width:auto;
 }

 .mobile-nav{
	display:grid;
	grid-template-columns:repeat(4,1fr);
	background:var(--card);
	border-top:1px solid var(--border);
	position:fixed;
	bottom:0;
	left:0;
	right:0;
	height:70px;
	z-index:1000;
 }

 .mobile-nav div{
	display:flex;
	align-items:center;
	justify-content:center;
 }
 .mobile-nav a{
        color:var(--text);
	font-size:22px;
 }	
}

/* MOBILE */

@media(max-width:1100px){

 .grid{
    grid-template-columns:1fr;
 }

 .bottom-grid{
    grid-template-columns:1fr;
 }

 .route-layout{
    grid-template-columns:1fr;
 }
 .route-layout.kiosk{
    grid-template-columns:340px 1fr;
 }
 .layout{
	height:calc(100vh - 114px);
 }
 .map-area {
	height:calc(100vh - 140px);
 }
 .maincontainer {
        margin-bottom: 70px;
 }
 .hero-overlay{
    min-height:200px !important;
 }
 .hero h1{
    font-size:50px;
 }

 .hero p{
    font-size:24px;
 }

 .weather{
    display:none; // kistelon sok.	
    position: absolute;
    right: 50px;
    top: 52px;
    background: var(--card);
    padding: 10px;
    border-radius: 24px;
    width: 163px;
 }
 .kiosk .weather{
    display:block;
 }
 .weather p{
    color:var(--text);
    font-size:12px;
    font-weight:600;
 }
 .table-fixed {
  table-layout: fixed;
 }

 th {
    padding:10px;
 }
 .jtime {
    width:15%;
 }
 .jnev {
    width:46%;
    word-wrap:break-word;	
 }
 .jcount {
    width:8%;
 }
 .status {
    width:31%;
 }
 .jtimes {
    width:98%;
    word-wrap:break-word;	
 }
 .filters {
    display:grid;
    grid-template-columns:repeat(5,1fr);
    gap:2px;
    margin-top:5px;
 }
 .filter-btn {
    padding:18px 18px;
    border-radius:16px;
    font-size:0px;		
 }
 .filter-btn .fa {
    font-size:initial;		
 }
 .card {
    padding: 8px;
 }
 .download {
    display:grid;
    grid-template-columns:1fr;
    gap:2px;
    margin-top:5px;
 }
 .menu{
    display:none;
 }
 .mobile-nav{
	display:grid;
	grid-template-columns:repeat(4,1fr);
	background:var(--card);
	border-top:1px solid var(--border);
	position:fixed;
	bottom:0;
	left:0;
	right:0;
	height:70px;
	z-index:1000;
 }

 .mobile-nav div{
	display:flex;
	align-items:center;
	justify-content:center;
 }
 .mobile-nav a{
        color:var(--text);
	font-size:22px;
 }	
}
.timelist {
   display:inline-table;	

}
.leaflet-popup-content {
   color: var(--text);
}
.leaflet-popup-content p,.leaflet-popup-content-wrapper,.info-window h4 {
   color:var(--text);
   background-color:var(--activebg) !important;
}
.leaflet-routing-alternatives-container, .leaflet-routing-container {
   display:none;
}
.message {
}
.message-item {
  padding:5px 5px 5px 5px;
}
.message-item p{
  margin-top:2px !important;
}
.indulas-list {
    display: grid;
    word-wrap: break-word;
    grid-template-columns: repeat(5, 1fr);
}
.indulas-list .timelist {
    display:block;
}
.hidden {
    visibility:hidden;	
}
.filters .kiosk{
    display:grid;
    grid-template-columns:1fr;
    gap:24px;
}
.bottom-grid .kiosk {	
    display:none;	
}
.grid .topkiosk {
    display:none;	
}
.topkioskkiosk.slide2 {
    position:absolute;
    top:88px;
    left:80px;
    width:87%;
    z-index:1;
}
.topkioskkiosk h2 {
   text-align:center;
}
.card .topkioskkiosk {
    display:block;	
}
.kioskcontact-box {
    display:flex;	
    vertical-align:middle;	
}
.kioskcontact-box h2{
    font-size:20px !important;
    margin-right: 8px;
line-height: 24px;	
}
.card.kioskcontact-box span{
    font-size:16px !important;	
    margin-right: 8px;
    line-height: 24px;	
}
.card.kioskcontact-box p{
    font-size:18px !important;	
    margin-right: 8px;
    line-height: 9px;	
}
.card.kioskcontact-box .contact-number{
    font-size:18px !important;	
    margin-right: 8px;
    line-height: 24px;	
}

 .snowflake {
    position: fixed;
    top: -10px;
    color: #ffffff;
    font-size: 1em;
    user-select: none;
    pointer-events: none;
    z-index: 9999;
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
    animation: fall linear forwards;
  }

  @keyframes fall {
    to {
      transform: translateY(105vh);
    }
  }


.reindeer {
      position: fixed;
      font-size: 120px; /* Méret */
      z-index: 9999; /* Minden más elem felett jelenjen meg */
      pointer-events: none; /* Ne zavarja a kattintásokat az oldalon */
      user-select: none;
}

