:root{
  --primary:#EEF7FF;
  --accent:#34745C;
  --muted:#123863;
  --radius:12px;
  --shadow:0 6px 18px rgba(16,24,40,0.08);
  font-family:'Inter', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

/* Reset */
*{box-sizing:border-box;margin:0;padding:0}
body{line-height:1.4;background:white;color:#0b2540;font-family:'Poppins', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;}


/* Container */
.container{
  max-width:1200px;
 margin: 0px auto;
    margin-top: 40px;
  background:#ffffff;
  box-shadow:var(--shadow);
  overflow:hidden;
}

/* Header */
header{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: var(--primary);
  position: relative;
  z-index: 100;
}
header .logo-text{font-weight:700;font-size:24px;}
header nav{
  display:flex;
  gap:15px;
}
header nav a{color:#123863;text-decoration:none;font-weight:600;padding:8px 10px;border-radius:8px;transition:0.2s;}
header nav a:hover{opacity:0.8;}


/* Tlačítko Přidat inzerát v headeru */
header nav a.btn-add {
    background: var(--accent); /* zelené pozadí */
    color: white;
    padding: 10px 18px;
    border-radius: 10px;
    font-weight: 700;
    text-decoration: none;
    margin-left: 15px;
    transition: background 0.3s;
}

header nav a.btn-add:hover {
    background: #3c8368; /* tmavší zelená při hover */
}



/* Hamburger */
.hamburger{
  display:none;
  font-size:26px;
  cursor:pointer;
}

/* Main & Hero */
main{padding:30px;}
.hero-section{background:var(--primary);color:#123863;padding:20px;}
.hero-box{max-width:90%;margin:0 auto;}
.hero-box h1{font-size:38px;margin-bottom:12px;}
.hero-box p{margin-bottom:20px;color:#123863;}

/* Search card & tabs */
.search-card{background:white;padding:16px;border-radius:12px;margin-top:20px;}
.tab-buttons{display:flex;background:rgba(11,102,194,0.1);border-radius:12px;overflow:hidden}
.tab-buttons button{flex:1;padding:15px;font-weight:600;border:0;cursor:pointer;color:#123863;}
.tab-buttons button.active{background:#1C66A7;color:white;}
.inputs{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px;}
.input-item{flex:1; min-width:150px;}
.inputs input{width:100%;padding:12px;border-radius:10px;border:1px solid #e6eef9;font-size:14px;}

/* Custom selects */
.custom-select{position:relative;width:100%;}
.select-selected{background-color:white;border:1px solid #e6eef9;border-radius:12px;padding:12px 16px;cursor:pointer;color:#123863;font-weight:500;display:flex;justify-content:space-between;align-items:center;}
.select-items{position:absolute;background:white;border:1px solid #e6eef9;border-radius:12px;top:100%;left:0;right:0;z-index:99;max-height:180px;overflow-y:auto;box-shadow:var(--shadow);}
.select-items div{padding:12px 16px;cursor:pointer;}
.select-items div:hover{background-color: #EEF7FF;}
.select-hide{display:none;}




/* Search row & buttons */
.search-row{display:flex;justify-content:flex-end;margin-top:12px;}
.btn-search{background:var(--accent);border:0;padding:12px 18px;border-radius:10px;color:white;cursor:pointer;font-weight:600;}
.btn-search:hover{background:#3c8368;}
.secondary{background:#f2f2f2;border:0;padding:10px 14px;border-radius:10px;cursor:pointer;color:var(--primary);}

/* Latest offers */
.latest-offers{background:#ffffff;padding:36px 5%;}
.section-title{color:#123863;margin-top:30px;margin-left:0px;font-size:22px;}
.latest-offers .cards{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;}
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.card {
    background: #ffffff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    height: 450px;  /* pevná výška */
}

.card .avatar {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.card .avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card .role {
    font-weight: 700;
    margin: 10px 0 2px 0;
    padding: 0 10px;
    font-size: 15px;
}

.card .muted.small {
    color: var(--muted);
    font-size: 14px;
    padding: 0 10px;
    flex-grow: 1; /* aby popis zabral zbytek prostoru */
}

.card .muted.footer-info {
   
    padding: 0 10px;
    font-size: 13px;
    color: var(--muted);
    text-align:center;
}

.card .rate {
    font-size: 16px;
    font-weight: bold;
    text-align: right;  /* zarovnání doprava */
    padding: 0 10px;
    color:#34745C;
    margin-top: 5px;
}

.btn-ghost {
    text-decoration: none;
    background: #34745C;
    border: none;
    border-radius: 10px;
    padding: 8px 12px;
    margin: 10px;
    color: white;
    cursor: pointer;
    text-align: center;
}
.btn-ghost a {
    text-decoration: none;
    color: inherit;
    display: inline-block;
}





/* Hero actions */
.hero-actions{margin-top:20px;display:flex;gap:15px;}
.btn-primary{background:#34745C;color:white;padding:14px 22px;border-radius:10px;font-weight:700;text-decoration:none;transition:background 0.3s;}
.btn-primary:hover{background:#3c8368;}
.btn-secondary{background:white;color:#123863;padding:14px 22px;border-radius:10px;font-weight:700;text-decoration:none;border:2px solid #123863;transition:all 0.3s;}
.btn-secondary:hover{background:#123863;color:white;}
.more-offers{margin-top:30px;text-align:center;}

/* Footer */
footer{background:#f9f9f9;color:var(--muted);text-align:center;padding:20px 10px;font-size:14px;border-top:1px solid #e0e0e0;margin-top:20px;}
footer .footer-links a{color:var(--muted);text-decoration:none;font-size:13px;margin:0 5px;}
footer .footer-links a:hover{text-decoration:underline;}

/* Forms */
.form-add{max-width:400px;margin:40px auto;background:#fff;box-shadow:var(--shadow);border-radius:var(--radius);padding:30px 25px;}
.form-add h1{font-size:28px;margin-bottom:20px;color:#123863;text-align:center;}
.form-add p{color:#123863;text-align:center;margin-bottom:20px;}
.form-add .inputs{display:flex;flex-direction:column;gap:15px;}
.form-add .input-item label{font-weight:600;margin-bottom:5px;display:block;color:#123863;}
.form-add .input-item input, .form-add .input-item textarea, .form-add select{width:100%;padding:12px 14px;border-radius:10px;border:1px solid #e6eef9;font-size:14px;transition:0.2s;}
.form-add .input-item input:focus, .form-add textarea:focus, .form-add select:focus{outline:none;border-color:var(--accent);box-shadow:0 0 6px rgba(52,116,92,0.2);}
.form-add .btn-search{width:100%;}

/* Responsive desktop adjustments */
@media(max-width:1000px){
  .latest-offers .cards{grid-template-columns:repeat(2,1fr);}
}
@media(max-width:560px){
  .latest-offers .cards{grid-template-columns:1fr;}
  .hero-box h1{font-size:26px;}
  .hero-box p{font-size:14px;}
  .inputs{flex-direction:column;}
  .inputs .input-item{min-width:100%;}
  .btn-search,.btn-filter{width:100%;}
  .form-add{padding:20px 15px;}
  
  
  }
.custom-checkbox 
{
font-size:11px;
}



/* Hamburger menu for mobile */
@media(max-width:768px){




 header nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    right: 0;
    width: 200px;
    background: white;
    border:1px solid #e6eef9;
    border-radius:12px;
    box-shadow:var(--shadow);
    z-index: 999;
  }
 header nav.active {
    display: flex;
  }

    .hamburger {
    display: block;
    cursor: pointer;
    font-size: 26px;
  }





  
 header nav.active .btn-add {
 padding: 10px 15px;
                text-align: center;
        font-weight: 600;
    border-radius: 12px 12px 0 0; 
    text-decoration: none;
    margin-left: 0px;
    
  
  }
   header nav.active .btn-add:hover{
 
       background:#3c8368;
        
       
    
  
  }
 header nav a {
    display:block;
    padding:10px 15px;
    background:none;
    color:#123863;
    font-weight:600;
  }
  header nav a:hover {
    background: #EEF7FF;
  }

}



/* Specifické checkboxy pro GDPR a podmínky */
.custom-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  user-select: none;
  position: relative;
}

.custom-checkbox input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 20px;
  height: 20px;
  margin: 0;
  cursor: pointer;
}

.custom-checkbox span {
  width: 20px;
  height: 20px;
  border: 2px solid #34745C;
  border-radius: 5px;
  display: inline-block;
  position: relative;
  flex-shrink: 0; /* zajistí, že se neroztáhne */
  box-sizing: border-box;
}

.custom-checkbox input[type="checkbox"]:checked + span::after {
  content: "✓";
  position: absolute;
  top: -2px;
  left: 2px;
  font-size: 16px;
  color: #34745C;
  font-weight: bold;
}


.login-links p {
    margin: 5px 0;
}

.login-links a {
    color: var(--accent);
    text-decoration: underline;
    font-weight: 600;
}

.login-links a:hover {
    opacity: 0.8;
}


