/* === Dynamické barvy z databáze (prioritní) === */
:root {
  --color-bg: #0a1f44;
  --color-header: #0a1f44;
  --color-footer: #1b2a4e;
  --color-text: #ffffff;
  --color-accent: #00ffaa;
  --color-link: #00ffaa;
}

/* === Vynucené přepsání všech barev === */
body, html {
  background: var(--color-bg) !important;
  color: var(--color-text) !important;
}

header {
  background: var(--color-header) !important;
}

footer {
  background: var(--color-footer) !important;
}

a, .link {
  color: var(--color-link) !important;
}

a:hover, .link:hover {
  color: var(--color-accent) !important;
  text-shadow: 0 0 6px var(--color-accent);
}

/* ====== ZÁKLADNÍ BARVY ====== */
:root {
    --blue-900: #0a1f44;   /* tmavě modrá */
    --gray-500: #8a8f98;   /* středně šedá */
    --accent:   #1e90ff;   /* akcent pro odkazy/hover */
}

/* ====== TĚLO STRÁNKY – tmavě modrá do bílé ====== */
html, body {
    height: 100%;
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: linear-gradient(
        to bottom,
        #0a1f44 0%,     /* tmavě modrá nahoře */
        #0a1f44 20%,    /* tmavě modrá pod headerem */
        #f2f2f2 100%    /* světle šedá dolů */
    );
    color: #111;
}

/* ====== HLAVIČKA / NAVIGACE ====== */
header {
    background: rgba(10, 31, 68, 0.95);
    color: #fff;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}

header a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

header a:hover {
    color: var(--accent);
}

/* ====== KARTY NEMOVITOSTÍ ====== */
.property-card {
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    margin: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.property-card:hover {
    transform: translateY(-5px);
}

.property-card h3 {
    margin-top: 0;
    color: var(--blue-900);
}

.property-card p {
    margin: 5px 0;
}

.property-card .price {
    font-weight: bold;
    color: green;
}
1~/* ====== ZÁKLADNÍ BARVY ====== */
:root {
    --blue-900: #0a1f44;   /* tmavě modrá */
    --gray-500: #8a8f98;   /* středně šedá */
    --accent:   #1e90ff;   /* akcent pro odkazy/hover */
}

/* ====== TĚLO STRÁNKY – tmavě modrá do bílé ====== */
html, body {
    height: 100%;
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: linear-gradient(
        to bottom,
        #0a1f44 0%,     /* tmavě modrá nahoře */
        #0a1f44 20%,    /* tmavě modrá pod headerem */
        #f2f2f2 100%    /* světle šedá dolů */
    );
    color: #111;
}

/* ====== HLAVIČKA / NAVIGACE ====== */
header {
    background: rgba(10, 31, 68, 0.95);
    color: #fff;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}

header a {
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

header a:hover {
    color: var(--accent);
}

/* ====== KARTY NEMOVITOSTÍ ====== */
.property-card {
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    margin: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s ease;
}

.property-card:hover {
    transform: translateY(-5px);
}

.property-card h3 {
    margin-top: 0;
    color: var(--blue-900);
}

.property-card p {
    margin: 5px 0;
}

.property-card .price {
    font-weight: bold;
    color: green;
}

/* ====== Zvýrazněné tlačítko "Vložit nemovitost" ====== */
nav ul li a.btn-property {
    background: #28a745;
    color: #fff !important;
    border-radius: 4px;
    font-weight: bold;
    padding: 6px 12px;
    transition: background 0.3s ease;
}

nav ul li a.btn-property:hover {
    background: #218838;
    text-decoration: none;
}

/* ====== HLAVNÍ HERO BLOK ====== */
.hero {
    padding: 56px 16px 24px;
    color: #fff;
    text-align: center;
}
.hero h1 {
    margin: 24px 0 12px;
    font-size: 2.6rem;
    line-height: 1.2;
}
.hero p {
    margin: 0 auto;
    max-width: 900px;
    font-size: 1.1rem;
}

/* ====== ŠEDÉ SEKCE – středně šedá do bílé ====== */
.fade-gray {
    background: linear-gradient(
        to bottom,
        var(--gray-500) 0%,
        rgba(138, 143, 152, 0.35) 40%,
        #ffffff 100%
    );
    padding: 40px 16px;
}

.fade-gray .card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 20px;
    max-width: 1000px;
    margin: 12px auto;
}

/* ====== Patička ====== */
.footer {
    border-top: 1px solid #e5e7eb;
    padding: 22px 16px;
    color: #444;
    background: linear-gradient(to bottom, #ffffff 0%, #ffffff 100%);
    text-align: center;
}
/* ====== Efekt hover pro ikonky kategorií ====== */
.category-card img {
    transition: filter 0.3s ease;
}

/* přebarvení na modrou při hover */
.category-card:hover img {
    filter: invert(34%) sepia(98%) saturate(746%) hue-rotate(176deg) brightness(92%) contrast(91%);
}
/* Text u kategorií při hover */
.category-card p {
    color: #444;
    transition: color 0.3s ease;
    font-weight: 600;
}

.category-card:hover p {
    color: #1e90ff; /* modrá při hover */
}
/* ===== HLAVNÍ SEKCE ===== */
.main-section {
    background: linear-gradient(to bottom, var(--blue-900) 0%, #000000 100%);
    color: #ffffff;
    padding: 50px 20px;
    text-align: center;
    border-radius: 12px;
}

/* Červená tlačítka uprostřed */
.main-section .btn {
    display: inline-block;
    margin: 10px;
    padding: 12px 25px;
    background-color: #d32f2f;
    color: #fff;
    font-weight: bold;
    border-radius: 8px;
    text-decoration: none;
    transition: 0.3s;
}

.main-section .btn:hover {
    background-color: #b71c1c;
}
/* ===== Logo a text uprostřed ===== */
.logo-bar {
    text-align: center;
    padding: 15px 0;
}

.logo-bar a {
    text-decoration: none;
    color: white;
}

.logo-bar .logo-img {
    height: 70px;
    display: block;
    margin: 0 auto;
}

.logo-bar .logo-text {
    font-size: 28px;
    font-weight: bold;
    margin-top: 5px;
    color: #ffffff;
}
/* ==== Sekce Nabídka nemovitostí jako bublina ==== */
.properties {
    background: #f2f2f2;          /* šedé pozadí */
    border-radius: 16px;          /* zaoblené rohy */
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);  /* jemný stín */
    padding: 30px;
    margin: 40px auto;
    max-width: 1000px;            /* omezená šířka = bublina */
}

/* Nadpis v bublině */
.properties h1 {
    margin-top: 0;
    text-align: center;
}

/* ==== Kategorie tlačítka červeně ==== */
.btn-main {
    display: inline-block;
    background-color: #d32f2f;    /* červená */
    color: #fff;
    font-weight: bold;
    padding: 12px 25px;
    margin: 10px;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.btn-main:hover {
    background-color: #b71c1c;    /* tmavší červená při hoveru */
}
/* Zarovnání tlačítek kategorií na střed */
.category-buttons {
    display: flex;
    justify-content: center; /* zarovnání doprostřed */
    gap: 20px;               /* mezery mezi tlačítky */
    margin-top: 20px;
    flex-wrap: wrap;         /* když je málo místa, zalomí se */
}
/* ===== Sekce Proč právě s námi ===== */
.why-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 20px;
}

.why-section h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 32px;
}

.reason {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 60px;
    background: linear-gradient(to bottom, #d3d7de 0%, #f2f2f2 100%);
    border-radius: 12px;
    padding: 30px;
}

.reason:nth-child(even) {
    flex-direction: row-reverse;
}

.reason img {
    width: 40%;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.reason-text {
    width: 60%;
}

.reason-text h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #0077cc;
}

.reason-text p {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

/* Mobilní verze */
@media (max-width: 768px) {
    .reason {
        flex-direction: column !important;
    }
    .reason img, 
    .reason-text {
        width: 100%;
    }
}
/* ====== Zelená tlačítka na hlavní stránce i v menu ====== */
a.btn-property {
    display: inline-block;
    background-color: #28a745;
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: bold;
    text-decoration: none;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

a.btn-property:hover {
    background-color: #218838;
    color: #fff !important;
    text-decoration: none;
}
/* ==== Styl pro výpis nemovitostí ==== */
.property-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    padding: 30px;
}

.property-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    padding: 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.property-card h3 {
    font-size: 20px;
    color: #0a1f44;
    margin-bottom: 10px;
}

.property-card p {
    font-size: 14px;
    margin: 6px 0;
    color: #444;
}

.property-card strong {
    color: #0a1f44;
}

.property-card .price {
    font-size: 16px;
    font-weight: bold;
    color: #28a745;
    margin-top: 10px;
}

/* Kategorie tlačítka */
.category-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 25px 0;
}

.category-buttons a {
    background: #0a1f44;
    color: #fff;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: bold;
    text-decoration: none;
    transition: background 0.3s ease;
}

.category-buttons a:hover {
    background: #28a745;
}
/* ==== Výpis nemovitostí v kartách ==== */
.property-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    padding: 20px;
}

.property-card {
    background: #fff;
    color: #000;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.property-card img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin-bottom: 10px;
}

.property-card h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
    color: #0a1f44; /* tmavě modrá */
}

.property-card p {
    margin: 5px 0;
    font-size: 14px;
    color: #444;
}

.property-card .price {
    margin-top: 10px;
    font-weight: bold;
    color: #28a745; /* zelená */
    font-size: 16px;
}

/* Kategorie tlačítka */
.category-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 20px 0;
}

.category-buttons a {
    background: #0a1f44;
    color: #fff;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: bold;
    text-decoration: none;
    transition: background 0.3s ease;
}

.category-buttons a:hover {
    background: #28a745;
}
/* ===== Top bar ===== */
.site-header { background:#0a1f44; color:#fff; }
.topnav { display:flex; gap:20px; align-items:center; padding:15px; }
.topnav a { color:#fff; text-decoration:none; font-weight:600; }
.topnav a:hover { text-decoration:underline; }

/* ===== Kategorie tlačítka ===== */
.category-buttons { display:flex; justify-content:center; gap:15px; margin:20px 0; flex-wrap:wrap; }
.category-buttons a {
    background:#0a1f44; color:#fff; padding:10px 20px; border-radius:6px;
    font-weight:700; text-decoration:none; transition:background .2s ease;
}
.category-buttons a:hover { background:#28a745; }

/* ===== Výpis nemovitostí (grid) ===== */
.property-list {
    display:grid; grid-template-columns:repeat(auto-fill, minmax(280px,1fr));
    gap:20px; padding:20px;
}
.property-card {
    background:#fff; color:#000; padding:15px; border-radius:8px;
    box-shadow:0 2px 8px rgba(0,0,0,.2); display:flex; flex-direction:column;
}
.property-card img { max-width:100%; height:auto; border-radius:6px; margin-bottom:10px; }
.property-card h3 { margin:0 0 10px; font-size:18px; color:#0a1f44; }
.property-card p { margin:5px 0; font-size:14px; color:#444; }
.property-card .price { margin-top:10px; font-weight:700; color:#28a745; font-size:16px; }
.no-data { text-align:center; color:#444; grid-column:1/-1; }
/* Zmenšení loga o 80 % */
.vh-logo {
    max-width: 20%;   /* jen 20 % původní velikosti */
    height: auto;
}
/* === Oprava barev odkazů v administraci === */
.admin-content a,
main a {
    color: #fff !important;               /* Bílé písmo */
    text-decoration: none;                /* Bez podtržení */
    font-weight: 500;
    border: 1px solid #000;               /* Černý obrys */
    padding: 3px 8px;
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.2);       /* Jemné zvýraznění */
    transition: all 0.2s ease-in-out;
}

.admin-content a:hover,
main a:hover {
    background: #000;
    color: #fff;
    border-color: #fff;
}
/* === Oprava bílého okraje kolem stránky === */
html, body {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background-color: #0a1f44; /* sjednocení barvy pozadí */
}

/* Odstranění bílého pruhu pod hlavičkou */
header.vh-wrap {
    margin: 0 !important;
    border: none !important;
    padding-bottom: 0 !important;
}
/* === Oprava bílého okraje kolem hlavičky === */
.vh-wrap {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: linear-gradient(to bottom, #0a1f44, #333) !important;
    box-shadow: none !important;
}

/* Zrušení bílé čáry pod hlavičkou */
.vh-wrap::after,
header::after {
    display: none !important;
    border: none !important;
}

/* Přímé spojení hlavičky a těla stránky */
body {
    background: linear-gradient(to bottom, #0a1f44, #152238) !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
}
/* === KONEČNÁ OPRAVA BÍLÉHO OKRAJE NAHORE === */
html, body {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: linear-gradient(to bottom, #0a1f44, #152238) !important;
}

/* Odstranění bílého rámečku kolem hlavního wrapperu */
#wrapper,
.container,
.vh-wrap {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: linear-gradient(to bottom, #0a1f44, #333) !important;
    box-shadow: none !important;
}

/* Zrušení mezery pod headerem */
header, .vh-wrap {
    display: block;
    border-bottom: none !important;
    margin-bottom: 0 !important;
}

/* Zabrání prohlížeči vykreslit bílou mez */
* {
    outline: none !important;
}
/* ==========================================
   💡 NEON EFEKT – Velissya.eu (sjednocený)
   ========================================== */

/* Efekt pro logo */
header .logo,
header h1,
header h2 {
    transition: all 0.3s ease-in-out;
}

header .logo:hover,
header h1:hover,
header h2:hover {
    filter: brightness(1.4);
    text-shadow: 0 0 10px #00ffcc, 0 0 20px #00b3ff;
}

/* Navigační odkazy (horní menu) */
.topnav a {
    transition: all 0.3s ease-in-out;
    border-radius: 10px;
}

.topnav a:hover {
    background: linear-gradient(to bottom, #00b8ff, #00ffcc);
    color: #fff !important;
    box-shadow: 0 0 12px rgba(0, 255, 204, 0.7);
    transform: translateY(-2px);
}

/* Tlačítka (např. Registrace, Přihlášení, Odhlásit se) */
button, .btn, .admin-sidebtn, a.button, a.btn {
    transition: all 0.3s ease-in-out;
}

button:hover, .btn:hover, .admin-sidebtn:hover, a.button:hover, a.btn:hover {
    background: linear-gradient(to bottom, #00b8ff, #00ffcc);
    color: #fff !important;
    box-shadow: 0 0 15px rgba(0, 255, 204, 0.8);
    transform: translateY(-2px);
}

/* Zvýraznění odkazů v textu */
a:hover {
    color: #00ffcc !important;
    text-shadow: 0 0 8px #00ffcc;
    transition: all 0.3s ease-in-out;
}

/* Hlavní sekce hover – jemný světelný okraj */
section:hover {
    box-shadow: 0 0 25px rgba(0, 255, 204, 0.15);
    transition: box-shadow 0.4s ease-in-out;
}
/* ===== OPRAVA BARVY TEXTU MENU ===== */
header nav a {
  color: #ffffff !important;                /* trvale bílé písmo */
  text-decoration: none;
  font-weight: 600;
  transition: all 0.25s ease-in-out;
}

/* Efekt při přejetí myší – neonové záření */
header nav a:hover {
  color: #ffffff !important;                /* stále bílé */
  text-shadow: 0 0 6px #00ffaa, 0 0 12px #00ffaa, 0 0 18px #00ffaa; /* neon efekt */
  transform: scale(1.03);                   /* lehké zvětšení pro efekt */
}
