@charset "UTF-8";
/*
 * common.css – Teljes responsive újraírás
 * Eredeti: kerekparos.com fix 900px float layout
 * Cél: fluid CSS Grid + hamburger nav, HTML változatlanul
 *
 * EGYETLEN opcionális HTML-módosítás a hamburgerhöz:
 * Az <ul id="navigation"> ELÉ szúrd be:
 *   <button id="nav-toggle" aria-label="Menü" aria-expanded="false">
 *     <span></span><span></span><span></span>
 *   </button>
 * A </body> ELŐL töltsd be: /stylesheets/nav.js
 */

/* ══════════════════════════════════════════════════════════
   RESET  (reset-min.css kiváltja)
   ══════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
article,aside,details,footer,header,main,nav,section,summary { display: block; }
img, video, iframe { max-width: 100%; height: auto; display: block; }
table { border-collapse: collapse; border-spacing: 0; }
ul, ol { list-style: none; }
button, input, select, textarea { font: inherit; box-sizing: border-box; }
hr { border: none; }

/* ══════════════════════════════════════════════════════════
   DESIGN TOKENS
   ══════════════════════════════════════════════════════════ */
:root {
  --c-teal:        #5599a7;
  --c-teal-dk:     #3d7a8a;
  --c-teal-lt:     #7bbfcc;
  --c-bg:          #ffffff;
  --c-surface:     #f1f0ef;
  --c-surface2:    #f7f5f0;
  --c-bottom:      #f1eee7;
  --c-border:      #d1cfcd;
  --c-border-dk:   #9b968f;
  --c-text:        #4b4942;
  --c-text-muted:  #7a7570;
  --c-link:        #5599a7;
  --c-link-hov:    #bb800f;
  --c-header:      #4a4841;
  --c-nav-text:    rgba(255,255,255,.88);
  --c-footer:      #4a4841;
  --font:          "Lucida Grande", Tahoma, Verdana, Arial, Helvetica, sans-serif;
  --max-w:         1160px;
  --gap:           20px;
  --radius:        6px;
  --hdr-h:         56px;
}

/* ══════════════════════════════════════════════════════════
   ALAP TIPOGRÁFIA
   ══════════════════════════════════════════════════════════ */
html { font-size: 15px; }
body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--c-text);
  background: var(--c-bg);
}

a               { text-decoration: none; color: var(--c-link); }
a:hover         { color: var(--c-link-hov); text-decoration: underline; }
strong          { font-weight: 700; }
h2 { color: var(--c-teal); font-size: 1.2rem; margin: 12px 0 8px; }
h3 { color: var(--c-teal); font-size: 1.05rem; margin: 12px 0 6px; }
h4 { color: var(--c-teal); font-size: .9rem;  margin: 10px 0 4px; }
p  { margin-bottom: .7em; }

hr {
  display: block;
  border-top: 1px solid var(--c-border);
  margin: 10px 0;
}

ul.borderedlist li { border-bottom: 1px dashed var(--c-border); }
ul.borderedlist li a {
  display: block;
  padding: 5px 0 5px 4px;
  min-height: 28px;
  color: #42423b;
  line-height: 1.4;
}
ul.borderedlist li a:hover { background: #e5e5e4; color: #42423b; }

/* ══════════════════════════════════════════════════════════
   CONTAINER
   ══════════════════════════════════════════════════════════ */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
}

/* ══════════════════════════════════════════════════════════
   FEJLÉC
   ══════════════════════════════════════════════════════════ */
#header {
  background: var(--c-header) url(../budapestimages/top_bg.jpg) top repeat-x;
  position: sticky;
  top: 0;
  z-index: 200;
  width: 100%;
  box-shadow: 0 2px 8px rgba(0,0,0,.35);
}

#header .container {
  /* Kilépünk az old absolute-positioning-ból */
  height: auto !important;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  min-height: var(--hdr-h);
  padding-top: 0;
  padding-bottom: 0;
}

/* Logo */
h1 {
  position: static !important;  /* régi absolute ki */
  top: auto;
  height: auto;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  align-self: stretch;
}
h1 a {
  display: flex;
  align-items: center;
  height: 100%;
  min-height: var(--hdr-h);
  padding: 0 28px 0 16px;
  font: 700 1.3rem/1 Arial, Helvetica, sans-serif;
  letter-spacing: -1.5px;
  color: #fff;
  white-space: nowrap;
  background: url(../budapestimages/logo_bg.gif) left top no-repeat;
  background-size: auto 100%;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 100%, 0 100%);
  transition: opacity .15s;
  position: relative;
}
h1 a:hover { color: #fff; opacity: .85; text-decoration: none; }
h1 a span {
  display: none; /* régi dekoratív jobb él elem */
}

/* Hamburger gomb (mobilhoz) */
#nav-toggle {
  display: none;
  margin-left: auto;
  align-self: center;
  background: transparent;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 5px;
  width: 42px;
  height: 38px;
  cursor: pointer;
  padding: 8px 7px;
  flex-direction: column;
  justify-content: space-between;
  flex-shrink: 0;
  gap: 0;
}
#nav-toggle span {
  display: block;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .25s, opacity .2s;
}
#nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
#nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Navigáció */
#navigation {
  position: static !important;  /* régi absolute ki */
  right: auto; top: auto;
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  margin-left: 6px;
  flex: 1;
}
#navigation li {
  float: none !important;
  padding: 0;
  display: flex;
  align-items: stretch;
}
#navigation li a {
  display: flex;
  align-items: center;
  padding: 0 14px;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--c-nav-text);
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  transition: color .15s, border-color .15s, background .15s;
  text-decoration: none;
}
#navigation li a:hover,
#navigation li.active a {
  color: #fff;
  border-bottom-color: var(--c-teal-lt);
  background: rgba(85,153,167,.15);
  text-decoration: none;
}

/* Banner */
#banner {
  position: static !important;
  width: 100% !important;
  height: auto !important;
  bottom: auto;
  padding: 12px 20px 14px;
  color: #a49c8f;
  font-weight: 700;
  font-size: .88rem;
  background:
    linear-gradient(to right, rgba(74,72,65,.95) 50%, rgba(74,72,65,.65)),
    url(../budapestimages/building.gif) right bottom no-repeat;
  background-size: auto clamp(80px,16vw,145px);
  min-height: 60px;
  border-top: 1px solid rgba(255,255,255,.08);
}
#banner p { margin-bottom: 8px; color: #b0a89a; }

/* ══════════════════════════════════════════════════════════
   FŐ TARTALOM – CSS Grid 3 oszlop
   ══════════════════════════════════════════════════════════ */
#main { padding: 20px 0 24px; }

/* Ha #main.container (class="container") */
#main.container {
  display: grid;
  grid-template-columns: 193px 1fr 287px;
  gap: 0 var(--gap);
  align-items: start;
}

/* Ha #main > belső .container */
#main > .container {
  display: grid;
  grid-template-columns: 193px 1fr 287px;
  gap: 0 var(--gap);
  align-items: start;
}

#leftcolumn, #center, #rightcolumn {
  float: none !important;
  width: auto !important;
  padding: 0;
}
#leftcolumn  { grid-column: 1; }
#center      { grid-column: 2; padding: 0 4px; }
#rightcolumn { grid-column: 3; }

/* Teljes szélességű térkép */
#main.container > #map,
#main > .container > #map,
#main > #map {
  grid-column: 1 / -1;
}
#map {
  width: 100% !important;
  display: block !important;
}

/* ══════════════════════════════════════════════════════════
   BAL OSZLOP
   ══════════════════════════════════════════════════════════ */
.leftbox {
  background: var(--c-surface);
  padding: 10px 20px;
  margin-bottom: 4px;
  line-height: 1.8;
  font-size: .88rem;
  color: var(--c-text-muted);
  border-left: 3px solid transparent;
}
h3.leftbox {
  font-size: 1rem;
  font-weight: 700;
  color: #8c8685;
  background: var(--c-surface) url(../budapestimages/h3_bg_tall.jpg) 0 0 repeat-x;
  padding: 6px 0 10px 20px;
  border-left: none;
}
h3.header_small {
  font-size: .92rem;
  font-weight: 700;
  background: var(--c-surface);
  padding: 0 20px 5px;
  color: var(--c-text);
}
ul.leftbox { font-size: .88rem; }
#leftcolumn .leftbox p { padding-bottom: .8em; line-height: 1.5; font-size: .82rem; }
.features { padding-top: 14px; font-size: .92rem; }

/* ══════════════════════════════════════════════════════════
   KÖZÉP OSZLOP
   ══════════════════════════════════════════════════════════ */
.article_wrapper h2 { color: var(--c-teal); font-size: 1.1rem; margin: 10px 0; }
.article_wrapper p  { padding-bottom: 10px; font-size: .92rem; }

/* ══════════════════════════════════════════════════════════
   JOBB OSZLOP
   ══════════════════════════════════════════════════════════ */
.rightbox_wrapper {
  background: #eeeded;
  padding: 5px;
  margin-bottom: 16px;
  font-size: .8rem;
  line-height: 1.6;
  color: #58584d;
  width: 100% !important;
  border-radius: var(--radius);
}
.rightbox {
  border: 1px dashed #d9e0e8;
  width: 100% !important;
  padding-bottom: 6px;
}
.product_image   { float: left; margin: 6px 0 0 6px; }
.product_wrapper { float: right; width: calc(100% - 88px); }
.product_wrapper h4 { font-size: .88rem; color: #483f3d; font-weight: 700; padding-top: 8px; }
.product_wrapper p  { font-size: .8rem; }
.lastbox { margin: 0; }

/* ══════════════════════════════════════════════════════════
   ALSÓ SÁV
   ══════════════════════════════════════════════════════════ */
#bottominfo {
  border-top: 5px solid #42423b;
  background: var(--c-bottom);
  padding: 0 0 28px;
  width: 100%;
  overflow: hidden;
}
#bottominfo .container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  padding-top: 4px;
}

.bottomcolumn {
  float: none !important;
  width: auto !important;
  margin: 0;
}
.bottomright { margin-right: 0; }

.bottomcolumn h3 {
  border-bottom: 4px solid var(--c-border-dk);
  color: var(--c-teal);
  font-size: 1.05rem;
  padding: 14px 0 5px 5px;
  margin-bottom: 4px;
}
.bottomcolumn h4 {
  color: var(--c-teal);
  font-size: .88rem;
  padding: 10px 0 4px 5px;
}
.bottomcolumn p {
  padding: 8px 10px 8px 5px;
  font-size: .88rem;
  color: var(--c-text-muted);
}
.iconlist {
  border-top: 1px dashed var(--c-border);
  font-size: .9rem;
}
ul.iconlist li a {
  padding-left: 24px;
  background: url(../budapestimages/footer_list.jpg) left bottom no-repeat;
}
ul.iconlist li a:hover {
  background: #e9e4de url(../budapestimages/footer_list.jpg) left top no-repeat;
  color: #42423b;
}

.enewsbox {
  display: inline-block;
  width: 100%;
  max-width: 200px;
  height: auto;
  padding: 4px 6px;
  border: 4px solid var(--c-teal);
  font-size: .88rem;
}
.button {
  display: inline-block;
  line-height: 1;
  text-align: center;
  background: #659aa6;
  border: 4px solid #fff;
  color: #fff;
  cursor: pointer;
  padding: 4px 10px;
  transition: background .15s;
}
.button:hover { background: var(--c-teal-dk); }

/* ══════════════════════════════════════════════════════════
   LÁBLÉC
   ══════════════════════════════════════════════════════════ */
#footer {
  background: var(--c-footer) url(../budapestimages/footer_bg.jpg) 0 0 repeat-x;
  min-height: 40px;
  font-size: .85rem;
}
#footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 40px;
}
#footer a { color: #a39d97; }
#footer a:hover { color: var(--c-teal-lt); }

#designby {
  float: none;
  background: url(../budapestimages/logo.gif) 0 0 no-repeat;
  height: 23px;
  padding: 2px 0 0 30px;
  display: flex;
  align-items: center;
}
#footer_navigation {
  float: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  padding: 0;
}
#footer_navigation li { float: none; padding: 0; }
#footer_navigation li a {
  display: block;
  padding: 4px 10px;
  text-transform: uppercase;
  font-size: .75rem;
}
#footer_navigation li a:hover { color: var(--c-teal); }

/* ══════════════════════════════════════════════════════════
   TABLET  960px
   ══════════════════════════════════════════════════════════ */
@media (max-width: 960px) {
  :root { --max-w: 100%; }

  /* Nav szűkebb */
  #navigation li a { padding: 0 10px; font-size: .74rem; letter-spacing: .04em; }

  /* 2 oszlopos main */
  #main.container,
  #main > .container {
    grid-template-columns: 185px 1fr;
    grid-template-rows: auto auto;
  }
  #leftcolumn  { grid-column: 1; grid-row: 1; }
  #center      { grid-column: 2; grid-row: 1; }
  #rightcolumn {
    grid-column: 1 / -1;
    grid-row: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
  }
  #rightcolumn .rightbox_wrapper { flex: 1 1 240px; }

  /* Bottom 2 oszlop */
  #bottominfo .container { grid-template-columns: 1fr 1fr; }
  .bottomcolumn:last-child { grid-column: 1 / -1; }
}

/* ══════════════════════════════════════════════════════════
   MOBIL  680px – hamburger menü
   ══════════════════════════════════════════════════════════ */
@media (max-width: 680px) {

  #header .container {
    flex-wrap: wrap;
    min-height: var(--hdr-h);
    padding: 0 12px;
  }

  h1 { flex: 1 1 auto; }
  h1 a {
    font-size: 1.1rem;
    padding: 0 22px 0 12px;
    min-height: var(--hdr-h);
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 100%, 0 100%);
  }

  /* Hamburger megjelenik */
  #nav-toggle { display: flex; }

  /* Navigáció: csukott → kinyíló */
  #navigation {
    width: 100%;
    order: 10;
    flex-direction: column;
    flex-wrap: nowrap;
    background: #3d3b34;
    border-top: 2px solid var(--c-teal);
    max-height: 0;
    overflow: hidden;
    transition: max-height .32s cubic-bezier(.4,0,.2,1);
    margin-left: 0;
  }
  #navigation.open { max-height: 480px; }

  #navigation li { width: 100%; }
  #navigation li a {
    width: 100%;
    padding: 14px 20px;
    font-size: .85rem;
    letter-spacing: .06em;
    border-bottom: 1px solid rgba(255,255,255,.08);
    border-left: 3px solid transparent;
  }
  #navigation li a:hover,
  #navigation li.active a {
    background: rgba(85,153,167,.18);
    border-left-color: var(--c-teal-lt);
    border-bottom-color: rgba(255,255,255,.08);
    color: #fff;
  }

  /* Banner */
  #banner {
    background-image: none;
    padding: 10px 14px 12px;
    font-size: .83rem;
  }

  /* Egyoszlopos main */
  #main.container,
  #main > .container {
    grid-template-columns: 1fr;
  }
  #leftcolumn  { grid-column: 1; grid-row: 2; }
  #center      { grid-column: 1; grid-row: 1; }
  #rightcolumn { grid-column: 1; grid-row: 3; flex-direction: column; }

  /* Bottom 1 oszlop */
  #bottominfo .container { grid-template-columns: 1fr; }
  .bottomcolumn { grid-column: 1 !important; }

  #map { height: 380px !important; }
  .container { padding: 0 12px; }
  #footer .container { flex-direction: column; text-align: center; padding: 8px 12px; }
}

/* ══════════════════════════════════════════════════════════
   NAGYON KIS KÉPERNYŐ  400px
   ══════════════════════════════════════════════════════════ */
@media (max-width: 400px) {
  :root { --hdr-h: 50px; }
  h1 a { font-size: .95rem; letter-spacing: -1px; }
  #navigation li a { font-size: .8rem; padding: 12px 16px; }
  #map { height: 300px !important; }
  .container { padding: 0 8px; }
}
