/* fonts */
@font-face {
    font-family: 'BodoniElegant';
    src: url('../fonts/BodoniElegant-Regular.woff2') format('woff2'),
        url('../fonts/BodoniElegant-Regular.woff') format('woff'),
        url('../fonts/BodoniElegant-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}


/* Skeleton loading animation */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 2px;
}

.skeleton-text {
    height: 1em;
    margin-bottom: 0.5em;
}

.skeleton-price {
    height: 1.5em;
    width: 80px;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Update your existing spinner */
.spinner {
    display: inline-block;
    width: 18px; height: 18px;
    border: 2px solid rgba(0,0,0,0.08);
    border-top-color: #5D473A;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
    margin-left: 8px;
}



/* Selection */
::selection {
  background: #e4d2b8;
  color: #0f0f0f;
}

::-moz-selection { /* For Firefox */
  background: #A9A9A9;
  color: #0f0f0f;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 9px;
  height: 9px;
  background-color: #0f0f0f;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 9px;
  height: 9px;
  background-color: #0f0f0f;
}

::-webkit-scrollbar-track {
  background-color: transparent;
}

::-webkit-scrollbar-thumb {
  background: #0000;
  border: 1px solid #4B5563;
  border-radius: 0;
  box-sizing: border-box; 
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  border-color: rgba(255, 255, 255, 0.88);
  background-color: rgba(255, 255, 255, 0.05);
}

* {
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.88) #0f0f0f;
}

html, body {
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.88) #0f0f0f;
}


/* Prevent image dragging and selection */
img {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

/* Reduce for motion sickness */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}






/* Partials */
/* Header / Nav */
nav.site-nav {
    transform: translateY(0);
    transition: transform 320ms cubic-bezier(.2,.9,.2,1), box-shadow 220ms ease, backdrop-filter 220ms ease;
    will-change: transform;
    z-index: 9999;
}
nav.site-nav.nav-hidden {
    transform: translateY(-110%);
}

.menu-btn {
    position: relative;
    width: 32px;
    height: 22px;
    cursor: pointer;
    background: none;
    border: none;
}

/* bars */
.menu-btn .bar {
    position: absolute;
    left: 0;
    height: 2px;
    background: #f8f8f6;
    border-radius: 1px;
    transition: all 0.3s ease;
}
.menu-btn .bar.top {
    top: 6px;
    width: 100%;
}
.menu-btn .bar.bottom {
    top: 14px;
    width: 70%;
}
.menu-btn:hover .bar.bottom {
    width: 100%;
}

/* arrow head, hidden at start */
.menu-btn .arrow-head {
    position: absolute;
    top: 50%;
    left: 0;
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-right: 6px solid #f8f8f6;
    transform: translate(-6px, -50%) scaleX(0);
    transform-origin: left center;
    transition: transform 0.3s ease;
}

/* active state → lines merge into one */
.menu-btn.active .bar.top,
.menu-btn.active .bar.bottom {
    top: 50%;
    width: 100%;
    transform: translateY(-50%);
}

/* reveal arrow head */
.menu-btn.active .arrow-head {
    transform: translate(-6px, -50%) scaleX(1);
}

/* book btn */
.book-btn {
    position: relative;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
    transition: color .25s ease, transform 1s ease-out;
    z-index: 0;
    border: 2px solid #f8f8f6;
    backface-visibility: hidden;
}

.book-btn::before {
    content: "";
    position: absolute;
    left: -2px;
    right: -2px;
    top: -2px;
    bottom: -2px;
    background: #f8f8f6;
    transform: translateY(100%);
    transition: transform .38s cubic-bezier(.2,.9,.2,1);
    z-index: -1;
    will-change: transform;
}

.book-btn.in::before {transform: translateY(0%);}
.book-btn.out::before {transform: translateY(100%);}

.book-btn.in {color: #1a1a1a;}
.book-btn { color: #f8f8f6;}

.book-btn:active {color: #f8f8f6;}
.book-btn:active::before {background: none;}


/* aside links */
.nav-link {
    position: relative;
    display: inline-block;
    padding-bottom: 2px;  
}
.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background-color: currentColor;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.35s ease;
}
.nav-link:hover::after,
.nav-link:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}