/* =========================
   01. VARIABLES
========================= */

:root {
  --vf-cream: #F8F5F2;
  --vf-cream-soft: #F3F2EE;
  --vf-mist: #EAF4F4;
  --vf-blue: #12324A;
  --vf-blue-text: #16354A;
  --vf-blue-dark: #0F2A3A;
  --vf-yellow: #F4B63F;
  --vf-yellow-hover: #F7C45A;

  --ease-premium: cubic-bezier(.22,1,.36,1);

  --shadow-soft: 0 12px 30px rgba(23,58,86,.14);
  --shadow-stamp: 0 22px 32px rgba(0,0,0,.22);
}


/* =========================
   02. BASE
========================= */

/* Default — kõik tavalised Visit Finisterre lehed */
body {
  background: linear-gradient(
    180deg,
    var(--vf-cream) 0%,
    var(--vf-cream-soft) 20%,
    var(--vf-mist) 60%,
    var(--vf-mist) 100%
  ) !important;
}

/* Ainult Buy the End of the World leht */
body.page-end {
  background: var(--vf-blue) !important;
}

.t-record,
.t-record:not(.t-cover) {
  background-color: transparent !important;
}


/* =========================
   03. HEADER
========================= */

.t228,
.tmenu-mobile,
.tmenu {
  background: var(--vf-cream) !important;
}

.t228 {
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
}

.t-menu__link-item {
  color: var(--vf-blue-text) !important;
  transition: color .2s ease, opacity .2s ease;
}

.t-menu__link-item:hover {
  color: var(--vf-blue-dark) !important;
  opacity: 1 !important;
}

.t-menu__link-item.t-active {
  color: var(--vf-blue-text) !important;
  font-weight: 800;
}


/* =========================
   04. POPUP / PRIVATE DOCUMENT
========================= */

#rec2411903763 .popup-title,
#rec2411903763 .popup-copy,
#rec2411903763 .popup-form,
#rec2411903763 .popup-micro {
  opacity: 0;
  animation: popupFadeUp .75s ease forwards;
}

#rec2411903763 .popup-title {
  animation-name: popupFadeDown;
  animation-delay: .12s;
}

#rec2411903763 .popup-copy {
  animation-delay: .22s;
}

#rec2411903763 .popup-form {
  animation-delay: .32s;
}

#rec2411903763 .popup-micro {
  animation-delay: .55s;
}

#rec2411903763 .popup-handnote {
  opacity: 0;
  overflow: visible !important;
  clip-path: inset(-30px 100% -30px -30px);
  animation: popupHandwrite 1.2s steps(24,end) forwards;
  animation-delay: .75s;
}

@keyframes popupFadeDown {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes popupFadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes popupHandwrite {
  0% {
    opacity: 0;
    clip-path: inset(-30px 100% -30px -30px);
    transform: rotate(-7deg);
  }

  10% {
    opacity: 1;
  }

  100% {
    opacity: 1;
    clip-path: inset(-30px -30px -30px -30px);
    transform: rotate(-4deg);
  }
}


/* Popup form focus */

#rec2411903763 input:focus,
#rec2411903763 select:focus,
#rec2411903763 textarea:focus {
  border-color: var(--vf-yellow) !important;
  box-shadow: 0 0 0 4px rgba(244,182,63,.18) !important;
  outline: none !important;
}


/* Popup submit button */

#rec2411903763 .t-submit {
  transition: all .25s ease !important;
}

#rec2411903763 .t-submit:hover {
  background-color: var(--vf-yellow-hover) !important;
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
}


/* Popup backdrop */

#rec2411903763 .t-popup {
  background-color: var(--vf-blue) !important;
}

#rec2411903763 .t-popup__bg {
  background-color: var(--vf-blue) !important;
  opacity: 1 !important;
}

#rec2411903763 .t-popup__container,
#rec2411903763 .t-popup__container .t396__artboard {
  background-color: transparent !important;
}


/* =========================
   05. SHARE FLOW BACKGROUNDS
========================= */
/* Buy the End page — make whole canvas dark */
body.page-end #allrecords,
body.page-end #tilda-page,
body.page-end .t-records {
  background: var(--vf-blue) !important;
  background-color: var(--vf-blue) !important;
}

.uc-share-intro-block,
.uc-share-choice,
.uc-share-stamps {
  position: relative;
  z-index: 2;
}


/* Specific share blocks — dark background */

#rec2411854873,
#rec2437629033,
#rec2426916893,
#rec2411854873 .t396__artboard,
#rec2437629033 .t396__artboard,
#rec2426916893 .t396__artboard,
#rec2411854873 .t396__carrier,
#rec2437629033 .t396__carrier,
#rec2426916893 .t396__carrier,
#rec2411854873 .t396__filter,
#rec2437629033 .t396__filter,
#rec2426916893 .t396__filter {
  background: var(--vf-blue) !important;
  background-color: var(--vf-blue) !important;
}

#rec2411854873,
#rec2437629033,
#rec2426916893 {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  border: 0 !important;
}

body.page-end .uc-share-choice,
body.page-end .uc-share-stamps,
body.page-end .uc-share-choice .t396__artboard,
body.page-end .uc-share-stamps .t396__artboard,
body.page-end .uc-share-choice .t396__carrier,
body.page-end .uc-share-stamps .t396__carrier,
body.page-end .uc-share-choice .t396__filter,
body.page-end .uc-share-stamps .t396__filter {
  background: var(--vf-blue) !important;
  background-color: var(--vf-blue) !important;
}

.uc-share-choice {
  padding-bottom: 0 !important;
  margin-bottom: -4px !important;
}

.uc-share-stamps {
  padding-top: 0 !important;
  margin-top: -4px !important;
}


/* =========================
   06. INTRO FADE OUT
========================= */

.uc-share-intro-block.share-fade-elements .tn-elem {
  animation: shareElementsOut 1.2s ease forwards;
}

@keyframes shareElementsOut {
  to {
    opacity: 0;
    transform: scale(.98);
    filter: blur(2px);
  }
}


/* =========================
   07. THINKING DOTS
========================= */

.thinking-dot {
  opacity: 0;
  display: inline-block;
  animation-duration: 3.6s;
  animation-iteration-count: 2;
  animation-fill-mode: forwards;
  animation-timing-function: ease-in-out;
  animation-play-state: paused;
}

.uc-share-choice.dots-start .thinking-dot {
  animation-play-state: running;
}

.dot1 {
  animation-name: dotOne;
}

.dot2 {
  animation-name: dotTwo;
}

.dot3 {
  animation-name: dotThree;
}

@keyframes dotOne {
  0%, 8% {
    opacity: 0;
  }

  16% {
    opacity: 1;
  }

  34% {
    opacity: .75;
  }

  52% {
    opacity: .35;
  }

  68%, 100% {
    opacity: 0;
  }
}

@keyframes dotTwo {
  0%, 22% {
    opacity: 0;
  }

  32% {
    opacity: 1;
  }

  50% {
    opacity: .7;
  }

  66% {
    opacity: .25;
  }

  82%, 100% {
    opacity: 0;
  }
}

@keyframes dotThree {
  0%, 38% {
    opacity: 0;
  }

  50% {
    opacity: 1;
  }

  68% {
    opacity: .7;
  }

  84% {
    opacity: .25;
  }

  100% {
    opacity: 0;
  }
}


/* =========================
   08. SHARE SCENE — LEFT TEXT
========================= */

.uc-share-stamps .share-title,
.uc-share-stamps .share-wave-line,
.uc-share-stamps .share-good,
.uc-share-stamps .share-the-one,
.uc-share-stamps .share-best-stories {
  opacity: 0;
  transform: translateY(18px);
}

.uc-share-stamps.stamps-start .share-title {
  animation: shareTextIn .8s ease forwards .20s;
}

.uc-share-stamps.stamps-start .share-wave-line {
  animation: shareTextIn .65s ease forwards .65s;
}

.uc-share-stamps.stamps-start .share-good {
  animation: shareTextIn .7s ease forwards 1.05s;
}

.uc-share-stamps.stamps-start .share-the-one {
  animation: shareTextIn .7s ease forwards 1.45s;
}

.uc-share-stamps.stamps-start .share-best-stories {
  animation: shareTextIn .85s ease forwards 1.95s;
}

@keyframes shareTextIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* =========================
   09. SHARE SCENE — STAMPS
========================= */

.uc-share-stamps .stamp-whatsapp,
.uc-share-stamps .stamp-email,
.uc-share-stamps .stamp-link {
  opacity: 0;
  will-change: opacity, transform;
}

.uc-share-stamps .stamp-whatsapp {
  transform: translateX(-45px) translateY(12px) rotate(-12deg);
}

.uc-share-stamps .stamp-email {
  transform: translateY(45px) rotate(3deg);
}

.uc-share-stamps .stamp-link {
  transform: translateX(45px) translateY(12px) rotate(12deg);
}

.uc-share-stamps.stamps-start .stamp-whatsapp {
  animation: stampCardIn 1.35s var(--ease-premium) forwards 2.85s;
}

.uc-share-stamps.stamps-start .stamp-email {
  animation: stampCardIn 1.35s var(--ease-premium) forwards 3.45s;
}

.uc-share-stamps.stamps-start .stamp-link {
  animation: stampCardIn 1.35s var(--ease-premium) forwards 4.05s;
}

@keyframes stampCardIn {
  0% {
    opacity: 0;
  }

  60% {
    opacity: 1;
  }

  100% {
    opacity: 1;
    transform: translate(0,0) rotate(0deg);
  }
}


/* =========================
   10. SHARE SCENE — HANDWRITTEN NOTE
========================= */

.uc-share-stamps .stamp-note {
  opacity: 0;
  clip-path: inset(0 100% 0 0);
}

.uc-share-stamps.stamps-start .stamp-note {
  animation: noteWriteIn 1.15s steps(28,end) forwards 5.25s;
}

@keyframes noteWriteIn {
  0% {
    opacity: 0;
    clip-path: inset(0 100% 0 0);
  }

  8% {
    opacity: 1;
  }

  100% {
    opacity: 1;
    clip-path: inset(0 0 0 0);
  }
}


/* =========================
   11. SHARE SCENE — UNDERLINE
========================= */

.uc-share-stamps .stamp-note-line {
  opacity: 0;
  clip-path: inset(0 100% 0 0);
}

.uc-share-stamps.stamps-start .stamp-note-line {
  animation: underlineReveal 1.45s var(--ease-premium) forwards 6.75s;
}

@keyframes underlineReveal {
  0% {
    opacity: 1;
    clip-path: inset(0 100% 0 0);
  }

  100% {
    opacity: 1;
    clip-path: inset(0 0 0 0);
  }
}


/* =========================
   12. STAMP HOVER — transform-safe version
========================= */

.uc-share-stamps .stamp-whatsapp,
.uc-share-stamps .stamp-email,
.uc-share-stamps .stamp-link {
  cursor: pointer;
  scale: 1;
  translate: 0 0;
  transition:
    scale .22s ease,
    translate .22s ease,
    filter .22s ease;
  will-change: scale, translate, filter;
}

/* subtle hover — ei kakle stampCardIn transform animatsiooniga */
.uc-share-stamps.stamps-start .stamp-whatsapp:hover,
.uc-share-stamps.stamps-start .stamp-email:hover,
.uc-share-stamps.stamps-start .stamp-link:hover {
  scale: 1.025;
  translate: 0 -5px;
  filter: drop-shadow(0 12px 18px rgba(0,0,0,.16));
}

/* =========================
   13. WORLD WALKS — FACT REVEAL
========================= */

/* LOCATION — written reveal, no blur */

#rec2456211613 .share-location {
  opacity: 0;
  clip-path: inset(-8px 100% -8px -8px);
}

/* RATINGS + EVERY DAY — soft reveal */

#rec2456211613 .share-booking,
#rec2456211613 .share-google,
#rec2456211613 .share-tripadvisor,
#rec2456211613 .share-every,
#rec2456211613 .share-day,
#rec2456211613 .share-dot {
  opacity: 0;
  filter: blur(4px);
  transform: scale(.985);
}

/* STILL WELCOMING — written reveal */

#rec2456211613 .share-still {
  opacity: 0;
  clip-path: inset(-8px 100% -8px -8px);
}

/* ---------- Location ---------- */

#rec2456211613.fact-start .share-location {
  animation: vfWriteReveal 4.8s steps(95,end) forwards .5s;
}

/* ---------- Ratings — 1 / 2 / 3 ---------- */

#rec2456211613.fact-start .share-booking {
  animation: vfSoftReveal 1s ease forwards 4.10s;
}

#rec2456211613.fact-start .share-google {
  animation: vfSoftReveal 1s ease forwards 5.55s;
}

#rec2456211613.fact-start .share-tripadvisor {
  animation: vfSoftReveal 1s ease forwards 7.00s;
}

/* ---------- Still welcoming people ---------- */

#rec2456211613.fact-start .share-still {
  animation: vfWriteReveal 2.4s steps(40,end) forwards 9.00s;
}

/* ---------- Every day. ---------- */

#rec2456211613.fact-start .share-every {
  animation: vfSoftReveal .85s ease forwards 12.25s;
}

#rec2456211613.fact-start .share-day {
  animation: vfSoftReveal .85s ease forwards 13.25s;
}

#rec2456211613.fact-start .share-dot {
  animation: vfSoftReveal .35s ease forwards 14.05s;
}

/* =========================
   KEYFRAMES
========================= */

@keyframes vfWriteReveal {
  0% {
    opacity: 0;
    clip-path: inset(-8px 100% -8px -8px);
  }

  8% {
    opacity: 1;
  }

  100% {
    opacity: 1;
    clip-path: inset(-8px -8px -8px -8px);
  }
}

@keyframes vfSoftReveal {
  from {
    opacity: 0;
    filter: blur(4px);
    transform: scale(.985);
  }

  to {
    opacity: 1;
    filter: blur(0);
    transform: scale(1);
  }
}

/* =========================
   14. COPY LINK NOTICE
========================= */

.copy-link-notice {
  position: fixed;
  left: 50%;
  bottom: 90px;
  z-index: 99999;

  transform: translate(-50%, 16px);

  padding: 13px 22px;
  border-radius: 999px;

  background: #F7F2EA;
  color: #15364F;

  border: 1px solid rgba(21, 54, 79, .18);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .22);

  font-family: Inter, Arial, sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: .04em;

  opacity: 0;
  pointer-events: none;

  transition:
    opacity .3s ease,
    transform .3s ease;
}

.copy-link-notice.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* =========================
   JOURNAL POPUP — SUCCESS SCENE
========================= */

/* Kõik success-elemendid on alguses peidus */
.uc-journal-popup .journal-success-scene {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Vormistseen alguses nähtav */
.uc-journal-popup .journal-form-scene {
  opacity: 1;
  visibility: visible;
  transition: opacity .35s ease;
}

/* Vorm kaob */
.uc-journal-popup.success-mode .journal-form-scene {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition:
    opacity .35s ease,
    visibility 0s linear .35s;
}

/* Success-elemendid muutuvad nähtavaks */
.uc-journal-popup.success-mode .journal-success-scene {
  visibility: visible;
  pointer-events: auto;
}

/* 1. Journal */
.uc-journal-popup.success-mode .journal-success-journal {
  animation: journalMockupIn 1.2s ease forwards .25s;
}

/* 2. You're in. */
.uc-journal-popup.success-mode .journal-success-title {
  animation: journalTextIn 1.0s ease forwards 1.10s;
}

/* 3. Copy */
.uc-journal-popup.success-mode .journal-success-copy {
  animation: journalTextIn 1.0s ease forwards 1.85s;
}

/* 4. Thank you */
.uc-journal-popup.success-mode .journal-success-footer {
  animation: journalTextIn .9s ease forwards 2.65s;
}
/* 5. Handwritten note */
.uc-journal-popup.success-mode .journal-success-note {
  animation: journalNoteIn 1.2s ease forwards 3.15s;
}

@keyframes journalMockupIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes journalTextIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes journalNoteIn {
  from {
    opacity: 0;
    transform: translateY(10px) rotate(-3deg);
  }

  to {
    opacity: 1;
    transform: translateY(0) rotate(0deg);
  }
}

/* Tilda roheline success-kast peitu */
.uc-journal-popup .t-form__successbox,
.uc-journal-popup .js-successbox {
  display: none !important;
}