/* A publikus (látogatói) szállásoldalak stílusa.
   A --pub-* változókat a partner oldalának témája tölti fel (_PublicLayout),
   így a foglalási felület a partner weboldalával azonos színekkel/betűkkel jelenik meg. */
:root {
    --pub-primary: #1f513f;
    --pub-accent: #c8a24b;
    --pub-heading: #1f513f;
    --pub-text: #26302b;
    --pub-bg: #f7f6f2;
    --pub-bg-alt: #efede7;
    --pub-head-font: 'Cormorant Garamond', serif;
    --pub-body-font: 'Jost', 'Segoe UI', sans-serif;
    --pub-radius: 12px;
}

body.public-site {
    background: var(--pub-bg);
    color: var(--pub-text);
    font-family: var(--pub-body-font);
    margin: 0;
}

.public-site .pub-main { padding-top: 1.5rem; }

.public-site .pub-fallback-nav {
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
}

.public-site .navbar-brand {
    font-weight: 700;
    letter-spacing: .04em;
    color: var(--pub-primary);
}

.public-site h1, .public-site h2, .public-site h3 {
    color: var(--pub-heading);
    font-family: var(--pub-head-font);
}

.public-site .btn-book {
    background: var(--pub-primary);
    border: none;
    color: #fff;
    border-radius: var(--pub-radius);
}

.public-site .btn-book:hover { filter: brightness(.88); color: #fff; }

.public-site .card {
    border: none;
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, .07);
    overflow: hidden;
}

.public-site .unit-card img {
    height: 210px;
    object-fit: cover;
    width: 100%;
}

.public-site .price-tag {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--pub-primary);
}

/* ---------- Értékelés-jelvény (Booking-szerű) ---------- */
.rating-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 34px;
    padding: 0 8px;
    background: var(--pub-primary);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 8px 8px 8px 0;
}

.rating-line { display: flex; align-items: center; gap: 10px; }
.rating-line .lbl { font-weight: 600; }
.rating-line .cnt { font-size: .85rem; opacity: .75; }

/* ---------- Apartman-választó kártyák ---------- */
.pub-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 22px;
}

.pub-card {
    display: block;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0, 0, 0, .08);
    text-decoration: none;
    color: inherit;
    transition: transform .15s, box-shadow .15s;
}

.pub-card:hover { transform: translateY(-4px); box-shadow: 0 14px 32px rgba(0, 0, 0, .16); color: inherit; }

.pub-card .ph { height: 210px; background: var(--pub-bg-alt); }
.pub-card .ph img { width: 100%; height: 100%; object-fit: cover; }

.pub-card .ph .noimg {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9aa59f;
}

.pub-card .body { padding: 14px 16px 16px; }
.pub-card .name { font-weight: 700; font-size: 1.08rem; color: var(--pub-heading); margin-bottom: 2px; }
.pub-card .loc { font-size: .88rem; opacity: .75; margin-bottom: 10px; }
.pub-card .rooms { font-size: .82rem; opacity: .65; margin-top: 6px; }

/* ---------- Apartman részletei: fejléc ---------- */
.pub-prop-head { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 14px; margin-bottom: 16px; }
.pub-prop-head h1 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 700; margin: 0 0 4px; }
.pub-prop-head .addr { font-size: .95rem; opacity: .8; }
.pub-prop-head .cta { margin-left: auto; }

/* ---------- Mozaik-galéria (1 nagy + 2 oldalt + 5 alul, "Még N kép") ---------- */
.pub-mosaic {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: 190px 190px 120px;
    gap: 10px;
}

.pub-mosaic .tile {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    background: var(--pub-bg-alt);
    padding: 0;
    border: none;
}

.pub-mosaic .tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.pub-mosaic .tile:hover img { transform: scale(1.05); }

.pub-mosaic .tile.main { grid-column: 1 / 4; grid-row: 1 / 3; }
.pub-mosaic .tile.side1 { grid-column: 4 / 6; grid-row: 1; }
.pub-mosaic .tile.side2 { grid-column: 4 / 6; grid-row: 2; }

.pub-mosaic .tile .more-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 20, 17, .55);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    text-decoration: underline;
    font-size: 1.02rem;
}

@media (max-width: 767px) {
    .pub-mosaic { grid-template-rows: 220px 90px; }
    .pub-mosaic .tile.main { grid-column: 1 / 6; grid-row: 1; }
    .pub-mosaic .tile.side1, .pub-mosaic .tile.side2 { display: none; }
}

/* ---------- Lightbox (nagy képnézegető lapozóval) ---------- */
.pub-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(10, 12, 11, .92);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
}

.pub-lightbox.open { display: flex; }

.pub-lightbox img {
    max-width: min(1100px, 92vw);
    max-height: 84vh;
    border-radius: 10px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
}

.pub-lightbox .lb-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, .14);
    color: #fff;
    font-size: 26px;
    cursor: pointer;
    transition: background .15s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pub-lightbox .lb-btn:hover { background: rgba(255, 255, 255, .3); }
.pub-lightbox .lb-prev { left: 22px; }
.pub-lightbox .lb-next { right: 22px; }

.pub-lightbox .lb-close {
    position: absolute;
    top: 18px;
    right: 22px;
    border: none;
    background: rgba(255, 255, 255, .14);
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
}

.pub-lightbox .lb-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: .95rem;
    background: rgba(0, 0, 0, .45);
    border-radius: 999px;
    padding: 6px 16px;
}

/* ---------- Oldalsó panel (értékelés + térkép) ---------- */
.pub-sidepanel .rate-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, .07);
    padding: 16px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.map-frame {
    width: 100%;
    height: 300px;
    border: 0;
    border-radius: 12px;
}

/* ---------- Szolgáltatások (fekete-fehér piktogramok) ---------- */
.pub-amenities {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.pub-amenity {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 1px solid #e2e2df;
    border-radius: 10px;
    padding: 12px 16px;
    font-size: .95rem;
}

.pub-amenity .ico {
    font-size: 20px;
    filter: grayscale(1) contrast(1.15);
    line-height: 1;
}

/* ---------- Leírás ---------- */
.pub-desc {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, .07);
    padding: 24px 28px;
    font-size: 1.02rem;
    line-height: 1.8;
    white-space: pre-line;
}

/* ---------- Szabad helyek (szobatáblázat) ---------- */
.rooms-table { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 18px rgba(0, 0, 0, .07); }

.rooms-table thead th {
    background: var(--pub-primary);
    color: #fff;
    font-weight: 600;
    font-size: .9rem;
    padding: 12px 16px;
    border-right: 1px solid rgba(255, 255, 255, .18);
}

.rooms-table thead th:last-child { border-right: none; }

.rooms-table tbody td {
    padding: 16px;
    border-bottom: 1px solid #eceded;
    vertical-align: top;
}

.rooms-table tbody tr:last-child td { border-bottom: none; }

.rooms-table .rname { font-weight: 700; color: var(--pub-primary); font-size: 1.02rem; }
.rooms-table .rmeta { font-size: .85rem; opacity: .8; margin: 4px 0 8px; }

.rooms-table .rchips { display: flex; flex-wrap: wrap; gap: 6px; }

.rooms-table .rchips span {
    border: 1px solid #d8dad8;
    border-radius: 6px;
    padding: 2px 8px;
    font-size: .76rem;
}

.rooms-table .rchips span .ico { filter: grayscale(1); margin-right: 3px; }

.rooms-table .guests { font-size: 1.05rem; letter-spacing: 2px; white-space: nowrap; }
.rooms-table .rprice { font-weight: 700; font-size: 1.08rem; color: var(--pub-text); white-space: nowrap; }
.rooms-table .rprice .sub { display: block; font-weight: 400; font-size: .78rem; opacity: .7; }
.rooms-table .warn { font-size: .82rem; color: #a33; }

/* A szoba első sora vastagabb elválasztóval kezdődik (a kombó-sorok egy szobához tartoznak). */
.rooms-table tbody tr.room-first td { border-top: 2px solid #d5d8d6; }
.rooms-table tbody tr:first-child td { border-top: none; }

/* "A lehetőségeim" oszlop: étkezés + feltétel sorok. */
.rooms-table .ropt .line { font-size: .84rem; padding: 2px 0; }
.rooms-table .ropt .line.meal { font-weight: 600; }
.rooms-table .ropt .line.paid { color: #1e7a3c; font-weight: 600; }
.rooms-table .ropt .line.incl { opacity: .75; }

/* ---------- Vendégértékelések ---------- */
.pub-reviews-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }

.crit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 18px 40px;
}

.crit-item .row-line { display: flex; justify-content: space-between; font-size: .92rem; margin-bottom: 6px; }
.crit-item .row-line b { font-weight: 600; }

.crit-item .bar { height: 8px; background: #e4e6e4; border-radius: 999px; overflow: hidden; }
.crit-item .bar i { display: block; height: 100%; background: var(--pub-primary); border-radius: 999px; }

/* ---------- Szűrősáv (dátum + létszám, Booking-szerű) ---------- */
.pub-filterbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    background: var(--pub-accent);
    padding: 6px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.pub-filterbar .fld {
    background: #fff;
    border-radius: 7px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    flex: 1;
    min-width: 210px;
    cursor: pointer;
    position: relative;
}

.pub-filterbar .fld .i { font-size: 17px; opacity: .7; }
.pub-filterbar .fld select { border: none; background: none; font-size: .95rem; outline: none; cursor: pointer; max-width: 100%; }

/* A vendég-doboz több választót tartalmaz (felnőtt / gyermek / díjmentes gyermek / szoba),
   ezért keskeny kijelzőn belül is tördelhető. */
.pub-filterbar .fld { flex-wrap: wrap; }
.pub-filterbar .fld .rp-display { font-size: .95rem; user-select: none; white-space: nowrap; overflow: hidden; }

.pub-filterbar .go {
    background: var(--pub-primary);
    color: #fff;
    border: none;
    border-radius: 7px;
    font-weight: 600;
    padding: 9px 26px;
    cursor: pointer;
}

.pub-filterbar .go:hover { filter: brightness(.9); }

/* ---------- Dátumválasztó (2 hónap egymás mellett) ---------- */
.rp-panel {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 500;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 18px 60px rgba(0, 0, 0, .25);
    padding: 18px;
    display: none;
    cursor: default;
}

.rp-panel.open { display: block; }

.rp-months { display: flex; gap: 26px; position: relative; }

.rp-nav {
    position: absolute;
    top: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #d8dad8;
    background: #fff;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rp-nav:hover { background: var(--pub-bg-alt); }
.rp-nav.prev { left: 0; }
.rp-nav.next { right: 0; }

.rp-month { width: 300px; }
.rp-month .m-title { text-align: center; font-weight: 700; margin-bottom: 10px; }

.rp-month table { width: 100%; border-collapse: collapse; table-layout: fixed; }

.rp-month th {
    font-size: .72rem;
    font-weight: 600;
    color: #8b948e;
    text-align: center;
    padding: 4px 0;
    text-transform: uppercase;
}

.rp-day {
    text-align: center;
    padding: 0;
    cursor: pointer;
    border-radius: 8px;
}

.rp-day .d { font-size: .88rem; font-weight: 600; line-height: 1.2; padding-top: 5px; }
.rp-day .p { font-size: .6rem; color: #8b948e; line-height: 1.1; padding-bottom: 4px; min-height: 12px; }

.rp-day:hover:not(.dis):not(.empty) { outline: 2px solid var(--pub-primary); outline-offset: -2px; }

.rp-day.dis { color: #c4c9c5; cursor: default; }
.rp-day.dis .p { visibility: hidden; }
.rp-day.empty { cursor: default; }

/* Kijelölt tartomány szép színes kirajzolása */
.rp-day.in-range { background: color-mix(in srgb, var(--pub-primary) 14%, #fff); border-radius: 0; }
.rp-day.in-range .p { color: var(--pub-primary); }

.rp-day.sel-start, .rp-day.sel-end { background: var(--pub-primary); color: #fff; }
.rp-day.sel-start .p, .rp-day.sel-end .p { color: rgba(255, 255, 255, .8); }
.rp-day.sel-start { border-radius: 8px 0 0 8px; }
.rp-day.sel-end { border-radius: 0 8px 8px 0; }
.rp-day.sel-start.sel-end { border-radius: 8px; }

.rp-foot {
    border-top: 1px solid #eceded;
    margin-top: 12px;
    padding-top: 10px;
    text-align: center;
    font-size: .85rem;
    color: #6b756f;
}

@media (max-width: 700px) {
    .rp-months { flex-direction: column; gap: 14px; }
    .rp-panel { left: 50%; transform: translateX(-50%); max-height: 70vh; overflow-y: auto; }
}

/* ---------- Régi osztályok (Book/Success oldalak) ---------- */
.gallery-main {
    width: 100%;
    height: 380px;
    object-fit: cover;
    border-radius: 14px;
    cursor: zoom-in;
}

.gallery-thumbs { display: flex; gap: .5rem; margin-top: .5rem; overflow-x: auto; padding-bottom: .25rem; }

.gallery-thumbs img {
    width: 88px;
    height: 64px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    opacity: .7;
    transition: opacity .15s, outline .15s;
    outline: 2px solid transparent;
}

.gallery-thumbs img.active,
.gallery-thumbs img:hover { opacity: 1; outline-color: var(--pub-accent); }

.review-strip { display: flex; gap: 1rem; overflow-x: auto; padding: .5rem .25rem 1rem; scroll-snap-type: x mandatory; }

.review-card {
    min-width: 290px;
    max-width: 290px;
    scroll-snap-align: start;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .07);
    padding: 1rem;
}

.review-score-badge {
    background: var(--pub-primary);
    color: #fff;
    border-radius: 8px;
    padding: .15rem .55rem;
    font-weight: 700;
}

.amenity-chip {
    display: inline-block;
    background: #fff;
    border: 1px solid #e3e0d8;
    border-radius: 999px;
    padding: .3rem .8rem;
    margin: 0 .35rem .5rem 0;
    font-size: .9rem;
}

.amenity-list {
    columns: 3 220px;
    column-gap: 2.5rem;
    list-style: disc;
    padding-left: 1.2rem;
    font-size: .95rem;
    line-height: 1.9;
}

/* ---------- Foglalási oldal: kiemelt, vizuális foglalási felület ---------- */
.booking-page {
    position: relative;
    max-width: 1180px;
    margin: 0 auto;
}

.booking-backlink a {
    color: var(--pub-primary);
    font-weight: 600;
    text-decoration: none;
}

.booking-hero {
    position: relative;
    min-height: 245px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    border-radius: 24px;
    background: linear-gradient(130deg, var(--pub-primary), #172d2a 58%, var(--pub-accent));
    box-shadow: 0 20px 55px rgba(31, 81, 63, .22);
    isolation: isolate;
}

.booking-hero > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .72;
    z-index: -3;
}

.booking-hero-shade {
    position: absolute;
    inset: 0;
    z-index: -2;
    background: linear-gradient(100deg, rgba(11, 30, 26, .9), rgba(20, 45, 39, .48) 56%, rgba(8, 19, 18, .22));
}

.booking-hero-content {
    position: relative;
    z-index: 1;
    padding: 34px 38px;
    color: #fff;
}

.booking-hero-content h1 {
    color: #fff;
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1;
    margin: 5px 0 16px;
    text-shadow: 0 3px 22px rgba(0, 0, 0, .25);
}

.booking-kicker {
    letter-spacing: .2em;
    font-size: .72rem;
    font-weight: 700;
    color: #f6d889;
}

.booking-hero-meta { display: flex; flex-wrap: wrap; gap: 9px; font-size: .92rem; }
.booking-hero-meta span { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.18); border-radius: 999px; padding: 7px 12px; backdrop-filter: blur(4px); }

.booking-orb { position: absolute; border-radius: 50%; pointer-events: none; filter: blur(1px); z-index: -1; animation: bookingFloat 7s ease-in-out infinite; }
.booking-orb.orb-one { width: 150px; height: 150px; right: 9%; top: -55px; background: rgba(248, 211, 126, .22); }
.booking-orb.orb-two { width: 80px; height: 80px; right: 23%; bottom: 23px; background: rgba(255, 255, 255, .12); animation-delay: -2.5s; }

.booking-intro {
    margin: 18px 4px 24px;
    color: var(--pub-text);
    opacity: .78;
    font-size: .98rem;
}

.booking-form .card {
    border: 1px solid rgba(31, 81, 63, .08);
    box-shadow: 0 14px 38px rgba(27, 46, 39, .09);
}

.booking-form .card-header {
    padding: 16px 20px;
    background: linear-gradient(90deg, rgba(31,81,63,.07), rgba(200,162,75,.08)) !important;
    color: var(--pub-heading);
}

.booking-form .form-control, .booking-form .form-select {
    border-color: #d9e1dc;
    border-radius: 10px;
    padding: .7rem .85rem;
}

.booking-form .form-control:focus, .booking-form .form-select:focus {
    border-color: var(--pub-accent);
    box-shadow: 0 0 0 .2rem rgba(200, 162, 75, .16);
}

.booking-summary {
    position: sticky;
    top: 1rem;
}

.booking-summary .price-tag { font-size: 1.5rem; }

@keyframes bookingFloat {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(0, 12px, 0) scale(1.04); }
}

@media (max-width: 767px) {
    .booking-hero { min-height: 280px; border-radius: 18px; }
    .booking-hero-content { padding: 28px 22px; }
    .booking-hero-content h1 { font-size: 2.25rem; }
    .booking-summary { position: static; }
}

/* ---------- Több-partneres kereső (Home/Index) ---------- */
.pub-filterbar .fld input[type="text"],
.pub-filterbar .fld input[type="number"],
.pub-filterbar .fld input[type="month"] {
    border: none;
    background: none;
    outline: none;
    font-size: .95rem;
    width: 100%;
    min-width: 0;
}

.pub-filterbar .fld .price-input { width: 78px; flex: none; }

.date-mode-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .85rem;
    color: var(--pub-text, #333);
    cursor: pointer;
    padding: 0 6px;
}

.pub-amenity-filter {
    margin: -8px 0 20px;
}

.pub-amenity-filter summary {
    cursor: pointer;
    font-size: .9rem;
    font-weight: 600;
    color: var(--pub-primary);
    padding: 6px 0;
}

.pub-amenity-filter .amenity-group {
    display: inline-block;
    vertical-align: top;
    margin: 10px 26px 10px 0;
}

.pub-amenity-filter .amenity-group-title {
    font-weight: 600;
    font-size: .85rem;
    margin-bottom: 6px;
    opacity: .8;
}

.pub-amenity-filter .amenity-check {
    display: block;
    font-size: .88rem;
    padding: 2px 0;
    cursor: pointer;
}

.pub-amenity-filter .amenity-check input { margin-right: 6px; }

.pub-card .partner { font-size: .82rem; opacity: .7; margin-bottom: 2px; }

.pub-card .desc {
    font-size: .85rem;
    opacity: .75;
    margin: 6px 0;
    line-height: 1.35;
}

.pub-card .price {
    font-weight: 700;
    color: var(--pub-primary);
    margin-top: 8px;
    font-size: 1rem;
}
