/**
 * AKH Datebooking - Public Styles
 *
 * STYLE.md alapjan (gumi.hu _datebooking.scss, _sites.scss, _order.scss, _variables.scss)
 *
 * @package AKH_Datebooking
 */

/* ==========================================================================
   1. Design Tokens
   ========================================================================== */

:root {
    /* --- Fo szinek --- */
    --akh-primary: #FFD508;           /* Sarga - Elementor kit primary */
    --akh-primary-hover: #E6B800;
    --akh-secondary: #525862;         /* Szurke - Elementor kit 1cf2562 */
    --akh-secondary-hover: #414952;   /* Szurke hover */
    --akh-green: #7ff370;             /* Slot kivalasztott keret + radio */
    --akh-close-bg: #d9d9d9;          /* Bezaro gomb hatter */
    --akh-close-bg-hover: #c0c0c0;    /* Bezaro gomb hover */
    --akh-panel-bg: #F3F5F8;          /* Date picker, slot alap hatter - Elementor kit 3944f17 */
    --akh-site-distance-bg: #3f3f3f;  /* Tavolsag cimke hatter */
    --akh-first-date: #1d6e1d;        /* Elso szabad datum szin */
    --akh-coupon-bg: #6bb32d;         /* Kupon hatter */
    --akh-danger: #dc3545;            /* Validacios hiba */

    /* --- Figyelmeztetesek / Hibak --- */
    --akh-warning-bg: #fff3cd;
    --akh-warning-border: #ffc107;
    --akh-warning-text: #856404;
    --akh-danger-bg: #f8d7da;
    --akh-danger-border: #dc3545;
    --akh-danger-text: #dc3545;
    --akh-info-bg: #d1ecf1;
    --akh-info-border: #bee5eb;
    --akh-info-text: #0c5460;

    /* --- Szoveg szinek --- */
    --akh-text: #333;                 /* Body text */
    --akh-text-site: #3f3f3f;         /* Site kartya nev */
    --akh-text-muted: #6b7280;        /* Muted szoveg */
    --akh-text-dark: #1f2937;         /* Sotet cimek */
    --akh-radio-border: #cfd0d3;      /* Slot radio alap keret */

    /* --- Hatterek --- */
    --akh-white: #ffffff;
    --akh-body-gray: #f2f2f2;
    --akh-border: #eeeeee;
    --akh-input-border: #ced4da;      /* Input/select keret */

    /* --- Border radius --- */
    --akh-radius: 0.375rem;           /* Altalanos Bootstrap override */
    --akh-radius-site: 4px;           /* Site kartya */
    --akh-radius-slot: 5px;           /* Slot select, date item */
    --akh-radius-nav: 100px;          /* Kor alaku nav gomb */
    --akh-radius-close: 100%;         /* Kor alaku bezaro gomb */
    --akh-radius-option: 10px;        /* Checkout option border */

    /* --- Arnyekok --- */
    --akh-shadow: 0 2px 5px rgb(0 0 0 / 10%);

    /* --- Transition --- */
    --akh-transition: 0.2s ease;
}

/* ==========================================================================
   2. Base / Utilities
   ========================================================================== */

/* === Tema button reset (Hello Elementor #CC3366 feluliras) === */

/* Tartalom kozepre igazitasa */
#content > div.page-content > div {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}


/* Hatter blur a modal mogott */
.akh-blur {
    filter: blur(3px);
    transition: filter 0.3s ease;
}

/* Disabled elem (slot) */
.akh-disabled,
.disabled {
    opacity: 0;
}

.cursor-pointer {
    cursor: pointer;
}

.object-cover {
    object-fit: cover;
}

/* ==========================================================================
   3. Error messages
   ========================================================================== */

.akh-error {
    padding: 1rem;
    background: var(--akh-warning-bg);
    border: 1px solid var(--akh-warning-border);
    border-radius: var(--akh-radius);
    color: var(--akh-warning-text);
}

.akh-error-message {
    padding: 0.75rem;
    background: var(--akh-danger-bg);
    border: 1px solid var(--akh-danger-border);
    border-radius: var(--akh-radius);
    color: var(--akh-danger-text);
    margin-top: 0.75rem;
    font-size: 0.9rem;
}

.akh-warning-message {
    padding: 0.75rem;
    background: var(--akh-warning-bg);
    border: 1px solid var(--akh-warning-border);
    border-radius: var(--akh-radius);
    color: var(--akh-warning-text);
    margin-top: 0.75rem;
    font-size: 0.85rem;
}

.akh-info-message {
    padding: 0.75rem;
    background: var(--akh-info-bg);
    border: 1px solid var(--akh-info-border);
    border-radius: var(--akh-radius);
    color: var(--akh-info-text);
    margin-top: 0.75rem;
    font-size: 0.9rem;
}

/* datebooking-error-block: dinamikusan toltodik JS altal */
.datebooking-error-block h4 {
    margin-bottom: 0.5rem;
}

.datebooking-error-block p {
    margin-bottom: 0.5rem;
}

/* Form validacios hiba */
.akh-input.error,
.akh-select.error,
.form-control.error {
    border: 1px solid var(--akh-danger);
}

.akh-field-error {
    color: var(--akh-danger-text);
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

/* ==========================================================================
   4. Loader / Spinner
   ========================================================================== */

.akh-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 2rem;
    color: var(--akh-text-muted);
}

.akh-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid var(--akh-border);
    border-top-color: var(--akh-primary);
    border-radius: 50%;
    animation: akh-spin 0.8s linear infinite;
}

@keyframes akh-spin {
    to { transform: rotate(360deg); }
}

.akh-modal-step {
    position: relative;
}

.akh-step-overlay {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.85);
    border-radius: var(--akh-radius);
    color: var(--akh-text-muted);
    font-size: 0.95rem;
}

/* ==========================================================================
   5. Buttons
   ========================================================================== */

.akh-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.5;
    text-decoration: none;
    border: none;
    border-radius: var(--akh-radius);
    cursor: pointer;
    transition: background-color var(--akh-transition), color var(--akh-transition), border-color var(--akh-transition);
    white-space: nowrap;
}

/* Primary = sarga (Tovabb gomb) */
.akh-btn--primary {
    background: var(--akh-primary) !important;
    color: var(--akh-text-dark) !important;
    border: none !important;
}

.akh-btn--primary:hover,
.akh-btn--primary:focus {
    background: var(--akh-primary-hover) !important;
    color: var(--akh-text-dark) !important;
    border: none !important;
}

a.akh-btn--primary,
a.akh-btn--primary:hover,
a.akh-btn--primary:active {
    color: var(--akh-text-dark) !important;
    text-decoration: none !important;
}

.akh-btn--primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Secondary = szurke (Vissza/Megse gomb) */
.akh-btn--secondary {
    background: var(--akh-secondary) !important;
    color: var(--akh-white) !important;
    border: none !important;
}

.akh-btn--secondary:hover,
.akh-btn--secondary:focus {
    background: var(--akh-secondary-hover) !important;
    color: var(--akh-white) !important;
    border: none !important;
}

.akh-btn--small {
    padding: 5px 30px;
    font-size: 0.8rem;
}

.akh-btn--large {
    padding: 0.75rem 2rem;
    font-size: 1rem;
}

.akh-btn--full {
    width: 100%;
    white-space: normal;
}

.akh-btn--link {
    background: none !important;
    color: var(--akh-secondary) !important;
    padding: 0;
    font-weight: 400;
    border: none !important;
}

.akh-btn--link:hover,
.akh-btn--link:focus {
    text-decoration: underline;
    background: none !important;
    color: var(--akh-secondary) !important;
    border: none !important;
}

/* ==========================================================================
   6. Form Elements
   ========================================================================== */

.akh-form-group {
    margin-bottom: 1rem;
}

.akh-form-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 0;
}

.akh-form-row--2col > * {
    flex: 1;
}

.akh-label {
    display: block;
    margin-bottom: 0.375rem;
    font-weight: 500;
    color: var(--akh-text);
    font-size: 0.9rem;
}

.akh-label--required::after {
    content: " *";
    color: var(--akh-danger);
}

.akh-input,
.akh-select {
    width: 100%;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    line-height: 1.5;
    color: var(--akh-text);
    background: var(--akh-white);
    border: 1px solid var(--akh-input-border);
    border-radius: var(--akh-radius);
    transition: border-color var(--akh-transition), box-shadow var(--akh-transition);
    box-sizing: border-box;
    appearance: auto;
}

.akh-input:focus,
.akh-select:focus {
    outline: none;
    border-color: var(--akh-primary);
    box-shadow: 0 0 0 0.25rem rgba(255, 213, 8, 0.25);
}

/* Rendszam mezo */
#akh-plate-number {
    text-transform: uppercase;
}

.akh-platenumber-text {
    font-size: 11px;
    color: var(--akh-text-muted);
}

/* ==========================================================================
   7. Service Selection (checkout-option-border pattern)
   ========================================================================== */

.akh-radio-group {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.akh-radio-option {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.5rem;
    background: var(--akh-white);
    border: 2px solid transparent;
    border-radius: var(--akh-radius-option);
    cursor: pointer;
    transition: border-color var(--akh-transition);
}

/* Kivalasztott allapot - sarga keret */
.akh-radio-option:has(input[type="radio"]:checked) {
    border: 2px solid var(--akh-primary);
}

.akh-radio-option input[type="radio"],
.akh-checkout input[type="radio"] {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    margin-top: 0.3rem;
    flex-shrink: 0;
    border: 2px solid var(--akh-input-border) !important;
    border-radius: 50%;
    background: var(--akh-white);
    outline: none !important;
    box-shadow: none !important;
    cursor: pointer;
}

.akh-radio-option input[type="radio"]:checked,
.akh-checkout input[type="radio"]:checked {
    border-color: var(--akh-primary) !important;
    background: var(--akh-primary);
    box-shadow: inset 0 0 0 3px var(--akh-white) !important;
}

/* Disabled radio option (pl. change_guarded amig nincs guarded gumi) */
.akh-radio-option--disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

.akh-radio-content {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.akh-radio-content strong {
    font-weight: bold;
    color: var(--akh-text);
}

.akh-radio-content small {
    color: var(--akh-text-muted);
    font-size: 0.85rem;
    line-height: 1.3;
    font-weight: normal;
}

/* ==========================================================================
   8. Modal
   ========================================================================== */

/* --- 8.1 Container + Overlay --- */

.akh-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: visibility 0s linear 0.4s, opacity 0.3s ease;
}

.akh-modal.is-active {
    visibility: visible;
    opacity: 1;
    transition-delay: 0s;
}

.akh-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

/* --- 8.2 Modal content (desktop: jobbrol beuszik) --- */

.akh-modal-container {
    position: relative;
    width: 100%;
    max-width: 520px;
    max-height: 92dvh;
    background: var(--akh-white);
    border-radius: var(--akh-radius);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 1;
    /* Desktop animacio: jobbrol */
    transform: translateX(100%);
    transition: transform 0.4s ease-out;
}

.akh-modal.is-active .akh-modal-container {
    transform: translateX(0);
}

/* --- 8.3 Bezaro gomb (action-div pattern) --- */

.akh-modal-close {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 10px;
    right: 15px;
    width: 20px;
    height: 20px;
    padding: 0;
    background-color: var(--akh-close-bg) !important;
    border: none !important;
    border-radius: var(--akh-radius-close);
    opacity: 1;
    font-size: 11px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
    color: var(--akh-text) !important;
}

.akh-modal-close:hover,
.akh-modal-close:focus {
    background-color: var(--akh-close-bg-hover) !important;
    color: var(--akh-text) !important;
    border: none !important;
}

.akh-modal-close span {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- 8.4 Header --- */

.akh-modal-header {
    padding: 1rem 1rem 0.75rem;
}

.akh-modal-title {
    margin: 0 0 0.75rem;
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--akh-text);
}

/* Step indicators */
.akh-modal-steps {
    display: flex;
    gap: 0.5rem;
}

.akh-step {
    flex: 1;
    padding: 0.35rem 0.5rem;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 500;
    background: var(--akh-panel-bg);
    border-radius: var(--akh-radius);
    color: var(--akh-text-muted);
    transition: all var(--akh-transition);
}

.akh-step.active {
    background: var(--akh-primary);
    color: var(--akh-text-dark);
    font-weight: 600;
}

.akh-step.completed {
    background: var(--akh-green);
    color: var(--akh-text-dark);
}

/* --- 8.5 Body --- */

.akh-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    position: relative;
}

/* --- 8.6 Loader overlay --- */

.akh-modal-loader {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.7);
    z-index: 1050;
}

.akh-modal.is-loading .akh-modal-loader {
    display: flex;
}

/* --- 8.7 Footer / Navigacio (delivery-next-row pattern) --- */

.akh-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background-color: var(--akh-white);
    margin-top: 0.25rem;
}

/* Vissza gomb balra */
.akh-modal-footer #akh-prev-step {
    margin-right: auto;
}

/* Desktop: gombok 25% szelesseg */
.akh-modal-footer .akh-btn {
    width: 25%;
    min-width: 80px;
}

/* ==========================================================================
   9. Step 2 - Sites in Modal
   ========================================================================== */

.akh-sites-selection {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Terkep kontener */
.akh-modal-map {
    height: 200px;
    border-radius: var(--akh-radius-site);
    background: var(--akh-panel-bg);
}

/* Teljes terkep */
.akh-modal-map.h-full {
    height: 400px;
}

/* Kereso mezo - sarga jobb border */
#akh-site-search {
    border-right: 8px solid var(--akh-primary);
}

.akh-modal-sites-list {
    max-height: 300px;
    overflow-y: auto;
}

/* --- Site kartya (.site pattern) --- */

.akh-site-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: solid 1px var(--akh-border);
    border-radius: var(--akh-radius-site);
    margin-bottom: 6px;
    padding: 4px 8px;
    transition: all var(--akh-transition);
}

.akh-site-item:hover {
    background: var(--akh-panel-bg);
}

.akh-site-item.selected {
    background: rgba(127, 243, 112, 0.08);
    border-color: var(--akh-green);
}

.akh-site-item-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
    flex: 1;
}

.akh-site-item-name {
    font-weight: bold;
    font-size: 15px;
    color: var(--akh-text-site);
    margin-bottom: 1px;
}

.akh-site-item-places {
    font-size: 0.75rem;
    color: var(--akh-text-muted);
}

/* "Valaszt" gomb */
.akh-site-select-btn {
    padding: 5px 30px;
    font-size: 0.8rem;
    font-weight: 500;
    background: var(--akh-primary) !important;
    color: var(--akh-text-dark) !important;
    border: none !important;
    border-radius: var(--akh-radius);
    cursor: pointer;
    transition: background-color var(--akh-transition), color var(--akh-transition);
    flex-shrink: 0;
    margin-left: 8px;
}

.akh-site-select-btn:hover,
.akh-site-select-btn:focus {
    background: var(--akh-primary-hover) !important;
    color: var(--akh-text-dark) !important;
    border: none !important;
}

/* Elso szabad datum */
.first-date {
    color: var(--akh-first-date) !important;
}

/* Kupon badge */
.site-coupon {
    border-radius: 5px;
    background-color: var(--akh-coupon-bg);
    padding: 1px 5px;
    display: inline-block;
}

.site-coupon span {
    color: var(--akh-white);
}

/* Nyitvatartas */
.opening-weekday {
    display: flex;
    flex-direction: column;
}

.opening-weekend {
    display: flex;
    flex-direction: column;
    font-weight: bold;
}

/* Site info popup (terkep info window) */
.site-info {
    max-width: 432px;
}

.site-info img {
    object-fit: cover;
}

/* ==========================================================================
   10. Step 3 - Date Picker
   ========================================================================== */

/* --- Wrapper (szurke hatteru sav) --- */

.akh-date-picker {
    display: flex;
    align-items: center;
    white-space: nowrap;
    background: var(--akh-panel-bg);
    position: relative;
    border-radius: var(--akh-radius-slot);
    margin-bottom: 1rem;
}

/* --- Datum lista (horizontalisan gorgetheto) --- */

.akh-date-list {
    display: flex;
    gap: 6px;
    width: 100%;
    cursor: grab;
    padding: 0 40px;
    overflow: auto;
    min-height: 76px;
    align-items: center;
}

/* Scrollbar rejtese */
.akh-date-list::-webkit-scrollbar {
    display: none;
}

.akh-date-list {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* --- Datum elem --- */

.akh-date-item {
    width: 105px !important;
    user-select: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px;
    border-radius: var(--akh-radius-slot);
    cursor: pointer;
    flex: 0 0 30%;
    transition: all var(--akh-transition);
}

.akh-date-item:hover {
    background: rgba(255, 255, 255, 0.6);
}

/* Kivalasztott datum - feher kartya kiemelkedes */
.akh-date-item.selected {
    background: var(--akh-white);
    color: #000000;
    font-weight: bold;
    box-shadow: var(--akh-shadow);
}

.akh-date-month {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--akh-text-muted);
    line-height: 1.3;
}

.akh-date-item.selected .akh-date-month {
    color: var(--akh-text);
}

.akh-date-day {
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
}

.akh-date-weekday {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--akh-text-muted);
    line-height: 1.3;
}

.akh-date-item.selected .akh-date-weekday {
    color: var(--akh-text);
}

/* --- Navigacios gombok (kor alaku, lebegtett) --- */

.akh-date-nav {
    user-select: none;
    background: var(--akh-white) !important;
    border: none !important;
    color: #000000 !important;
    font-size: 15px;
    line-height: 14px;
    cursor: pointer;
    position: absolute;
    width: 30px;
    height: 30px;
    border-radius: var(--akh-radius-nav);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--akh-shadow);
    margin: 0 4px;
    z-index: 2;
    padding: 0;
}

.akh-date-nav:hover,
.akh-date-nav:focus {
    background: var(--akh-panel-bg) !important;
    color: #000000 !important;
    border: none !important;
}

.akh-date-nav--prev {
    left: 0;
}

.akh-date-nav--next {
    right: 0;
}

/* ==========================================================================
   11. Step 3 - Booking Summary (#datebooking-datas pattern)
   ========================================================================== */

.akh-booking-summary {
    border: 1px solid var(--akh-border);
    border-radius: var(--akh-radius);
    padding: 0.5rem 0.75rem;
    margin-bottom: 1rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.akh-summary-item {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--akh-text);
}

.akh-summary-divider {
    color: var(--akh-radio-border);
}

/* ==========================================================================
   12. Step 3 - Timeslots (slot tabla)
   ========================================================================== */

/* Tabla kontener */
.akh-timeslots {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 8px;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

/* --- Slot cella (slot-select pattern) --- */

.akh-slot {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 0.5rem;
    cursor: pointer;
    border: 2px solid transparent;
    background-color: var(--akh-panel-bg);
    border-radius: var(--akh-radius-slot);
    transition: all var(--akh-transition);
}

.akh-slot:hover {
    background-color: #e8e9ed;
}

/* Rejtett radio */
.akh-slot input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* Kivalasztott slot - zold keret, feher hatter */
.akh-slot:has(input[type="radio"]:checked) {
    border: 2px solid var(--akh-green);
    background-color: var(--akh-white);
}

/* Slot ido szoveg */
.akh-slot-time {
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    color: var(--akh-text);
}

/* Nincs elerheto idopont */
.akh-no-slots {
    text-align: center;
    padding: 2rem;
    color: var(--akh-text-muted);
}

.akh-no-slots p {
    margin: 0.25rem 0;
}

/* ==========================================================================
   13. Sites List (front page)
   ========================================================================== */

.akh-front-page {
    background: var(--akh-body-gray);
    min-height: 100vh;
}

.akh-sites-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 2rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

/* Override WordPress theme content width restrictions */
.akh-sites-list,
.akh-front-page {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box;
}

/* Twenty Twenty-Five and block themes: break out of narrow content area */
.wp-site-blocks .akh-sites-list,
.entry-content .akh-sites-list,
.page-content .akh-sites-list,
.is-layout-constrained > .akh-sites-list {
    max-width: none !important;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding-left: 2rem;
    padding-right: 2rem;
}

.akh-sites-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.akh-site-card {
    background: var(--akh-white);
    border: 2px solid transparent;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: row;
}

.akh-site-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: var(--akh-primary);
}

.akh-site-card__icon {
    order: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 140px;
    min-width: 140px;
    background-color: #F5F5F5;
    color: var(--akh-primary);
    flex-shrink: 0;
}

.akh-site-card__icon svg,
.akh-site-card__icon img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.akh-site-card__body {
    order: 1;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.akh-site-header {
    padding: 1rem 1rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 0.75rem;
}

.akh-site-name {
    margin: 0 0 0.5rem;
    font-size: 15px;
    font-weight: bold;
    color: var(--akh-text-site);
}

.akh-site-places {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0 1rem;
    margin-bottom: 0.75rem;
}

.akh-places-label {
    font-size: 0.8rem;
    color: var(--akh-text-muted);
    width: 100%;
}

.akh-place-badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    font-size: 0.75rem;
    background: var(--akh-panel-bg);
    border-radius: var(--akh-radius-site);
    color: var(--akh-secondary);
}

.akh-site-footer {
    margin-top: auto;
    padding: 0.75rem 1rem 1rem;
}

/* Foglalás gomb */
.akh-booking-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 0.5rem 1.25rem;
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--akh-text-dark) !important;
    background: var(--akh-primary) !important;
    border: none !important;
    border-radius: var(--akh-radius);
    cursor: pointer;
    transition: background-color var(--akh-transition), color var(--akh-transition);
}

.akh-booking-btn:hover,
.akh-booking-btn:focus {
    background: var(--akh-primary-hover) !important;
    color: var(--akh-text-dark) !important;
    border: none !important;
}

.akh-booking-btn--small {
    width: auto;
    padding: 5px 30px;
    font-size: 0.8rem;
}

/* ==========================================================================
   14. Checkout Page
   ========================================================================== */

.akh-checkout {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.akh-checkout-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 2rem;
    align-items: start;
}

.akh-section-title {
    margin: 0 0 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--akh-primary);
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--akh-text-dark);
}

/* Summary box */
.akh-summary-box {
    background: var(--akh-white);
    border: 1px solid var(--akh-border);
    border-radius: var(--akh-radius);
    padding: 1.5rem;
    position: sticky;
    top: 2rem;
    box-shadow: var(--akh-shadow);
}

.akh-summary-details {
    margin-bottom: 1rem;
}

.akh-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--akh-panel-bg);
}

.akh-summary-row:last-of-type {
    border-bottom: none;
}

.akh-summary-label {
    color: var(--akh-text-muted);
    font-size: 0.9rem;
}

.akh-summary-value {
    font-weight: 600;
    color: var(--akh-text);
}

.akh-divider {
    border: none;
    border-top: 1px solid var(--akh-border);
    margin: 1rem 0;
}

.akh-price-items {
    margin-bottom: 1rem;
}

.akh-price-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--akh-panel-bg);
}

.akh-price-item:last-child {
    border-bottom: none;
}

.akh-price-item-icon {
    width: 36px;
    height: 36px;
    object-fit: contain;
    flex-shrink: 0;
}

.akh-price-item-info {
    flex: 1;
    min-width: 0;
}

.akh-price-item-name {
    font-weight: 600;
    color: var(--akh-text);
    font-size: 0.9rem;
}

.akh-price-item-calc {
    color: var(--akh-text-muted);
    font-size: 0.8rem;
}

.akh-price-item-amount {
    font-weight: 700;
    color: var(--akh-text);
    white-space: nowrap;
    font-size: 0.95rem;
}

.akh-summary-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--akh-text-dark);
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   15. Thank You Page
   ========================================================================== */

.akh-thankyou {
    max-width: 600px;
    margin: 0 auto;
    padding: 3rem 1rem;
    text-align: center;
}

.akh-thankyou-header {
    margin-bottom: 2rem;
}

.akh-thankyou-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    font-size: 2.5rem;
    color: var(--akh-white);
    background: var(--akh-green);
    border-radius: 50%;
    margin-bottom: 1rem;
}

.akh-thankyou-title {
    margin: 0;
    font-size: 1.75rem;
    color: var(--akh-text-dark);
    font-weight: 700;
}

.akh-booking-id {
    font-size: 1.125rem;
    color: var(--akh-text-muted);
    margin-bottom: 2rem;
}

.akh-thankyou-details {
    background: var(--akh-panel-bg);
    border-radius: var(--akh-radius);
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: left;
}

.akh-detail-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--akh-border);
}

.akh-detail-row:last-child {
    border-bottom: none;
}

.akh-detail-label {
    color: var(--akh-text-muted);
}

.akh-detail-value {
    font-weight: 600;
    color: var(--akh-text);
}

.akh-thankyou-message {
    color: var(--akh-text-muted);
    margin-bottom: 2rem;
}

.akh-thankyou-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* ==========================================================================
   16. Map
   ========================================================================== */

.akh-map {
    width: 100%;
    border-radius: var(--akh-radius-site);
    background: var(--akh-panel-bg);
}

.akh-sites-map-container {
    margin-bottom: 2rem;
}

.akh-map-search {
    margin: 0.5rem 0;
}

.akh-search-input {
    width: 100%;
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    border: 1px solid var(--akh-input-border);
    border-right: 8px solid var(--akh-primary);
    border-radius: var(--akh-radius);
    box-sizing: border-box;
}

.akh-search-input:focus {
    outline: none;
    border-color: var(--akh-primary);
    border-right-color: var(--akh-primary);
}

/* Compact sites list (below map) */
.akh-sites-list--compact {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.akh-site-card--compact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid var(--akh-border);
    box-shadow: none;
}

.akh-site-card--compact:hover {
    transform: none;
    background: var(--akh-panel-bg);
    box-shadow: none;
}

.akh-site-card--compact .akh-site-name {
    margin: 0;
    font-size: 15px;
}

/* ==========================================================================
   17. Responsive: >=768px (Tablet+)
   ========================================================================== */

@media (min-width: 768px) {
    /* Date item: 5 elem lathato */
    .akh-date-item {
        flex: 0 0 20%;
    }
}

/* ==========================================================================
   18. Responsive: >=516px (Desktop modal specifics)
   ========================================================================== */

@media (min-width: 516px) {
    /* Modal footer: gombok 25% szeles, jobbra igazitva */
    .akh-modal-footer {
        justify-content: flex-end;
    }

    .akh-modal-footer .akh-btn {
        width: 25%;
    }
}

/* ==========================================================================
   19. Responsive: <=768px
   ========================================================================== */

@media (max-width: 768px) {
    .akh-checkout-grid {
        grid-template-columns: 1fr;
    }

    .akh-summary-box {
        position: static;
    }
}

/* ==========================================================================
   20. Responsive: <=600px (form row collapse)
   ========================================================================== */

@media (max-width: 600px) {
    .akh-form-row--2col {
        flex-direction: column;
        gap: 0;
    }
}

/* ==========================================================================
   21. Responsive: <=582px (site kartya kupon)
   ========================================================================== */

@media (max-width: 767px) {
    .akh-site-card__icon {
        width: 100px;
        min-width: 100px;
    }

    .akh-site-card__icon svg,
    .akh-site-card__icon img {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 582px) {
    .akh-sites-list {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem;
    }

    /* Kupon: desktop headerben rejtett → info sorban megjelenik */
    .site .body .info .coupon-container {
        display: flex !important;
    }
}

/* ==========================================================================
   22. Responsive: <=515px (Mobil modal)
   ========================================================================== */

@media (max-width: 515px) {
    /* --- Modal alulrol jon fel --- */
    .akh-modal-container {
        max-width: 100%;
        max-height: none;
        height: auto;
        border-radius: 0.375rem 0.375rem 0 0;
        min-height: calc(100dvh - 56px);
        /* Mobil animacio: alulrol */
        transform: translateY(100%);
        transition: transform 0.4s ease-out;
    }

    .akh-modal.is-active .akh-modal-container {
        transform: translateY(0);
    }

    /* Modal dialog pozicio */
    .akh-modal {
        align-items: flex-end;
    }

    /* Body padding a fixed also gombsor miatt */
    .akh-modal-body {
        padding-bottom: 80px;
    }

    /* --- Fixed also gombsor --- */
    .akh-modal-footer {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 14px;
        z-index: 10;
        background-color: var(--akh-white);
        box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.08);
    }

    /* Gombok 100% szeles */
    .akh-modal-footer .akh-btn {
        width: 100%;
    }

    /* Utolso sor extra margin */
    .akh-datebooking-last-row {
        margin-bottom: 61px;
    }
}

/* ==========================================================================
   23. Responsive: <=425px (Kis mobil)
   ========================================================================== */

@media (max-width: 425px) {
    /* Site nev: kisebb, csonkitott */
    .akh-site-item-name {
        font-size: 13px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 180px;
    }

    /* Site cim/payment: kisebb */
    .akh-site-item-places {
        font-size: 12px;
    }

    /* First-date: rejtett */
    .akh-site-item .first-date {
        display: none;
    }

    /* Slot racs: szukebb cellak */
    .akh-timeslots {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
        gap: 6px;
    }

    /* Checkout kisebb padding */
    .akh-checkout {
        padding: 1rem 0.75rem;
    }
}
