@font-face {
    font-family: Poppins;
    src: url("fonty/Poppins-Regular.ttf");
    font-weight: normal;
}

@font-face {
    font-family: Poppins;
    src: url("fonty/Poppins-ExtraBold.ttf");
    font-weight: bold;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100vh;
    background-image: url("images/background.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-family: Poppins, Arial, sans-serif;
    color: #414042;
}

img {
    max-width: 100%;
    height: auto;
}

/* ===== LAYOUT ===== */

.container,
.page-wrapper,
.admin-page {
    width: 92%;
    max-width: 1200px;
    margin: 0 auto;
}

.page-wrapper,
.admin-page {
    padding: 35px 0;
}

/* ===== HEADER ===== */

.hlavicka {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 30px;
    padding: 20px 0;
}

.logo {
    flex: 1;
}

.logo h1 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.1;
}

.logo small {
    display: inline-block;
    margin-top: 8px;
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.75);
    border-radius: 8px;
    color: #333;
    font-size: clamp(0.9rem, 1.8vw, 1.1rem);
}

#navigace {
    flex: 1;
}

#navigace ul {
    display: flex;
    justify-content: center;
    gap: 40px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

#navigace a {
    text-decoration: none;
    font-weight: bold;
    color: #0066cc;
    font-size: 18px;
}

#navigace a:hover {
    text-decoration: underline;
}

/* ===== DECORATION ===== */

.oddelovac {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 40px auto 30px auto;
    padding: 10px 0;
    width: 100%;
}

.oddelovac::before,
.oddelovac::after {
    content: "";
    flex: 1;
    max-width: 260px;
    height: 2px;
    background: linear-gradient(to right, transparent, #8c6f5a, transparent);
}

.oddelovac span {
    margin: 0 20px;
    font-size: 32px;
    color: #8c6f5a;
    font-weight: bold;
}

article h1 {
    text-align: center;
    color: #8c6f5a;
}

/* ===== BUTTONS ===== */

.btn,
.btn-primary,
.btn-secondary,
.btn-success,
.btn-danger,
.rezervace-btn {
    display: inline-block;
    padding: 10px 15px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: 0.2s ease;
    white-space: nowrap;
}

.btn-small {
    padding: 7px 10px;
    font-size: 14px;
}

.btn-primary,
.rezervace-btn {
    background: #b8874f;
    color: white;
}

.btn-primary:hover,
.rezervace-btn:hover {
    background: #916538;
}

.btn-secondary {
    background: #4f4f4f;
    color: white;
}

.btn-secondary:hover {
    background: #333;
}

.btn-success {
    background: #2e9d57;
    color: white;
}

.btn-success:hover {
    background: #237944;
}

.btn-danger {
    background: #c94c4c;
    color: white;
}

.btn-danger:hover {
    background: #a33a3a;
}

/* ===== MAIN PRICE TABLE ===== */

.tabulka-wrapper,
.table-wrapper {
    width: 100%;
    overflow-x: auto;
    margin: 30px auto;
}

#tabulka {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    border-collapse: collapse;
    background: rgba(255, 255, 255, 0.88);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border: none;
}

#tabulka th {
    background: #5d4037;
    color: white;
    padding: 14px 12px;
}

#tabulka td {
    padding: 13px 12px;
    text-align: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

#tabulka tbody tr:nth-child(odd) {
    background: #fffaf4;
}

#tabulka tbody tr:nth-child(even) {
    background: #f1e6da;
}

#tabulka tbody tr:hover {
    background: #e4d0bb;
}

/* ===== CARDS / FORMS ===== */

.form-card,
.admin-top-card,
.admin-table-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(3px);
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.13);
    padding: 24px;
    margin-bottom: 24px;
}

.form-card {
    max-width: 650px;
    margin: 30px auto;
}

.form-card label {
    font-weight: bold;
}

.form-card input,
.form-card select,
.form-card textarea {
    width: 100%;
    padding: 11px;
    margin-top: 6px;
    border-radius: 8px;
    border: 1px solid #bbb;
    font-family: Poppins, Arial, sans-serif;
}

.form-card textarea {
    min-height: 100px;
    resize: vertical;
}

/* ===== ADMIN ===== */

.admin-page {
    max-width: 1250px;
}

.admin-top-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}

.admin-top-card h1 {
    margin: 0;
    font-size: clamp(1.8rem, 4vw, 2.4rem);
}

.admin-top-card p {
    margin: 8px 0 0 0;
    color: #555;
}

.admin-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.admin-table-card h2 {
    margin-top: 0;
    color: #8c6f5a;
}

/* ===== ADMIN TABLE ===== */

.modern-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 14px;
    overflow: hidden;
    background: rgba(255,255,255,0.95);
}

.modern-table th {
    background: #5d4037;
    color: white;
    padding: 14px 12px;
    text-align: center;
}

.modern-table td {
    padding: 13px 12px;
    text-align: center;
    border-bottom: 1px solid rgba(0,0,0,0.08);
}

.modern-table tbody tr:nth-child(odd) {
    background: #fffaf4;
}

.modern-table tbody tr:nth-child(even) {
    background: #f1e6da;
}

.modern-table tbody tr:hover {
    background: #e4d0bb;
}

.date-cell {
    font-weight: 700;
}

.action-cell {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}

.status-badge {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.status-pending {
    background: #fff0c2;
    color: #9b6a00;
}

.status-confirmed {
    background: #d9f5e4;
    color: #1f7a43;
}

.status-cancelled {
    background: #f8d7da;
    color: #a62b36;
}

/* ===== MESSAGES ===== */

.success-message {
    color: #2e9d57;
    font-weight: bold;
    text-align: center;
}

.error-message {
    color: #c94c4c;
    font-weight: bold;
    text-align: center;
}

/* ===== FOOTER TIP ===== */

.tip-footer {
    max-width: 900px;
    margin: 40px auto;
    padding: 18px 24px;
    display: flex;
    align-items: center;
    gap: 18px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(140, 111, 90, 0.28);
    border-radius: 28px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.tip-ikona {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #8c6f5a;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(140, 111, 90, 0.35);
    border-radius: 50%;
    flex-shrink: 0;
}

.tip-obsah h3 {
    margin: 0 0 4px 0;
    font-size: 18px;
    color: #8c6f5a;
}

.tip-obsah p {
    margin: 0;
    color: #444;
    font-size: 15px;
    line-height: 1.5;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 992px) {
    .hlavicka {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .logo,
    #navigace {
        width: 100%;
    }

    #navigace ul {
        justify-content: center;
        gap: 25px;
        margin-top: 15px;
    }

    .oddelovac::before,
    .oddelovac::after {
        max-width: 180px;
    }
}

@media (max-width: 800px) {
    html {
        background-position: left center;
    }

    .admin-page,
    .page-wrapper,
    .container {
        width: 96%;
    }

    .admin-top-card,
    .admin-table-card,
    .form-card {
        padding: 16px;
    }

    .admin-actions {
        width: 100%;
    }

    .btn,
    .btn-primary,
    .btn-secondary,
    .btn-success,
    .btn-danger,
    .rezervace-btn {
        font-size: 14px;
        padding: 9px 12px;
    }

    .modern-table {
        min-width: 900px;
        font-size: 14px;
    }

    #tabulka {
        min-width: 620px;
    }

    .tip-footer {
        flex-direction: column;
        text-align: center;
        border-radius: 22px;
        padding: 18px;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 0 12px;
    }

    .logo h1 {
        font-size: 2rem;
    }

    .logo small {
        font-size: 0.95rem;
        line-height: 1.4;
    }

    #navigace ul {
        flex-direction: column;
        gap: 12px;
    }

    #navigace a {
        display: inline-block;
        padding: 6px 10px;
    }

    .oddelovac {
        margin: 30px 0;
    }

    .oddelovac::before,
    .oddelovac::after {
        max-width: 90px;
    }

    .oddelovac span {
        font-size: 26px;
        margin: 0 12px;
    }
}

.admin-actions a,
.action-cell a {
    display: inline-block !important;
    text-decoration: none !important;
    padding: 10px 15px !important;
    border-radius: 10px !important;
    font-weight: 700 !important;
    color: white !important;
    margin: 4px !important;
}

.action-cell a {
    padding: 7px 10px !important;
    font-size: 14px !important;
}

.admin-actions .btn-primary {
    background: #b8874f !important;
}

.admin-actions .btn-secondary {
    background: #4f4f4f !important;
}

.admin-actions .btn-danger,
.action-cell .btn-danger {
    background: #c94c4c !important;
}

.action-cell .btn-success {
    background: #2e9d57 !important;
}

.admin-actions a:hover,
.action-cell a:hover {
    filter: brightness(0.9);
}

/* ===== SERVICES PAGE ===== */

.services-page {
    width: 92%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 35px 0;
}

.services-hero {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(3px);
    border-radius: 22px;
    padding: 28px;
    margin-bottom: 28px;
    text-align: center;
    box-shadow: 0 10px 28px rgba(0,0,0,0.12);
}

.services-hero h1 {
    margin: 0;
    color: #8c6f5a;
    font-size: clamp(2rem, 5vw, 3rem);
}

.services-hero p {
    margin: 12px auto 20px auto;
    max-width: 650px;
    color: #444;
    line-height: 1.5;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.service-card {
    background: rgba(255, 255, 255, 0.92);
    border-radius: 22px;
    padding: 24px;
    box-shadow: 0 10px 28px rgba(0,0,0,0.12);
    border: 1px solid rgba(140, 111, 90, 0.18);
}

.service-card h2 {
    margin: 0 0 12px 0;
    color: #5d4037;
    font-size: 1.5rem;
}

.service-description {
    min-height: 48px;
    line-height: 1.5;
    color: #444;
}

.service-info {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 18px 0;
}

.service-info span {
    display: inline-block;
    background: #f1e6da;
    color: #414042;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 0.95rem;
}

.service-btn {
    margin-top: 6px;
}

@media (max-width: 800px) {
    .services-grid {
        grid-template-columns: 1fr;
    }

    .services-page {
        width: 94%;
        padding: 18px 0;
    }

    .service-card {
        padding: 18px;
    }
}

/* ===== ADMIN FINAL FIX ===== */

.admin-btn {
    display: inline-block !important;
    padding: 10px 16px !important;
    border-radius: 10px !important;
    text-decoration: none !important;
    color: white !important;
    font-weight: 700 !important;
    border: none !important;
    cursor: pointer !important;
    transition: 0.2s ease !important;
    margin: 4px !important;
    font-family: Poppins, Arial, sans-serif !important;
}

.admin-btn:hover {
    transform: translateY(-1px);
    filter: brightness(0.92);
}

.admin-btn-primary {
    background: #b8874f !important;
}

.admin-btn-secondary {
    background: #4f4f4f !important;
}

.admin-btn-success {
    background: #2e9d57 !important;
}

.admin-btn-danger {
    background: #c94c4c !important;
}

.admin-btn-small {
    padding: 7px 11px !important;
    font-size: 14px !important;
}

.admin-form-card {
    max-width: 650px;
    margin: 0 auto 30px auto;
    padding: 26px;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.13);
}

.admin-form-card form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.admin-form-card label {
    font-weight: 700;
    color: #5d4037;
}

.admin-form-card input {
    width: 100%;
    padding: 12px;
    border: 1px solid rgba(0,0,0,0.2);
    border-radius: 10px;
    font-family: Poppins, Arial, sans-serif;
    font-size: 16px;
    background: white;
}

.admin-form-card button {
    align-self: flex-start;
    margin-top: 10px;
}

.modern-table a.admin-btn {
    text-decoration: none !important;
    color: white !important;
}

@media (max-width: 700px) {
    .admin-form-card {
        padding: 18px;
    }

    .admin-btn {
        width: 100%;
        text-align: center;
    }

    .action-cell .admin-btn {
        width: auto;
    }
}

/* ===== RESERVATION PAGE ===== */

.reservation-page {
    width: 92%;
    max-width: 900px;
    margin: 0 auto;
    padding: 35px 0;
}

.reservation-card {
    background: rgba(255, 255, 255, 0.92);
    border-radius: 22px;
    padding: 28px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.13);
}

.reservation-card h1 {
    margin: 22px 0 18px 0;
    color: #8c6f5a;
    font-size: clamp(2rem, 4vw, 3rem);
}

.reservation-service {
    background: #fffaf4;
    border: 1px solid rgba(140, 111, 90, 0.2);
    border-radius: 18px;
    padding: 20px;
    margin-bottom: 18px;
}

.reservation-service h2 {
    margin-top: 0;
    color: #5d4037;
}

.reservation-service p {
    line-height: 1.5;
}

.reservation-info {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.reservation-info span {
    background: #f1e6da;
    padding: 8px 12px;
    border-radius: 999px;
}

.reservation-note {
    font-weight: 700;
    color: #5d4037;
}

.reservation-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.reservation-form label {
    font-weight: 700;
    color: #5d4037;
}

.reservation-form input,
.reservation-form select,
.reservation-form textarea {
    width: 100%;
    padding: 12px;
    margin-top: 6px;
    border-radius: 10px;
    border: 1px solid rgba(0,0,0,0.22);
    font-family: Poppins, Arial, sans-serif;
    font-size: 16px;
    background: white;
}

.reservation-form textarea {
    min-height: 100px;
    resize: vertical;
}

@media (max-width: 700px) {
    .reservation-page {
        width: 95%;
        padding: 18px 0;
    }

    .reservation-card {
        padding: 18px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

.contact-page {
    min-height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px 20px;
}

.contact-card {
    width: 100%;
    max-width: 750px;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.12);
}

.contact-card h1 {
    text-align: center;
    font-size: 2.4rem;
    margin-bottom: 10px;
}

.contact-intro {
    text-align: center;
    color: #666;
    margin-bottom: 35px;
}

.contact-table {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.contact-row {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 22px;
    border-radius: 18px;
    background: #f8f4ef;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-row:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.contact-icon {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: #8b5e3c;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.contact-info {
    display: flex;
    flex-direction: column;
}

.contact-info span {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 4px;
}

.contact-info a {
    color: #2d2d2d;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
}

.contact-info a:hover {
    color: #8b5e3c;
}

@media (max-width: 600px) {
    .contact-card {
        padding: 25px;
    }

    .contact-row {
        padding: 18px;
    }

    .contact-card h1 {
        font-size: 2rem;
    }
}