/* Screen-specific presentation. Existing IDs, states, inline visibility and
   JavaScript-generated content remain the source of functional behavior. */

/* Home: existing hotel imagery and service icons become a consistent grid. */
.guest-screen-index .dz-list.style-2 .categore-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: 0;
}
.guest-screen-index .dz-list.style-2 .categore-list > li { width: auto; padding: 0; margin: 0; border: 0; min-width: 0; }
.guest-screen-index .categore-box.box-lg {
    min-height: 182px;
    height: 100%;
    border-radius: 22px;
    border: 1px solid rgb(255 255 255 / 30%);
    box-shadow: var(--guest-shadow);
    background-position: center;
    padding: 20px 12px;
    gap: 14px;
}
.guest-screen-index .categore-box::after {
    background: linear-gradient(180deg, rgb(13 35 26 / 2%), rgb(13 35 26 / 28%));
    pointer-events: none;
}
.guest-screen-index .categore-box img { width: 68px; height: 68px; object-fit: contain; }
.guest-screen-index .categore-box h6 {
    border-radius: 0;
    background-color: rgb(21 48 37 / 78%);
    font-size: 14px;
    line-height: 1.5;
    font-weight: 500;
    padding: 9px 12px;
    opacity: 1;
    max-width: 100%;
}
/* Raised service buttons: depth without changing their size or grid. */
.guest-screen-index .categore-box.box-lg {
    box-shadow:
        inset 0 2px 0 rgb(255 255 255 / 70%),
        inset 0 -3px 0 rgb(24 51 40 / 8%),
        0 6px 0 rgb(40 75 55 / 24%),
        0 12px 22px rgb(24 51 40 / 16%);
    transition: box-shadow .16s ease;
    touch-action: manipulation;
    -webkit-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    -webkit-touch-callout: none;
}
@media (hover: hover) and (pointer: fine) {
    .guest-screen-index .categore-box.box-lg:hover {
        box-shadow:
            inset 0 2px 0 rgb(255 255 255 / 75%),
            inset 0 -3px 0 rgb(24 51 40 / 8%),
            0 8px 0 rgb(40 75 55 / 24%),
            0 16px 26px rgb(24 51 40 / 18%);
    }
}
.guest-screen-index .categore-box.box-lg:active {
    box-shadow:
        inset 0 1px 2px rgb(24 51 40 / 12%),
        0 2px 0 rgb(40 75 55 / 24%),
        0 5px 10px rgb(24 51 40 / 12%);
}
@media (prefers-reduced-motion: reduce) {
    .guest-screen-index .categore-box.box-lg { transition: none; }
}

/* Decorative images must not start a native drag during a long press. */
.guest-screen-index .categore-box.box-lg img {
    -webkit-user-drag: none;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}
/* Product menus, including dynamically initialized quantity steppers. */
.guest-ui .default-tab.style-1 .nav-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 8px;
    padding: 6px;
    margin: 0 0 20px;
    border: 1px solid var(--guest-line);
    background: var(--guest-soft);
    border-radius: 16px;
    scrollbar-width: thin;
}
.guest-ui .default-tab.style-1 .nav-tabs .nav-item { flex-shrink: 0; margin: 0; padding: 0; }
.guest-ui .default-tab.style-1 .nav-tabs .nav-item .nav-link {
    min-height: 46px;
    padding: 12px 18px;
    border: 0;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--guest-muted);
    white-space: nowrap;
}
.guest-ui .default-tab.style-1 .nav-tabs .nav-item .nav-link.active {
    color: #fff;
    background: var(--guest-brand);
    box-shadow: 0 3px 10px rgb(24 51 40 / 10%);
}
.guest-ui .item-list.style-2 > ul > li {
    padding: 16px;
    margin: 0 0 14px;
    border: 1px solid var(--guest-line);
    border-radius: 18px;
    background-color: var(--guest-surface);
    box-shadow: var(--guest-shadow);
}
.guest-ui .item-list.style-2 .item-content { padding: 0; gap: 16px; }
.guest-ui .item-list.style-2 .item-content .item-media {
    width: 80px;
    min-width: 80px;
    height: 88px;
    margin: 0;
}
.guest-ui .item-list.style-2 .item-media img { width: 100%; height: 100%; object-fit: cover; border-radius: 14px; }
.guest-ui .item-list.style-2 .item-inner { min-width: 0; }
.guest-ui .item-list.style-2 .item-title { font-size: 15px; line-height: 1.5; }
.guest-ui .item-list.style-2 .item-title a { color: var(--guest-ink); }
.guest-ui .item-list.style-2 .item-content .item-inner .item-footer { flex-wrap: wrap; gap: 12px; margin-bottom: 0; }
.guest-ui .item-footer > .d-flex { flex-wrap: wrap; gap: 6px; }
.guest-ui .dz-stepper {
    border: 1px solid var(--guest-line);
    border-radius: 12px;
    background: var(--guest-soft);
    min-width: 132px;
}
.guest-ui .dz-stepper .bootstrap-touchspin { width: 132px; }
.guest-ui .dz-stepper .btn { min-width: 44px; min-height: 44px; padding: 8px; border-radius: 10px; font-size: 18px; }
.guest-ui .dz-stepper input { height: 44px; font-size: 16px; color: var(--guest-ink); background: transparent; padding: 6px; }
.guest-screen-restaurantmenuinfo .default-tab > h3 { margin: 24px 0 16px !important; color: var(--guest-ink) !important; }

/* Orders and account summaries retain all existing item and currency content. */
.guest-ui:is(.guest-screen-ordercheck, .guest-screen-barordercheck, .guest-screen-roomordercheck, .guest-screen-hesabim) .p-2 > li {
    padding: 18px;
    border: 1px solid var(--guest-line);
    border-radius: 18px;
    background: var(--guest-surface);
    box-shadow: var(--guest-shadow);
}
.guest-ui:is(.guest-screen-ordercheck, .guest-screen-barordercheck, .guest-screen-roomordercheck) #secimler {
    color: var(--guest-ink) !important;
    font-size: 24px;
    margin-bottom: 24px;
}
.guest-ui #aciklamaLabel { color: var(--guest-muted); font-size: 14px; font-weight: 500; }
.guest-ui:is(.guest-screen-barordercheck, .guest-screen-roomordercheck) .item-list-2 {
    padding: 18px 20px;
    margin-bottom: 24px;
    border: 1px solid var(--guest-line);
    border-radius: 16px;
    background: var(--guest-soft);
}
.guest-screen-hesabim #tbody .text-soft { display: inline-block; font-size: 18px; margin-top: 6px; font-weight: 600; font-variant-numeric: tabular-nums; }

/* Reservation steps and informational screens. */
.guest-ui:is(.guest-screen-restaurantpersons, .guest-screen-restaurantdate) .card-title {
    color: var(--guest-ink) !important;
    text-align: start !important;
    font-size: 22px;
}
.guest-screen-restaurantpersons form > .row { align-items: center; border-bottom: 1px solid var(--guest-line); padding: 14px 0; }
.guest-screen-restaurantpersons form > .row h5 { font-size: 15px; line-height: 1.5; }
.guest-screen-restaurantpersons .col-8 .input-group { justify-content: flex-end; }
.guest-screen-restaurantdate :is(#past, #future) { min-width: 44px; min-height: 52px; background: var(--guest-soft); }
.guest-screen-restaurantdate :is(#past, #future) img { max-width: 40px; }
.guest-screen-restaurantdate #tarih { padding-left: 8px; padding-right: 8px; text-align: center; }
.guest-screen-restauranttime #saatSec { color: var(--guest-ink) !important; margin-bottom: 22px; }
.guest-screen-restauranttime .radio.circle-radio.style-1 { flex-wrap: wrap; gap: 12px; overflow: visible; padding: 6px 0 18px; }
.guest-screen-restauranttime .radio-label {
    border: 1px solid var(--guest-line);
    border-radius: 14px;
    padding: 14px 18px 14px 48px;
    margin: 0;
    min-height: 54px;
    background: var(--guest-surface);
    color: var(--guest-ink);
    font-size: 16px !important;
}
.guest-screen-restauranttime .radio .checkmark { top: 14px !important; left: 14px; width: 24px !important; height: 24px !important; }
.guest-screen-restauranttime .radio-label:has(input:checked) { background: var(--guest-soft); border-color: var(--guest-brand); box-shadow: inset 0 0 0 1px var(--guest-brand); }
.guest-screen-restauranttime .radio-label:has(input:focus-visible) { outline: 3px solid var(--primary); outline-offset: 3px; }
.guest-ui .add-banner {
    min-height: 210px;
    background-size: cover;
    background-position: center;
    border-radius: 22px;
    overflow: hidden;
}
.guest-ui .add-banner .card-body {
    min-height: 210px;
    display: flex;
    align-items: flex-end;
    background: linear-gradient(180deg, transparent 20%, rgb(12 31 25 / 84%));
}
.guest-ui .add-banner .card-info { position: relative; max-width: 100%; }
.guest-ui .add-banner .card-body .card-info .title { color: #fff; font-size: 24px; line-height: 1.35; text-shadow: 0 1px 8px rgb(0 0 0 / 18%); }
.guest-ui .blog-detail .content-area {
    background-color: var(--guest-surface);
    border: 1px solid var(--guest-line);
    border-radius: 20px;
    padding: 22px;
    color: var(--guest-ink);
}
.guest-ui .blog-detail .content-area img { max-width: 100%; height: auto; border-radius: 12px; }
.guest-ui .blog-detail .content-area table { max-width: 100%; }
.guest-ui .blog-detail .media-box { border-radius: 22px; overflow: hidden; }
.guest-ui .blog-detail .media-box > img { width: 100%; max-height: 420px; object-fit: cover; }
.guest-ui .blog-detail .media-content h2 { color: #fff; text-shadow: 0 2px 12px #000; }
.guest-screen-restaurantreservations .alert { margin-bottom: 24px; }
.guest-screen-events .dz-timeline { margin-top: 24px; }
.guest-screen-events .timeline-item { padding: 18px; margin-bottom: 18px; border: 1px solid var(--guest-line); border-radius: 18px; background: var(--guest-surface); box-shadow: var(--guest-shadow); }
.guest-screen-events .timeline-item > a { display: block; }
.guest-screen-events .timeline-date { color: var(--guest-muted); font-size: 12px; margin-bottom: 8px; }
.guest-screen-events .timeline-tilte { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 16px; }
.guest-screen-events .timeline-content { color: var(--guest-muted); margin-bottom: 0; }

/* Service requests, notifications, conversations and preferences. */
.guest-ui:is(.guest-screen-ai, .guest-screen-chatbot) :is(#baslik, #secimler) { color: var(--guest-ink) !important; font-size: 24px; margin-bottom: 24px; }
.guest-ui:is(.guest-screen-ai, .guest-screen-chatbot) .message-content { padding: 0; margin-top: 24px; background: transparent; }
.guest-ui:is(.guest-screen-ai, .guest-screen-chatbot) #chat { padding: 0 4px; }
.guest-ui .chat-content .message-item .bubble { border-radius: 18px 18px 18px 5px; padding: 14px 18px; background: var(--guest-surface); border: 1px solid var(--guest-line); color: var(--guest-ink); font-size: 15px; line-height: 1.7; }
.guest-ui .chat-content.user .message-item .bubble { border-radius: 18px 18px 5px 18px; background: #6c8d76; }
.guest-screen-chatbot #micBtn { min-height: 54px; }
.guest-screen-istakip #talepKayitlar:not(:empty) { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--guest-line); }
.guest-screen-tercihler .notification { padding: 16px; margin-bottom: 12px; border: 1px solid var(--guest-line); border-radius: 18px; background: var(--guest-surface); box-shadow: var(--guest-shadow); gap: 12px; }
.guest-screen-tercihler .notification > .d-flex { min-width: 0; }
.guest-screen-tercihler .notification .media { flex-shrink: 0; width: 56px; height: 56px; }
.guest-screen-tercihler .notification img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px !important; }
.guest-screen-tercihler .title-bar { margin: 24px 0 16px; }
.guest-screen-tercihler > #submitButton { width: calc(100% - 40px); max-width: 904px; margin-left: auto; margin-right: auto; }
.guest-screen-loyalty .card { border-top: 4px solid #b8a370; }
.guest-screen-loyalty .summery-list > li:nth-child(n) { background: var(--guest-surface); }
.guest-screen-loyalty .order-quantity { background: var(--guest-soft); padding: 5px 12px; border-radius: 10px; font-weight: 600; white-space: nowrap; }
.guest-screen-orderresult .payment-confirm-wrapper { min-height: 65vh; height: auto; padding: 48px 24px; background: transparent; }
.guest-screen-orderresult .payment-box { width: 100%; max-width: 480px; padding: 40px 24px; border: 1px solid var(--guest-line); border-radius: 28px; background: var(--guest-surface); box-shadow: var(--guest-shadow); }
.guest-screen-orderresult .payment-box i { width: 88px; height: 88px; line-height: 88px; color: #2d7957; background: #e8f4eb; box-shadow: 0 0 0 12px rgb(100 162 115 / 7%); }
.guest-screen-orderresult #tamam { color: var(--guest-ink) !important; font-size: 22px; }
.guest-screen-orderresult .delivery-btn { min-height: 52px; width: 100%; color: #fff; background: var(--guest-brand); padding: 14px; }

/* Standalone login: visual treatment only, with the original form intact. */
body:has(.guest-screen-guestlogin) .page-wraper { max-width: 460px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; background: var(--guest-background); box-shadow: var(--guest-shadow); }
.guest-screen-guestlogin.page-content { padding: 0 0 32px; min-height: inherit; }
.guest-screen-guestlogin .banner-wrapper {
    margin: 0;
    background: radial-gradient(ellipse at top right, #527967, transparent 65%), #1e4338;
}
.guest-screen-guestlogin .banner-wrapper::before { content: ""; display: block; width: 56px; height: 56px; border: 1px solid #ffffff50; border-radius: 18px; margin: 0 auto 20px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e1d5ac' stroke-width='1.3'%3E%3Ccircle cx='8' cy='9' r='5'/%3E%3Cpath d='m12 12 8 8m-3-3 3-3m-6 0 3-3'/%3E%3C/svg%3E") center / 30px no-repeat; }
.guest-screen-guestlogin .banner-wrapper::after { content: ""; display: block; color: #f0ead8; font-size: 13px; font-weight: 500; letter-spacing: 4px; }
.guest-screen-guestlogin .account-box { margin-top: -32px; border-radius: 32px 32px 0 0; padding: 30px 24px; background: var(--guest-background); }
.guest-screen-guestlogin .account-box > .container { padding: 0; }
.guest-screen-guestlogin .account-area { min-height: 0; padding: 0; }
.guest-screen-guestlogin .account-area::before { content: ""; width: 36px; height: 4px; border-radius: 4px; background: var(--guest-line); align-self: center; margin: -15px 0 28px; }
.guest-screen-guestlogin .input-group-icon { margin-bottom: 20px !important; }
.guest-screen-guestlogin .form-control { min-height: 58px; }
.guest-screen-guestlogin #giris { min-height: 56px; margin-top: 10px; }
.guest-screen-guestlogin .text-danger { display: block; margin-top: 12px; padding: 12px; border-radius: 12px; background: #fff0ed; }

@media (min-width: 768px) {
    .guest-screen-index .dz-list.style-2 .categore-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
    .guest-screen-index .categore-box.box-lg { min-height: 208px; }
    .guest-screen-events .timeline-item { padding: 24px; }
    .guest-ui:is(.guest-screen-ai, .guest-screen-chatbot, .guest-screen-restaurantpersons) > .container { max-width: 720px; }
    body:has(.guest-screen-guestlogin) { padding: 36px 20px; }
    body:has(.guest-screen-guestlogin) .page-wraper { min-height: calc(100vh - 72px); min-height: calc(100dvh - 72px); border-radius: 32px; overflow: hidden; }
}
@media (max-width: 399px) {
    .guest-ui .item-list.style-2 > ul > li { padding: 12px; }
    .guest-ui .item-list.style-2 .item-content { gap: 12px; }
    .guest-ui .item-list.style-2 .item-content .item-media { width: 60px; min-width: 60px; height: 72px; }
    .guest-screen-index .dz-list.style-2 .categore-list { gap: 12px; }
    .guest-screen-index .categore-box.box-lg { min-height: 168px; }
    .guest-screen-events .timeline-tilte { align-items: flex-start; flex-wrap: wrap; }
    .guest-screen-restaurantpersons form > .row > .col-4 { width: 40%; }
    .guest-screen-restaurantpersons form > .row > .col-8 { width: 60%; }
    .guest-screen-restaurantdate .input-group-text { min-width: 32px; padding-left: 8px; padding-right: 8px; }
}

/* Suppress only the old decorative tab underline; Bootstrap state is intact. */
.guest-ui .default-tab.style-1 .nav-tabs .nav-item .nav-link::after { content: none; }
/* Keep configured hotel photos; unify only the plain icon-card surfaces. */
.guest-screen-index .categore-box:not([style*="background-image"]) { background-color: var(--guest-surface) !important; border-color: var(--guest-line); }
.guest-screen-index .categore-box:not([style*="background-image"])::after { background: none; }
.guest-screen-index .categore-box:not([style*="background-image"]) h6 { background: transparent; color: var(--guest-ink) !important; padding: 0; }
.guest-screen-index .categore-box:not([style*="background-image"]) img { background-color: #f0f4ee; padding: 8px; border-radius: 18px !important; }

/* Login: shorter banner and compact form while the mobile keyboard is in use. */
.guest-ui.guest-screen-guestlogin .banner-wrapper {
    padding: calc(20px + env(safe-area-inset-top, 0px)) 20px 28px;
}
.guest-ui.guest-screen-guestlogin .banner-wrapper::before { margin-bottom: 12px; }
.guest-ui.guest-screen-guestlogin .account-box {
    margin-top: -16px;
    padding: 24px 20px;
    border-radius: 24px 24px 0 0;
}
.guest-ui.guest-screen-guestlogin .account-area::before { margin: -10px 0 18px; }
.guest-ui.guest-screen-guestlogin .input-group-icon { margin-bottom: 12px !important; }
.guest-ui.guest-screen-guestlogin .form-control {
    min-height: 48px;
    font-size: 16px;
    padding-top: 10px;
    padding-bottom: 10px;
    scroll-margin-bottom: 100px;
}
.guest-ui.guest-screen-guestlogin #giris { min-height: 46px; padding: 10px 14px; }
@media (max-width: 767px), (pointer: coarse) {
    body:has(.guest-screen-guestlogin) { padding: 0; }
    body:has(.guest-screen-guestlogin) .page-wraper {
        min-height: 100dvh;
        overflow: visible;
    }
    .guest-ui.guest-screen-guestlogin.page-content {
        padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    }
    .guest-ui.guest-screen-guestlogin:has(.account-area input:focus) .banner-wrapper {
        padding-top: calc(6px + env(safe-area-inset-top, 0px));
        padding-bottom: 20px;
    }
    .guest-ui.guest-screen-guestlogin:has(.account-area input:focus) .banner-wrapper::before,
    .guest-ui.guest-screen-guestlogin:has(.account-area input:focus) .account-area::before {
        display: none;
    }
    .guest-ui.guest-screen-guestlogin:has(.account-area input:focus) .account-box { padding-top: 12px; padding-bottom: 12px; }
    .guest-ui.guest-screen-guestlogin:has(.account-area input:focus) .input-group-icon { margin-bottom: 8px !important; }
    .guest-ui.guest-screen-guestlogin .account-area form > .input-group:last-child {
        position: sticky;
        bottom: env(safe-area-inset-bottom, 0px);
        z-index: 4;
        background: var(--guest-background);
        padding-bottom: 4px;
    }
}

/* Date occupies the full row; the existing day controls stay on a compact row below. */
.guest-ui.guest-screen-restaurantdate form > .row:has(#tarih) {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-left: 0;
    margin-right: 0;
}
.guest-ui.guest-screen-restaurantdate form > .row:has(#tarih) > .col-8 {
    grid-column: 1 / -1;
    grid-row: 1;
    width: 100%;
    min-width: 0;
    padding: 0;
}
.guest-ui.guest-screen-restaurantdate form > .row:has(#tarih) > .col-2 {
    grid-row: 2;
    width: auto;
    justify-self: start;
}
.guest-ui.guest-screen-restaurantdate form > .row:has(#tarih) > .col-2:last-child { justify-self: end; }
.guest-ui.guest-screen-restaurantdate .col-8 .input-group { margin-bottom: 0 !important; flex-wrap: nowrap; }
.guest-ui.guest-screen-restaurantdate #tarih { flex: 1 1 0; min-width: 0; width: 100%; }
.guest-ui.guest-screen-restaurantdate :is(#past, #future) { min-height: 44px; width: 44px; padding: 4px; }
.guest-ui.guest-screen-restaurantdate :is(#past, #future) img { width: 28px; height: 28px; object-fit: contain; }
