/*
 * Public pages – consistent spacing, type and buttons (desktop + mobile).
 * Loaded in the public bundle after user.all.css / ir-responsive.css / ir-social.css.
 *
 *  1. list pages: title + "Esti aici" + toolbar (search · sort · pages)   (.half-heading2 / .half-pagination2)
 *  2. list items (.wide-speech-box …)
 *  3. buttons proportional to their text (.btn sizes)
 *  4. side panels (.panel-tab)
 *  5. phones
 */

/* ---------- 1. list page header ---------- */
#main .half-heading2, #main .two-col-holder > .half-heading { float: none; width: auto; margin: 0 0 8px; }
#main .half-heading2 h1, #main .half-heading2 h2, #main .half-heading h1, #main .half-heading h2 { font-size: 22px; line-height: 1.25; margin: 0 0 2px; padding: 0; }
#main .half-heading2 .question_heading { font-size: 13px; vertical-align: middle; margin-left: 6px; }
#main .breadcrumb, #main .half-heading2 .breadcrumb { width: auto; font-size: 13px; color: #5b4a40; }
#main .breadcrumb p, #main #fullpagewidth .breadcrumb p { margin: 0; padding: 4px 0 8px; line-height: 1.5; }

#main .half-pagination2, #main .two-col-holder > .pagination {
    float: none; width: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px;
    margin: 0 0 14px; text-align: left; font-size: 13px; color: #5f544d;
}
#main .half-pagination2 > br, #main .two-col-holder > .pagination > br { display: none; }
#main .half-pagination2 .page-holder, #main .two-col-holder > .pagination .page-holder { flex: 1 1 100%; margin: 0; }
#main .half-pagination2 .pager, #main .two-col-holder > .pagination .pager { float: none; }
#main .half-pagination2 .pages, #main .two-col-holder > .pagination .pages { display: flex; justify-content: flex-start; }
#main .half-pagination2 .ir-pagination, #main .two-col-holder > .pagination .ir-pagination { margin: 0; justify-content: flex-start; }

/* search box: input and button the same height, button as wide as its text */
#main .small-search-2 { float: none; display: flex; align-items: stretch; gap: 6px; margin: 0; padding: 0; font-size: 14px; flex: 1 1 280px; max-width: 440px; }
#main .small-search-2 > div, #main .small-search-2 > div.left { float: none; display: flex; margin: 0; padding: 0; }
#main .small-search-2 > div:first-child { flex: 1 1 auto; min-width: 0; }
#main .small-search-2 input.text-input { box-sizing: border-box; width: 100%; height: 36px; margin: 0; padding: 0 10px; border: 1px solid #c3ced8; border-radius: 6px;
    background: #fff; color: #333; font-size: 14px; line-height: normal; }
#main .small-search-2 input.text-input:focus { border-color: #1b6aa5; outline: 2px solid rgba(27, 106, 165, .2); }
#main .small-search-2 .btn, #main .half-pagination2 > .btn { display: inline-flex; align-items: center; justify-content: center; height: 36px; box-sizing: border-box;
    padding: 0 16px; font-size: 13px; line-height: 1; letter-spacing: .4px; border-radius: 6px; white-space: nowrap; }
#main .half-pagination2 .sorter, #main .two-col-holder > .sorter { float: none; padding: 0; font-size: 13px; line-height: 1.6; }
#main .half-pagination2 .sorter p { margin: 0; padding: 0; }
#main .sorter p span.label-sort { padding-right: 8px; }

/* ---------- 2. list items ---------- */
#main .two-col-holder .wide-speech-box { width: auto; margin: 0 0 12px; display: flex; flex-wrap: wrap; align-items: flex-start; }
#main .two-col-holder .wide-speech-box > .clear { display: none; }
#main .two-col-holder .wide-speech-box > .member-left-speech-box,
#main .two-col-holder .wide-speech-box > .member-left-speech-box2 { flex: 0 0 79px; float: none; }
#main .two-col-holder .wide-speech-box > .wide-speech-box-white { float: none; flex: 1 1 0; width: auto; min-width: 0; margin: 0; padding: 14px 16px; }
#main .two-col-holder .wide-speech-box > div[id^="recommend"] { flex-basis: 100%; }
#main .wide-speech-box-white h3 { font-size: 16px; line-height: 1.35; margin: 0 0 4px; }
#main .wide-speech-box-white h3 span { font-size: 13px; font-weight: normal; color: #666; margin-left: 4px; }
#main .wide-speech-box-white p { font-size: 13px; line-height: 1.55; margin: 0 0 4px; }
#main .wide-speech-box-white p.guide-comments { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin: 10px 0 0; padding: 10px 0 0; border-top: 1px solid #eef1f4; }
#main .wide-speech-box-white p.guide-comments a { margin: 0; }
#main .wide-speech-box-white p span.question-guide-longer, #main .wide-speech-box-white p span.question-guide-longest { padding: 0; }
#main .wide-speech-box-white p.guide-comments span.plus { margin: 0; }
#main .member-left-speech-box p, #main .member-left-speech-box2 p { font-size: 12px; line-height: 1.4; margin-top: 4px; }
#main .member-left-speech-box img.member-thumb-b, #main .member-left-speech-box2 img.member-thumb-b { max-width: 79px; height: auto; }
#main .product-speech-box { margin: 0 0 12px; }

/* ---------- 3. buttons: padding / size proportional to the text ---------- */
.btn { letter-spacing: .4px; }
.btn.btn-mini, .btn.btn-micro { padding: 6px 12px; font-size: 12px; line-height: 1.3; }
.btn.btn-small { padding: 8px 16px; font-size: 13px; line-height: 1.3; }
.btn.btn-large { padding: 13px 26px; font-size: 15px; line-height: 1.3; }
.btn-wrapper { margin: 12px 0; }

/* ---------- 4. side panels ---------- */
.panel-tab-top .h2-holder h2 { line-height: 1.25; }

/* ---------- 5. phones ---------- */
@media (max-width: 767px) {
    #main .half-pagination2, #main .two-col-holder > .pagination { gap: 10px; }
    #main .small-search-2 { flex: 1 1 100%; max-width: none; }
    #main .small-search-2 input.text-input, #main .small-search-2 .btn, #main .half-pagination2 > .btn { height: 42px; font-size: 15px !important; }
    #main .half-pagination2 .sorter { flex: 1 1 100%; }

    /* list items: thumbnail + counters as one row above the card */
    #main .two-col-holder .wide-speech-box { display: block; }
    #main .two-col-holder .wide-speech-box > .member-left-speech-box,
    #main .two-col-holder .wide-speech-box > .member-left-speech-box2 { display: flex !important; flex-wrap: wrap; align-items: center; gap: 4px 10px; width: auto !important;
        padding: 10px 12px 0 !important; margin: 0 !important; background: #fff !important; text-align: left !important; }
    #main .two-col-holder .wide-speech-box > .member-left-speech-box > a, #main .two-col-holder .wide-speech-box > .member-left-speech-box2 > a { flex: 0 0 auto; }
    #main .two-col-holder .wide-speech-box > .member-left-speech-box img.member-thumb-b,
    #main .two-col-holder .wide-speech-box > .member-left-speech-box2 img.member-thumb-b { width: 56px !important; height: 56px !important; object-fit: cover; margin: 0; }
    #main .two-col-holder .wide-speech-box > .member-left-speech-box img:not(.member-thumb-b), #main .two-col-holder .wide-speech-box > .member-left-speech-box2 img:not(.member-thumb-b) { max-width: 160px; height: auto; }
    #main .two-col-holder .wide-speech-box > .member-left-speech-box p, #main .two-col-holder .wide-speech-box > .member-left-speech-box2 p { flex: 1 1 160px; min-width: 0; text-align: left !important; font-size: 13px !important; margin: 0 !important; }
    #main .two-col-holder .wide-speech-box > .member-left-speech-box p br, #main .two-col-holder .wide-speech-box > .member-left-speech-box2 p br { display: none; }
    #main .two-col-holder .wide-speech-box > .member-left-speech-box p > *, #main .two-col-holder .wide-speech-box > .member-left-speech-box2 p > * { margin-right: 10px; }
    #main .two-col-holder .wide-speech-box > .wide-speech-box-white { padding: 10px 12px 12px !important; }
    #main .wide-speech-box-white h3 { font-size: 17px !important; }
    #main .wide-speech-box-white p { font-size: 15px !important; }
    #main .wide-speech-box-white p.guide-comments { gap: 8px 16px; }
    #main .wide-speech-box-white p.guide-comments a { font-size: 14px; }
    #main .product-speech-box > .member-left-speech-box2 { display: none !important; }
    #main .product-speech-box > div { padding: 0 !important; }

    /* the 160x600 skyscraper and empty spacers do not belong on a phone */
    .ir-ad-skyscraper { display: none !important; }

    /* side panel tabs: plain headings instead of a fixed-width tab picture */
    .panel-tab-top, .panel-tab-top .h2-holder { width: auto !important; height: auto !important; min-height: 0 !important; background: none !important; float: none !important; }
    .panel-tab-top { background: #fff !important; border-radius: 10px 10px 0 0; border-bottom: 2px solid #1b6aa5 !important; padding: 10px 14px 8px !important; margin: 0 !important; }
    #main .panel-tab-top .h2-holder, #main .panel-tab-top h2 { float: none !important; height: auto !important; width: auto !important; }
    .panel-tab-top .h2-holder h2 { font-size: 18px !important; line-height: 1.3 !important; margin: 0 !important; padding: 0 !important; position: static !important; background: none !important; }

    /* page menus with many items collapse into "Alte pagini" (js/ir-stack.js adds .ir-menu-fold) */
    #thin-menu-col details.ir-menu-fold { margin: 0 0 10px; border: 1px solid #c9d3db; border-radius: 10px; background: #fff; }
    #thin-menu-col details.ir-menu-fold > summary { padding: 10px 14px; font-weight: 600; font-size: 15px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
    #thin-menu-col details.ir-menu-fold > summary::after { content: "▾"; color: #1b6aa5; }
    #thin-menu-col details.ir-menu-fold[open] > summary::after { content: "▴"; }
    #thin-menu-col details.ir-menu-fold > ul { padding: 0 10px 10px !important; }

    /* login boxes (user_login, segnala_problema…): fixed heights made the texts overlap */
    .login-blue-white, .login-blue-white-content { height: auto !important; }
    .login-blue-white-content { padding: 14px 16px !important; }
    .login-blue-white table.login, .login-blue-white table.login > tbody, .login-blue-white table.login tr, .login-blue-white table.login td { display: block; width: auto !important; text-align: left !important; padding-left: 0 !important; padding-right: 0 !important; }
    #main table.login { padding-top: 0; }
    .login-blue-white table.login td.label-login { padding: 8px 0 2px !important; }
    .login-blue-white .input230, .login-blue-white input[type=text], .login-blue-white input[type=password] { width: 100% !important; height: 42px !important; box-sizing: border-box; padding: 0 10px !important; border-radius: 6px; font-size: 16px; }
    .login-blue-white tr td.forgotten { padding-top: 6px !important; }
    #main .login-blue-white h3 { padding: 6px 16px 10px !important; font-size: 16px !important; }
    .login-holder .column-483-right { margin: 14px 0 0 !important; }
    .login-blue-white-bottom { display: none; }

    /* footer had a fixed 127px height: on phones its links ran under the SEO strip */
    #footer { height: auto !important; padding-bottom: 16px !important; background-size: cover; }
    #footer li { float: none !important; display: inline-block; }

    /* sub-pages without a logo (articles): heading, date and "Esti aici" use the full width */
    #details-place .leftDetails:not(:has(> .left90)) { display: block !important; }
    #details-place .leftDetails:not(:has(> .left90)) .breadcrumb { width: auto !important; float: none !important; }

    /* "how to get here" form under the map */
    .area_restaurants .directions { padding: 12px !important; }
    .area_restaurants .directions label, .area_restaurants .directions input.signText { display: block; width: 100% !important; box-sizing: border-box; margin: 4px 0 !important; }
    .area_restaurants .directions input.signText { height: 42px; padding: 0 10px; border: 1px solid #c3ced8; border-radius: 6px; font-size: 16px; }
    .area_restaurants .directions .btn { margin-top: 8px; width: auto; }

    /* owner sign-up / suggest pages (legacy green masthead) */
    #masthead { height: auto !important; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 10px !important; background-size: cover !important; }
    #masthead > * { position: static !important; float: none !important; margin: 0 !important; }
    #masthead h1#public_facing { height: auto !important; flex: 1 1 auto; }
    #masthead > p { font-size: 13px; order: 3; flex: 1 1 100%; }
    #masthead ul#nav { display: flex !important; flex-wrap: wrap; gap: 6px; width: 100% !important; height: auto !important; padding: 0 !important; order: 2; }
    #masthead ul#nav li { float: none !important; margin: 0 !important; height: auto !important; }
    #masthead ul#nav li a { height: auto !important; padding: 0 !important; margin: 0 !important; display: block; }
    #masthead ul#nav li a span { height: auto !important; line-height: 1.3 !important; padding: 7px 10px !important; margin: 0 !important; display: block; font-size: 14px !important; }
    #wrapper:has(> #plate_bg) > #container { padding: 0 12px !important; box-sizing: border-box; }
    body:has(> #wrapper > #plate_bg) { display: flex; flex-direction: column; }
    body:has(> #wrapper > #plate_bg) > * { flex-shrink: 0; }
    body > #acc { order: 99; position: static !important; width: auto !important; margin: 0 !important; left: auto !important; padding: 8px 12px !important; }
    #support-email { position: static !important; font-size: 13px; padding: 6px 10px !important; }
}

/* ---------- owner sign-up / suggest pages (green masthead layouts): content was glued to the left edge ---------- */
#wrapper:has(> #plate_bg) > #container { padding-left: 20px; box-sizing: border-box; }

/* ---------- users directory (utilizatori_restaurante) ---------- */
#main #person-and-location p { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
#main #person-and-location input[type=text] { flex: 1 1 180px; box-sizing: border-box; height: 36px; margin: 0; padding: 0 10px; border: 1px solid #c3ced8; border-radius: 6px; background: #fff; font-size: 14px; color: #333; width: auto; }
#main #person-and-location input[type=submit] { height: 36px; padding: 0 16px; border: 0; border-radius: 6px; background: #1b6aa5; color: #fff; font-weight: bold; font-size: 13px; letter-spacing: .4px; text-transform: uppercase; cursor: pointer; }
#main #number-pages select { height: 30px; border: 1px solid #c3ced8; border-radius: 6px; padding: 0 6px; }
#main .alphabetize p { line-height: 1.9; }

/* ---------- 5b. phones (more) ---------- */
@media (max-width: 767px) {
    #main #person-and-location input[type=text], #main #person-and-location input[type=submit] { height: 42px; font-size: 16px; }
    #main #person-and-location input[type=text] { flex-basis: 100%; }
    #main .personholder-line { display: grid !important; grid-template-columns: 1fr 1fr; gap: 10px; float: none !important; width: auto !important; height: auto !important; }
    #main .personholder-line > .clear { display: none; }
    #main .person-box { float: none !important; width: auto !important; height: auto !important; margin: 0 !important; padding: 10px 8px !important; box-sizing: border-box;
        background: #fff; border-radius: 10px; text-align: center; }
    #main .person-box p { margin: 2px 0 !important; font-size: 14px !important; }
    #main .person-box .whitish { color: #555 !important; margin: 0 6px; white-space: nowrap; }
    #main .person-box .whitish img { width: 14px; height: 14px; vertical-align: -2px; }
    #main .person-box .green { font-size: 13px !important; }
    #main .alphabetize p { line-height: 2.2; font-size: 15px; }
}

/* restaurant photo page: empty gallery + nearby restaurants' galleries as a responsive card grid
   (was a bxSlider of every single photo, floats breaking into uneven rows) */
.ir-empty-gallery { margin: 12px 0 18px; padding: 24px 18px; text-align: center; background: #f6f8fa; border: 1px dashed #c9d3db; border-radius: 10px; }
.ir-empty-gallery p { margin: 0 0 12px; font-size: 15px; color: #4b5d6b; }
.ir-near-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; margin: 10px 0 6px; }
.ir-near-card { display: flex; flex-direction: column; gap: 4px; padding: 0 0 10px; background: #fff; border: 1px solid #e3e8ee; border-radius: 10px;
  overflow: hidden; text-decoration: none !important; color: #1b3d5c; transition: box-shadow .15s, transform .15s; }
.ir-near-card:hover, .ir-near-card:focus { box-shadow: 0 6px 18px rgba(0,0,0,.12); transform: translateY(-2px); }
.ir-near-img { display: block; aspect-ratio: 4 / 3; background: #eef2f5; overflow: hidden; }
.ir-near-img img { width: 100%; height: 100%; object-fit: cover; display: block; border: 0 !important; padding: 0 !important; margin: 0 !important; }
.ir-near-name { padding: 6px 10px 0; font-weight: 700; font-size: 15px; line-height: 1.3; color: #1b6aa5; }
.ir-near-meta { padding: 0 10px; font-size: 13px; color: #5d6d7a; }
@media (max-width: 480px) { .ir-near-gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; } .ir-near-name { font-size: 14px; } }
/* restaurant photo slideshow: fixed 470px stage, photo centred and never upscaled past it (no black band under it) */
#showcase .showcase-content > .showcase-content, #showcase .showcase-content-container > .showcase-content { display: flex; align-items: center; justify-content: center; height: 470px; overflow: hidden; }
#showcase .showcase-content img { max-width: 100%; max-height: 470px; width: auto !important; height: auto !important; object-fit: contain; display: block; margin: 0 auto; }
/* footer: the wood texture image is 1920px wide and did not repeat => light-blue band on wider screens */
#footer { background-repeat: repeat-x !important; background-position: center top !important; }

/* "Suggerimenti" feedback widget (replaces the old 10px slide-up box with link "buttons") */
.ir-feedback { position: fixed; left: 16px; bottom: 16px; z-index: 900; font-family: Arial, Helvetica, sans-serif; }
.ir-feedback-tab { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border: 0; border-radius: 999px; cursor: pointer;
  background: #1b6aa5; color: #fff; font: 700 14px/1 Arial, Helvetica, sans-serif; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.ir-feedback-tab:hover, .ir-feedback-tab:focus-visible { background: #155a8c; outline: 2px solid #fff; outline-offset: -4px; }
.ir-feedback.is-open .ir-feedback-tab { display: none; }
.ir-feedback-panel { width: 320px; max-width: calc(100vw - 32px); box-sizing: border-box; padding: 16px; background: #fff; color: #1f2d3a; border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,.28); display: flex; flex-direction: column; gap: 6px; }
.ir-feedback-panel[hidden] { display: none; }
.ir-feedback-head { display: flex; align-items: center; justify-content: space-between; margin: -4px 0 6px; }
.ir-feedback-head strong { font-size: 17px; color: #1b3d5c; }
.ir-feedback-close { width: 36px; height: 36px; border: 0; border-radius: 50%; background: #f0f3f6; color: #4b5d6b; font-size: 22px; line-height: 1; cursor: pointer; }
.ir-feedback-close:hover { background: #e2e8ee; }
.ir-feedback-panel label { font-size: 14px; font-weight: 700; color: #34495e; margin-top: 4px; }
.ir-feedback-panel input[type=email], .ir-feedback-panel textarea { width: 100%; box-sizing: border-box; border: 1px solid #c3ced8; border-radius: 8px; padding: 10px 12px;
  font: 16px/1.4 Arial, Helvetica, sans-serif; color: #1f2d3a; background: #fff; }
.ir-feedback-panel input[type=email] { height: 44px; }
.ir-feedback-panel textarea { min-height: 110px; resize: vertical; }
.ir-feedback-panel input:focus, .ir-feedback-panel textarea:focus { outline: 0; border-color: #1b6aa5; box-shadow: 0 0 0 3px rgba(27,106,165,.2); }
.ir-feedback-panel .ir-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.ir-feedback-status { margin: 4px 0 0; min-height: 0; font-size: 14px; }
.ir-feedback-status:empty { display: none; }
.ir-feedback-status.is-ok { color: #1e7e34; } .ir-feedback-status.is-err { color: #c0392b; }
.ir-feedback-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.ir-fb-btn { min-height: 42px; padding: 0 18px; border-radius: 8px; font: 700 15px/1 Arial, Helvetica, sans-serif; cursor: pointer; border: 1px solid transparent; }
.ir-fb-btn--primary { background: #f47b20; color: #fff; } .ir-fb-btn--primary:hover { background: #d9650f; }
.ir-fb-btn--primary:disabled { opacity: .6; cursor: wait; }
.ir-fb-btn--ghost { background: #fff; color: #1b6aa5; border-color: #c3ced8; } .ir-fb-btn--ghost:hover { background: #f0f5fa; }
@media (max-width: 767px) {
  .ir-feedback { left: 10px; bottom: 10px; }
  .ir-feedback-tab { min-height: 38px; padding: 0 12px; font-size: 13px; opacity: .92; }
  .ir-feedback.is-open { left: 0; right: 0; bottom: 0; }
  .ir-feedback-panel { width: 100%; max-width: none; border-radius: 14px 14px 0 0; padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
}
@media print { .ir-feedback { display: none; } }
@media (max-width: 767px) {
  #showcase, #showcase .showcase-content-container { width: 100% !important; height: 260px !important; }
  #showcase .showcase-content > .showcase-content, #showcase .showcase-content-container > .showcase-content { height: 260px; }
  #showcase .showcase-content img { max-height: 260px; }
  #showcase .showcase-thumbnail-container, #showcase .showcase-thumbnail-wrapper { display: none !important; }
}

/* ---- "Cambia la città" popup (facebox) --------------------------------------------------------------
   suggestions are rendered INSIDE the popup under the field (not over the page), the button stays visible */
#facebox:has(.ir-city-form) { z-index: 100000 !important; }
#facebox:has(.ir-city-form) .popup, #facebox:has(.ir-city-form) .content { border-radius: 14px; }
#facebox:has(.ir-city-form) .content { width: 460px; max-width: calc(100vw - 32px); padding: 20px 22px 18px !important; box-sizing: border-box; }
.ir-city-form { font-family: Arial, Helvetica, sans-serif; color: #1f2d3a; }
.ir-city-head { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 14px; }
.ir-city-ico { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #e8f1f8; color: #1b6aa5; }
.ir-city-head h2 { margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; font: 700 22px/1.2 Arial, Helvetica, sans-serif !important; color: #1b3d5c !important; }
.ir-city-head p { margin: 4px 0 0 !important; font-size: 14px; line-height: 1.4; color: #5d6d7a; }
.ir-city-label { display: block; margin: 0 0 6px !important; font-size: 14px !important; font-weight: 700; color: #34495e; }
.ir-city-search { position: relative; }
.ir-city-search-ico { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: #7d8c99; pointer-events: none; }
.ir-city-form input[name=change] { width: 100% !important; height: 48px !important; box-sizing: border-box; padding: 0 14px 0 40px !important; margin: 0 !important;
  border: 2px solid #c3ced8 !important; border-radius: 10px !important; background: #fff !important; font: 17px/1.2 Arial, Helvetica, sans-serif !important; color: #1f2d3a !important; box-shadow: none !important; }
.ir-city-form input[name=change]:focus { outline: 0; border-color: #1b6aa5 !important; box-shadow: 0 0 0 4px rgba(27,106,165,.15) !important; }
.ir-city-form.has-results input[name=change] { border-radius: 10px 10px 0 0 !important; border-bottom-color: #e3e8ee !important; }
/* autocomplete list: in the flow of the popup, site colours */
.ir-city-results { position: relative; }
.ir-city-results .ui-autocomplete { position: static !important; width: auto !important; max-height: 264px; overflow-y: auto; overflow-x: hidden; margin: 0 !important; padding: 4px 0 !important;
  list-style: none; background: #fff !important; border: 2px solid #1b6aa5 !important; border-top: 0 !important; border-radius: 0 0 10px 10px !important; box-shadow: 0 8px 18px rgba(27,61,92,.12) !important;
  font-family: Arial, Helvetica, sans-serif; z-index: auto !important; }
.ir-city-results .ui-menu-item { margin: 0 !important; padding: 0 !important; border: 0 !important; background: none !important; list-style: none; }
.ir-city-results .ui-menu-item-wrapper { margin: 0 !important; border-radius: 0 !important; cursor: pointer; }
.ir-city-results .ir-city-item { display: flex !important; align-items: baseline; gap: 8px; padding: 10px 14px !important; min-height: 22px; border: 0 !important; border-left: 3px solid transparent !important; background: #fff !important; font-size: 15px; line-height: 1.3; }
.ir-city-name { font-weight: 700; font-size: 15px; color: #1b3d5c !important; text-transform: capitalize; }
.ir-city-prov { color: #6b7b88 !important; }
.ir-city-prov { flex: 1 1 auto; font-size: 13px; color: #6b7b88; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ir-city-count { flex: 0 0 auto; font-size: 12px; font-weight: 700; color: #1b6aa5; background: #e8f1f8; border-radius: 999px; padding: 2px 8px; }
.ir-city-results .ir-city-item.ui-state-active, .ir-city-results .ui-state-active .ir-city-item, .ir-city-results .ui-menu-item:hover .ir-city-item { background: #eef5fb !important; border-left-color: #f47b20 !important; color: inherit !important; }
.ir-city-results .ui-state-active .ir-city-name, .ir-city-item.ui-state-active .ir-city-name { color: #1b6aa5; }
.ir-city-results .ui-state-active .ir-city-count, .ir-city-item.ui-state-active .ir-city-count { background: #f47b20; color: #fff; }
.ir-city-quick { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 14px 0 0; font-size: 13px; color: #5d6d7a; }
.ir-city-quick > span { margin-right: 2px; }
.ir-city-chip { min-height: 32px; padding: 0 12px; border: 1px solid #c3ced8; border-radius: 999px; background: #fff; color: #1b6aa5; font: 600 13px/1 Arial, Helvetica, sans-serif; cursor: pointer; }
.ir-city-chip:hover, .ir-city-chip:focus-visible { background: #1b6aa5; border-color: #1b6aa5; color: #fff; }
.ir-city-chip:disabled { opacity: .6; cursor: wait; }
.ir-city-error { margin: 10px 0 0 !important; padding: 8px 12px; border-radius: 8px; background: #fdecea; color: #b03a2e; font-size: 14px; }
.ir-city-error[hidden] { display: none; }
.ir-city-actions { margin: 16px 0 0; }
.ir-city-submit { width: 100%; min-height: 48px; border: 0; border-radius: 10px; background: #f47b20; color: #fff; font: 700 16px/1 Arial, Helvetica, sans-serif; cursor: pointer;
  box-shadow: 0 4px 12px rgba(244,123,32,.3); }
.ir-city-submit:hover { background: #d9650f; } .ir-city-submit:disabled { opacity: .7; cursor: wait; }
#facebox:has(.ir-city-form) .footer { border-top: 0 !important; margin-top: 0 !important; padding-top: 0 !important; }
@media (max-width: 767px) {
  #facebox:has(.ir-city-form) { position: fixed !important; top: 10px !important; max-height: calc(100vh - 20px); overflow-y: auto; }
  #facebox:has(.ir-city-form) .content { padding: 16px !important; }
  .ir-city-head h2 { font-size: 19px !important; }
  .ir-city-results .ui-autocomplete { max-height: 34vh; }
}

/* === Buton principal (CTA) în stilul site-ului: prenotare, trimitere formulare publice === */
.ir-cta, input.ir-cta, button.ir-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 0 22px; border: 0 !important; border-radius: 8px;
  background: #f47b20 !important; background-image: none !important; color: #fff !important;
  font-family: inherit; font-size: 15px; font-weight: 700; line-height: 1.2; text-shadow: none; text-decoration: none !important;
  box-shadow: 0 2px 6px rgba(244,123,32,.30); cursor: pointer; transition: background .15s, transform .05s;
  -webkit-appearance: none; appearance: none; width: auto; height: auto;
}
.ir-cta:hover, .ir-cta:focus-visible { background: #d9650f !important; }
.ir-cta:focus-visible { outline: 3px solid rgba(244,123,32,.35); outline-offset: 2px; }
.ir-cta:active { transform: translateY(1px); }
.ir-cta:disabled { opacity: .6; cursor: wait; }
.ir-cta--lg { min-height: 48px; padding: 0 28px; font-size: 16px; }
#submitNameEmail .ir-cta { margin-top: 6px; }
@media (max-width: 767px) { #submitNameEmail .ir-cta { width: 100%; } }

/* === Pagina de rezervare: istoricul rezervărilor localului === */
.ir-bk-history { margin: 10px 0 14px; }
.ir-bk-history__toggle {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid #c9d8e4; border-radius: 8px;
  background: #fff; color: #155a78; font-family: inherit; font-size: 14px; font-weight: 600; line-height: 1.3; cursor: pointer;
}
.ir-bk-history__toggle::after { content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); margin-top: -3px; transition: transform .15s; }
.ir-bk-history__toggle[aria-expanded="true"]::after { transform: rotate(-135deg); margin-top: 3px; }
.ir-bk-history__toggle:hover { background: #f2f7fa; }
.ir-bk-history__list { margin-top: 8px; border: 1px solid #e1e8ee; border-radius: 10px; background: #fff; padding: 6px 12px; }
.ir-bk-history__list[hidden] { display: none; }
.ir-bk-history__list ul { list-style: none; margin: 0; padding: 0; max-height: 260px; overflow: auto; }
.ir-bk-history__list li { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid #eef2f5; font-size: 14px; }
.ir-bk-history__list li:last-child { border-bottom: 0; }
.ir-bk-history__date { color: #333; font-weight: 600; }
.ir-bk-history__size { color: #666; text-align: right; }
.ir-bk-history__map { margin: 8px 0 2px; font-size: 14px; }
.ir-bk-history__map a { color: #155a78; font-weight: 600; }

/* === Pagine legali (privacy, termini, cookie): tabelle leggibili anche su telefono === */
.generic-text .ir-legal-table { width: 100%; border-collapse: collapse; margin: 8px 0 18px; font-size: 13.5px; line-height: 1.45; }
.generic-text .ir-legal-table th, .generic-text .ir-legal-table td { border: 1px solid #dfe5ec; padding: 7px 9px; text-align: left; vertical-align: top; }
.generic-text .ir-legal-table th { background: #f2f6f9; color: #0f3d52; font-weight: 700; white-space: nowrap; }
.generic-text .ir-legal-table code, .generic-text code { font-size: 12.5px; background: #f2f5f7; padding: 1px 4px; border-radius: 4px; word-break: break-all; }
.generic-text h2 { font-size: 18px; margin: 22px 0 8px; color: #0f3d52; }
.generic-text ul { margin: 6px 0 12px 20px; }
.generic-text li { margin: 4px 0; }
@media (max-width: 767px) {
  .generic-text .ir-legal-table, .generic-text .ir-legal-table thead, .generic-text .ir-legal-table tbody,
  .generic-text .ir-legal-table tr, .generic-text .ir-legal-table td { display: block; width: auto; }
  .generic-text .ir-legal-table thead { display: none; }
  .generic-text .ir-legal-table tr { border: 1px solid #dfe5ec; border-radius: 8px; margin: 0 0 10px; padding: 6px 10px; background: #fff; }
  .generic-text .ir-legal-table td { border: 0; padding: 3px 0; }
  .generic-text .ir-legal-table td:first-child { font-weight: 700; color: #0f3d52; }
}
