/* ==========================================================================
   Hilton Cartagena Hotel - Interactive & Multi-Page Support Styles
   Preserves 100% of Hilton's original typography, colors (#002f61, #f0e9e6),
   and layout while enabling full interactivity across all pages and buttons.
   ========================================================================== */

/* 1. Scroll-reveal animations */
[class*="opacity-[.001]"] {
  opacity: 1 !important;
  transform: translate(0, 0) !important;
}

.is-revealed {
  opacity: 1 !important;
  transform: translate(0, 0) !important;
}

/* 2. Desktop dropdown menus */
li[data-testid="navListItem"]:hover > ul[data-element-id="nav-dropdown-menu"],
li[data-testid="navListItem"]:focus-within > ul[data-element-id="nav-dropdown-menu"],
li[data-testid="navListItem"].dropdown-open > ul[data-element-id="nav-dropdown-menu"] {
  max-height: 28rem !important;
  padding-top: 0.75rem !important;
  padding-bottom: 0.75rem !important;
  border-top: 2px solid #002f61 !important;
}

li[data-testid="navListItem"]:hover [data-element-id="nav-underline-bar"],
li[data-testid="navListItem"].dropdown-open [data-element-id="nav-underline-bar"],
li[data-testid="navListItem"] a.active-nav-link [data-element-id="nav-underline-bar"] {
  opacity: 1 !important;
}

li[data-testid="navListItem"]:hover button svg,
li[data-testid="navListItem"].dropdown-open button svg {
  transform: rotate(180deg);
}

/* 3. Mobile navigation drawer (matches [data-testid="navModal"] aside) */
[data-testid="navModal"] aside.mobile-drawer-open {
  visibility: visible !important;
  pointer-events: auto !important;
  backdrop-filter: blur(4px) opacity(1) !important;
  -webkit-backdrop-filter: blur(4px) opacity(1) !important;
  z-index: 100 !important;
}

[data-testid="navModal"] aside.mobile-drawer-open [role="presentation"] {
  opacity: 0.6 !important;
}

[data-testid="navModal"] aside.mobile-drawer-open [data-testid="mobile-nav-inner"] {
  transform: translateX(0) !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35) !important;
}

.mobile-sublist {
  background-color: #f8f5f3;
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.mobile-sublist a {
  display: block;
  padding: 0.75rem 2.25rem;
  font-size: 0.925rem;
  font-weight: 500;
  color: #002f61;
  text-decoration: none;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.mobile-sublist a:hover {
  background-color: #f0e9e6;
  padding-left: 2.5rem;
}

/* 4. Colombian Nationals / Residentes Colombianos Flyout */
[data-testid="retail-flyout"] [data-testid="flyout-body"].flyout-open {
  display: flex !important;
  opacity: 1 !important;
  transform: translateX(0) !important;
}

[data-testid="retail-flyout"] [data-testid="flyout-body"] a.btn- {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid #ffffff !important;
  color: #ffffff !important;
  padding: 0.5rem 1.25rem !important;
  font-size: 0.875rem !important;
  line-height: 1.25rem !important;
  border-radius: 0.25rem !important;
  text-decoration: none !important;
  transition: background-color 0.2s ease, color 0.2s ease !important;
}

[data-testid="retail-flyout"] [data-testid="flyout-body"] a.btn-:hover {
  background-color: #ffffff !important;
  color: #002f61 !important;
}

/* 5. Juicer Instagram Social Feed Carousel */
#hiltoncartagena .juicer-feed {
  position: relative;
  max-width: 1440px;
  margin: 0 auto !important;
}

#hiltoncartagena .slick-list {
  overflow: hidden !important;
  width: 100% !important;
}

#hiltoncartagena .slick-track {
  display: flex !important;
  align-items: stretch !important;
  left: 0 !important;
  transition: transform 0.45s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

#hiltoncartagena .feed-item.slick-cloned {
  display: none !important;
}

#hiltoncartagena .feed-item.slick-slide {
  cursor: pointer;
}

/* 6. Booking Bar Popovers (Dates, Rooms/Guests, Special Rates) */
.hilton-popover-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 145px;
}

.hilton-popover-card {
  background: #ffffff;
  color: #121212;
  border-radius: 4px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.22);
  border-top: 4px solid #002f61;
  width: 95%;
  max-width: 540px;
  padding: 1.5rem;
  position: relative;
  animation: hiltonFadeIn 0.2s ease-out;
}

/* 7. Universal Hilton Modal Dialogs */
.hilton-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgba(0, 20, 45, 0.65);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.hilton-modal-card {
  background: #ffffff;
  color: #121212;
  border-radius: 4px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
  border-top: 5px solid #002f61;
  width: 100%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: hiltonFadeIn 0.22s ease-out;
}

.hilton-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #e5e5e5;
  background: #f8f5f3;
}

.hilton-modal-body {
  padding: 1.5rem;
}

.hilton-modal-close {
  width: 36px;
  height: 36px;
  border-radius: 9999px;
  border: 1px solid #ccc;
  background: #fff;
  color: #121212;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}

.hilton-modal-close:hover {
  background: #002f61;
  color: #fff;
  border-color: #002f61;
}

@keyframes hiltonFadeIn {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* 8. Stepper Controls in Rooms & Guests */
.hilton-stepper-btn {
  width: 34px;
  height: 34px;
  border-radius: 9999px;
  border: 1.5px solid #002f61;
  background: #fff;
  color: #002f61;
  font-weight: 700;
  font-size: 18px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
}

.hilton-stepper-btn:hover:not(:disabled) {
  background: #002f61;
  color: #fff;
}

.hilton-stepper-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* 9. Hilton Virtual Assistant Chat Widget */
#hilton-chat-panel {
  position: fixed;
  bottom: 96px;
  right: 16px;
  width: 360px;
  max-width: calc(100vw - 32px);
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.28);
  border: 1px solid #d4d4d4;
  z-index: 95;
  overflow: hidden;
  display: none;
  flex-direction: column;
  animation: hiltonFadeIn 0.2s ease-out;
}

#hilton-chat-panel.chat-open {
  display: flex;
}

.hilton-chat-chip {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  margin: 0.2rem;
  font-size: 0.8rem;
  border: 1px solid #002f61;
  color: #002f61;
  background: #f8f5f3;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.15s;
}

.hilton-chat-chip:hover {
  background: #002f61;
  color: #ffffff;
}

/* 10. Subpage Cards, Filter Tabs, Tables & Forms */
.hilton-subpage-hero {
  position: relative;
  height: 58vh;
  min-height: 400px;
  max-height: 560px;
  margin-top: 136px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  background: #002f61;
}

.hilton-subpage-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hilton-subpage-hero-overlay {
  position: relative;
  z-index: 10;
  width: 100%;
  background: linear-gradient(to top, rgba(0, 24, 51, 0.88) 0%, rgba(0, 24, 51, 0.45) 65%, transparent 100%);
  padding: 3.5rem 0 2.5rem;
  color: #ffffff;
}

.hilton-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid #dcdcdc;
  padding-bottom: 1rem;
}

.hilton-filter-btn {
  padding: 0.55rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 700;
  border: 1px solid #002f61;
  color: #002f61;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.2s;
}

.hilton-filter-btn.active,
.hilton-filter-btn:hover {
  background: #002f61;
  color: #ffffff;
}

.hilton-card-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 2rem;
}

@media (min-width: 768px) {
  .hilton-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hilton-card-grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.hilton-room-card {
  background: #f0e9e6;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(0, 47, 97, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.hilton-room-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(0, 47, 97, 0.12);
}

.hilton-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
}

.hilton-table th {
  background: #002f61;
  color: #ffffff;
  text-align: left;
  padding: 0.9rem 1rem;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.hilton-table td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid #e5e0dc;
  font-size: 0.95rem;
}

.hilton-table tr:nth-child(even) td {
  background: #f8f5f3;
}

.hilton-input {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid #b8b8b8;
  background: #ffffff;
  color: #121212;
  font-size: 0.95rem;
  border-radius: 2px;
}

.hilton-input:focus {
  outline: 2px solid #002f61;
  border-color: #002f61;
}

/* Smooth scrolling */
html {
  scroll-behavior: smooth;
}
