/******************************
 * DESTINATIONS GRID (ratio 3:2)
 ******************************/
.destinations-grid .wp-block-image {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-radius: 16px;
}
.destinations-grid .wp-block-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/******************************
 * GOOGLE LOGIN (black button)
 ******************************/
.ilwyv-googlebtn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 16px;
  background: #000;
  color: #fff;
  border-radius: 20px;
  border: 1px solid #000;
  text-decoration: none;
  font-weight: 600;
}
.ilwyv-googlebtn:hover {
  background: #111;
  border-color: #111;
}
.ilwyv-googlebtn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.ilwyv-gicon {
  display: inline-block;
}

/******************************
 * USER PILL + DROPDOWN MENU
 ******************************/
.ilwyv-userbox {
  position: relative;
  display: inline-block;
  z-index: 10010;
  overflow: visible;
}

.ilwyv-userbtn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, .85);
  cursor: pointer;
  line-height: 1;
  position: relative;
  z-index: 10011;
}

.ilwyv-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: block;
}

.ilwyv-name {
  max-width: 120px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ilwyv-caret {
  fill: currentColor;
  opacity: .85;
}

/* DROPDOWN BASE STATE */
.ilwyv-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 240px;
  background: #fff;
  color: #111;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .15);
  padding: 8px;
  display: none !important;
  z-index: 10012;
}

.ilwyv-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: #111;
  text-decoration: none;
  font-weight: 600;
}

.ilwyv-menu a:hover {
  background: rgba(0, 0, 0, .06);
}

/* Prevent hover auto-opening unless “.open” */
.ilwyv-userbox:not(.open):hover .ilwyv-menu,
.ilwyv-userbox:not(.open):focus-within .ilwyv-menu {
  display: none !important;
}

/* Show dropdown when open */
.ilwyv-userbox.open .ilwyv-menu,
.ilwyv-userbox.open:hover .ilwyv-menu,
.ilwyv-userbox.open:focus-within .ilwyv-menu {
  display: block !important;
}

/******************************
 * RESPONSIVE ADJUSTMENTS
 ******************************/
@media (max-width: 780px) {
  .ilwyv-name {
    max-width: 90px;
  }
}

/******************************
 * HEADER LAYOUT FIX
 ******************************/
header .wp-block-group,
header .wp-block-columns,
header .wp-block-column,
header .wp-block-group.action-buttons {
  overflow: visible !important;
  position: relative;
  z-index: 1;
}
header .wp-block-woocommerce-customer-account {
  display: none !important;
}

/******************************
 * WEATHER WIDGET
 ******************************/
.weatherwidget-io {
  width: 100% !important;
  border-radius: 12px !important;
}

/******************************
 * PAGE TITLE HIDERS
 ******************************/
.page-id-2952 .entry-title,
.page-id-2952 h1.entry-title,
.page-id-2984 .entry-title,
.page-id-2984 h1.entry-title,
.page-id-3003 .entry-title,
.page-id-3003 h1.entry-title {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

/******************************
 * DOUBLE FOOTER FIX
 ******************************/
.page footer.wp-block-template-part:nth-of-type(n+2) {
  display: none !important;
}
.page-id-2952 footer.wp-block-template-part + footer.wp-block-template-part,
.page-id-2984 footer.wp-block-template-part + footer.wp-block-template-part,
.page-id-3003 footer.wp-block-template-part + footer.wp-block-template-part {
  display: none !important;
}

/******************************
 * ILWYV USER MENU OVERRIDES (header blanco)
 ******************************/
.ilwyv-userbtn {
  background: #f5f5f5;
  color: #13233b;
  border: 1px solid #d0d4dd;
  font-weight: 600;
}

.ilwyv-userbtn:hover {
  background: #eef1f6;
  border-color: #c3c8d4;
}

.ilwyv-name {
  max-width: 140px;
}

.ilwyv-caret {
  fill: #6b7280;
  opacity: 1;
}

/* menú desplegable más claro para el fondo blanco */
.ilwyv-menu {
  background: #ffffff;
  color: #111827;
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.18);
}

.ilwyv-menu a {
  color: #111827;
}

.ilwyv-menu a:hover {
  background: #f3f4f6;
}
