/* Top menu, desktop: a copy of the Wix site header (www.liasro-group.com), measured on its Home and Contact
   pages, so the menu does not move when visitors go between Wix pages and these pages.
   Wix lays the header out in a 980px column, centred: logo image at left 0 / top 22, menu at 283 / 32,
   EN|CS at 735 / 25, "Book direct" at 830 / 28, header 100px high.
   Loaded by app.html, owners.html, optimization.html and the apartment pages. Phones keep their own menu. */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500&display=swap");

/* Menu items shown in some languages only (e.g. Video course: ES and IT) use the hidden attribute. */
.mainnav a[hidden] { display: none !important; }

@media (min-width: 1021px) {
  .top {
    position: relative; display: block; width: 980px; max-width: 980px; height: 100px; min-height: 100px;
    margin: 0 auto; padding: 0; line-height: normal;
  }
  .top .spacer, .top .demo-pill, .top .menu-btn { display: none !important; }
  /* Full-width dark band behind the menu, same colour as the Wix header */
  .top::before {
    content: ""; position: absolute; top: 0; height: 100px; left: 50%; width: 100vw; transform: translateX(-50%);
    background: rgba(28, 27, 25, .9); z-index: -1; pointer-events: none;
  }

  /* Logo: the same image as the Wix header */
  /* Re-measured 2026-11-21 after the Wix header got 4 languages: logo 130x68 at 0/16, menu at 180 (506 wide),
     EN|CS|ES|IT at 699 (104 wide), Book direct at 830. */
  .top .logo {
    position: absolute; left: 0; top: 16px; width: 130px; height: 68px; margin: 0;
    background: url("https://static.wixstatic.com/media/21815b_3dd44cbfb5ba49518b73277b5522adc1~mv2.png/v1/fill/w_260,h_136,al_c,q_85/File.png") left top / 130px 68px no-repeat;
  }
  .top .logo b, .top .logo small {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  }

  /* Menu */
  .top .mainnav {
    position: absolute; left: 136px; top: 32px; display: flex; gap: 0; margin: 0; padding: 0;
    background: none; border: 0;
  }
  .top .mainnav a {
    display: block; height: 31px; line-height: 31px; padding: 0 3px; border: 0;
    font-family: inter, sans-serif; font-size: 11px; font-weight: 500; letter-spacing: normal; text-transform: uppercase;
    color: #f8f6f0; text-decoration: none; white-space: nowrap;
  }
  .top .mainnav a:hover, .top .mainnav a[aria-current="page"] { color: #b99a38; }
  /* Wix gives each menu item a fixed width (English measured); other languages: text width plus padding. */
  .top .mainnav a { padding: 0; text-align: center; }
  /* 2026-11-23: Wix menu now x136, 550 wide (room for "Video course", shown in ES and IT only).
     English widths (5 items) measured on the live Wix header. */
  .top .mainnav a:nth-child(1) { width: 80px; }
  .top .mainnav a:nth-child(2) { width: 122px; }
  .top .mainnav a:nth-child(3) { width: 121px; }
  .top .mainnav a:nth-child(4) { width: 127px; }
  .top .mainnav a:last-child { width: 100px; } /* Contact (app.html keeps a hidden course link before it) */
  html:not([lang="en"]) .top .mainnav a { width: auto !important; padding: 0 9px; }

  /* EN | CS */
  .top .lang { position: absolute; left: 699px; top: 25px; width: 104px; height: 45px; display: flex; gap: 0; margin: 0; padding: 0; }
  .top .lang > button, .top .lang > a {
    width: 26px; height: 43px; padding: 0; margin: 0; display: grid; place-items: center;
    background: none; border: 0; box-shadow: none !important;
    font-family: inter, sans-serif; font-size: 13px; font-weight: 400; letter-spacing: normal;
    color: #fff; text-decoration: none; cursor: pointer;
  }

  /* Book direct */
  .top .navbook {
    position: absolute; left: 830px; top: 28px; width: 162px; height: 39px; margin: 0; padding: 0;
    display: flex; align-items: center; justify-content: center;
    background: #eac652; border: 0; border-radius: 0;
    font-family: Arial, Helvetica, sans-serif; font-size: 11px; font-weight: 400; letter-spacing: 2.2px; text-transform: uppercase;
    color: #1c1b19; text-decoration: none;
  }
  .top .navbook:hover { background: #f0d26d; }
}
