:root {
    --cream: #faf8f3;
    --soft-cream: #fdfbf7;
    --deep-green: #2e5e4e;
    --dark-green: #1e4338;
    --gold: #c9a66b;
    --light-gold: #ead7b1;
    --brown: #5b6e67;
    --soft-brown: #7f8e88;
    --white: #ffffff;
    --black: #111111;
    --text: #243d35;
    --muted: #6e7f79;
    --border: rgba(46, 94, 78, 0.12);
    --gold-border: rgba(201, 166, 107, 0.35);
    --shadow-sm: 0 8px 22px rgba(30, 67, 56, 0.08);
    --shadow: 0 18px 45px rgba(30, 67, 56, 0.12);
    --shadow-lg: 0 26px 70px rgba(30, 67, 56, 0.16);
    --radius-sm: 12px;
    --radius-md: 18px;
    --radius-lg: 28px;
    --container: 1200px;
    --header-height: 84px;
    --transition: 220ms ease;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + 20px);
}

body {
    min-width: 320px;
    font-family: "Inter", sans-serif;
    background: var(--soft-cream);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

main {
    min-height: 55vh;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

button,
[role="button"] {
    cursor: pointer;
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
}

img {
    height: auto;
}

ul,
ol {
    list-style-position: inside;
}

address {
    font-style: normal;
}

::selection {
    background: var(--gold);
    color: var(--dark-green);
}

:focus-visible {
    outline: 3px solid rgba(201, 166, 107, 0.72);
    outline-offset: 3px;
}


/* =========================================================
   ACCESSIBILITY
========================================================= */

.skip-to-content {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 100000;
    padding: 11px 16px;
    border-radius: 10px;
    background: var(--dark-green);
    color: var(--white);
    font-size: 13px;
    font-weight: 800;
    transform: translateY(-160%);
    transition: transform var(--transition);
}

.skip-to-content:focus {
    transform: translateY(0);
}

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}


/* =========================================================
   CONTAINERS
========================================================= */

.container,
.sv-container {
    width: min(calc(100% - 40px), var(--container));
    margin-inline: auto;
}


/* =========================================================
   SECTIONS
========================================================= */

.section {
    padding: 92px 0;
}

.section-sm {
    padding: 64px 0;
}

.section-title {
    font-family: "Cormorant Garamond", serif;
    color: var(--dark-green);
    font-size: clamp(38px, 5vw, 64px);
    line-height: 1.05;
    letter-spacing: -0.02em;
}

.section-subtitle {
    max-width: 680px;
    margin-top: 14px;
    color: var(--muted);
    font-size: 16px;
}


/* =========================================================
   BUTTONS
========================================================= */

.btn,
button.btn {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 12px 22px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 800;
    transition:
        transform var(--transition),
        box-shadow var(--transition),
        background-color var(--transition),
        color var(--transition),
        border-color var(--transition);
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: var(--deep-green);
    color: var(--white);
    box-shadow: 0 12px 28px rgba(46, 94, 78, 0.2);
}

.btn-primary:hover {
    background: var(--dark-green);
    box-shadow: 0 16px 34px rgba(30, 67, 56, 0.25);
}

.btn-gold {
    background: var(--gold);
    color: var(--dark-green);
    box-shadow: 0 12px 28px rgba(201, 166, 107, 0.25);
}

.btn-outline {
    border-color: var(--gold-border);
    background: transparent;
    color: var(--dark-green);
}

.btn-outline:hover {
    border-color: var(--gold);
    background: rgba(234, 215, 177, 0.28);
}


/* =========================================================
   CARDS
========================================================= */

.card,
.sv-card {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition:
        transform var(--transition),
        box-shadow var(--transition),
        border-color var(--transition);
}

.card:hover,
.sv-card:hover {
    transform: translateY(-4px);
    border-color: var(--gold-border);
    box-shadow: var(--shadow);
}


/* =========================================================
   IMPORTANT:
   NO GLOBAL FORM INPUT STYLING HERE
   =========================================================

   Inputs / textarea / select should be styled
   inside their own page CSS:

   auth.css
   contact.css
   footer.css
   booking CSS
   etc.

   This prevents one form page from breaking another.
========================================================= */


/* =========================================================
   GLOBAL ALERT
========================================================= */

.global-alert {
    position: fixed;
    top: calc(var(--header-height) + 16px);
    right: 20px;
    z-index: 99999;
    width: min(420px, calc(100% - 30px));
    padding: 15px 16px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
    animation: svAlertIn 0.38s ease both;
}

.global-alert.is-hiding {
    animation: svAlertOut 0.28s ease both;
}

.success-alert {
    border: 1px solid rgba(31, 146, 84, 0.2);
    border-left: 5px solid #1f9254;
    background: #edf9f2;
    color: #176f42;
}

.error-alert {
    border: 1px solid rgba(220, 38, 38, 0.18);
    border-left: 5px solid #dc2626;
    background: #fff1f2;
    color: #b91c1c;
}

.global-alert span {
    font-size: 14px;
    font-weight: 750;
}

.global-alert-close {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.58);
    color: inherit;
    font-size: 22px;
    line-height: 1;
}


/* =========================================================
   REVEAL
========================================================= */

[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition:
        opacity 650ms ease,
        transform 650ms ease;
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}


/* =========================================================
   IMAGE ZOOM
========================================================= */

.image-zoom {
    overflow: hidden;
}

.image-zoom img {
    transition: transform 500ms ease;
}

.image-zoom:hover img {
    transform: scale(1.045);
}


/* =========================================================
   TABLE
========================================================= */

.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}


/* =========================================================
   EMPTY STATE
========================================================= */

.empty-state {
    padding: 48px 24px;
    border: 1px dashed var(--gold-border);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.66);
    text-align: center;
}


/* =========================================================
   ALERT ANIMATION
========================================================= */

@keyframes svAlertIn {
    from {
        opacity: 0;
        transform: translate3d(55px, 0, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes svAlertOut {
    from {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }

    to {
        opacity: 0;
        transform: translate3d(55px, 0, 0);
    }
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 991px) {
    :root {
        --header-height: 76px;
    }

    .section {
        padding: 74px 0;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {
    .container,
    .sv-container {
        width: min(calc(100% - 28px), var(--container));
    }

    .section {
        padding: 62px 0;
    }

    .section-sm {
        padding: 48px 0;
    }

    .global-alert {
        top: calc(var(--header-height) + 10px);
        right: 14px;
        left: 14px;
        width: auto;
    }

    .btn,
    button.btn {
        min-height: 46px;
        padding-inline: 18px;
    }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 575px) {
    .container,
    .sv-container {
        width: min(calc(100% - 24px), var(--container));
    }

    .section-title {
        font-size: clamp(34px, 11vw, 48px);
    }
}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }

    [data-reveal] {
        opacity: 1;
        transform: none;
    }
}


/* =========================================================
   SPAVERSE GUEST BOOKING POPUP
   ONLY LOGIN REQUIRED STATE
========================================================= */

.spa-booking-guest-layout {
    display: grid;
    width: 100%;
    min-height: 440px;
    grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
    overflow: hidden;
    background: #ffffff;
}


/* =========================================================
   LEFT PREMIUM PANEL
========================================================= */

.spa-booking-guest-visual {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 440px;
    padding: 46px 44px;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    background:
        linear-gradient(
            135deg,
            rgba(46, 94, 78, 0.97),
            rgba(30, 67, 56, 0.99)
        );
}

.spa-booking-guest-visual::before {
    position: absolute;
    top: -120px;
    right: -80px;
    width: 310px;
    height: 310px;
    content: "";
    border: 1px solid rgba(234, 215, 177, 0.18);
    border-radius: 50%;
}

.spa-booking-guest-visual::after {
    position: absolute;
    top: 45px;
    right: 45px;
    width: 78px;
    height: 78px;
    content: "✾";
    display: grid;
    place-items: center;
    color: rgba(234, 215, 177, 0.5);
    font-size: 34px;
    border: 1px solid rgba(234, 215, 177, 0.14);
    border-radius: 50%;
}

.spa-booking-guest-visual > span {
    position: relative;
    z-index: 2;
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 10px;
    margin-bottom: 13px;
    color: #ead7b1;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.spa-booking-guest-visual > span::before {
    width: 28px;
    height: 1px;
    content: "";
    background: #c9a66b;
}

.spa-booking-guest-visual h3 {
    position: relative;
    z-index: 2;
    max-width: 500px;
    margin: 0;
    color: #ffffff;
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(38px, 4vw, 52px);
    font-weight: 700;
    line-height: 0.98;
    letter-spacing: -0.035em;
}

.spa-booking-guest-visual p {
    position: relative;
    z-index: 2;
    max-width: 440px;
    margin: 17px 0 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 11.5px;
    line-height: 1.7;
}


/* =========================================================
   RIGHT LOGIN CARD
========================================================= */

.spa-booking-login-required {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 440px;
    padding: 42px 38px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    overflow: hidden;
    text-align: center;
    background:
        radial-gradient(
            circle at 100% 0%,
            rgba(201, 166, 107, 0.13),
            transparent 30%
        ),
        #ffffff;
}

.spa-booking-login-required::before {
    position: absolute;
    left: -85px;
    bottom: -100px;
    width: 230px;
    height: 230px;
    content: "";
    background: rgba(46, 94, 78, 0.035);
    border-radius: 50%;
}


/* =========================================================
   ICON
========================================================= */

.spa-booking-login-icon {
    position: relative;
    z-index: 2;
    display: grid;
    width: 70px;
    height: 70px;
    margin-bottom: 18px;
    place-items: center;
    color: #2e5e4e;
    font-size: 28px;
    background: #f3f7f5;
    border: 1px solid rgba(46, 94, 78, 0.12);
    border-radius: 20px;
    box-shadow:
        0 12px 28px rgba(30, 67, 56, 0.09);
}

.spa-booking-login-icon::after {
    position: absolute;
    top: -5px;
    right: -5px;
    display: grid;
    width: 18px;
    height: 18px;
    content: "✓";
    place-items: center;
    color: #ffffff;
    font-family: Arial, sans-serif;
    font-size: 8px;
    font-weight: 900;
    background: #c9a66b;
    border: 3px solid #ffffff;
    border-radius: 50%;
}


/* =========================================================
   TEXT
========================================================= */

.spa-booking-login-required > span {
    position: relative;
    z-index: 2;
    margin-bottom: 8px;
    color: #a98249;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.6px;
    text-transform: uppercase;
}

.spa-booking-login-required h4 {
    position: relative;
    z-index: 2;
    margin: 0;
    color: #1e4338;
    font-family: "Cormorant Garamond", serif;
    font-size: 36px;
    font-weight: 700;
    line-height: 1;
}

.spa-booking-login-required p {
    position: relative;
    z-index: 2;
    max-width: 320px;
    margin: 12px auto 0;
    color: #6e7f79;
    font-size: 11px;
    line-height: 1.65;
}


/* =========================================================
   LOGIN BUTTON
========================================================= */

.spa-booking-login-required > a {
    position: relative;
    z-index: 2;
    display: flex;
    width: 100%;
    max-width: 305px;
    min-height: 48px;
    margin-top: 22px;
    padding: 6px 7px 6px 18px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #ffffff !important;
    font-size: 11px;
    font-weight: 800;
    text-decoration: none;
    background: #2e5e4e;
    border: 1px solid #2e5e4e;
    border-radius: 11px;
    box-shadow:
        0 11px 24px rgba(30, 67, 56, 0.18);
    transition:
        transform 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.spa-booking-login-required > a b {
    display: grid;
    width: 35px;
    height: 35px;
    flex: 0 0 35px;
    place-items: center;
    color: #1e4338;
    font-size: 14px;
    background: #ffffff;
    border-radius: 8px;
    transition: transform 0.2s ease;
}

.spa-booking-login-required > a:hover {
    color: #ffffff !important;
    background: #1e4338;
    box-shadow:
        0 15px 30px rgba(30, 67, 56, 0.24);
    transform: translateY(-2px);
}

.spa-booking-login-required > a:hover b {
    transform: translateX(2px);
}


/* =========================================================
   CLOSE BUTTON
========================================================= */

.spa-card-booking-modal:has(.spa-booking-guest-layout)
.spa-booking-close {
    z-index: 50;
    color: #1e4338;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid rgba(46, 94, 78, 0.12);
    box-shadow: 0 8px 20px rgba(30, 67, 56, 0.11);
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 991px) {

    .spa-booking-guest-layout {
        grid-template-columns:
            minmax(0, 1fr)
            minmax(320px, 0.95fr);
    }

    .spa-booking-guest-visual,
    .spa-booking-login-required {
        min-height: 420px;
    }

    .spa-booking-guest-visual {
        padding: 38px 31px;
    }

    .spa-booking-guest-visual h3 {
        font-size: 39px;
    }

    .spa-booking-login-required {
        padding: 36px 28px;
    }

    .spa-booking-login-required h4 {
        font-size: 31px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    .spa-booking-guest-layout {
        display: flex;
        min-height: 0;
        flex-direction: column;
    }

    .spa-booking-guest-visual {
        min-height: 185px;
        padding: 29px 21px 24px;
    }

    .spa-booking-guest-visual::after {
        top: 25px;
        right: 22px;
        width: 52px;
        height: 52px;
        font-size: 23px;
    }

    .spa-booking-guest-visual > span {
        margin-bottom: 9px;
        font-size: 8px;
        letter-spacing: 1.4px;
    }

    .spa-booking-guest-visual > span::before {
        width: 20px;
    }

    .spa-booking-guest-visual h3 {
        max-width: 330px;
        font-size: 30px;
        line-height: 1;
    }

    .spa-booking-guest-visual p {
        max-width: 340px;
        margin-top: 9px;
        font-size: 9.5px;
        line-height: 1.55;
    }

    .spa-booking-login-required {
        min-height: 0;
        padding: 25px 19px 23px;
    }

    .spa-booking-login-icon {
        width: 56px;
        height: 56px;
        margin-bottom: 13px;
        font-size: 22px;
        border-radius: 16px;
    }

    .spa-booking-login-required > span {
        margin-bottom: 6px;
        font-size: 8px;
    }

    .spa-booking-login-required h4 {
        font-size: 27px;
    }

    .spa-booking-login-required p {
        max-width: 300px;
        margin-top: 8px;
        font-size: 9.5px;
        line-height: 1.55;
    }

    .spa-booking-login-required > a {
        max-width: 290px;
        min-height: 44px;
        margin-top: 16px;
        padding: 5px 6px 5px 15px;
        font-size: 10px;
    }

    .spa-booking-login-required > a b {
        width: 32px;
        height: 32px;
        flex-basis: 32px;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .spa-booking-guest-visual {
        min-height: 170px;
        padding: 26px 17px 21px;
    }

    .spa-booking-guest-visual h3 {
        font-size: 27px;
    }

    .spa-booking-login-required {
        padding: 22px 16px 20px;
    }

    .spa-booking-login-icon {
        width: 52px;
        height: 52px;
    }

    .spa-booking-login-required h4 {
        font-size: 25px;
    }

    .spa-booking-login-required > a {
        width: 100%;
        max-width: none;
    }

}