* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --tropical-gradient: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
  --dark-bg: #0a0a0a;
  --text-light: #e0e0e0;
  --accent-purple: #764ba2;
  --accent-gold: #fee140;
  --glass-bg: rgba(255, 255, 255, 0.05);
}

body { font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; background: var(--dark-bg); color: var(--text-light); overflow-x: hidden; line-height: 1.6; }

/* Loading Animation */
.loader { position: fixed; inset: 0; background: var(--dark-bg); z-index: 9999; display: flex; justify-content: center; align-items: center; animation: fadeOut .5s 2s forwards; }
.loader-content { text-align: center; }
.loader-logo { font-size: 4rem; font-weight: 900; background: var(--tropical-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; animation: pulse 1.5s infinite; }
@keyframes fadeOut { to { opacity: 0; visibility: hidden; } }
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.1); } }

/* Navigation */
nav { position: fixed; top: 0; width: 100%; padding: 1.5rem 5%; background: rgba(10,10,10,.95); backdrop-filter: blur(20px); z-index: 1000; transition: all .3s ease; }
nav.scrolled { padding: 1rem 5%; background: rgba(10,10,10,.98); }
.nav-container { display: flex; justify-content: space-between; align-items: center; max-width: 1400px; margin: 0 auto; }
.logo { font-size: 2rem; font-weight: 900; background: var(--tropical-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; letter-spacing: -1px; transition: transform .3s ease; }
.logo:hover { transform: scale(1.05); }
.nav-menu { display: flex; gap: 2rem; list-style: none; }
.nav-link { color: var(--text-light); text-decoration: none; font-weight: 500; position: relative; transition: color .3s ease; }
.nav-link::after { content: ""; position: absolute; bottom: -5px; left: 0; width: 0; height: 2px; background: var(--tropical-gradient); transition: width .3s ease; }
.nav-link:hover { color: var(--accent-gold); }
.nav-link:hover::after { width: 100%; }
.hamburger { display: none; flex-direction: column; gap: 4px; cursor: pointer; border: none; background: none; }
.hamburger span { width: 25px; height: 3px; background: var(--text-light); transition: all .3s ease; }
.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Hero */
.hero { height: 100vh; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: radial-gradient(ellipse at top, rgba(118,75,162,.3), transparent 60%), radial-gradient(ellipse at bottom, rgba(250,112,154,.3), transparent 60%), var(--dark-bg); }
.tropical-particles { position: absolute; inset: 0; }
.particle { position: absolute; width: 4px; height: 4px; background: var(--accent-gold); border-radius: 50%; opacity: 0; animation: float 15s infinite linear; }
@keyframes float { 0% { opacity: 0; transform: translateY(100vh) rotate(0); } 10% { opacity: 1; } 90% { opacity: 1; } 100% { opacity: 0; transform: translateY(-100vh) rotate(360deg); } }
.hero-content { position: relative; z-index: 2; text-align: center; padding: 0 2rem; max-width: 900px; }
.hero-title { display: block; font-size: clamp(3rem, 8vw, 6rem); font-weight: 900; margin-bottom: 1.5rem; background: linear-gradient(135deg, #fff 0%, #fee140 50%, #fa709a 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; animation: shimmer 3s ease-in-out infinite; line-height: 1.1em; min-height: calc(2 * 1em * 1.1); }
@keyframes shimmer { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.hero-subtitle { font-size: 1.5rem; margin-bottom: 2.5rem; opacity: .9; animation: fadeInUp 1s .5s both; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
.cta-button { display: inline-block; padding: 1.2rem 3rem; background: var(--tropical-gradient); color: var(--dark-bg); text-decoration: none; font-weight: 700; font-size: 1.1rem; border-radius: 50px; transition: all .3s ease; position: relative; overflow: hidden; animation: fadeInUp 1s .8s both; }
.cta-button::before { content: ""; position: absolute; top: 50%; left: 50%; width: 0; height: 0; border-radius: 50%; background: rgba(255,255,255,.3); transform: translate(-50%,-50%); transition: width .6s, height .6s; }
.cta-button:hover { transform: translateY(-3px); box-shadow: 0 20px 40px rgba(254,225,64,.3); }
.cta-button:hover::before { width: 300px; height: 300px; }

/* About */
.about { padding: 6rem 5%; position: relative; }
.section-container { max-width: 1200px; margin: 0 auto; }
.section-title { font-size: 3rem; font-weight: 900; text-align: center; margin-bottom: 4rem; background: var(--primary-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 3rem; margin-top: 4rem; }
.about-card { background: var(--glass-bg); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.1); padding: 2.5rem; border-radius: 20px; transition: all .4s ease; position: relative; overflow: hidden; }
.about-card::before { content: ""; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(circle, rgba(254,225,64,.1) 0%, transparent 70%); opacity: 0; transition: opacity .4s ease; }
.about-card:hover { transform: translateY(-10px); border-color: rgba(254,225,64,.3); }
.about-card:hover::before { opacity: 1; }
.card-icon { font-size: 3rem; margin-bottom: 1.5rem; filter: drop-shadow(0 0 20px currentColor); }
.card-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 1rem; background: var(--tropical-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.card-description { line-height: 1.8; opacity: .9; }

/* Services */
.services { padding: 6rem 5%; background: linear-gradient(135deg, rgba(118,75,162,.1) 0%, rgba(250,112,154,.1) 100%); }
.services-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 3rem; margin-top: 4rem; }
.service-card { background: rgba(255,255,255,.03); backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,.1); border-radius: 25px; padding: 3rem; text-align: center; transition: all .4s ease; position: relative; overflow: hidden; }
.service-card::after { content: ""; position: absolute; inset: 0; background: var(--tropical-gradient); opacity: 0; z-index: -1; transition: opacity .4s ease; }
.service-card:hover { transform: scale(1.05); border-color: var(--accent-gold); }
.service-card:hover::after { opacity: .1; }
.service-icon { font-size: 4rem; margin-bottom: 2rem; display: inline-block; transform: translateY(0); transition: transform .35s ease, filter .35s ease, text-shadow .35s ease; }
.service-card:hover .service-icon { animation: bounce .9s ease; text-shadow: 0 8px 24px rgba(254,225,64,.25); filter: drop-shadow(0 6px 20px rgba(254,225,64,.15)); }
@keyframes bounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .service-card:hover .service-icon { animation: none; transform: translateY(-4px); } }

/* Gallery */
.gallery { padding: 6rem 5%; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 2rem; margin-top: 4rem; }
.gallery-item { position: relative; height: 300px; background: var(--glass-bg); border-radius: 20px; overflow: hidden; cursor: pointer; transition: all .4s ease; }
.gallery-item::before { content: ""; position: absolute; inset: 0; background: var(--tropical-gradient); opacity: .3; transition: opacity .4s ease; }
.gallery-item:hover { transform: scale(1.05); box-shadow: 0 20px 40px rgba(254,225,64,.2); }
.gallery-item:hover::before { opacity: .5; }
.gallery-content { position: absolute; bottom: 0; left: 0; right: 0; padding: 2rem; background: linear-gradient(to top, rgba(0,0,0,.9), transparent); transform: translateY(100%); transition: transform .4s ease; }
.gallery-item:hover .gallery-content { transform: translateY(0); }
.gallery-title { font-size: 1.5rem; font-weight: 700; margin-bottom: .5rem; }
.gallery-item img {
  width: -webkit-fill-available;
  height: -webkit-fill-available;
  opacity: .8;
}

/* Contact */
.contact { padding: 6rem 5%; background: linear-gradient(135deg, rgba(118,75,162,.2) 0%, rgba(250,112,154,.2) 100%); }
.contact-content { max-width: 800px; margin: 0 auto; text-align: center; }
.contact-info { display: grid; grid-template-columns: 1fr; gap: 3rem; margin-top: 4rem; }
.contact-item { background: var(--glass-bg); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.1); padding: 2rem; border-radius: 20px; transition: all .3s ease; }
.contact-item:hover { transform: translateY(-5px); border-color: var(--accent-gold); }
.contact-icon { font-size: 2.5rem; margin-bottom: 1rem; color: var(--accent-gold); }
.contact-label { font-size: 1.2rem; font-weight: 700; margin-bottom: .5rem; background: var(--tropical-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }

@media (min-width: 768px) and (max-width: 1199px) {
  .contact-info { grid-template-columns: repeat(2, 1fr); }
  .contact-info .contact-item:nth-child(3) { grid-column: 1 / -1; justify-self: center; max-width: 420px; }
}
@media (min-width: 1200px) { .contact-info { grid-template-columns: repeat(3, 1fr); } }

/* Map */
.map-card { margin-top: 3rem; background: var(--glass-bg); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.1); border-radius: 20px; overflow: hidden; max-width: 100%; margin-left: auto; margin-right: auto; }
.map-header { display: flex; align-items: center; gap: .75rem; padding: 1rem 1.25rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.map-header .dot { width: 10px; height: 10px; background: var(--accent-gold); border-radius: 50%; box-shadow: 0 0 20px rgba(254,225,64,.5); }
.map-title { font-weight: 800; letter-spacing: .2px; }
.map-frame { width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; display: block; filter: saturate(1.05) contrast(1.05); }
@supports not (aspect-ratio: 1 / 1) {
  .map-frame { height: 420px; }
  @media (max-width: 768px) { .map-frame { height: 320px; } }
}

/* Reservation Form */
#reservation { scroll-margin-top: 110px; }
.form-wrap { margin-top: 4rem; }
.form-card { background: var(--glass-bg); backdrop-filter: blur(14px); border: 1px solid rgba(255,255,255,.12); border-radius: 24px; padding: 2rem; transition: border-color .3s ease, transform .3s ease, box-shadow .3s ease; position: relative; overflow: hidden; }
.form-card::before { content: ""; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(circle, rgba(250,112,154,.1), transparent 70%); opacity: 0; transition: opacity .4s ease; z-index: 0; }
.form-card:hover::before { opacity: 1; }
.form-card > * { position: relative; z-index: 1; }
.form-title { font-size: 2rem; font-weight: 900; text-align: center; margin-bottom: 1.25rem; background: var(--primary-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.form-subtitle { text-align: center; opacity: .85; margin-bottom: 2rem; }
.form-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1rem 1.25rem; }
@media (max-width: 768px) { .form-grid { grid-template-columns: 1fr; } }
.form-field { grid-column: span 6; position: relative; }
.form-field.full { grid-column: 1 / -1; }
.form-field.third { grid-column: span 4; }
@media (max-width: 768px) { .form-field, .form-field.third { grid-column: 1 / -1; } }

.input, .select, .textarea {
  display: block; width: 100%; min-height: 52px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,.12);
  color: var(--text-light);
  border-radius: 14px;
  padding: 0 1rem;
  font-size: 1rem; line-height: 1.4;
  outline: none;
  transition: border-color .25s ease, box-shadow .25s ease, background .25s ease;
  -webkit-appearance: none; -moz-appearance: none; appearance: none;
}
.textarea { padding: 1rem; min-height: 120px; resize: vertical; }

/* Modern select arrow */
.select {
  padding-right: 2.75rem; /* místo pro šipku */
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23e0e0e0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 18px 18px;
}
.select option { background: #0f0f0f; color: var(--text-light); }

.input::placeholder, .textarea::placeholder { color: rgba(255,255,255,0.5); }

.input:focus, .select:focus, .textarea:focus {
  border-color: rgba(254,225,64,0.6);
  box-shadow: 0 0 0 6px rgba(254,225,64,0.15);
  background: rgba(255,255,255,0.09);
}

.floating-label { position: absolute; left: 12px; top: 12px; padding: 0 .25rem; background: rgba(10,10,10,.85); transform-origin: left top; transition: transform .2s ease, opacity .2s ease, top .2s ease; opacity: .75; pointer-events: none; }
.form-field:has(> .select option:checked:not([value=""])) > .floating-label,
.input:not(:placeholder-shown) + .floating-label,
.input:focus + .floating-label,
.input.has-value + .floating-label,
.select:focus + .floating-label,
.select:valid + .floating-label,
.select.has-value + .floating-label,
.textarea:not(:placeholder-shown) + .floating-label,
.textarea:focus + .floating-label,
.textarea.has-value + .floating-label,
.form-field.has-value > .floating-label { transform: translateY(-1.25rem) scale(.85); opacity: .9; }

.helper { font-size: .9rem; opacity: .7; margin-top: .35rem; }
.form-actions { display: flex; align-items: center; gap: 1rem; justify-content: space-between; flex-wrap: wrap; margin-top: 1.25rem; }
.consent { display: flex; align-items: flex-start; gap: .6rem; font-size: .95rem; opacity: .85; }

.btn-primary { appearance: none; border: 0; cursor: pointer; font-weight: 800; letter-spacing: .2px; padding: 1rem 1.75rem; border-radius: 999px; background: var(--tropical-gradient); color: var(--dark-bg); transition: transform .25s ease, box-shadow .25s ease, opacity .25s ease; position: relative; overflow: hidden; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 36px rgba(254,225,64,.25); }
.btn-primary:disabled { opacity: .7; cursor: not-allowed; }
.spinner { display: none; margin-left: .5rem; }
.loading .spinner { display: inline-block; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.toast { margin-top: 1rem; border-radius: 14px; padding: 1rem 1.25rem; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.05); display: none; }
.toast.success { border-color: rgba(16,185,129,.5); }
.toast.error { border-color: rgba(248,113,113,.5); }

/* Footer */
footer { padding: 3rem 5%; background: rgba(10,10,10,.95); text-align: center; }
.footer-content { max-width: 1200px; margin: 0 auto; }
.social-links { display: flex; justify-content: center; gap: 2rem; margin-bottom: 2rem; }
.social-link { display: inline-block; width: 50px; height: 50px; background: var(--glass-bg); border: 1px solid rgba(255,255,255,.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--text-light); text-decoration: none; font-size: 1.5rem; transition: all .3s ease; }
.social-link:hover { background: var(--tropical-gradient); color: var(--dark-bg); transform: translateY(-5px); box-shadow: 0 10px 30px rgba(254,225,64,.3); }
.footer-text { opacity: .7; margin-top: 2rem; }

/* Responsive */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    /* místo max-height/padding animace použijeme scale */
    transform-origin: top center;
    transform: scaleY(0);
    opacity: 0;
    pointer-events: none;

    flex-direction: column;
    background: rgba(10,10,10,.98);
    width: 100%;
    text-align: center;
    padding: 2rem 0;            /* stále stejný padding – žádný “skok” */
    transition: transform .25s ease, opacity .25s ease;
    will-change: transform, opacity;
  }

  .nav-menu.active {
    transform: scaleY(1);
    opacity: 1;
    pointer-events: auto;
  }
  .hamburger { display: flex; }
  .hero-title { font-size: 3rem; }
  .hero-subtitle { font-size: 1.2rem; }
  .section-title { font-size: 2rem; }
  .services-grid, .gallery-grid { grid-template-columns: 1fr; }
}

html { scroll-behavior: smooth; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--dark-bg); }
::-webkit-scrollbar-thumb { background: var(--primary-gradient); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--tropical-gradient); }

/* Reduced motion accessibility */
@media (prefers-reduced-motion: reduce) {
  .hero-title { animation: none !important; }
  .loader { animation: none !important; }
  .particle { animation: none !important; }
}

/* Status Modal (dark theme) */
.modal {
  position: fixed;
  inset: 0;
  display: none; /* shown via .show */
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(6px);
  z-index: 2000;
}
.modal.show { display: flex; }

.modal-content {
  width: min(92%, 520px);
  border-radius: 16px;
  background: rgba(20,20,20,0.95);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--text-light);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  padding: 1.5rem 1.5rem 1.25rem;
  position: relative;
  text-align: center;
  animation: modalAppear .25s ease;
}
@keyframes modalAppear { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }

.modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,0.75);
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  transition: color .2s ease, transform .2s ease;
}
.modal-close:hover { color: #fff; transform: scale(1.05); }

.modal-icon { font-size: 0; margin: .25rem 0 1rem; }
.modal-title { font-size: 1.4rem; font-weight: 800; margin-bottom: .5rem; }
.modal-body { opacity: .9; margin-bottom: 1.25rem; }
.modal-footer { display: flex; justify-content: center; }

/* Color accents by result */
.modal-success .modal-title { color: #a7f3d0; }
.modal-error .modal-title { color: #fecaca; }
.modal-success .modal-icon svg { color: #10b981; }
.modal-error .modal-icon svg { color: #ef4444; }

/* Make primary button sit nicely in modal */
.modal .btn-primary { min-width: 140px; }

/* Gallery – mobile visibility */
@media (hover: none) and (pointer: coarse) {
  .gallery-grid { gap: 1rem; }

  .gallery-item {
    position: relative;
    overflow: hidden;
  }

  /* Subtle dark gradient pro čitelnost textu na fotce */
  .gallery-item::after {
    content: "";
    position: absolute;
    /* inset: 0; */
    background: linear-gradient(
      to top,
      rgba(0,0,0,.55),
      rgba(0,0,0,.2) 40%,
      rgba(0,0,0,0) 70%
    );
    pointer-events: none;
  }

  /* Na touch zařízeních ukaž obsah hned */
  .gallery-item .gallery-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 1rem;
    opacity: 1 !important;
    transform: none !important;
  }

  .gallery-item .gallery-title {
    margin: 0 0 .25rem;
    font-weight: 700;
  }

  .gallery-item p {
    margin: 0;
    opacity: .92;
  }
}

/* A11y: méně animací pro uživatele s preferencí sníženého pohybu */
@media (prefers-reduced-motion: reduce) {
  .gallery-item .gallery-content { transition: none !important; }
}

/* Scroll-triggered reveal: mimic hover on in-view */
.about-card.in-view { 
  transform: translateY(-10px); 
  border-color: rgba(254,225,64,.3); 
}
.about-card.in-view::before { opacity: 1; }

.service-card.in-view { 
  transform: scale(1.05); 
  border-color: var(--accent-gold); 
}
.service-card.in-view::after { opacity: .1; }
.service-card.in-view .service-icon { 
  animation: bounce .9s ease; 
  text-shadow: 0 8px 24px rgba(254,225,64,.25); 
  filter: drop-shadow(0 6px 20px rgba(254,225,64,.15)); 
}

.gallery-item.in-view { 
  transform: scale(1.05); 
  box-shadow: 0 20px 40px rgba(254,225,64,.2); 
}
.gallery-item.in-view::before { opacity: .5; }
.gallery-item.in-view .gallery-content { transform: translateY(0); }

.contact-item.in-view { 
  transform: translateY(-5px); 
  border-color: var(--accent-gold); 
}

/* Respektuj preferenci omezeného pohybu */
@media (prefers-reduced-motion: reduce) {
  .service-card.in-view .service-icon { 
    animation: none; 
    transform: translateY(-4px); 
  }
}

/* --- Tiki swarm overlay (GSAP + Lenis) --- */
.tiki-swarm{
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 6; /* nad obsahem, pod nav pokud máš nav s vyšším z-indexem */
}
.tiki-swarm .tiki{
  position: absolute;
  width: clamp(64px, 8vw, 120px);
  height: auto;
  will-change: transform, opacity;
  filter: drop-shadow(0 10px 30px rgba(0,0,0,.6));
  transform-origin: 50% 65%;
  opacity: .95;
}
@media (prefers-reduced-motion: reduce){
  .tiki-swarm{ display:none !important; }
}