/* ===== Reset ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== Theme ===== */
:root {
    --bg-overlay: rgba(7, 12, 22, 0.45);
    --glass: rgba(255, 255, 255, 0.12);
    --glass-strong: rgba(255, 255, 255, 0.18);
    --border: rgba(255, 255, 255, 0.22);
    --text: #ffffff;
    --text-soft: rgba(255, 255, 255, 0.82);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
    --radius: 20px;
    --radius-sm: 14px;
    --max-width: 1280px;
}

/* ===== Base ===== */
html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, sans-serif;
    min-height: 100vh;
    color: var(--text);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;

    background-image: url("https://cdn.game-assets.online/web/borovets-xyz/mbanov-borovets.jpg");
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* Background layers */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: inherit;
    transform: scale(1.06);
    filter: blur(14px);
    z-index: -2;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(180deg, rgba(8, 15, 30, 0.55) 0%, rgba(8, 15, 30, 0.30) 35%, rgba(8, 15, 30, 0.55) 100%),
        radial-gradient(circle at top right, rgba(127, 200, 255, 0.16), transparent 30%),
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.08), transparent 25%);
}

/* ===== Shared layout ===== */
header,
main,
footer {
    width: 100%;
}

header,
footer {
    padding: 18px 24px;
}

header,
footer,
main > * {
    position: relative;
    z-index: 1;
}

/* ===== Header ===== */
header {
    width: min(calc(100% - 24px), var(--max-width));
    margin: 14px auto 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;

    background: var(--glass);
    border: 1px solid var(--border);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

header .links {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

header .links a,
footer .links a {
    color: var(--text);
    text-decoration: none;
    font-size: 0.98rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 10px 14px;
    border-radius: 999px;
    transition: 0.25s ease;
}

header .links a:hover,
footer .links a:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-1px);
}

#weatherInfo {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    text-align: right;
    color: var(--text-soft);
}

/* ===== Weather ===== */
#weatherInfo img {
    width: 1.8rem;
    height: 1.8rem;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.25));
}

.temperature {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;

    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.temperature i {
    opacity: 0.95;
}

.error {
    color: #ffd7d7;
    background: rgba(255, 80, 80, 0.16);
    border: 1px solid rgba(255, 180, 180, 0.25);
    padding: 10px 14px;
    border-radius: 999px;
}

/* ===== Main ===== */
main {
    flex: 1;
    width: min(calc(100% - 24px), var(--max-width));
    margin: 0 auto;
    padding: 32px 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

main h1 {
    font-size: clamp(3rem, 8vw, 6.4rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 0.95;
    text-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
    margin-bottom: 14px;
}

main h2 {
    max-width: 760px;
    font-size: clamp(1.15rem, 2.4vw, 1.75rem);
    font-weight: 400;
    line-height: 1.4;
    color: var(--text-soft);
    margin-bottom: 34px;
    text-shadow: 0 4px 18px rgba(0, 0, 0, 0.2);
}

/* Hero card effect without changing structure */
main {
    position: relative;
}

main::before {
    content: "";
    position: absolute;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    width: min(820px, 100%);
    height: 320px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0.03) 42%, transparent 72%);
    pointer-events: none;
    z-index: 0;
}

main h1,
main h2,
main script {
    position: relative;
    z-index: 1;
}

/* Optional widget wrapper if later you add a div around it */
.booking-widget,
.banner {
    width: 100%;
    max-width: 980px;
    margin: 0 auto;
}

/* ===== Footer ===== */
footer {
    width: min(calc(100% - 24px), var(--max-width));
    margin: 0 auto 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;

    background: var(--glass);
    border: 1px solid var(--border);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

footer .links {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

footer .copyright {
    color: var(--text-soft);
    font-size: 0.95rem;
    font-weight: 500;
}

/* ===== Optional banner ===== */
.banner {
    min-height: 100px;
    padding: 20px;
    border-radius: var(--radius-sm);
    background: var(--glass-strong);
    border: 1px solid var(--border);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: var(--shadow);
}

/* ===== Small polish ===== */
a,
.temperature,
header,
footer {
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

header:hover,
footer:hover {
    border-color: rgba(255, 255, 255, 0.3);
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
    header,
    footer {
        width: min(calc(100% - 16px), var(--max-width));
        padding: 16px 18px;
        border-radius: 18px;
    }

    main {
        width: min(calc(100% - 16px), var(--max-width));
        padding: 26px 0;
    }
}

@media (max-width: 768px) {
    body {
        background-attachment: scroll;
    }

    header,
    footer {
        flex-direction: column;
        text-align: center;
    }

    header .links,
    footer .links {
        justify-content: center;
    }

    #weatherInfo {
        justify-content: center;
        text-align: center;
        width: 100%;
    }

    .temperature {
        justify-content: center;
        border-radius: 18px;
    }

    main h1 {
        margin-bottom: 12px;
    }

    main h2 {
        margin-bottom: 26px;
        padding: 0 10px;
    }
}

@media (max-width: 480px) {
    header,
    footer {
        padding: 14px;
    }

    header .links a,
    footer .links a {
        padding: 9px 12px;
        font-size: 0.92rem;
    }

    .temperature {
        font-size: 0.95rem;
        gap: 8px;
        padding: 10px 12px;
    }

    #weatherInfo img {
        width: 1.5rem;
        height: 1.5rem;
    }
}

.widget-center {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.booking-widget {
    width: 100%;
    max-width: 980px;
    display: flex;
    justify-content: center;
}