/* Define variables in external CSS */
:root {
  --main-color: #ee7203;
  /* Blue */
  --secondary-color: #fff;
  /* Yellow */
  --tertiary-color: #5e5e5e;
  /* Black */
  --primary-color: #000;
  /* Orange */
}

/* Use variables with Tailwind classes */
.custom-bg {
  background-color: var(--primary-color);
}

.custom-text {
  color: var(--secondary-color);
  color: var(--tertiary-color);
}

.custom-btn {
  background-color: var(--main-color);
}

/* Optional: hover effect */
.custom-btn:hover {
  background-color: var(--secondary-color);
  /* slightly darker blue */
  color: var(--main-color);
  transition-duration: 2s;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

@font-face {
  font-family: "Tahoma";
  src: url("../fonts/tahoma.ttf") format("truetype");
  font-display: swap;
}

body {
  font-family: "League Gothic", sans-serif;
}

img {
  pointer-events: none;
  user-select: none;
}

.carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.carousel-slide.active {
  opacity: 1;
}

/* Mobile menu toggle */
#mobile-menu {
  display: none;
}

#mobile-menu.open {
  display: flex;
}

#mobile-menu-backdrop {
  touch-action: none;
}

#mobile-menu-inner {
  overscroll-behavior: contain;
}

.testimonial-card {
  background: white;
  border-radius: 1.25rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 300px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

.card-body {
  flex: 1;
  padding: 2rem 2rem 1.5rem 2rem;
}

.card-footer {
  background: transparent;
  border-radius: 0 0 1.25rem 1.25rem;
  padding: 1.25rem 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
  margin-top: 0;
  border-radius: 36px 0px 0px 0px;
}

/* Orange fill behind the curve on top-right */
.card-footer::before {
  content: "";
  position: absolute;
  top: -40px;
  right: 0;
  width: 60px;
  height: 40px;
  background: transparent;
  border-radius: 0;
}

/* White concave cutout on top-right */
.card-footer::after {
  content: "";
  position: absolute;
  top: -40px;
  right: 0;
  width: 60px;
  height: 40px;
  background: white;
  border-radius: 0 0 40px 0;
}

.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: white;
  color: #ee7203;
  font-weight: bold;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stars {
  color: #ee7203;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 2px;
  margin-bottom: 1rem;
}

.stars span.empty {
  color: #d1d5db;
}

.slider-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  gap: 1.5rem;
}

.slide {
  flex: 0 0 calc(50% - 0.75rem);
  min-width: 0;
}

@media (max-width: 768px) {
  .slide {
    flex: 0 0 100%;
  }
}

.nav-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 3rem;
  color: rgba(0, 0, 0, 0.6);
  line-height: 1;
  padding: 0 0.5rem;
  transition: color 0.2s;
  user-select: none;
}

.nav-btn:hover {
  color: #000;
}

/* Activities dropdown: controlled via JS classes */
#activitiesDropdown {
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

#activitiesDropdown.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

#tripFinderDropdown {
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
}

#tripFinderDropdown.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.search-input-wrap {
  width: 0;
  opacity: 0;
  overflow: hidden;
  transition:
    width 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.3s ease,
    padding 0.35s;
  /* Added padding transition */
  border-width: 0;
  /* Hide borders initially */
}

/* When open, expand width & opacity */
.search-open .search-input-wrap {
  width: 180px;
  /* Adjust as needed */
  opacity: 1;
  border-width: 3px;
  /* Show borders when open */
  border-right: 0;
  /* Ensure right border stays hidden to merge with button */
  border-style: solid;
  /* Ensure style is solid */
  border-color: white;
  /* Ensure color is white */
  height: 48px;
}

/* Adjust button corners when search is open so they merge */
.search-open .search-btn {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  border-left: 0;
}

.search-btn {
  border-radius: 6px;
}

/* Smooth height transition using CSS grid trick */
.accordion-body {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.38s ease;
}

.accordion-body.open {
  grid-template-rows: 1fr;
}

.accordion-inner {
  overflow: hidden;
}

/* Icon flip */
.accordion-btn .icon {
  transition: transform 0.32s ease;
}

.accordion-btn.open .icon {
  transform: rotate(180deg);
}

/* Hide scrollbar */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}

.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/*whatsapp shape*/
.container-shape {
  position: relative;
  display: inline-block;
}

.green-shape {
  clip-path: polygon(0 0, 100% 0, 100% 32%, 67% 100%, 0 100%, 0 80%);
  border-radius: 16px;
  position: relative;
  z-index: 2;

  width: 100%;
  height: 100%;
}

.shadow-shape {
  clip-path: polygon(0 0, 100% 0, 100% 32%, 67% 100%, 0 100%, 0 80%);
  border-radius: 16px;
  position: absolute;
  top: 20px;
  /* 20px below */
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* ── Smooth type reveal on all h1 & h2 ── */
@keyframes typewriterReveal {
  from {
    max-width: 0;
  }

  to {
    max-width: 100vw;
  }
}

@keyframes typewriterCaret {
  0%,
  100% {
    border-color: transparent;
  }

  50% {
    border-color: currentColor;
  }
}

h1,
h2 {
  display: inline-block;
  max-width: 100%;
}

h1.typewriter-animate,
h2.typewriter-animate {
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid transparent;
  width: fit-content;
  max-width: 0;
  vertical-align: bottom;
  will-change: max-width;
}

h1.typewriter-animate,
h2.typewriter-animate {
  animation:
    typewriterReveal 8.65s cubic-bezier(0.16, 1, 0.3, 1) forwards,
    typewriterCaret 2s step-end 7.65s 3;
}

@media (prefers-reduced-motion: reduce) {
  h1.typewriter-animate,
  h2.typewriter-animate {
    animation: none !important;
    max-width: 100% !important;
    border-right-color: transparent !important;
  }
}

/* revert old styles and use text-editor's style*/
.rich-content ol,
.rich-content ul {
  list-style: revert !important;
  margin: revert !important;
  padding: revert !important;
}

.rich-content li {
  list-style: revert !important;
}

.rich-content h1,
.rich-content h2,
.rich-content h3,
.rich-content h4,
.rich-content h5,
.rich-content h6 {
  font-size: revert !important;
  font-weight: revert !important;
  padding-bottom: 0.1rem;
}

/* 
   The font-tahoma class is used to revert the default styles 
   applied by custom/text-editor tags.

   Since using revert properties on font-tahoma may cause font-related issues,
   use the rich-content class for descriptions or any content coming from
   the dashboard text editor.
*/

.font-tahoma ol,
.font-tahoma ul {
  list-style: revert !important;
  margin: revert !important;
  padding: revert !important;
}

.font-tahoma li {
  list-style: revert !important;
}

.font-tahoma h1,
.font-tahoma h2,
.font-tahoma h3,
.font-tahoma h4,
.font-tahoma h5,
.font-tahoma h6 {
  font-size: revert !important;
  font-weight: revert !important;
  padding-bottom: 0.5rem;
}
