/* SURF HOUSE SANVI — shared styles, no WordPress or framework dependency.
   1. Colours/type  2. Header  3. Home  4. Content  5. Interactions  6. Responsive */

/* 1. Colours and typography */
:root {
  --blue: #0088ba;
  --orange: #ff9900;
  --ink: #3d3d3d;
  --muted: #626262;
  --line: #e4e4e4;
  --sand: #d8d1bd;
  --paper: #f0ede8;
  --content-width: 1024px;
}
* { box-sizing: border-box; }
html { scroll-behavior: auto; }
body { margin: 0; background: #fff; color: var(--muted); font: 400 16px/1.55 Raleway, Arial, sans-serif; }
img, video, iframe { max-width: 100%; }
img { display: block; height: auto; }
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: #ac6100; text-decoration: none; }
a:hover { color: var(--blue); }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid #005775; outline-offset: 4px; }
[hidden] { display: none !important; }
h1, h2, h3, h4 { margin: 0 0 16px; color: var(--ink); font-family: "Roboto Condensed", Arial, sans-serif; line-height: 1.18; }
h1 { font-size: clamp(27px, 3.1vw, 40px); }
h2 { font-size: 30px; }
h3 { font-size: 25px; }
h4 { font-size: 21px; }
p { margin: 0 0 18px; }
ul { padding-left: 24px; margin: 0 0 24px; }
li { margin-bottom: 7px; }
.container { width: min(var(--content-width), calc(100% - 48px)); margin-inline: auto; }
.header-container { width: min(1130px, calc(100% - 48px)); margin-inline: auto; }
.center { text-align: center; }
.orange { color: #be6d00; }
.small { font-size: 13px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 100; left: 20px; top: -100px; padding: 12px; background: #fff; color: #111; }
.skip-link:focus { top: 10px; }
.button { display: inline-block; padding: 10px 18px; border: 2px solid #b96c00; border-radius: 2px; background: transparent; color: #9c5900; font: 500 19px/1.3 "Roboto Condensed", Arial, sans-serif; text-align: center; text-decoration: none; transition: background .15s, color .15s; }
.button:hover { background: #fff2df; color: #713f00; }
.button.filled { background: #bd6d00; color: white; }
.button.filled:hover { background: #925400; }
.button.light { color: #fff; border-color: #fff; text-shadow: 0 1px 3px #333; }
.button.light:hover { background: rgba(0,0,0,.35); color: white; }

/* 2. Header and language buttons */
.topbar { background: var(--blue); color: white; font: 12px/1.4 Arial, sans-serif; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 31px; }
.topbar a { color: white; }
.top-contacts { display: flex; gap: 18px; align-items: center; }
.top-contacts > a:not(:first-child) { font-size: 19px; font-weight: 700; }
.languages { display: flex; gap: 8px; align-items: center; }
.languages button { border: 0; border-bottom: 2px solid transparent; background: none; color: #fff; padding: 6px 5px; font: 12px/1 Arial, sans-serif; min-height: 31px; white-space: nowrap; }
.languages button[aria-pressed="true"] { border-color: #fff; background: rgba(0,0,0,.14); }
.languages button:hover { background: rgba(0,0,0,.18); }
.languages button > span:first-child { font-size: 16px; vertical-align: -1px; }
.site-header { position: relative; background: #fff; border-bottom: 1px solid var(--line); z-index: 10; }
.header-inner { display: flex; min-height: 136px; align-items: center; gap: 25px; }
.logo { flex: 0 0 104px; margin-right: auto; }
.logo img { width: 104px; height: 121px; object-fit: contain; }
.main-nav { display: flex; align-items: center; gap: 23px; }
.main-nav a { color: var(--ink); font: 700 16px/1.2 "Roboto Condensed", Arial, sans-serif; text-transform: uppercase; padding: 14px 0; white-space: nowrap; }
.main-nav a[aria-current], .main-nav a:hover { color: #bb6c00; }
.search-toggle { flex: 0 0 28px; border: 0; color: var(--ink); background: none; padding: 0; }
.menu-toggle { display: none; width: 42px; height: 42px; padding: 9px; background: #fff; border: 1px solid #ccc; border-radius: 3px; }
.menu-toggle span { display: block; height: 2px; background: #222; margin: 5px 0; }
.search-panel { border-top: 1px solid var(--line); padding: 20px 0; background: #f7f7f7; }
.search-panel label { display: block; margin-bottom: 8px; color: #333; }
.search-panel input { width: 100%; padding: 12px; border: 1px solid #aaa; border-radius: 2px; background: #fff; }
#search-results { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-top: 14px; }
#search-results a { padding: 10px; border-bottom: 1px solid #ddd; color: #005a7b; }

/* 3. Home — original images, blue/orange identity and full-width sections */
.home-video { padding-top: 24px; }
.video-player { position: relative; width: 100%; margin: 22px 0; background: #0d4058; line-height: 0; }
.video-player video { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.video-play { display: none; position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 88px; height: 88px; padding: 16px; border: 5px solid #fff; border-radius: 50%; color: #fff; background: #0001; }
.has-js .video-play { display: grid; place-items: center; }
.video-play svg { width: 40px; height: 40px; }
.video-play:hover { background: #0005; }
.home-video .video-player { margin: 0; }
.feature-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); margin: 25px 0; }
.feature { color: #2e2e2e; background: var(--sand); text-align: center; }
.feature:nth-child(even) { background: var(--paper); }
.feature img { width: 100%; aspect-ratio: 1.5; object-fit: cover; }
.feature h2 { min-height: 105px; margin: 0; padding: 15px 8px 24px; font: 700 clamp(24px,2.9vw,40px)/1.15 "Roboto Condensed", sans-serif; text-transform: uppercase; }
.feature:hover h2 { color: #00688e; }
.slideshow { position: relative; overflow: hidden; background: #123c50; }
.slide { min-height: 450px; display: grid; place-items: center; padding: 75px 30px; background-image: linear-gradient(0deg,rgba(0,0,0,.35),rgba(0,0,0,.15)),var(--slide-image); background-position: center; background-size: cover; text-align: center; }
.slide h2 { color: white; font-size: clamp(40px,5vw,65px); text-transform: uppercase; text-shadow: 0 2px 4px #222; }
.slide .button { font-size: 25px; }
.slide-controls { position: absolute; bottom: 15px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; color: #fff; background: rgba(0,0,0,.62); border-radius: 3px; gap: 10px; }
.slide-controls button { color: #fff; border: 0; background: none; width: 43px; height: 40px; font: 28px/1 Arial,sans-serif; }
.slide-status { min-width: 45px; text-align: center; font: 14px Arial,sans-serif; }
.home-cta { padding: 40px 24px; margin: 25px 0 30px; background: linear-gradient(rgba(0,0,0,.28),rgba(0,0,0,.45)),url('../images/bgContatti.jpg') center/cover; text-align: center; color: white; }
.home-cta h2 { color: #fff; text-shadow: 1px 2px 3px #333; font: 700 clamp(30px,4vw,50px)/1.2 "Roboto Condensed",sans-serif; margin-bottom: 25px; }
.home-cta .button { font-size: 25px; }

/* 4. Internal page content */
.page-hero { min-height: 180px; display: flex; align-items: center; padding: 35px 0; background: linear-gradient(90deg,rgba(0,0,0,.3),rgba(0,0,0,.1)),url('../images/SurfHouse-Header.jpg') center/cover; }
.page-hero h1 { color: #fff; text-shadow: 1px 2px 2px #222; }
.page-content { padding-top: 45px; padding-bottom: 55px; min-height: 40vh; }
.page-content h2:not(:first-child) { margin-top: 35px; }
.page-content h3 { margin-top: 30px; }
.page-content h4 { margin-top: 24px; }
.gallery { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; margin: 28px 0; }
.gallery a { display: block; overflow: hidden; background: #eee; }
.gallery img { width: 100%; aspect-ratio: 600/426; object-fit: cover; transition: transform .2s; }
.gallery a:hover img { transform: scale(1.035); }
.amenities { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; list-style: none; padding: 0; margin: 32px 0; }
.amenities li { padding: 22px 12px; margin: 0; color: #fff; background: #007fae; text-align: center; font: 700 18px/1.3 "Roboto Condensed",sans-serif; text-transform: uppercase; }
.amenities li:nth-child(even) { background: #b66b00; }
.service-list { padding: 0; list-style: none; }
.service-list li { border-left: 4px solid var(--orange); background: #f7f5ef; padding: 12px 16px; }
.sports-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 0; }
.sport-tile { background: var(--paper); color: #333; text-align: center; }
.sport-tile:nth-child(odd) { background: var(--sand); }
.sport-tile img { width: 100%; aspect-ratio: 1.5; object-fit: cover; }
.sport-tile h2 { margin: 0 !important; padding: 18px 8px; font-size: 28px; text-transform: uppercase; }
.price-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.price-card { background: #f8f6f1; border-top: 6px solid var(--orange); padding: 25px; }
.price-card h2 { font-size: 32px; margin-top: 0 !important; }
.price-card h3 { color: #096789; font-size: 23px; }
.tariffs { padding: 0; list-style: none; }
.tariffs span {font-size: 20px;
               font-weight: 700;}
.tariffs li { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 12px 0; border-bottom: 1px solid #d7d4cd; }
.tariffs strong { font: 700 27px "Roboto Condensed",sans-serif; color: #333; white-space: nowrap; }
.rental-text { margin-top: 40px; }
.vehicle-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 18px; margin: 30px 0; }
.vehicle { text-align: center; background: #f4f3ef; }
.vehicle img { width: 100%; aspect-ratio: 1.5; object-fit: contain; background: #fff; }
.vehicle h3 { margin: 20px 8px 12px; }
.vehicle p { padding: 0 8px; }
.vehicle-price { color: #b26800; font: 700 32px "Roboto Condensed",sans-serif; }
.vehicle-price small { font-size: 18px; color: #444; }
.rental-logo { width: min(420px,100%); margin: 30px auto; }
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; }
.contact-grid h2 { margin-top: 0; }
form label:not(.checkbox) { display: block; color: #333; font-weight: 600; margin: 0 0 8px; }
form input:not([type=checkbox]), form textarea { width: 100%; margin-bottom: 20px; border: 1px solid #bbb; border-radius: 2px; background: #fafafa; color: #222; padding: 11px; }
form textarea { resize: vertical; }
.checkbox { display: flex; align-items: flex-start; gap: 9px; margin-bottom: 15px; }
.checkbox input { width: 18px; height: 18px; flex: 0 0 18px; margin-top: 3px; }
.form-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.form-actions .button { font-size: 17px; }
#form-status { color: #185b32; margin-top: 15px; }
.contact-details a { overflow-wrap: anywhere; }
.map-section { margin-top: 40px; }
#map-container { min-height: 230px; background: #f1f4f1; display: grid; place-content: center; text-align: center; padding: 30px; }
#map-container iframe { width: 100%; height: 430px; border: 0; }
#map-container:has(iframe) { display: block; padding: 0; }
.back-link { margin-top: 35px; }
.site-footer { background: var(--blue); color: white; padding: 18px 0; font-size: 13px; }
.site-footer p { margin-bottom: 8px; }
.site-footer a { color: #fff; text-decoration: underline; }
.privacy-settings { color: #fff; background: none; padding: 2px 0; border: 0; text-decoration: underline; font-size: 13px; }

/* 5. Fixed WhatsApp, media consent and accessible lightbox */
.whatsapp { position: fixed; right: max(22px,env(safe-area-inset-right)); bottom: max(22px,env(safe-area-inset-bottom)); width: 60px; height: 60px; display: grid; place-items: center; color: white; background: #12c659; border-radius: 50%; z-index: 40; box-shadow: 0 3px 12px #0004; }
.whatsapp svg { width: 35px; height: 35px; }
.whatsapp:hover { color: white; background: #0b9b43; transform: translateY(-2px); }
.consent-banner { position: fixed; left: 18px; bottom: 18px; width: min(430px,calc(100% - 110px)); max-height: 75vh; overflow-y: auto; padding: 22px; background: #fff; border: 1px solid #ddd; border-radius: 5px; box-shadow: 0 3px 25px #0003; z-index: 50; font-size: 13px; }
.consent-banner h2 { font-size: 23px; margin-bottom: 10px; }
.consent-banner p { margin-bottom: 13px; }
.consent-banner > div { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.small-button { font-size: 16px; padding: 8px 10px; }
.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; border: 0; padding: 55px 65px; margin: 0; background: rgba(0,0,0,.94); color: #fff; }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: #000b; }
.lightbox figure { margin: 0; max-width: 100%; text-align: center; }
.lightbox figure img { margin: auto; max-height: calc(100dvh - 150px); object-fit: contain; }
.lightbox figcaption { padding: 14px 0 0; font: 14px Arial,sans-serif; }
.lightbox button { position: absolute; color: #fff; border: 0; background: #ffffff18; width: 44px; height: 48px; font: 40px/1 Arial,sans-serif; border-radius: 3px; }
.lightbox-close { right: 18px; top: 15px; }
.lightbox-prev { left: 12px; top: calc(50% - 24px); }
.lightbox-next { right: 12px; top: calc(50% - 24px); }

/* 6. Tablet and mobile */
@media (max-width: 1150px) {
  .main-nav { gap: 15px; }
  .main-nav a { font-size: 14px; }
  .header-inner { gap: 20px; }
}
@media (max-width: 980px) {
  .header-inner { min-height: 108px; }
  .logo { flex-basis: 78px; }
  .logo img { width: 78px; height: 91px; }
  .menu-toggle { display: block; }
  .main-nav { position: absolute; top: 100%; left: 24px; right: 24px; display: none; background: #fff; padding: 8px 18px; border-top: 3px solid var(--orange); box-shadow: 0 8px 18px #0002; max-height: 75vh; overflow-y: auto; }
  .main-nav.is-open { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .main-nav a { padding: 13px 5px; border-bottom: 1px solid #eee; font-size: 17px; }
  .search-panel { position: relative; }
  .feature-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .feature h2 { min-height: 85px; font-size: 32px; }
  .sports-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .gallery { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .amenities { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .vehicle-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .contact-grid { gap: 30px; }
  .price-columns { gap: 20px; }
  .price-card { padding: 20px; }
  .search-panel { z-index: 11; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .container, .header-container { width: calc(100% - 32px); }
  .topbar-inner { flex-wrap: wrap; justify-content: center; gap: 0; padding: 4px 0; }
  .top-contacts { justify-content: center; width: 100%; gap: 18px; }
  .languages { justify-content: center; gap: 13px; }
  .languages button { padding-inline: 7px; }
  .header-inner { min-height: 97px; }
  .logo img { height: 84px; width: 73px; }
  .main-nav { left: 16px; right: 16px; }
  .home-video { padding-top: 12px; }
  .feature-grid { margin: 12px 0; }
  .feature h2 { min-height: 72px; padding: 15px 8px; font-size: clamp(20px,5.7vw,29px); overflow-wrap: anywhere; }
  .slide { min-height: 330px; padding-inline: 24px; }
  .slide h2 { font-size: 36px; }
  .home-cta { padding: 30px 18px; margin: 12px 0 20px; }
  .page-hero { min-height: 140px; padding: 25px 0; }
  .page-content { padding-top: 28px; padding-bottom: 35px; }
  h2 { font-size: 27px; }
  h3 { font-size: 23px; }
  .gallery { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .amenities { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .amenities li { font-size: 16px; }
  .price-columns, .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .tariffs li { gap: 10px; }
  .vehicle-grid { gap: 10px; }
  .vehicle h3 { font-size: 22px; }
  .vehicle p { font-size: 14px; }
  .vehicle p.vehicle-price { font-size: 28px; }
  .sport-tile h2 { font-size: 23px; }
  #search-results { grid-template-columns: 1fr; }
  .site-footer { padding-bottom: 95px; }
  .whatsapp { width: 56px; height: 56px; right: 16px; bottom: max(16px,env(safe-area-inset-bottom)); }
  .consent-banner { left: 10px; bottom: 10px; width: calc(100% - 87px); padding: 15px; max-height: 65vh; }
  .consent-banner h2 { font-size: 21px; }
  .consent-banner .button { font-size: 15px; }
  .lightbox { padding: 60px 45px; }
  .lightbox button { width: 36px; height: 44px; }
  .lightbox-prev { left: 3px; }
  .lightbox-next { right: 3px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
