:root {
    --kunyho-bg-image: url('/img/kobgd01.jpg');
    --panel: rgba(0, 0, 0, .56);
    --panel-soft: rgba(0, 0, 0, .34);
    --line: rgba(255, 255, 255, .18);
    --text: #fff;
    --muted: #e7dcc9;
    --accent: #9d5f2d;
    --accent2: #d19752;
    --danger: #b9493d;
}

* { box-sizing: border-box; }
html { min-height: 100%; }

/* Az index.html alapkerete */
body {
    background-image: var(--kunyho-bg-image);
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #1c281c;
    color: #fff;
    line-height: 1.5;
}

.menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background-color: #000;
    z-index: 1000;
}

.menu ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.menu li { margin: 0 20px; }

.menu a {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
    display: flex;
}

.menu a:hover { text-decoration: underline; }

.header {
    height: 100vh;
    background-image: url('/img/kunyho.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.header h1 {
    font-size: 48px;
    margin-bottom: 0;
}

.header p {
    font-size: 24px;
    margin-top: 0;
}

.content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px;
    box-sizing: border-box;
}

.content p {
    font-size: 18px;
    line-height: 1.5;
    text-align: justify;
}

.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background-color: #000;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 1000;
}

.footer p {
    font-size: 14px;
    margin: 0;
}
.footer table { width: auto; border: 0; border-collapse: collapse; background: transparent; }
.footer td { border: 0; padding: 0; font-size: 14px; color: #fff; }
.footer a { color: #fff; }

/* Kunyhó eseménymodul az eredeti kereten belül */
.kunyho-events-content {
    min-height: calc(100vh - 100px);
    padding-top: 90px;
    padding-bottom: 90px;
}

.kunyho-events-content p {
    font-size: 16px;
    line-height: 1.55;
}

.hero {
    margin: 0 0 24px;
    padding: 0 0 10px;
    max-width: 820px;
}

.hero h1 {
    margin: 0 0 8px;
    font-size: 30px;
    line-height: 1.2;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,.7);
}

.hero p {
    margin: 0;
    color: #fff;
    text-align: justify;
    text-shadow: 0 2px 8px rgba(0,0,0,.72);
}

.grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 22px;
    align-items: start;
}

.card,
.event-card,
.form-card,
.admin-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 18px 20px;
    margin-bottom: 18px;
    box-shadow: 0 10px 30px rgba(0,0,0,.28);
}

.event-card h1,
.event-card h2,
.form-card h1,
.form-card h2,
.admin-card h1,
.admin-card h2 {
    margin: 0 0 12px;
    color: #fff;
    font-family: Arial, sans-serif;
    line-height: 1.25;
}

.event-card h1,
.form-card h1,
.admin-card h1 { font-size: 26px; }
.event-card h2,
.form-card h2,
.admin-card h2 { font-size: 22px; }

.event-card p,
.form-card p,
.admin-card p,
.notice p,
.private-box p {
    font-size: 16px;
    text-align: justify;
}

.event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 0 0 10px;
}

.badge {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 3px;
    padding: 3px 8px;
    background: rgba(0,0,0,.38);
    color: #fff;
    font-size: 13px;
    line-height: 1.4;
}

.actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 14px;
}

button,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 7px 13px;
    border: 1px solid rgba(255,255,255,.26);
    border-radius: 3px;
    background: #8c5529;
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
}

button:hover,
.button:hover {
    background: #b36a32;
    color: #fff;
    text-decoration: none;
}

.button.secondary { background: rgba(255,255,255,.14); }
.button.light { background: rgba(255,255,255,.84); color: #1f1a14; }
.button.danger { background: var(--danger); }

label {
    display: block;
    font-weight: bold;
    margin: 10px 0 4px;
    color: #fff;
    font-size: 14px;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="tel"],
input[type="number"],
input[type="datetime-local"],
textarea,
select {
    width: 100%;
    border: 1px solid rgba(0,0,0,.35);
    border-radius: 3px;
    padding: 8px 9px;
    background: rgba(255,255,255,.94);
    color: #111;
    font-family: Arial, sans-serif;
    font-size: 15px;
}

input:focus,
textarea:focus,
select:focus {
    outline: 2px solid rgba(209,151,82,.55);
    border-color: #d19752;
}

textarea { min-height: 120px; resize: vertical; }

.help {
    color: #eee1cf;
    font-size: 14px !important;
    margin-top: 7px;
}

.notice {
    border-radius: 3px;
    padding: 10px 12px;
    margin: 12px 0;
    border: 1px solid var(--line);
    background: rgba(0,0,0,.42);
    color: #fff;
}
.notice-success { border-color: rgba(164,225,164,.5); background: rgba(29,92,38,.52); }
.notice-warning { border-color: rgba(242,202,116,.55); background: rgba(112,76,19,.50); }
.notice-error { border-color: rgba(222,120,108,.65); background: rgba(115,38,30,.56); }

.private-box {
    border: 1px dashed rgba(255,255,255,.36);
    border-radius: 3px;
    padding: 15px;
    background: rgba(0,0,0,.30);
}

/* Admin rész: marad használható, de ugyanazzal a háttérrel/favikonnal */
body.kunyho-admin {
    font-family: Arial, sans-serif;
    font-size: 14px;
}
.admin-wrap {
    width: min(1080px, calc(100% - 34px));
    margin: 0 auto;
    padding: 24px 0 42px;
}
.admin-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    padding: 12px 14px;
    background: rgba(0,0,0,.70);
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 4px;
}
.admin-top span { margin-left: 7px; color: #e5d6c1; font-size: 13px; }
.admin-top nav { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.admin-top nav a {
    padding: 6px 9px;
    border-radius: 3px;
    background: rgba(255,255,255,.12);
    color: #fff;
    font-size: 13px;
    text-decoration: none;
}
.admin-top nav a:hover { background: rgba(255,255,255,.22); }
.admin-top nav a.logout { background: rgba(180,55,43,.86); }

.table-wrap { overflow-x: auto; }
table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(0,0,0,.45);
    border: 1px solid rgba(255,255,255,.18);
    font-size: 14px;
}
th,
td {
    padding: 8px 9px;
    border-bottom: 1px solid rgba(255,255,255,.14);
    text-align: left;
    vertical-align: top;
}
th { background: rgba(255,255,255,.12); color: #fff; font-weight: bold; }
tr:last-child td { border-bottom: 0; }
.inline-form { display: inline; }
.status-published { color: #c8f2bd; font-weight: bold; }
.status-hidden { color: #d8cbb8; font-weight: bold; }
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0,1fr));
    gap: 12px;
    margin-bottom: 16px;
}
.kpi {
    background: rgba(0,0,0,.56);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 4px;
    padding: 14px;
}
.kpi strong { display: block; font-size: 28px; line-height: 1.1; }
.kpi span { color: #e5d6c1; font-size: 13px; }
.checkbox-row { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.checkbox-row input { width: auto; }
code {
    display: inline-block;
    padding: 1px 5px;
    border-radius: 3px;
    background: rgba(0,0,0,.35);
    color: #ffe2b5;
}

a { color: #ffd18d; }
a:hover { color: #fff; }

@media screen and (max-width: 768px) {
    .content { padding: 20px; }
    .kunyho-events-content { padding-top: 80px; padding-bottom: 80px; }
    .header h1 { font-size: 36px; }
    .header p { font-size: 20px; }
    .grid { grid-template-columns: 1fr; }
    .menu li { margin: 0 8px; }
    .menu a { font-size: 13px; }
    .event-card h1, .form-card h1, .admin-card h1 { font-size: 22px; }
    .event-card h2, .form-card h2, .admin-card h2 { font-size: 19px; }
    .kpi-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .admin-top { flex-direction: column; align-items: flex-start; }
    .admin-top nav { justify-content: flex-start; }
    .footer { height: auto; min-height: 50px; padding: 7px 4px; }
    .footer td { display: block; font-size: 13px; }
    .footer td:nth-child(2), .footer td:nth-child(4) { display: none; }
}

@media screen and (max-width: 520px) {
    .content { padding-left: 14px; padding-right: 14px; }
    .kunyho-events-content { padding-top: 76px; }
    .menu a { font-size: 11px; }
    .menu li { margin: 0 5px; }
    .card, .event-card, .form-card, .admin-card { padding: 15px; }
    button, .button { width: 100%; }
    .kpi-grid { grid-template-columns: 1fr; }
}

/* v2.0 admin adatkezelés */
.action-cell {
    min-width: 220px;
}
.action-cell .inline-form,
td .inline-form {
    margin-left: 5px;
    margin-top: 4px;
    display: inline-block;
}
.action-cell .button,
td .button {
    min-height: 28px;
    padding: 5px 9px;
    font-size: 12px;
}
.event-kpi-grid {
    margin-bottom: 18px;
}
button.danger,
.button.danger {
    background: var(--danger);
    border-color: rgba(255,255,255,.22);
}
button.danger:hover,
.button.danger:hover {
    background: #d25a4d;
}

/* v2.1 helykeret és esemény meta */
.form-grid.two-cols {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.admin-subcard {
    margin: 16px 0;
    padding: 14px;
    border: 1px solid rgba(255,255,255,.18);
    background: rgba(0,0,0,.30);
    border-radius: 4px;
}
.admin-subcard h2 {
    margin-top: 0;
}
.place-editor {
    display: grid;
    grid-template-columns: minmax(130px, .7fr) auto minmax(160px, 1fr) auto minmax(130px, .7fr);
    gap: 10px;
    align-items: end;
    margin: 12px 0;
}
.place-stat {
    min-height: 58px;
    padding: 10px 12px;
    border: 1px solid rgba(255,255,255,.16);
    background: rgba(0,0,0,.35);
    border-radius: 4px;
}
.place-stat strong {
    display: block;
    font-size: 24px;
    line-height: 1;
}
.place-stat span {
    display: block;
    margin-top: 6px;
    color: #e5d6c1;
    font-size: 12px;
}
.place-plus {
    padding-bottom: 16px;
    font-size: 22px;
    font-weight: bold;
    color: #e5d6c1;
}
.compact-form {
    margin-top: 8px;
}

@media screen and (max-width: 768px) {
    .form-grid.two-cols,
    .place-editor {
        grid-template-columns: 1fr;
    }
    .place-plus {
        display: none;
    }
}

/* v2.3 kézi szabadhely-számláló */
.place-editor.place-editor-v23 {
    grid-template-columns: minmax(130px, .7fr) minmax(160px, 1fr) minmax(190px, 1.1fr);
}
.number-stepper {
    display: flex;
    align-items: stretch;
    gap: 6px;
}
.number-stepper input[type="number"] {
    min-width: 90px;
    text-align: center;
}
.stepper-btn {
    min-width: 38px;
    padding: 8px 10px;
    line-height: 1;
    font-size: 18px;
    font-weight: bold;
}
@media screen and (max-width: 768px) {
    .place-editor.place-editor-v23 {
        grid-template-columns: 1fr;
    }
    .number-stepper input[type="number"] {
        min-width: 0;
        width: 100%;
    }
}


/* v2.4 rendezettebb helyszámláló-blokk */
.place-editor.place-editor-v24 {
    display: grid;
    grid-template-columns: minmax(0, 520px);
    gap: 12px;
    align-items: start;
    margin: 14px 0 12px;
    max-width: 540px;
}
.place-summary-row {
    display: grid;
    grid-template-columns: 145px minmax(0, 1fr);
    gap: 10px;
    align-items: stretch;
}
.place-current {
    min-height: 58px;
    padding: 10px 12px;
    border: 1px solid rgba(255,255,255,.16);
    background: rgba(0,0,0,.28);
    border-radius: 4px;
    display: flex;
    align-items: baseline;
    gap: 7px;
    flex-wrap: wrap;
}
.place-current-label {
    display: block;
    flex: 0 0 100%;
    color: #e5d6c1;
    font-size: 12px;
}
.place-current strong {
    font-size: 24px;
    line-height: 1;
}
.place-field {
    max-width: 420px;
}
.place-field label {
    margin-bottom: 5px;
}
.place-field input[type="number"] {
    width: 100%;
}
.place-editor-v24 .number-stepper {
    max-width: 340px;
}
.place-options {
    margin: 10px 0 8px;
    display: grid;
    gap: 7px;
    max-width: 620px;
}
.place-options .checkbox-row {
    margin: 0;
}
@media screen and (max-width: 768px) {
    .place-editor.place-editor-v24,
    .place-field,
    .place-editor-v24 .number-stepper,
    .place-options {
        max-width: none;
    }
    .place-summary-row {
        grid-template-columns: 1fr;
    }
}


/* v2.5 egységes számmező-léptetők */
.number-stepper input[type="number"] {
    appearance: textfield;
    -moz-appearance: textfield;
}
.number-stepper input[type="number"]::-webkit-outer-spin-button,
.number-stepper input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.place-field .number-stepper {
    width: min(100%, 340px);
}
.place-field .number-stepper input[type="number"] {
    flex: 1 1 auto;
    width: 100%;
}

/* v2.6 láthatatlan érdeklődő-űrlap botvédelem */
.kunyho-honeypot {
    position: absolute !important;
    left: -10000px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}
.turnstile-wrap {
    margin: 12px 0 4px;
}
