:root {
    --wyma-bg: #f4efec;
    --wyma-surface: #fffaf5;
    --wyma-sage: #afc27e;
    --wyma-coral: #ee9e91;
    --wyma-sun: #f2c45e;
    --wyma-sky: #9fced4;
    --wyma-earth: #8f6758;
    --wyma-olive: #8ea772;
    --wyma-charcoal: #58473f;
    --wyma-shadow: rgba(111, 84, 72, 0.12);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: 'Quicksand', sans-serif;
    color: var(--wyma-charcoal);
    background: radial-gradient(circle at 0% 0%, #fff7ef 0, var(--wyma-bg) 45%, #f1ebe8 100%);
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

.wyma-navbar {
    background: rgba(255, 250, 245, 0.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(143, 103, 88, 0.13);
}

.nav-link {
    color: var(--wyma-charcoal);
    font-weight: 600;
}

.nav-link:hover,
.nav-link:focus {
    color: var(--wyma-earth);
}

.admin-navbar .nav-link.active {
    color: var(--wyma-earth);
    font-weight: 700;
}

.admin-user-label {
    display: inline-flex;
    align-items: center;
    margin-left: 0.65rem;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(143, 103, 88, 0.18);
    background: rgba(255, 255, 255, 0.74);
    color: #6a554c;
    font-weight: 600;
    font-size: 0.82rem;
}

.brand-logo {
    width: 54px;
    height: 54px;
    object-fit: contain;
    border-radius: 50%;
    background: #fff;
    padding: 4px;
    box-shadow: 0 6px 20px var(--wyma-shadow);
}

.navbar-brand strong {
    color: var(--wyma-earth);
    display: block;
    line-height: 1.1;
    font-size: 1.08rem;
}

.navbar-brand small {
    font-size: 0.73rem;
    color: #6d5a50;
}

.admin-menu-wrap {
    border: 1px solid rgba(143, 103, 88, 0.18);
    border-radius: 16px;
    background: rgba(255, 252, 249, 0.95);
    padding: 0.75rem;
}

.admin-menu-meta {
    font-size: 0.86rem;
    color: #6f5a50;
    margin-bottom: 0.55rem;
}

.admin-menu {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.admin-menu-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(143, 103, 88, 0.2);
    border-radius: 999px;
    padding: 0.42rem 0.8rem;
    font-weight: 700;
    font-size: 0.84rem;
    color: #6a554c;
    background: rgba(255, 255, 255, 0.78);
}

.admin-menu-link:hover,
.admin-menu-link:focus {
    color: var(--wyma-earth);
    border-color: rgba(143, 103, 88, 0.36);
}

.admin-menu-link.active {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, var(--wyma-coral), var(--wyma-earth));
}

.btn-pastel {
    border: none;
    color: #fff;
    font-weight: 700;
    background: linear-gradient(135deg, var(--wyma-coral), var(--wyma-earth));
    box-shadow: 0 10px 18px rgba(143, 103, 88, 0.2);
}

.btn-pastel:hover,
.btn-pastel:focus {
    color: #fff;
    background: linear-gradient(135deg, #e38d7e, #7f5a4e);
}

.hero-wrap {
    padding: 0.9rem 0 0.9rem;
}

.hero-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.9rem;
    align-items: stretch;
}

.hero-banner {
    width: 100%;
    position: relative;
    border-radius: 22px;
    overflow: hidden;
    aspect-ratio: 3 / 2;
    max-height: 440px;
    background-color: #ece8e7;
    box-shadow: 0 24px 44px var(--wyma-shadow);
}

.hero-banner-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    object-position: center;
}

.hero-ads {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
    aspect-ratio: 3 / 2;
    max-height: 440px;
    background: linear-gradient(180deg, #f4efec, #efe8e4);
    box-shadow: 0 24px 44px var(--wyma-shadow);
}

.hero-ads-track {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    padding: 0.7rem;
    animation: hero-ads-scroll 22s linear infinite;
}

.hero-ads.is-static .hero-ads-track {
    animation: none;
}

.hero-ads:hover .hero-ads-track {
    animation-play-state: paused;
}

.hero-ad-card {
    position: relative;
    flex: 0 0 auto;
    height: clamp(96px, 10vw, 132px);
    border-radius: 14px;
    overflow: hidden;
    background: #f8f2ec;
    border: 1px solid rgba(143, 103, 88, 0.14);
    cursor: pointer;
}

.hero-ad-card:focus-visible {
    outline: 3px solid rgba(159, 206, 212, 0.62);
    outline-offset: 2px;
}

.hero-ad-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    object-position: center;
}

@keyframes hero-ads-scroll {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-50%);
    }
}

.wyma-ad-tooltip .tooltip-inner {
    max-width: 260px;
    border-radius: 12px;
    background: linear-gradient(135deg, #8f6758, #775349);
    color: #fffaf5;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.35;
    padding: 0.46rem 0.62rem;
    box-shadow: 0 10px 20px rgba(64, 45, 37, 0.24);
}

.wyma-ad-tooltip .tooltip-arrow::before {
    border-top-color: #805b4f;
    border-right-color: #805b4f;
    border-bottom-color: #805b4f;
    border-left-color: #805b4f;
}

.hero-content {
    width: 100%;
    padding: 2rem;
    background: linear-gradient(180deg, rgba(255, 250, 245, 0.05), rgba(255, 250, 245, 0.9));
}

.hero-kicker {
    display: inline-block;
    font-weight: 700;
    font-size: 0.78rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    padding: 0.38rem 0.8rem;
    border-radius: 999px;
    background: rgba(159, 206, 212, 0.35);
    color: #365f65;
}

.hero-title {
    margin: 0.9rem 0 0;
    color: var(--wyma-earth);
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 700;
}

.script-heading {
    font-family: 'Allura', cursive;
    font-size: clamp(2.3rem, 7vw, 4.8rem);
    line-height: 0.9;
    color: var(--wyma-earth);
    margin: 0.2rem 0 0.5rem;
}

.hero-text {
    max-width: 620px;
    font-size: 1.04rem;
}

.quick-form {
    margin-top: 0;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(143, 103, 88, 0.14);
    border-radius: 20px;
    padding: 0.9rem;
}

.quick-form-section {
    padding-bottom: 0.6rem;
}

.form-control,
.form-select,
textarea.form-control {
    border: 1px solid rgba(143, 103, 88, 0.2);
    border-radius: 12px;
    padding: 0.72rem 0.82rem;
}

.form-control:focus,
.form-select:focus,
textarea.form-control:focus {
    box-shadow: 0 0 0 0.25rem rgba(159, 206, 212, 0.3);
    border-color: var(--wyma-sky);
}

.flatpickr-calendar {
    border: 1px solid rgba(143, 103, 88, 0.18);
    border-radius: 14px;
    box-shadow: 0 10px 24px rgba(143, 103, 88, 0.14);
    font-family: 'Quicksand', sans-serif;
}

.flatpickr-months .flatpickr-month {
    color: var(--wyma-earth);
    fill: var(--wyma-earth);
}

.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-current-month input.cur-year {
    font-weight: 700;
}

.flatpickr-day {
    border-radius: 10px;
}

.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
    background: var(--wyma-earth);
    border-color: var(--wyma-earth);
}

.flatpickr-day.wyma-unavailable {
    position: relative;
    color: #9a8076;
    background: rgba(238, 158, 145, 0.14);
}

.flatpickr-day.wyma-unavailable::after {
    content: 'X';
    position: absolute;
    top: 1px;
    right: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    color: #a34d3f;
}

.section-title {
    color: var(--wyma-earth);
    font-weight: 700;
    font-size: clamp(1.35rem, 3vw, 2.2rem);
}

.section-subtitle {
    max-width: 680px;
    color: #6f5a50;
}

.apartment-card {
    border: 1px solid rgba(143, 103, 88, 0.16);
    border-radius: 18px;
    overflow: hidden;
    background: var(--wyma-surface);
    box-shadow: 0 12px 25px rgba(143, 103, 88, 0.08);
    transform: translateY(0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.apartment-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 34px rgba(143, 103, 88, 0.13);
}

.apartment-media {
    height: 220px;
    background: linear-gradient(145deg, rgba(175, 194, 126, 0.32), rgba(159, 206, 212, 0.25));
}

.apartment-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.apartment-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border-radius: 999px;
    padding: 0.22rem 0.64rem;
    background: rgba(175, 194, 126, 0.21);
    font-size: 0.78rem;
    font-weight: 700;
}

.price-chip {
    display: inline-block;
    font-weight: 700;
    color: var(--wyma-earth);
    background: rgba(242, 196, 94, 0.24);
    padding: 0.3rem 0.64rem;
    border-radius: 12px;
}

.feature-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(159, 206, 212, 0.3);
    color: #2d5258;
    font-weight: 700;
    margin-right: 0.3rem;
}

.book-panel {
    background: #fffdf9;
    border-radius: 18px;
    border: 1px solid rgba(143, 103, 88, 0.15);
    box-shadow: 0 16px 28px rgba(143, 103, 88, 0.08);
}

.booking-total {
    border: 1px dashed rgba(143, 103, 88, 0.3);
    border-radius: 12px;
    padding: 0.7rem 0.8rem;
    background: rgba(255, 248, 242, 0.8);
}

.badge-status {
    border-radius: 999px;
    font-size: 0.78rem;
    padding: 0.35rem 0.72rem;
    font-weight: 700;
}

.badge-pending {
    background: rgba(242, 196, 94, 0.28);
    color: #795609;
}

.badge-confirmed {
    background: rgba(142, 167, 114, 0.28);
    color: #3f5422;
}

.badge-refunded {
    background: rgba(118, 111, 180, 0.24);
    color: #4a4484;
}

.badge-cancelled {
    background: rgba(238, 158, 145, 0.32);
    color: #763528;
}

.booking-wizard-progress {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.booking-step-chip {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(143, 103, 88, 0.2);
    border-radius: 999px;
    padding: 0.34rem 0.7rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #725c52;
    background: rgba(255, 255, 255, 0.75);
}

.booking-step-chip.active {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, var(--wyma-coral), var(--wyma-earth));
}

.booking-step-chip.done {
    color: #3f5422;
    border-color: rgba(142, 167, 114, 0.28);
    background: rgba(142, 167, 114, 0.18);
}

.receipt-checklist li {
    display: block;
    border: 1px solid rgba(143, 103, 88, 0.15);
    border-radius: 10px;
    padding: 0.58rem 0.72rem;
    margin-bottom: 0.42rem;
    background: rgba(255, 255, 255, 0.78);
    font-size: 0.88rem;
}

.receipt-check-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.7rem;
    margin-bottom: 0.45rem;
}

.receipt-check-label {
    font-weight: 600;
    color: #6c5a51;
}

.receipt-check-progress {
    height: 8px;
    background: rgba(143, 103, 88, 0.15);
    border-radius: 999px;
    overflow: hidden;
}

.receipt-check-progress .progress-bar {
    width: 0;
    border-radius: 999px;
    transition: width 0.35s ease, background-color 0.25s ease;
}

.receipt-check-progress .progress-bar.pending {
    width: 100%;
    background: linear-gradient(
        90deg,
        rgba(143, 103, 88, 0.25) 0%,
        rgba(143, 103, 88, 0.55) 50%,
        rgba(143, 103, 88, 0.25) 100%
    );
    background-size: 220% 100%;
    animation: receipt-bar-flow 1s linear infinite;
}

.receipt-check-progress .progress-bar.ok {
    width: 100%;
    background: #8ea772;
    animation: none;
}

.receipt-check-progress .progress-bar.fail {
    width: 100%;
    background: #cf6d5d;
    animation: none;
}

.receipt-check-state {
    display: inline-flex;
    align-items: center;
    gap: 0.32rem;
    border-radius: 999px;
    padding: 0.18rem 0.55rem;
    font-size: 0.72rem;
    font-weight: 700;
}

.receipt-check-state.pending {
    background: rgba(143, 103, 88, 0.15);
    color: #6c5a51;
}

.receipt-check-state.pending::before {
    content: '';
    width: 0.68rem;
    height: 0.68rem;
    border: 2px solid rgba(108, 90, 81, 0.3);
    border-top-color: #6c5a51;
    border-radius: 50%;
    animation: receipt-spin 0.8s linear infinite;
}

.receipt-check-state.ok {
    background: rgba(142, 167, 114, 0.25);
    color: #3f5422;
}

.receipt-check-state.fail {
    background: rgba(238, 158, 145, 0.32);
    color: #763528;
}

@keyframes receipt-bar-flow {
    from {
        background-position: 0 0;
    }
    to {
        background-position: 220% 0;
    }
}

@keyframes receipt-spin {
    from {
        transform: rotate(0);
    }
    to {
        transform: rotate(360deg);
    }
}

.receipt-success-wrap {
    padding-top: 0.4rem;
}

.receipt-success-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(145deg, #98bf5f, #5f8c3b);
    box-shadow: 0 14px 24px rgba(95, 140, 59, 0.3);
    animation: receipt-pop 0.55s ease;
}

@keyframes receipt-pop {
    0% {
        transform: scale(0.7);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.table-bookings td {
    vertical-align: top;
}

.table-bookings .btn {
    white-space: nowrap;
}

.footer-wrap {
    border-top: 1px solid rgba(143, 103, 88, 0.14);
    background: rgba(255, 250, 245, 0.8);
}

.footer-link {
    font-weight: 700;
    color: var(--wyma-earth);
}

.appear {
    opacity: 0;
    transform: translateY(12px);
    animation: fade-up 0.65s ease forwards;
}

.appear.delay-1 {
    animation-delay: 0.1s;
}

.appear.delay-2 {
    animation-delay: 0.2s;
}

.appear.delay-3 {
    animation-delay: 0.3s;
}

@keyframes fade-up {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 991.98px) {
    .hero-split {
        grid-template-columns: 1fr;
        gap: 0.7rem;
    }

    .hero-banner {
        border-radius: 20px;
    }

    .hero-ads {
        border-radius: 20px;
    }

    .hero-ad-card {
        height: clamp(78px, 13vw, 110px);
    }

    .admin-user-label {
        margin: 0.45rem 0 0;
    }

    .navbar-brand small {
        display: none;
    }
}

@media (max-width: 767.98px) {
    .hero-wrap {
        padding-top: 0.6rem;
    }

    .hero-split {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .hero-banner {
        border-radius: 16px;
    }

    .hero-ads {
        border-radius: 16px;
    }

    .hero-ads-track {
        gap: 0.5rem;
        padding: 0.5rem;
    }

    .hero-ad-card {
        border-radius: 12px;
        height: clamp(62px, 18vw, 88px);
    }

    .script-heading {
        font-size: 2.4rem;
    }

    .quick-form {
        border-radius: 14px;
    }

    .admin-menu-link {
        flex: 1 1 calc(50% - 0.45rem);
    }
}
