/* ================= BANNER / HERO ================= */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600&display=swap');

.hero{
  position:relative;
  width:100%;
  height:100vh;
  min-height:760px;
  overflow:hidden;
  color:#fff;
  background:#111;
  isolation:isolate;
}

.hero video.hero-video{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  z-index:0;
  filter:none;
  transform:scale(1.01);
}

.hero::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:1;
  pointer-events:none;
  background:
    linear-gradient(
      180deg,
      rgba(0,0,0,.08) 0%,
      rgba(0,0,0,.02) 45%,
      rgba(0,0,0,.18) 76%,
      rgba(0,0,0,.38) 100%
    );
}

.hero::after{display:none;}

.hero-caption{
  position:absolute;
  z-index:2;
  left:50%;
  bottom:128px;
  transform:translateX(-50%);
  width:min(720px,90vw);
  text-align:center;
  font-family:'Playfair Display', Georgia, 'Times New Roman', serif;
  color:#fff;
  text-shadow:0 8px 34px rgba(0,0,0,.34);
  animation:heroCaptionIn 2.6s cubic-bezier(.22,.72,.22,1) .35s both;
}

.hero-caption p{
  margin:0;
  font-size:clamp(28px,3.4vw,48px);
  font-weight:400;
  line-height:1.08;
  letter-spacing:.01em;
}


/* VIDEO CONTROLS */
.hero-video-controls{
  position:absolute;
  z-index:5;
  right:42px;
  bottom:128px;
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:0;
  background:transparent;
  box-shadow:none;
  animation:heroControlsIn 2.1s cubic-bezier(.22,.72,.22,1) .85s both;
}

.hero-control-btn{
  position:relative;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:38px;
  height:38px;
  padding:0;
  border:1px solid rgba(255,255,255,.86);
  border-radius:999px;
  background:transparent;
  color:#fff;
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
  cursor:pointer;
  box-shadow:none;
  transition:
    background .35s cubic-bezier(.22,.72,.22,1),
    border-color .35s cubic-bezier(.22,.72,.22,1),
    transform .35s cubic-bezier(.22,.72,.22,1),
    opacity .35s ease;
}

.hero-control-btn:hover,
.hero-control-btn.is-playing,
.hero-control-btn.is-unmuted{
  background:rgba(255,255,255,.14);
  border-color:rgba(255,255,255,1);
}

.hero-control-btn:hover{transform:translateY(-1px);}

.control-text{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

.control-icon{
  display:block;
  position:relative;
  width:16px;
  height:16px;
  flex:0 0 auto;
}

/* One button: play when paused, pause when playing */
.hero-play-toggle.is-paused .control-icon-playpause::before,
.hero-play-toggle:not(.is-playing) .control-icon-playpause::before{
  content:"";
  position:absolute;
  left:5px;
  top:3px;
  width:0;
  height:0;
  border-top:5px solid transparent;
  border-bottom:5px solid transparent;
  border-left:7px solid currentColor;
}

.hero-play-toggle.is-playing .control-icon-playpause::before,
.hero-play-toggle.is-playing .control-icon-playpause::after{
  content:"";
  position:absolute;
  top:3px;
  width:2px;
  height:10px;
  border-radius:999px;
  background:currentColor;
}

.hero-play-toggle.is-playing .control-icon-playpause::before{left:4.5px;}
.hero-play-toggle.is-playing .control-icon-playpause::after{right:4.5px;}

/* One button: muted / volume */
.control-icon-sound::before{
  content:"";
  position:absolute;
  left:1px;
  top:5px;
  width:5px;
  height:6px;
  border-radius:1px;
  background:currentColor;
  box-shadow:4px -3px 0 -1px currentColor, 4px 3px 0 -1px currentColor;
}

.hero-sound-toggle.is-unmuted .control-icon-sound::after{
  content:"";
  position:absolute;
  left:8px;
  top:3px;
  width:6px;
  height:10px;
  border:1.7px solid currentColor;
  border-left:0;
  border-top-color:transparent;
  border-bottom-color:transparent;
  border-radius:0 999px 999px 0;
}

.hero-sound-toggle.is-muted .control-icon-sound::after{
  content:"";
  position:absolute;
  left:8px;
  top:2px;
  width:9px;
  height:12px;
  background:
    linear-gradient(45deg, transparent 45%, currentColor 46%, currentColor 56%, transparent 57%),
    linear-gradient(-45deg, transparent 45%, currentColor 46%, currentColor 56%, transparent 57%);
}

/* BOOKING BAR */
.hero-booking-bar{
  position:absolute;
  z-index:4;
  left:50%;
  bottom:34px;
  transform:translateX(-50%);
  width:min(1180px,calc(100% - 64px));
  min-height:74px;
  display:grid;
  grid-template-columns:1.35fr 1fr 1fr .68fr .68fr .76fr auto;
  align-items:stretch;
  padding:12px;
  background:rgba(255,255,255,.94);
  color:#247d80;
  border:1px solid rgba(255,255,255,.64);
  border-radius:999px;
  box-shadow:0 22px 58px rgba(0,0,0,.18);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
  animation:heroBookingIn 2.1s cubic-bezier(.22,.72,.22,1) 1s both;
}

.booking-field{
  min-width:0;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:5px;
  padding:0 18px;
  border-right:1px solid rgba(36,125,128,.16);
  font-family:Montserrat, Arial, Helvetica, sans-serif;
}

.booking-field label{
  color:rgba(36,125,128,.76);
  font-size:10px;
  line-height:1;
  font-weight:600;
  letter-spacing:.13em;
  text-transform:uppercase;
}

.booking-field input,
.booking-field select,
.booking-property-name{
  width:100%;
  height:25px;
  padding:0;
  border:0;
  outline:0;
  background:transparent;
  color:#123f41;
  font-family:Montserrat, Arial, Helvetica, sans-serif;
  font-size:13px;
  font-weight:600;
  line-height:25px;
  letter-spacing:.01em;
}

.booking-field select{
  appearance:none;
  -webkit-appearance:none;
  padding-right:18px;
  background-image:linear-gradient(45deg, transparent 50%, #247d80 50%), linear-gradient(135deg, #247d80 50%, transparent 50%);
  background-position:calc(100% - 10px) 10px, calc(100% - 5px) 10px;
  background-size:5px 5px, 5px 5px;
  background-repeat:no-repeat;
  cursor:pointer;
}

.booking-field-date input[type="date"]{
  position:relative;
  padding-right:26px;
  color-scheme:light;
  cursor:pointer;
}

.booking-field-date input[type="date"]::-webkit-calendar-picker-indicator{
  width:18px;
  height:18px;
  margin:0;
  padding:0;
  cursor:pointer;
  opacity:1;
  filter:none;
  background:
    linear-gradient(#247d80,#247d80) center 5px / 10px 1.5px no-repeat,
    linear-gradient(#247d80,#247d80) center 10px / 10px 1.5px no-repeat,
    linear-gradient(#247d80,#247d80) center 15px / 10px 1.5px no-repeat,
    linear-gradient(#247d80,#247d80) 4px 2px / 1.5px 14px no-repeat,
    linear-gradient(#247d80,#247d80) 14px 2px / 1.5px 14px no-repeat;
  border:1px solid rgba(36,125,128,.46);
  border-radius:7px;
}

.booking-field-date input[type="date"]::-webkit-datetime-edit{
  color:#123f41;
  font-family:Montserrat, Arial, Helvetica, sans-serif;
  font-weight:600;
}

.booking-submit{
  align-self:center;
  height:50px;
  min-width:176px;
  padding:0 28px;
  border:0;
  border-radius:999px;
  background:#247d80;
  color:#fff;
  font-family:Montserrat, Arial, Helvetica, sans-serif;
  font-size:11px;
  font-weight:600;
  letter-spacing:.13em;
  text-transform:uppercase;
  cursor:pointer;
  transition:background .35s ease, transform .35s ease, box-shadow .35s ease;
}

.booking-submit:hover{
  background:#1b686a;
  transform:translateY(-1px);
  box-shadow:0 12px 28px rgba(36,125,128,.25);
}

@keyframes heroCaptionIn{
  0%{opacity:0; transform:translateX(-50%) translateY(18px); filter:blur(4px);}
  100%{opacity:1; transform:translateX(-50%) translateY(0); filter:blur(0);}
}

@keyframes heroControlsIn{
  0%{opacity:0; transform:translateY(16px); filter:blur(3px);}
  100%{opacity:1; transform:translateY(0); filter:blur(0);}
}

@keyframes heroBookingIn{
  0%{opacity:0; transform:translateX(-50%) translateY(18px); filter:blur(3px);}
  100%{opacity:1; transform:translateX(-50%) translateY(0); filter:blur(0);}
}

body.menu-open .hero-caption,
body.booking-open .hero-caption,
body.menu-open .hero-video-controls,
body.booking-open .hero-video-controls,
body.menu-open .hero-booking-bar,
body.booking-open .hero-booking-bar{
  opacity:0;
  visibility:hidden;
  animation:none;
}

@media(max-width:1180px){
  .hero{min-height:820px;}

  .hero-booking-bar{
    width:min(860px,calc(100% - 48px));
    grid-template-columns:repeat(3,minmax(0,1fr));
    border-radius:28px;
    gap:10px 0;
  }

  .booking-field:nth-of-type(3),
  .booking-field:nth-of-type(6){border-right:0;}

  .booking-submit{
    grid-column:1 / -1;
    width:100%;
  }

  .hero-video-controls{bottom:190px;}
}

@media(max-width:768px){
  .hero{
    height:auto;
    min-height:920px;
  }

  .hero-caption{
    width:min(520px,86vw);
    bottom:420px;
  }

  .hero-caption p{
    font-size:clamp(28px,7.8vw,42px);
    line-height:1.08;
  }


  .hero-video-controls{
    right:50%;
    bottom:334px;
    transform:translateX(50%);
  }

  .hero-booking-bar{
    width:calc(100% - 32px);
    bottom:22px;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px 0;
    padding:12px;
    border-radius:24px;
    min-height:0;
  }

  .booking-field{
    padding:0 10px 8px;
  }

  .booking-field-property,
  .booking-submit{
    grid-column:1 / -1;
  }

  .booking-field:nth-of-type(2),
  .booking-field:nth-of-type(4),
  .booking-field:nth-of-type(6){border-right:0;}

  .booking-submit{
    width:100%;
    height:46px;
    margin-top:2px;
  }

  @keyframes heroControlsIn{
    0%{opacity:0; transform:translateX(50%) translateY(16px); filter:blur(3px);}
    100%{opacity:1; transform:translateX(50%) translateY(0); filter:blur(0);}
  }
}

@media(max-width:560px){
  .hero{
    min-height:900px;
  }

  .hero::before{
    background:linear-gradient(180deg, rgba(0,0,0,.08) 0%, rgba(0,0,0,.04) 48%, rgba(0,0,0,.22) 78%, rgba(0,0,0,.42) 100%);
  }

  .hero-caption{
    width:min(330px,84vw);
    bottom:426px;
  }

  .hero-caption p{font-size:31px;}

  .hero-video-controls{
    bottom:348px;
    gap:8px;
  }

  .hero-control-btn{
    width:36px;
    height:36px;
  }

  .hero-booking-bar{
    width:calc(100% - 26px);
    bottom:14px;
    grid-template-columns:1fr 1fr;
    padding:11px;
    border-radius:22px;
  }

  .booking-field{
    padding:0 8px 8px;
  }

  .booking-field label{
    font-size:9px;
    letter-spacing:.1em;
  }

  .booking-field input,
  .booking-field select,
  .booking-property-name{
    height:30px;
    font-size:12px;
  }

  .booking-submit{
    height:44px;
    font-size:10px;
    letter-spacing:.11em;
  }
}
