/* Flight Search Container */
.fma-flight-search-container {
  position: fixed;
  bottom: 25px;
  right: 35px;
  z-index: 100;
}
.fma-flight-search-container.active .fma-category-buttons {
  display: flex !important;
  visibility: visible !important;
  pointer-events: auto;
  animation: slideInBottom 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.fma-flight-search-container.active .fma-category-button {
  animation: popInBottom 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.fma-flight-search-container.active .fma-category-button:nth-child(3) { /* Packages */
  animation-delay: 0.1s;
}
.fma-flight-search-container.active .fma-category-button:nth-child(2) { /* Car */
  animation-delay: 0.2s;
}
.fma-flight-search-container.active .fma-category-button:nth-child(1) { /* Hotel */
  animation-delay: 0.3s;
}
.fma-flight-search-container.active .fma-category-button:nth-child(4) { /* Plane */
  animation-delay: 0.4s;
}
.fma-flight-search-container:not(.active) .fma-category-buttons {
  display: flex !important;
  visibility: visible !important;
  pointer-events: none;
  animation: slideOutBottom 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.fma-flight-search-container:not(.active) .fma-category-button {
  animation: popOutBottom 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  text-decoration: none !important;
}
.fma-flight-search-container:not(.active) .fma-category-button:hover {
  text-decoration: none !important;
}
.fma-flight-search-container:not(.active) .fma-category-button:nth-child(1) { /* Hotel */
  animation-delay: 0.1s;
}
.fma-flight-search-container:not(.active) .fma-category-button:nth-child(2) { /* Car */
  animation-delay: 0.2s;
}
.fma-flight-search-container:not(.active) .fma-category-button:nth-child(3) { /* Packages */
  animation-delay: 0.3s;
}
.fma-flight-search-container:not(.active) .fma-category-button:nth-child(4) { /* Plane */
  animation-delay: 0.4s;
}

/* Floating Button */
.fma-floating-button {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-color: #FC6522;
  border: none;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  font-size: 24px;
  z-index: 2;
}
.fma-floating-button:hover {
  transform: scale(1.1) rotate(15deg);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}
.fma-floating-button:hover .fma-floating-icon {
  transform: scale(1.2);
}
.fma-floating-button i {
  color: #fff;
}

.fma-floating-icon {
  width: 30px;
  height: 30px;
  fill: #fff;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Category Buttons */
.fma-category-buttons {
  position: absolute;
  display: none !important;
  flex-direction: column-reverse;
  gap: 10px;
  transform-origin: center bottom;
  opacity: 0;
  transform: translateY(20px);
  right: 5px;
  bottom: 70px;
  z-index: 1;
  visibility: hidden !important;
  pointer-events: none;
  will-change: transform, opacity;
}
.fma-category-buttons i {
  color: #0746A2;
}
.fma-category-buttons.slide-out-complete {
  display: none !important;
  visibility: hidden !important;
}

.fma-category-button {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  font-size: 24px;
  text-decoration: none !important;
}
.fma-category-button:hover {
  transform: scale(1.1) rotate(15deg);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  text-decoration: none !important;
}
.fma-category-button:hover i {
  color: #FC6522;
}

/* Prevent body scroll when modal is open */
body.fma-modal-open {
  overflow: hidden;
  height: 100vh;
}

/* Search Panels */
.fma-search-panels {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.fma-search-panels.visible {
  opacity: 1;
}

.fma-search-panel {
  position: fixed;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  width: 90%;
  max-width: 500px;
  max-height: 80vh;
  overflow-y: auto;
  opacity: 0;
  top: 75px;
  left: 50%;
  transform: translateX(-50%) scale(0.8);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  -webkit-overflow-scrolling: touch;
}
.fma-search-panel.visible {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

.fma-panel-header {
  padding: 20px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.fma-panel-header h3 {
  margin: 0;
  font-size: 1.2em;
  color: #333;
}

.fma-close-panel {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background-color: #f5f5f5;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}
.fma-close-panel:hover {
  background-color: #e0e0e0;
  transform: rotate(90deg);
}

.fma-panel-content {
  padding: 20px;
}

/* Notifications */
.fma-notification {
  position: fixed;
  padding: 15px 20px;
  background-color: #fff;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  z-index: 10001;
  max-width: 300px;
  transform-origin: top center;
  animation: notificationSlideIn 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.fma-notification.top-left {
  top: 20px;
  left: 20px;
  transform-origin: top left;
}
.fma-notification.top-right {
  top: 20px;
  right: 20px;
  transform-origin: top right;
}
.fma-notification.bottom-left {
  bottom: 20px;
  left: 20px;
  transform-origin: bottom left;
}
.fma-notification.bottom-right {
  bottom: 20px;
  right: 20px;
  transform-origin: bottom right;
}

.fma-notification-title {
  font-weight: bold;
  margin-bottom: 5px;
}

.fma-notification-message {
  font-size: 14px;
  color: #666;
}

/* Ripple Effect */
.fma-ripple {
  position: absolute;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.7);
  transform: scale(0);
  animation: ripple 0.6s linear;
  pointer-events: none;
}

/* Animations */
@keyframes slideInBottom {
  0% {
    opacity: 0;
    transform: translateY(70px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes slideOutBottom {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(70px);
  }
}
@keyframes popInBottom {
  0% {
    opacity: 0;
    transform: scale(0) rotate(180deg) translateY(70px);
  }
  70% {
    transform: scale(1.2) rotate(0deg) translateY(-5px);
  }
  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg) translateY(0);
  }
}
@keyframes popOutBottom {
  0% {
    opacity: 1;
    transform: scale(1) rotate(0deg) translateY(0);
  }
  100% {
    opacity: 0;
    transform: scale(0) rotate(180deg) translateY(70px);
  }
}
@keyframes notificationSlideIn {
  0% {
    transform: translateY(-100%) scale(0.8);
    opacity: 0;
  }
  50% {
    transform: translateY(0) scale(1.1);
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}
@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}
/* Mobile Responsiveness */
@media (max-width: 768px) {
  .fma-category-button {
    width: 40px;
    height: 40px;
  }
  .fma-category-icon {
    width: 20px;
    height: 20px;
  }
}