/* =========================================================
   КЪЩА ЙО-АННА - ОСНОВНИ НАСТРОЙКИ
   ========================================================= */
   
   @font-face {
    font-family: "Izhitsa";
    src: url("fonts/Izhitsa.eot");
    src: url("fonts/Izhitsa.eot?#iefix") format("embedded-opentype"),
         url("fonts/Izhitsa.woff2") format("woff2"),
         url("fonts/Izhitsa.woff") format("woff"),
         url("fonts/Izhitsa.ttf") format("truetype"),
         url("fonts/Izhitsa.svg#Izhitsa") format("svg");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
:root {
    --wood: #5b3827;
    --wood-light: #7a5138;
    --cream: #f7f2e8;
    --paper: #fffdf8;
    --green: #66745a;
    --text: #2f2a26;
    --muted: #746d66;
    --line: #ded4c7;
    --shadow: 0 18px 50px rgba(60, 42, 29, 0.13);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 86px;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--text);
    background: var(--paper);
    line-height: 1.65;
}

a {
    color: inherit;
}

img {
    display: block;
    max-width: 100%;
}

.wrap {
    width: min(1160px, calc(100% - 36px));
    margin: auto;
}

/* =========================================================
   ХЕДЪР И НАВИГАЦИЯ
   ========================================================= */
.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 253, 248, 0.94);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(91, 56, 39, 0.12);
}

.nav {
    height: 92px;
    display: flex;
    align-items: center;
    gap: 28px;
}

.brand {
    display: flex;
    align-self: stretch;
    align-items: flex-end;
    margin-right: auto;
    text-decoration: none;
}

.brand img {
    display: block;
    width: 195px;
    max-height: 88px;
    object-fit: contain;
    object-position: left bottom;
    margin-bottom: -2px;
}

.links {
    display: flex;
    gap: 20px;
    align-items: center;
    font-size: 18px;
    font-weight: 650;
}

.links a {
    text-decoration: none;
}

.links a:hover {
    color: var(--wood-light);
}

.lang {
    padding-left: 18px;
    border-left: 1px solid var(--line);
}

.lang a {
    padding: 6px 8px;
    border-radius: 7px;
}

.lang .active {
    color: #fff;
    background: var(--wood);
}

.menu {
    display: none;
    border: 0;
    background: none;
    color: var(--wood);
    font-size: 27px;
    cursor: pointer;
}

/* =========================================================
   НАЧАЛНА СНИМКА / HERO
   ========================================================= */
.hero {
    min-height: 76vh;
    position: relative;
    display: grid;
    align-items: end;
    color: #fff;
    background:
        linear-gradient(90deg, rgba(31, 24, 19, 0.72), rgba(31, 24, 19, 0.22)),
        url("images/9.webp") center / cover no-repeat;
}

.hero::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 180px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.28));
}

.hero .wrap {
    position: relative;
    z-index: 2;
    padding: 105px 0 80px;
}

.eyebrow {
    font-size: 13px;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: 0.18em;
}

.hero h1 {
    max-width: 780px;
    margin: 10px 0 18px;
    font-family: Izhitsa, serif;
    font-size: clamp(42px, 7vw, 78px);
    line-height: 1.02;
}

.hero h1 span {
    display: inline;
}

.hero p {
    max-width: 680px;
    margin: 0 0 28px;
    font-size: clamp(18px, 2vw, 23px);
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 20px;
    border: 1px solid transparent;
    border-radius: 9px;
    font-weight: 750;
    text-decoration: none;
}

.btn-primary {
    color: var(--wood);
    background: var(--cream);
}

.btn-ghost {
    color: #fff;
    background: rgba(0, 0, 0, 0.12);
    border-color: rgba(255, 255, 255, 0.65);
}

/* =========================================================
   БЪРЗИ ФАКТИ
   ========================================================= */
.facts {
    color: #fff;
    background: var(--wood);
}

.facts .wrap {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
}

.fact {
    padding: 20px 12px;
    text-align: center;
    border-right: 1px solid rgba(255, 255, 255, 0.16);
}

.fact:last-child {
    border-right: 0;
}

.fact b {
    display: block;
    font-family: Georgia, serif;
    font-size: 22px;
}

.fact span {
    font-size: 13px;
    opacity: 0.82;
}

/* =========================================================
   ОБЩИ СЕКЦИИ
   ========================================================= */
.section {
    padding: 86px 0;
}

.section.alt {
    background: var(--cream);
}

.kicker {
    color: var(--green);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.section h2 {
    margin: 8px 0 22px;
    color: var(--wood);
    font-family: Izhitsa, serif;
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.15;
}

.lead {
    max-width: 760px;
    color: #514b46;
    font-size: 18px;
}

.two {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 58px;
    align-items: center;
}

.photo-card {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    box-shadow: var(--shadow);
}

.photo-card img {
    width: 100%;
    height: 520px;
    object-fit: cover;
}

/* =========================================================
   УДОБСТВА
   ========================================================= */
.amenities {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 34px;
}

.amenity {
    padding: 18px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
}

.amenity b {
    display: block;
    margin-bottom: 4px;
    color: var(--wood);
}

/* =========================================================
   ГАЛЕРИЯ
   ========================================================= */
.gallery-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 210px;
    gap: 10px;
    margin-top: 30px;
}

.gallery button {
    padding: 0;
    overflow: hidden;
    background: none;
    border: 0;
    border-radius: 10px;
    cursor: pointer;
}

.gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery button:hover img {
    transform: scale(1.035);
}

.gallery button:nth-child(1) {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery button:nth-child(6) {
    grid-column: span 2;
}

.more {
    margin-top: 22px;
    text-align: center;
}

/* =========================================================
   ЦЕНИ, ПАКЕТИ И КАЛЕНДАР
   ========================================================= */
.pricebox {
    padding: 30px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 10px 35px rgba(60, 42, 29, 0.07);
}

.pricebox h3 {
    margin: 0 0 10px;
    color: var(--wood);
    font-family: Izhitsa, serif;
    font-size: 26px;
}

.price-placeholder {
    margin: 18px 0;
    padding: 22px;
    background: var(--cream);
    border-radius: 10px;
}

.package {
    background: #fffdf8;
    border: 1px dashed #b9aa99;
}

.calendar-slot {
    margin-top: 22px;
    padding: 25px;
    color: var(--muted);
    border: 1px dashed #b9aa99;
    border-radius: 12px;
}

/* =========================================================
   КОНТАКТИ И КАРТА
   ========================================================= */
.contact-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 34px;
}

.contact-card {
    padding: 32px;
    color: #fff;
    background: var(--wood);
    border-radius: 16px;
}

.contact-card h3 {
    margin-top: 0;
    font-family: Izhitsa, serif;
    font-size: 29px;
}

.contact-card a {
    text-decoration: none;
}

.contact-line {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.map {
    width: 100%;
    min-height: 430px;
    border: 0;
    border-radius: 16px;
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
    padding: 34px 0;
    color: #eee5dc;
    background: #2f241e;
}

.footer .wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.footer small {
    opacity: 0.72;
}

.footer a {
    text-decoration: none;
}

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

/* =========================================================
   LIGHTBOX
   ========================================================= */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 28px;
    background: rgba(15, 12, 10, 0.94);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.28s ease, visibility 0.28s ease;
}

.lightbox.open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.lightbox img {
    max-width: 92vw;
    max-height: 88vh;
    object-fit: contain;
    opacity: 0;
    transform: scale(0.97);
    transition: opacity 0.24s ease, transform 0.28s ease;
}

.lightbox.open img.is-visible {
    opacity: 1;
    transform: scale(1);
}

.lb-close,
.lb-prev,
.lb-next {
    position: absolute;
    width: 48px;
    height: 48px;
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border: 0;
    border-radius: 50%;
    font-size: 28px;
    cursor: pointer;
}

.lb-close {
    top: 22px;
    right: 22px;
}

.lb-prev {
    left: 22px;
}

.lb-next {
    right: 22px;
}

.floating-call {
    display: none;
}


/* =========================================================
   BACK TO TOP
   ========================================================= */
.back-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 44;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: var(--wood);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.22);
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--wood-light);
}

/* =========================================================
   TABLET / MOBILE - до 900 px
   ========================================================= */
@media (max-width: 900px) {
    .nav {
        height: 78px;
    }

    .brand {
        align-self: stretch;
        align-items: flex-end;
    }

    .brand img {
        width: 142px;
        max-height: 74px;
    }

    .links {
        position: absolute;
        top: 78px;
        right: 0;
        left: 0;
        display: none;
        flex-direction: column;
        align-items: flex-start;
        padding: 20px 28px;
        background: var(--paper);
        border-bottom: 1px solid var(--line);
    }

    .links.open {
        display: flex;
    }

    .menu {
        display: block;
    }

    .lang {
        padding: 0;
        border: 0;
    }

    .hero {
        min-height: 68vh;
    }

    .facts .wrap {
        grid-template-columns: repeat(2, 1fr);
    }

    .fact:nth-child(2n) {
        border-right: 0;
    }

    .two,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .photo-card img {
        height: 400px;
    }

    .amenities {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 180px;
    }

    .gallery button:nth-child(1) {
        grid-column: span 2;
    }

    .gallery button:nth-child(6) {
        grid-column: span 1;
    }

    .footer .wrap {
        flex-direction: column;
        align-items: flex-start;
    }

    .back-to-top {
        right: 18px;
        bottom: 82px;
    }

    .floating-call {
        position: fixed;
        right: 18px;
        bottom: 18px;
        z-index: 45;
        display: flex;
        width: 54px;
        height: 54px;
        align-items: center;
        justify-content: center;
        color: #fff;
        background: var(--wood);
        border-radius: 50%;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.28);
        font-size: 22px;
        text-decoration: none;
    }
}

/* =========================================================
   MOBILE - до 560 px
   ========================================================= */
@media (max-width: 560px) {
    .wrap {
        width: min(100% - 26px, 1160px);
    }

    .brand img {
        width: 126px;
        max-height: 70px;
    }

    .hero .wrap {
        padding: 80px 0 55px;
    }

    .hero h1 {
        font-size: 43px;
    }

    /* Името е на точно два контролирани реда на телефон. */
    .hero h1 span {
        display: block;
    }

    .facts .wrap {
        grid-template-columns: 1fr 1fr;
    }

    .fact {
        padding: 15px 7px;
    }

    .section {
        padding: 64px 0;
    }

    .amenities {
        grid-template-columns: 1fr;
    }

    .gallery {
        grid-auto-rows: 145px;
    }

    .gallery-head {
        display: block;
    }

    .photo-card img {
        height: 330px;
    }

    .btn {
        width: 100%;
    }

    .actions {
        max-width: 360px;
    }
}

/* =========================================================
   КАЛЕНДАР ЗА НАЛИЧНОСТ - Booking iCal
   ========================================================= */
.booking-calendar {
    margin-top: 26px;
    padding: 22px;
    background: #fff;
    border: 1px solid rgba(90, 66, 45, 0.16);
    border-radius: 18px;
    box-shadow: 0 12px 32px rgba(53, 39, 27, 0.08);
}

.calendar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.calendar-head strong {
    font-size: 20px;
    text-transform: capitalize;
}

.calendar-nav {
    display: flex;
    gap: 8px;
}

.calendar-nav button {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(90, 66, 45, 0.2);
    border-radius: 50%;
    background: #fff;
    color: var(--wood);
    cursor: pointer;
    font-size: 20px;
}

.calendar-weekdays,
.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
}

.calendar-weekdays span {
    padding: 5px 0 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-align: center;
}

.calendar-day {
    display: flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(86, 116, 78, 0.10);
    font-weight: 700;
}

.calendar-day.empty {
    background: transparent;
}

.calendar-day.past {
    color: #aaa;
    background: #f4f1ed;
}

.calendar-day.busy {
    color: #fff;
    background: var(--wood);
}

.calendar-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 16px;
    color: var(--muted);
    font-size: 13px;
}

.calendar-legend span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.calendar-dot {
    width: 12px;
    height: 12px;
    border-radius: 4px;
    background: rgba(86, 116, 78, 0.18);
}

.calendar-dot.busy {
    background: var(--wood);
}

.calendar-status {
    margin-top: 12px;
    color: var(--muted);
    font-size: 13px;
}

.rate-list {
    display: grid;
    gap: 10px;
    margin: 18px 0;
}

.rate-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px 16px;
    background: rgba(90, 66, 45, 0.06);
    border-radius: 12px;
}

.rate-row strong {
    color: var(--wood);
    font-size: 22px;
    white-space: nowrap;
}

.rate-note {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 14px;
}

@media (max-width: 560px) {
    .booking-calendar {
        padding: 15px;
    }

    .calendar-day {
        min-height: 36px;
        font-size: 13px;
    }

    .rate-row {
        padding: 12px;
    }
}
