/* Modern, fluid & dynamic enhancements layered on top of the YOOtheme theme */
:root {
  --dz-radius: 18px;
  --dz-ease: cubic-bezier(.22, .8, .24, 1);
  --dz-shadow: 0 10px 30px rgba(15, 40, 70, .12);
  --dz-shadow-lg: 0 24px 60px rgba(15, 40, 70, .22);
}

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

/* Scroll progress bar */
.dz-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 100%;
  transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, #19b5c9, #f5b83d, #ff7a59);
  z-index: 2000; pointer-events: none;
}

/* Header: glassy sticky navbar */
.uk-navbar-container { transition: background-color .4s var(--dz-ease), box-shadow .4s var(--dz-ease), backdrop-filter .4s; }
.uk-navbar-sticky .uk-navbar-container,
.uk-navbar-container.uk-navbar-sticky {
  background-color: rgba(255, 255, 255, .78) !important;
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 6px 24px rgba(15, 40, 70, .10);
}
.uk-navbar-nav > li > a { position: relative; transition: color .3s; }
.uk-navbar-nav > li > a::after {
  content: ""; position: absolute; left: 50%; bottom: 18px; height: 2px; width: 0;
  background: currentColor; transform: translateX(-50%);
  transition: width .4s var(--dz-ease);
}
.uk-navbar-nav > li:hover > a::after,
.uk-navbar-nav > li.uk-active > a::after { width: 36%; }

/* Hero / cover sections: gentle zoom + parallax feel */
.uk-cover-container, .uk-background-cover { overflow: hidden; }
.dz-hero-zoom { animation: dz-zoom 24s ease-in-out infinite alternate; }
@keyframes dz-zoom { from { transform: scale(1); } to { transform: scale(1.08); } }

/* Headings */
.uk-heading-medium, .uk-heading-large, .uk-heading-xlarge, .uk-heading-2xlarge, h1, h2 {
  letter-spacing: -.015em;
}

/* Cards, images and panels */
.uk-card, .uk-tile, .uk-panel img, .uk-section img:not(.uk-icon):not([width="16"]) {
  border-radius: var(--dz-radius);
}
.uk-card {
  box-shadow: var(--dz-shadow);
  transition: transform .5s var(--dz-ease), box-shadow .5s var(--dz-ease);
  overflow: hidden;
}
.uk-card:hover { transform: translateY(-8px); box-shadow: var(--dz-shadow-lg); }
.uk-inline-clip, .uk-transition-toggle { border-radius: var(--dz-radius); overflow: hidden; }
a img, .uk-inline img { transition: transform .8s var(--dz-ease), filter .5s; }
a:hover > img, .uk-inline:hover img { transform: scale(1.05); }

/* Buttons */
.uk-button {
  border-radius: 999px;
  transition: transform .3s var(--dz-ease), box-shadow .3s var(--dz-ease), background-color .3s, color .3s;
}
.uk-button:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(15, 40, 70, .22); }
.uk-button:active { transform: translateY(0); }

/* Forms */
.uk-input, .uk-select, .uk-textarea { border-radius: 12px; transition: border-color .3s, box-shadow .3s; }
.uk-input:focus, .uk-select:focus, .uk-textarea:focus { box-shadow: 0 0 0 4px rgba(25, 181, 201, .18); }

/* Tables (prices) */
.uk-table { border-radius: var(--dz-radius); overflow: hidden; }
.uk-table tbody tr { transition: background-color .25s, transform .25s var(--dz-ease); }
.uk-table tbody tr:hover { background: rgba(25, 181, 201, .08); }

/* Links in content */
.uk-link, .uk-section a:not(.uk-button):not(.uk-icon-button) { transition: color .25s, opacity .25s; }

/* Reveal on scroll */
.dz-reveal {
  opacity: 0; transform: translateY(36px) scale(.985);
  transition: opacity .9s var(--dz-ease), transform .9s var(--dz-ease);
  transition-delay: var(--dz-delay, 0s);
  will-change: opacity, transform;
}
.dz-reveal.dz-in { opacity: 1; transform: none; }

/* Page fade-in */
body { animation: dz-fade .7s var(--dz-ease) both; }
@keyframes dz-fade { from { opacity: 0; } to { opacity: 1; } }

/* Back to top */
.dz-top {
  position: fixed; right: 22px; bottom: 22px; width: 46px; height: 46px; border-radius: 50%;
  border: 0; cursor: pointer; color: #fff; font-size: 20px; line-height: 46px; text-align: center;
  background: linear-gradient(135deg, #19b5c9, #2a6fdb); box-shadow: var(--dz-shadow);
  opacity: 0; transform: translateY(20px); pointer-events: none;
  transition: opacity .4s, transform .4s var(--dz-ease); z-index: 1500;
}
.dz-top.dz-show { opacity: 1; transform: none; pointer-events: auto; }
.dz-top:hover { transform: translateY(-4px); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .dz-reveal { opacity: 1; transform: none; }
}

/* Compact hero/title sections so content appears higher */
.uk-section[uk-height-viewport] { min-height: 0 !important; height: auto !important; padding-top: 90px !important; padding-bottom: 60px !important; }
.uk-section[uk-height-viewport] .uk-heading-medium, .uk-section[uk-height-viewport] .uk-heading-large { margin-bottom: 0; }
@media (min-width: 960px) { .uk-section[uk-height-viewport] { padding-top: 140px !important; padding-bottom: 90px !important; } }

/* Always-black header on every page */
.uk-navbar-container, .uk-navbar-container.uk-navbar-transparent, .uk-navbar-sticky .uk-navbar-container, .uk-navbar-container.uk-navbar-sticky { background-color: rgb(34, 34, 34) !important; -webkit-backdrop-filter: none; backdrop-filter: none; }
.tm-header .uk-navbar-nav > li > a, .tm-header-mobile .uk-navbar-nav > li > a, .tm-header .uk-navbar-item, .tm-header .uk-logo, .tm-header-mobile .uk-logo, .tm-header-mobile .uk-navbar-toggle { color: #fff !important; }

/* Contact form (replaces Balbooa Forms) */
.dz-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; max-width: 100%; }
.dz-form .dz-full { grid-column: 1 / -1; }
.dz-form label { display: block; font-weight: bold; margin-bottom: 4px; }
.dz-form .dz-req { color: #d33; }
.dz-form input, .dz-form textarea { width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid #ccc; border-radius: 3px; font: inherit; background: #fff; }
.dz-form input { height: auto; line-height: 1.4; min-height: 46px; }
.dz-form input[type="date"] { display: block; -webkit-appearance: none; appearance: none; }
.dz-form textarea { min-height: 120px; resize: vertical; }
/* Captcha hidden for now: delete the next line to show Turnstile again */
.dz-form .dz-full:has(.cf-turnstile), .dz-form .cf-turnstile { display: none; }
.dz-form button { background: rgb(92, 198, 214); color: #fafafa; border: 0; border-radius: 3px; padding: 18px 50px; font: inherit; cursor: pointer; }
.dz-form button:disabled { opacity: .6; cursor: default; }
.dz-form .dz-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.dz-form-status { margin-top: 12px; }
.dz-form-status.dz-ok { color: #2a8a3a; }
.dz-form-status.dz-err { color: #d33; }
@media (max-width: 639px) { .dz-form { grid-template-columns: 1fr; } }
/* Hide header title on phones (clashes with MENU text) */
@media (max-width: 959px) { .tm-header-mobile .uk-navbar-center .uk-logo { display: none !important; } }
/* Reduce space between top menu and content on text pages */
#tm-main > .uk-section:first-of-type:not([uk-height-viewport]) { padding-top: 20px !important; }
/* Price page: rules on the left, prices on the right (wide screens) */
#dz-prices .uk-panel p { margin: 0 0 12px; }
#dz-prices .uk-panel ul { margin: 0; padding-left: 20px; }
#dz-prices .uk-panel:has(ul),
#dz-prices .uk-panel:has(> p:first-child strong) { background: #f6f9fb; border-left: 4px solid #5cc6d6; border-radius: 8px; padding: 18px 22px; }
#dz-prices table { width: 100% !important; height: auto !important; border-collapse: collapse; background: #fff; box-shadow: var(--dz-shadow); border-radius: 12px; overflow: hidden; }
#dz-prices th { background: rgb(92, 198, 214); color: #fff; padding: 12px 16px; }
#dz-prices td { padding: 10px 16px; border-bottom: 1px solid #eef1f3; }
#dz-prices td[colspan] { background: #f6f9fb; font-size: 1.1em; padding: 6px 16px; }
#dz-prices td:last-child:not([colspan]) { font-weight: bold; text-align: right; }
#dz-prices th:last-child { text-align: right !important; }
@media (min-width: 960px) {
  #dz-prices > .uk-container { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; width: 100%; box-sizing: border-box; }
  #dz-prices > .uk-container > * { min-width: 0; width: 100%; box-sizing: border-box; }
  #dz-prices > .uk-container > .uk-grid-margin > .uk-grid, #dz-prices > .uk-container > .uk-grid:first-child { display: block; }
  #dz-prices > .uk-container > .uk-grid-margin { margin-top: 0 !important; padding: 0 !important; max-width: none; }
  #dz-prices > .uk-container > .uk-grid:first-child { margin-left: 0; }
  #dz-prices > .uk-container > .uk-grid:first-child > div { padding-left: 0; }
  #dz-prices > .uk-container > .uk-grid-margin > .uk-grid { margin-left: 0; }
  #dz-prices > .uk-container > .uk-grid-margin > .uk-grid > .uk-width-2-3\@m { width: 100%; padding-left: 0; }
  #dz-prices > .uk-container > .uk-grid-margin > .uk-grid > .uk-width-1-3\@m { display: none; }
}
/* Info & reservation page: reduce space below the top menu */
@media (min-width: 0px) { #tm-main .uk-section[uk-height-viewport]:has(.dz-form) { padding-top: 20px !important; } }
