/* =====================================================================
   asmat-base.css  -  shared by ALL pages (replaces the old style.css; do not load both).
   Same selectors/IDs/classes as the old CSS, same colours, modern rules.
   Page columns + the "skin" (sticky pill menu, hover, page background) live in
   layout-1-classic-2col-new.css, which is loaded AFTER this file.
   Every page with a side menu needs ONE wrapper:  <div id="layout"> #menu + #stred </div>
   ===================================================================== */

/* ---------- 1. TOKENS (palette taken 1:1 from the old CSS) ---------- */
:root{
  --blue:#35629F;        /* header, menu bar, titles in boxes */
  --blue-dark:#004D96;   /* headings */
  --blue-menu:#0052C3;   /* side menu links */
  --blue-link:#009CF7;   /* a */
  --blue-sky:#40AAE7;    /* .actual in menu_vedlejsi */
  --blue-light:#C6E8FE;  /* .obr-nadpis */
  --blue-pale:#BDDBEC;   /* footer text */
  --gold:#F1B302;        /* selected menu, submenu, hover, .navigace */
  --gold-pale:#f5f5c5;   /* .podnadpis */
  --grey-line:#e0e0e0;
  --grey-text:#606060;
  --grey-muted:#999;
  --text:#222;
  --bg:#fff;
  --bg-soft:#f3f7fb;     /* light tint of --blue: page background */

  --font:"Segoe UI",Verdana,system-ui,-apple-system,Roboto,Arial,sans-serif;
  --fs:.9375rem;         /* ~15px (old: 0.78em of 16px = 12.5px) */
  --radius:16px;
  --shadow:0 4px 18px rgba(0,50,110,.1);
  --shadow-hover:0 8px 28px rgba(0,50,110,.2);
  --gap:1.5rem;
  --maxw:1200px;
  --edge:max(1rem, calc((100% - var(--maxw)) / 2));   /* side padding that centres full-width bars */
}

/* ---------- 2. RESET / TYPOGRAPHY ---------- */
*,*::before,*::after{box-sizing:border-box}
body{margin:0;padding:0;font-family:var(--font);font-size:var(--fs);line-height:1.6;color:var(--text);background:var(--bg);text-align:left}
img{max-width:100%;height:auto;border:none}
iframe,embed,object,video,ins.adsbygoogle{max-width:100%}
h1,h2,h3,h4{color:var(--blue-dark);line-height:1.25}
h1{font-size:1.6rem}
h2{font-size:1.25rem}
h3{font-size:1.1rem}
h4{font-size:1rem}
a{color:var(--blue-link);text-decoration:none}
a:hover{color:var(--gold);text-decoration:underline}
h1 a{color:var(--blue-dark)}
h1 a:hover{color:var(--blue-link);text-decoration:none}
hr{margin:1.25rem 0;border:0;border-top:1px solid var(--grey-line)}
table{font-family:inherit;font-size:1em;max-width:100%}
.tabulka{font-size:.95em}

/* small helpers used by the old HTML */
.hide{display:none}
.cistic{display:none}
.clear_left{clear:left}
.error_text{font-weight:bold;color:#c00}
.pismo-italic{font-style:italic}
.textcenter{text-align:center}
.textright{text-align:right}
.textbold,.zvyraznit{font-weight:bold}
.zvyraznit,.mensi{color:var(--blue-dark)}
.mensi{font-size:.85em;font-weight:bold}
.imgleft,img[align=left]{float:left;margin:0 .75rem .5rem 0}
.imgright,img[align=right]{float:right;margin:0 0 .5rem .75rem}
.levy{float:left}
.odsazeni{font-size:.85em}
.odsazeny_text_vlevo{margin-left:2rem}
.omez-sirku-fotky,.maxSirka{max-width:100%}

/* ---------- 3. HEADER ---------- */
/* Geometry as in the ORIGINAL design: band 104 px high, logo (100 px) glued to the top-left corner,
   so the gradient inside logo2.gif lines up exactly with the band background (logobg.gif).
   No vertical centring and no left padding = no seam / "wider logo".
   Want the logo aligned with the page content on very wide screens? change  padding:0 var(--edge) 0 0
   to  padding:0 var(--edge). */
.hlavicka{height:104px;padding:0 var(--edge) 0 0;overflow:hidden;background:var(--blue) url('../img/logobg.gif') repeat-x}
.titulek,.titulek_e{display:flex;align-items:flex-start;gap:1rem;height:100px;margin:0;padding:0}
.klikacilogo{float:none;flex:0 1 auto;min-width:0}   /* may shrink on tiny screens, never wider than the screen */
.klikacilogo a{display:block}
.klikacilogo img{display:block;max-width:100%;height:auto}
/* banner injected by /scripts/banner.php (subpages only) */
.hlavicka #banner,.hlavicka #banner_v{display:none;margin:0 0 0 auto;padding:.9rem 0 0}
.hlavicka #banner img,.hlavicka #banner_v img{display:block;position:static;width:auto;max-height:80px;border:1px solid rgba(0,0,0,.5)}
@media(min-width:760px){.hlavicka #banner,.hlavicka #banner_v{display:block}}

/* ---------- 4. MAIN MENU + SUBMENU (wraps on small screens, no JS) ---------- */
#menuH,#submenuH{display:flex;flex-wrap:wrap;gap:.15rem;padding:0 var(--edge)}
#menuH{background:var(--blue);color:#fff}
#submenuH{background:var(--gold);color:#000;padding-top:.15rem;padding-bottom:.15rem}
#submenuH:not(:has(*)){display:none}                    /* empty submenu: no stripe */
#menuH span,#submenuH span{display:block;margin:0;padding:0;font-weight:bold}
#menuH a,#submenuH a{display:block;padding:.7rem 1rem;text-decoration:none;color:#fff}
#submenuH a{padding:.45rem .9rem;color:var(--blue-dark)}
#menuH a:hover{color:var(--gold);background:rgba(255,255,255,.1)}
#submenuH a:hover{color:#000;background:rgba(255,255,255,.35)}
#menuH .selected{background:var(--gold);color:#000;padding:0}
#menuH .selected a,#menuH .selected a:hover{color:#000;background:none}

/* ---------- 5. PAGE GRID (columns are set in layout-1-*.css) ---------- */
#layout{display:grid;grid-template-columns:minmax(0,1fr);gap:var(--gap);max-width:var(--maxw);margin:0 auto;padding:1.25rem 1rem;
  grid-template-areas:"main" "end" "start"}
#layout > *{grid-column:1/-1;min-width:0}               /* unknown blocks: full width */
#stred{grid-area:main;margin:0;padding:0}
#menu{grid-area:start;width:auto;float:none;padding:0}
#right-frame{position:static;float:none;width:auto}     /* holds the ad at the top of #stred */

/* pages without side menu (photo detail, static pages) */
#div-velke,#stred_cely,.uprostred{max-width:var(--maxw);margin:0 auto;padding:1.25rem 1rem}

/* ---------- 6. CENTRE COLUMN: old fixed widths removed ---------- */
#stred p,#stred_cely p,#stred ul li,#stred form,#stred_cely form,.uprostred fieldset,.reklama,#ctverec,.clanek_galerie,.obal{width:auto;max-width:100%}
#stred p,#stred_cely p,#stred ul li{text-align:left;max-width:75ch}
#stred ul li{margin-bottom:.35rem}
#stred h1{margin-top:.2rem}
#stred td,#stred th{padding:.4rem .6rem;vertical-align:top}
#stred th{background:var(--blue);color:#fff;text-align:left}
a.dole{padding:0;text-align:inherit}                    /* "Více >" link placed inside a paragraph */
.reklama div{color:var(--grey-text);font-size:.75rem}
.googledown{max-width:100%;overflow:hidden}
.google_vertical{float:right;margin-left:1rem}
.google_vertical_article{margin:0 0 1rem}
#ctverec{border:1px solid var(--blue);border-radius:var(--radius)}
#ctverec p{padding:.75rem;margin:0}

/* ---------- 7. BOXES (.obal = article / info card) ---------- */
.obal{margin:0 0 var(--gap);overflow:hidden;background:var(--bg);border:0;border-radius:var(--radius);box-shadow:var(--shadow)}
.obal h1{margin:0;font-size:1.1rem}
.obal h2{margin:0;font-size:1rem}
.obal p{margin-top:0}
.obal .nadpis{padding:.6rem 1rem 0;font-weight:bold}
.nadpis a,.podnadpis a{color:var(--blue-dark);text-decoration:none}
.nadpis a:hover,.podnadpis a:hover{color:var(--gold);text-decoration:underline}
.podnadpis{padding:.4rem 1rem;background:var(--gold-pale);font-weight:bold}
.popis,.podpopis{display:flow-root;padding:.75rem 1rem;text-align:left}
.podpopis{padding-left:1.5rem}
.podpopis td{padding:.3rem;text-align:left}
.obal .popis{padding:1rem}
.obal .popis .levy img{max-width:min(100%,280px);margin:0 .75rem .5rem 0;border-radius:6px}
.obal .popis ul{margin:0;padding:0 0 0 1rem;list-style-image:url(../img/bullet_rss.gif)}
.obal .popis ul li{margin:0;padding:.1rem 0}
.dole{padding:0 1rem .6rem;text-align:right}
.ukazka{padding:.5rem;text-align:left}
.ukazka div{padding-right:1rem}

/* ---------- 8. SIDE MENU (#menu) ---------- */
#menu .sekce,#menu .sekce2{margin-bottom:1rem;padding:.75rem 1rem;background:var(--bg);border:0;border-radius:var(--radius);box-shadow:var(--shadow)}
#menu ul{margin:0;padding-left:1.25rem;list-style-image:url(../img/bullet2.gif)}
#menu ul ul{padding-left:1rem}
#menu li{padding:.1rem 0;text-align:left;break-inside:avoid}
#menu ul:has(> li:nth-child(12)){columns:2;column-gap:1rem}   /* long country lists: 2 columns */
#menu li.nadkat{color:#526784;font-style:italic}
#menu a{color:var(--blue-menu);text-decoration:none}
#menu a:hover{color:var(--gold);text-decoration:underline}
#menu a.actual{color:var(--gold);font-weight:bold}
#menu ul.menu_vedlejsi li{list-style-image:url(../img/bullet3.gif)}
#menu ul.menu_vedlejsi a{color:var(--grey-text)}
#menu ul.menu_vedlejsi a.actual{color:var(--blue-sky)}
#menu hr{margin:.75rem 0}
#menu .radka{padding:.1rem 0;font-weight:bold}
#menu .radka a span{color:#000;text-decoration:underline}
#menu .radka a:hover span{color:var(--gold)}
#menu input[type=text]{width:100%;margin-bottom:.4rem}
#menu .diskuze-name{font-style:italic;color:#333}
#menu .diskuze ul{padding-left:.75rem;list-style-image:url(../img/bullet_rss.gif)}
.diskuze-ukazka{color:#5a5a5a}

/* ---------- 9. PHOTO GALLERIES + "Najdete na Asmat.cz" ---------- */
.obrazek{display:grid;grid-template-columns:repeat(auto-fill,minmax(165px,1fr));gap:1rem;margin:0;padding:0}
.jeden_obrazek{float:none;width:auto;height:auto;margin:0;text-align:center}
.obrazek img{margin:0 auto;border-radius:6px}
.obr-nadpis{margin:0;padding:.3rem .5rem;background:var(--blue-light);border-radius:6px 6px 0 0}
.clanek_galerie{display:flex;flex-wrap:wrap;gap:4px;margin:0;padding:0}
.smallImg{padding-right:.4rem}
.smallImg img{max-width:100px;max-height:100px}
.fotolist{padding:0;list-style:none}
.fotolist li{display:flex;align-items:center;gap:1rem;margin:.5rem 0}
.left_fotky{float:left;width:200px;margin:.3rem 1rem 1rem 0;text-align:center}
.popis_fotky{margin:0;text-align:left}
.tapeta{display:flex;flex-wrap:wrap;gap:1rem;padding:.5rem 0}
.tapeta-obr{flex:0 0 auto}
.tapeta-text{flex:1 1 280px}
.kategorie{display:flex;flex-wrap:wrap;gap:1rem}
.kategorie1{flex:0 0 220px}
.kategorie2{flex:1 1 300px}
#odkazy,#odkazy2{margin:0 0 0 1rem;padding:0}

#najdete{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1rem;margin-bottom:1rem}
#najdete .jeden_obrazek{overflow:hidden;background:var(--bg);border-radius:var(--radius);box-shadow:var(--shadow)}
#najdete .nadpis{padding:.4rem .75rem;background:var(--blue);text-align:left}
#najdete .nadpis h3{margin:0;font-size:1rem}
#najdete .nadpis a{color:#fff}
#najdete .nadpis a:hover{color:var(--gold)}
#najdete .popis{padding:.75rem;color:var(--blue-dark);font-weight:bold}
#najdete .popis a{color:var(--blue-dark)}
#najdete .popis a:hover{color:var(--gold)}
#najdete .popis img{margin:0 auto .5rem;border-radius:6px}
#najdete .popis .text{display:block}

/* ---------- 10. PHOTO DETAIL ---------- */
#obrazek-velky,#obrazek-velky_e{float:none;padding:.75rem 0;background:none}
.obrvelky-nadpis{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.75rem;padding:.75rem 0}
.obrvelky-nadpis h1{margin:0}
.lista-velke{margin:0}
.text-obrvelky fieldset{display:inline-block}
.galerie-odkaz{padding-left:1rem}
.popisky-en,.popisky-cz2,.popisky-en2,.popisky-uni{padding-left:1.8rem;background-repeat:no-repeat}
.popisky-en,.popisky-en2{background-image:url('../img/bull-en.gif')}
.popisky-cz2{background-image:url('../img/bull-cz.gif')}
.popisky-uni{background-image:url('../img/bull.jpg')}

/* ---------- 11. NAVIGATION: prev/next bar, breadcrumbs, small bits ---------- */
.navigace{padding:.5rem 1rem;background:var(--gold);color:var(--blue-dark);font-weight:bold;border-radius:999px}
.navigace a{color:var(--blue-dark)}
.navigace a:hover{color:var(--blue);text-decoration:underline}
#stred .navigace{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:.25rem 1.25rem;margin-bottom:1.25rem}
.obrvelky-nadpis .navigace{text-align:right}
#path{padding:.25rem 0 .5rem;font-size:.85rem}
#path a{color:gray}
#path a:hover{color:#000;text-decoration:underline}
span.vlevo{float:left;width:49%;text-align:left}
span.vpravo{float:right;width:49%;text-align:right}
.nalezKat{margin:.2rem 0 .75rem;font-size:.9em;color:#666}
.nalezKat a{color:var(--grey-muted)}
.hodnoceni,p.imgrate{margin:0;padding:0}
.next{padding-left:.6rem}

/* ---------- 12. FORMS ---------- */
fieldset{min-width:0;padding:1rem;text-align:left;border:1px solid var(--blue);border-radius:var(--radius)}
legend{padding:0 .4rem;color:var(--blue-dark);font-weight:bold}
form{margin:0;padding:.3rem 0}
input,select,textarea{max-width:100%;padding:.4rem .6rem;font:inherit;background:#fff;border:1px solid #b9c9dc;border-radius:8px}
input:focus,select:focus,textarea:focus{outline:2px solid var(--blue-link);outline-offset:1px}
input[type=submit],input[type=button],button{padding:.5rem 1.1rem;color:#fff;font-weight:bold;background:var(--blue);border:0;border-radius:999px;cursor:pointer}
input[type=submit]:hover,input[type=button]:hover,button:hover{color:#000;background:var(--gold)}
input[type=checkbox],input[type=radio]{padding:0}
.pohledy label,.diskuze label,.galerie-text label{float:left;width:140px}
.diskuze label{width:70px}
.galerie-text label{width:120px;clear:left}
img.kod{margin:0 .4rem;vertical-align:bottom}

/* ---------- 13. FOOTER ---------- */
.paticka{clear:both;margin-top:1rem;padding:1.25rem var(--edge);background:var(--blue);color:var(--blue-pale);font-size:.8rem;text-align:center}
.paticka a,#paticka a{margin:0 .9rem;color:var(--blue-pale)}
.paticka a:hover{color:#fff}
#paticka{float:none;margin:0}
.zapati{font-size:.8rem}
.zapati a{color:gray}

/* ---------- 14. SMALL SCREENS ---------- */
@media(max-width:600px){
  .pohledy label,.diskuze label,.galerie-text label{float:none;display:block;width:auto}
  .left_fotky,.google_vertical{float:none;width:auto;margin:0 0 1rem}
  span.vlevo,span.vpravo{float:none;width:auto;text-align:left}
  .imgleft,.imgright,img[align=left],img[align=right]{float:none;margin:.5rem 0}
  .obrvelky-nadpis .navigace{text-align:left}
  #menu ul:has(> li:nth-child(12)){columns:1}
}
