/* ===== PŮVODNÍ HLAVNÍ STYLY Z <head> ===== */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f7f7f7;
}

.container {
    max-width: 1200px;
    margin: 80px auto 0 auto;
    padding: 0 20px;
}

.hero {
    position: relative;
    background: url('/uploads/images/2gigKmJOJttCT0QIyjYtW.png') center center/cover no-repeat;
    min-height: 420px;
    padding: 120px 20px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: 1px;
    text-align: center;
    color: white;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.45); /* tmavý overlay */
    z-index: 0;
}

.hero h1 {
    position: relative;
    font-size: 42px;
    font-weight: bold;
    max-width: 700px;
    margin-bottom: 30px;
    z-index: 1;
}

.hero form {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    max-width: 700px;
    width: 100%;
    z-index: 1;
}

.hero input[type="text"] {
    padding: 16px 50px 16px 16px;
    font-size: 18px;
    border: none;
    border-radius: 8px;
    flex: 1;
    min-width: 240px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.hero button {
    padding: 16px 26px;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    background-color: #0074e4;
    color: white;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Responzivní úpravy */
@media (max-width: 768px) {
    .hero {
        padding: 80px 20px 30px;
        min-height: auto;
    }

    .hero h1 {
        font-size: 28px;
        margin-bottom: 20px;
    }

    .hero form {
        flex-direction: column;
        align-items: center;
    }

    .hero input[type="text"],
    .hero button {
        width: 100%;
        max-width: none;
    }

    .hero button {
        margin-top: 10px;
    }
}


.section-title {
    font-size: 28px;
    font-weight: 700;
    margin: 60px 0 30px;
    text-align: center;
    color: #222;
}

.card-row {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.card {
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border-radius: 16px;
    overflow: hidden;
    width: 300px;
    position: relative;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}

.card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
}

.card .label {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #ff5a5f;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.card .content {
    padding: 18px;
    color: #333;
    text-align: left;
}

.card .content h3 {
    font-size: 20px;
    font-weight: bold;
    margin: 0 0 10px;
    color: #0074e4;
}

.card .content p {
    font-size: 16px;
    margin: 0 0 6px;
    line-height: 1.4;
    color: #444;
}

/* Spodní karty */
.bottom-cards {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
    margin: 60px auto;
    text-align: center;
}

.bottom-card {
    background: white;
    width: 280px;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.bottom-card:hover {
    transform: scale(1.04);
}

.bottom-card h3 {
    margin-bottom: 12px;
    font-size: 20px;
    font-weight: 600;
    color: #0074e4;
}

.mortgage-box {
    max-width: 800px;
    margin: 60px auto;
    padding: 40px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    text-align: center;
    color: #333;
}

/* Responzivita */
@media (max-width: 768px) {
    .card {
        width: 90%;
    }
    .bottom-card {
        width: 90%;
    }
    .card-row,
    .bottom-cards {
        gap: 20px;
    }
}


/* Světle šedý podklad pro sekci */
.section-grey-bg {
    background-color: #eaeaea;
    padding: 80px 20px;
    width: 100vw;         /* roztáhne přes celou šířku okna */
    margin-left: calc(-50vw + 50%); /* zarovná s okrajem okna */
    position: relative;
}


/* Kontejner pro 3 boxy */
.bottom-cards-alt {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    max-width: 1260px;
    margin: 0 auto;
}

/* Každá karta */
.bottom-card-alt {
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    padding: 35px 10px;
    text-align: center;
    width: 250px;
    height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bottom-card-alt:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

/* Obrázek nahoře */
.bottom-icon {
    width: 160px;
    height: 160px;
    margin: 0 auto 1px;
    display: block;
}

/* Nadpis karty */
.bottom-card-alt h3 {
    font-size: 20px;
    font-weight: 800;
    color: #111;
    margin: -5px 0 1px;
}

/* Text v kartě */
.bottom-card-alt p {
    font-size: 13px;
    color: #444;
    line-height: 1.6;
    margin-bottom: 83px;
}

/* Odkaz jako tlačítko */
.bottom-card-alt a {
    display: inline-block;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    color: #0066ff;
    border: 2px solid #0066ff;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    max-width: 180px;
    margin: 1px auto 0;
}


.bottom-card-alt a:hover {
    background: #0066ff;
    color: #fff;
}

/* Responsivita */
@media (max-width: 1200px) {
    .bottom-card-alt {
        width: 100%;
        max-width: 400px;
        height: auto;
    }
}

@media (max-width: 768px) {
    .bottom-cards-alt {
        flex-direction: column;
        align-items: center;
    }

    .bottom-card-alt {
        width: 100%;
        max-width: 95%;
    }
}





.buyability-btn {
    background-color: #0074e4;
    color: white;
    padding: 12px 20px;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    width: 400px;
    max-width: 90%;
    position: relative;
}

.modal-content h2 {
    margin-top: 0;
}

.modal-content label {
    display: block;
    margin-top: 10px;
}

.modal-content input {
    width: 100%;
    padding: 8px;
    margin-top: 5px;
    border-radius: 6px;
    border: 1px solid #ccc;
}

.modal-content button {
    margin-top: 15px;
    width: 100%;
    background-color: #0074e4;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 6px;
    cursor: pointer;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 22px;
    cursor: pointer;
}

.buyability-slider-wrapper {
    overflow-x: auto;
    white-space: nowrap;
    padding: 10px 0;
    max-width: 1100px;
    margin: 0 auto;
}

.buyability-slider {
    display: flex;
    gap: 20px;
    padding-bottom: 10px;
    justify-content: center; /* ⭐ klíčové pro střed, když je málo položek */
    flex-wrap: wrap; /* zajistí zalomení na menších obrazovkách */
}

.card {
    flex: 0 0 300px;
    display: inline-block;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background-color: #fff;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    transition: transform 0.2s ease;
    cursor: pointer;
    min-width: 300px;
    max-width: 100%;
}

.card:hover {
    transform: scale(1.02);
}

.card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.label {
    background-color: #3b82f6;
    color: white;
    font-size: 12px;
    font-weight: bold;
    padding: 4px 8px;
}

.content {
    padding: 10px;
    font-size: 15px;
}

.card-link {
    text-decoration: none;
    color: inherit;
}



/* ===== AI, KALKULAČKA, PERSONALIZACE, MODAL ===== */
/* =========================
   AI MAKLÉŘKA HOMEPAGE BLOCK
========================= */
/* =========================
   AI MAKLÉŘKA – HORIZONTÁLNÍ STRIP
========================= */

.ai-highlight-section {
    background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
    padding: 22px 20px 24px;
    border-top: 1px solid #eef3f8;
    border-bottom: 1px solid #eef3f8;
}

.ai-highlight-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
    animation: fadeUp 0.45s ease;
}

/* =========================
   ŘÁDEK 1
========================= */
.ai-top-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    flex-wrap: wrap;
}

.ai-heading-wrap {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 280px;
    flex: 1;
}

/* LABEL */
.ai-label {
    display: inline-block;
    width: fit-content;
    background: rgba(0, 106, 255, 0.08);
    color: #0064e0;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 999px;
    letter-spacing: 0.2px;
}

/* TITULEK */
.ai-heading-wrap h2 {
    font-size: 1.35rem;
    line-height: 1.2;
    font-weight: 800;
    color: #111827;
    margin: 0;
}

/* INPUT */
.ai-fake-search {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid #dce7f3;
    border-radius: 14px;
    padding: 6px;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
    min-width: 420px;
    max-width: 580px;
    flex: 1;
}

.ai-fake-search input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    color: #6b7280;
    padding: 10px 12px;
}

.ai-fake-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0077ff, #005ee0);
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    padding: 10px 15px;
    border-radius: 10px;
    white-space: nowrap;
    transition: all 0.25s ease;
    box-shadow: 0 8px 18px rgba(0, 102, 255, 0.15);
}

.ai-fake-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(0, 102, 255, 0.2);
}

/* =========================
   ŘÁDEK 2
========================= */
.ai-middle-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ai-middle-row p {
    font-size: 0.94rem;
    line-height: 1.55;
    color: #4b5563;
    margin: 0;
}

/* TAGY */
.ai-example-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ai-example-tags span {
    background: #ffffff;
    border: 1px solid #dbe6f2;
    color: #334155;
    font-size: 12px;
    font-weight: 500;
    padding: 7px 11px;
    border-radius: 999px;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.03);
    transition: all 0.2s ease;
}

.ai-example-tags span:hover {
    border-color: #8cbcff;
    transform: translateY(-1px);
}

/* =========================
   ŘÁDEK 3
========================= */
.ai-bottom-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ai-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    padding: 10px 16px;
    border-radius: 10px;
    transition: all 0.25s ease;
}

.ai-btn-primary {
    background: linear-gradient(135deg, #0077ff, #005ee0);
    color: #ffffff;
    box-shadow: 0 10px 22px rgba(0, 102, 255, 0.15);
}

.ai-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(0, 102, 255, 0.2);
}

.ai-btn-secondary {
    background: #ffffff;
    color: #1f2937;
    border: 1px solid #d7e3ef;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.03);
}

.ai-btn-secondary:hover {
    transform: translateY(-1px);
    border-color: #9ec4ff;
    color: #005ee0;
}

/* =========================
   ANIMACE
========================= */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================
   TABLET
========================= */
@media (max-width: 991px) {
    .ai-highlight-section {
        padding: 20px 18px 22px;
    }

    .ai-top-row {
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    .ai-heading-wrap {
        min-width: 100%;
    }

    .ai-heading-wrap h2 {
        font-size: 1.22rem;
    }

    .ai-fake-search {
        min-width: 100%;
        max-width: 100%;
    }

    .ai-middle-row p {
        font-size: 0.92rem;
    }
}

/* =========================
   MOBIL
========================= */
@media (max-width: 640px) {
    .ai-highlight-section {
        padding: 18px 14px 20px;
    }

    .ai-highlight-inner {
        gap: 12px;
    }

    .ai-label {
        font-size: 11px;
        padding: 5px 10px;
    }

    .ai-heading-wrap h2 {
        font-size: 1.08rem;
        line-height: 1.28;
    }

    .ai-middle-row p {
        font-size: 0.9rem;
    }

    .ai-example-tags {
        gap: 7px;
    }

    .ai-example-tags span {
        font-size: 11px;
        padding: 6px 10px;
    }

    .ai-fake-search {
        flex-direction: column;
        align-items: stretch;
        border-radius: 14px;
        padding: 8px;
    }

    .ai-fake-search input {
        width: 100%;
        padding: 10px 10px;
    }

    .ai-fake-btn {
        width: 100%;
        padding: 12px 16px;
    }

    .ai-bottom-row {
        flex-direction: column;
        align-items: stretch;
    }

    .ai-btn {
        width: 100%;
        padding: 12px 16px;
    }
}
/* Tlačitko save */
.save-search-hero-row{
  margin-top:12px;
  z-index:1;           /* nad overlayem hero */
  position:relative;
  display:flex;
  justify-content:center;
}
#save-search-wrap{ gap:10px; }
#save-search-btn{
  backdrop-filter: blur(2px);
}
#save-search-btn:hover{
  background: rgba(255,255,255,.12) !important;
}
.zillow-hover {
    transition: transform .2s, box-shadow .2s;
}

.zillow-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.15);
}


/* Kalkulačka */
.section-header {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 20px;
  text-align: center;
}

.left-column {
  display: flex;
  flex-direction: column;
  flex: 1 1 400px;
  max-width: 420px;
}

body {
  font-family: sans-serif;
  margin: 0;
  padding: 0;
  background: #f7f7f7;
}

.home-box-wrapper {
  display: flex;
  justify-content: center;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 40px;
  max-width: 900px;
  margin: 60px auto;
  padding: 0 20px;
}

/* Levý box – světle modré pozadí */
.mortgage-box {
  background: #eaf4fc;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border-radius: 12px;
  padding: 30px 24px;
  flex: 1 1 400px;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
}

/* Pravý box */
.discounted-box {
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  border-radius: 12px;
  padding: 25px 24px;
  flex: 1 1 400px;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
}

.buyability-btn {
  margin-top: 24px;
  padding: 12px 20px;
  background-color: #0070f3;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
}

.discounted-box-link {
  display: block;
  text-decoration: none;
  color: inherit;
  height: 100%;
}

.discounted-image {
  background: #ccc;
  height: 200px;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

.discounted-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.discount-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: red;
  color: white;
  padding: 6px 12px;
  font-size: 14px;
  border-radius: 4px;
}

.discounted-content {
  margin-top: 16px;
}

@media (max-width: 900px) {
  .home-box-wrapper {
    flex-direction: column;
    align-items: center;
  }
}

/* ================================================= */
/* 🔵 PERSONALIZOVANÁ DOPORUČENÍ – ZILLOW STYLE */
/* ================================================= */

.home-personalized-section {
    background: #ffffff;
    margin: 40px auto;
    padding: 28px 20px;

    position: relative;
    z-index: 5;
}

.home-personalized-inner {
    max-width: 1100px;
    margin: 0 auto;

    display: block;
}

/* ⬇️ KLÍČOVÁ ÚPRAVA – omezení šířky pro zalomení */
.home-personalized-text {
    max-width: 520px;
}

.home-personalized-text h2 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #111827;

    /* jemné omezení headline, aby se lámal */
    max-width: 480px;
}

.home-personalized-text p {
    font-size: 14px;
    line-height: 1.5;
    color: #4b5563;
    margin: 0 0 12px 0;
}

.home-personalized-action {
    /* tlačítko hned pod textem */
}

/* ================================================= */
/* 🔵 TLAČÍTKO */
/* ================================================= */

.personalized-btn {
    background-color: #2563eb;
    color: #ffffff;
    border: none;

    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;

    border-radius: 8px;
    cursor: pointer;

    transition:
        background-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;

    position: relative;
    z-index: 10;
    pointer-events: auto;
}

.personalized-btn:hover {
    background-color: #1e4fd8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* ================================================= */
/* 📱 MOBIL */
/* ================================================= */

@media (max-width: 768px) {
    .home-personalized-text {
        text-align: center;
        margin: 0 auto;
    }

    .personalized-btn {
        width: 100%;
        max-width: 320px;
    }
}

/* ================================================= */
/* 📬 AUTH / NEWSLETTER MODAL – ZILLOW STYLE */
/* ================================================= */

.auth-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 9999;

    align-items: center;
    justify-content: center;
}


/* 📦 KARTA MODÁLU */
.auth-modal-card {
    background: #ffffff;
    padding: 32px 32px 28px;
    border-radius: 16px;

    max-width: 420px;
    width: 90%;

    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}

/* 🧠 TITULEK */
.auth-modal-card h3 {
    margin: 0 0 10px 0;
    font-size: 22px;
    font-weight: 700;
    color: #111827;
}

/* 📝 POPIS */
.auth-modal-card p {
    margin: 0 0 18px 0;
    font-size: 14px;
    line-height: 1.5;
    color: #4b5563;
}

/* ✉️ INPUT */
.auth-modal-card input {
    width: 100%;
    padding: 12px 14px;

    /* ⬅️ DŮLEŽITÉ: žádný horizontální margin */
    margin: 0 0 14px 0;

    border-radius: 10px;
    border: 1px solid #d1d5db;
    font-size: 14px;

    outline: none;
    box-sizing: border-box; /* ⬅️ KLÍČ */
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}


/* 🔵 HLAVNÍ CTA */
.auth-modal-card button[type="submit"] {
    width: 100%;
    padding: 12px;

    background: #2563eb;
    color: #ffffff;

    border: none;
    border-radius: 10px;

    font-size: 14px;
    font-weight: 600;
    cursor: pointer;

    transition: background-color 0.2s ease, transform 0.15s ease;
}

.auth-modal-card button[type="submit"]:hover {
    background: #1e4fd8;
    transform: translateY(-1px);
}

/* ❌ ZAVŘÍT */
.auth-modal-close {
    position: absolute;
    top: 14px;
    right: 16px;

    border: none;
    background: none;

    font-size: 22px;
    color: #6b7280;
    cursor: pointer;
}

.auth-modal-close:hover {
    color: #111827;
}



/* ===== DOPLNĚNÍ: ZKUŠENOSTI + ONLINE UŽIVATELÉ ===== */
.home-personalized-inner {
    display: flex;
    gap: 20px;
    align-items: stretch;
}

.home-personalized-text {
    flex: 1;
}

.home-experience-box {
    flex: 1;
    display: flex;
}

.home-experience-box #experience-box {
    background: #f5f9ff;
    border-radius: 12px;
    padding: 20px;
    font-size: 14px;
    color: #333;
    line-height: 1.5;

    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
}
.exp-cta {
    display: inline-block;
    margin-top: 10px;
    font-weight: 600;
    color: #007bff;
    text-decoration: none;
}

.exp-cta:hover {
    text-decoration: underline;
}
.experience-link {
    display: inline-block;
    margin-top: 10px;
    font-weight: 600;
    color: #007bff;
    text-decoration: none;
}

.experience-link:hover {
    text-decoration: underline;
}
