* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: #0b1c2c;
    background: #fff;
}

a {
    color: inherit;
}

.topbar {
    min-height: 92px;
    padding: 18px 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fff;
    border-bottom: 1px solid #eee;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.logo-img {
    height: 58px;
    max-width: 190px;
    object-fit: contain;
}

.brand-text strong {
    display: block;
    font-size: 23px;
    letter-spacing: .5px;
}

.brand-text span {
    display: block;
    margin-top: 3px;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #777;
}

.nav a {
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: .8px;
    border-bottom: 3px solid #caa24c;
    padding-bottom: 8px;
}

/* HERO */
.hero {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* jemný podklad pre čitateľnosť textu */
.hero::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 55%;
    height: 100%;
    background: linear-gradient(
        to left,
        rgba(255,255,255,0.82),
        rgba(255,255,255,0.15),
        rgba(255,255,255,0)
    );
    z-index: 1;
}

.hero-text {
    position: absolute;
    top: 34%;
    right: 100px;
    transform: translateY(-50%);
    text-align: right;
    z-index: 2;
}

.hero-text h1 {
    font-size: 46px;
    margin: 0;
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: 1px;
    color: #0b1c2c;
}

.hero-text h1::after {
    content: "";
    display: block;
    width: 90px;
    height: 4px;
    background: #caa24c;
    margin: 14px 0 0 auto;
}

.hero-text .phone {
    display: block;
    margin-top: 16px;
    font-size: 36px;
    font-weight: 800;
    color: #0b1c2c;
    text-decoration: none;
}

/* SEKCIE */
.ponuka-preview {
    padding: 45px 70px 75px;
    text-align: center;   /* dôležité */
}

.ponuka-preview h2 {
    margin: 0 0 30px;
    font-size: 31px;
    text-align: center;   /* istota */
}

.ponuka-preview h2::after {
    content: "";
    display: block;
    width: 70px;
    height: 3px;
    background: #caa24c;
    margin: 12px auto 0;
}

/* STARÉ KATEGÓRIE – ak ich niekde ešte používaš */
.kategorie {
    display: flex;
    justify-content: center;
    gap: 22px;
    flex-wrap: wrap;
}

.karta {
    width: 220px;
    min-height: 84px;
    padding: 27px 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 700;
    background: #fff;
    border: 1px solid #e9e9e9;
    border-radius: 10px;
    box-shadow: 0 8px 22px rgba(0,0,0,.08);
}

.karta:hover {
    border-color: #caa24c;
}

/* SLIDER NA HLAVNEJ STRÁNKE */
.slider-wrap {
    position: relative;
    max-width: 980px;
    margin: 0 auto;
    padding: 0 58px;
}

.slider {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 5px 25px;
    scrollbar-width: none;
}

.slider::-webkit-scrollbar {
    display: none;
}

.slide-card {
    flex: 0 0 260px;
    max-width: 260px;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: #0b1c2c;
    box-shadow: 0 8px 24px rgba(0,0,0,0.10);
}
.ponuka{
	text-decoration: none;
}

.slide-card img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
}

.slide-body {
    padding: 16px;
    text-align: left;
}

.slide-body small {
    color: #777;
    font-size: 12px;
}

.slide-body h3 {
    margin: 8px 0;
    font-size: 18px;
}

.cena {
    color: #caa24c;
    font-weight: bold;
    font-size: 20px;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #0b1c2c;
    color: #fff;
    font-size: 26px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-btn.prev {
    left: 0;
}

.slider-btn.next {
    right: 0;
}

/* PONUKA STRÁNKA */
.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 26px;
    text-align: left;
}

.property-card {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
}

.property-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.property-body {
    padding: 20px;
}

.property-body h2 {
    margin: 10px 0 8px;
    font-size: 22px;
}

.tag {
    color: #caa24c;
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
}

.loc {
    font-weight: 700;
}

dl {
    margin: 15px 0 0;
}

dt {
    font-weight: 700;
}

dd {
    margin: 0 0 10px;
}

.empty {
    grid-column: 1 / -1;
    text-align: center;
}

/* FOOTER */
.footer {
    background: #0b1c2c;
    color: #fff;
    padding: 44px 70px;
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 36px;
}

.footer h3,
.footer h4 {
    margin: 0 0 12px;
    color: #caa24c;
}

.footer p {
    margin: 7px 0;
    color: #e8e8e8;
}

.or {
    font-size: 13px;
    color: #ccc;
    max-width: 110ch;
}

/* ADMIN / FORMULÁRE */
.form-page {
    max-width: 980px;
    margin: 0 auto;
    padding: 40px 20px 80px;
}

.form-box {
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 28px;
    box-shadow: 0 8px 22px rgba(0,0,0,.06);
}

.form-box h2 {
    margin-top: 0;
}

label {
    display: block;
    margin: 14px 0 6px;
    font-weight: 700;
}

input,
select,
textarea {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #ccc;
    border-radius: 7px;
    font-size: 15px;
}

textarea {
    min-height: 110px;
}

button,
.btn {
    display: inline-block;
    margin-top: 18px;
    background: #0b1c2c;
    color: #fff;
    border: 0;
    border-radius: 7px;
    padding: 12px 18px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
}

.notice {
    padding: 12px 15px;
    border-radius: 8px;
    background: #eef7ee;
    margin-bottom: 18px;
}

.admin-nav {
    display: flex;
    gap: 14px;
    margin-bottom: 24px;
}

.admin-nav a {
    color: #0b1c2c;
    font-weight: 700;
}
.page {
        padding: 35px 20px 55px;
    }

.back-link {
    display: inline-block;
    margin-bottom: 24px;
    text-decoration: none;
    font-weight: 700;
    color: #0b1c2c;
}

.detail-layout {
    display: grid;
    grid-template-columns: 800px 1fr; /* pevná šírka fotky */
    gap: 30px;
    justify-content: center; /* centrovanie celku */
}

.detail-main-img {
    width: 100%;
    max-width: 800px;
    height: auto;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

.detail-main-img,
.detail-gallery {
    max-width: 800px;
}
.detail-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 vedľa seba */
    gap: 14px;
    margin-top: 14px;
    max-width: 800px;
}

.detail-gallery img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.detail-info {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
}

.detail-info h2 {
    color: #caa24c;
    font-size: 30px;
    margin: 12px 0 22px;
}


/* MOBIL */
@media (max-width: 800px) {
	
	.detail-layout {
        grid-template-columns: 1fr;
    }

    .detail-main-img {
        height: 280px;
    }
	
	.detail-gallery {
        grid-template-columns: 1fr;
    }
	
	
    .topbar {
        padding: 18px 20px;
        flex-direction: column;
        gap: 16px;
    }

    .brand-text {
        display: none;
    }

    .hero {
        height: 340px;
    }

    .hero::after {
        width: 75%;
    }

    .hero-text {
        top: 36%;
        right: 22px;
        max-width: 70%;
    }

    .hero-text h1 {
        font-size: 28px;
    }

    .hero-text .phone {
        font-size: 24px;
    }

    .ponuka-preview,
    .page {
        padding: 35px 20px 55px;
    }

    .slider-wrap {
        max-width: 100%;
        padding: 0;
    }

    .slider {
        justify-content: flex-start;
        padding: 10px 0 25px;
    }

    .slide-card {
        flex: 0 0 230px;
        max-width: 230px;
    }

    .slider-btn {
        display: none;
    }

    .footer {
        grid-template-columns: 1fr;
        padding: 36px 22px;
    }
}