/* Phone-only layout. Desktop and laptop rules are untouched. */
@media (max-width: 600px) {
  html:is([data-theme="spring-blue"],[data-theme="spring-ihem"]) .site-header .header-row.wrap {
    display:grid !important; grid-template-columns:minmax(0,1fr) auto;
    align-items:center; gap:8px 12px; min-height:0; padding:12px 18px;
    width:100%; box-sizing:border-box;
  }
  html:is([data-theme="spring-blue"],[data-theme="spring-ihem"]) .site-header .header-row > .brand {
    grid-column:1/-1; grid-row:1; order:0; min-width:0; width:100%; margin:0; padding:0;
  }
  html:is([data-theme="spring-blue"],[data-theme="spring-ihem"]) .site-header .brand .spring-logo {
    width:min(245px, 78vw); max-width:100%; height:auto; max-height:none; object-fit:contain; display:block;
  }
  html:is([data-theme="spring-blue"],[data-theme="spring-ihem"]) .site-header .header-row > .header-user {
    grid-column:2; grid-row:2; order:0; justify-self:end; margin:0; padding:0; display:flex; align-items:center; gap:3px; min-width:0;
  }
  html:is([data-theme="spring-blue"],[data-theme="spring-ihem"]) .site-header .header-languages {display:flex; align-items:center; gap:2px; margin:0; padding:0;}
  html:is([data-theme="spring-blue"],[data-theme="spring-ihem"]) .site-header .header-languages button {padding:5px 3px; min-width:28px; min-height:36px; margin:0;}
  html:is([data-theme="spring-blue"],[data-theme="spring-ihem"]) .site-header .header-languages img {width:22px; height:auto; display:block;}
  html:is([data-theme="spring-blue"],[data-theme="spring-ihem"]) .site-header .header-row > .menu-toggle {grid-column:1; grid-row:2; order:0; justify-self:start; display:inline-flex; justify-content:center; align-items:center; width:40px; height:40px; min-width:40px; margin:0; padding:0;}
  html:is([data-theme="spring-blue"],[data-theme="spring-ihem"]) .site-header :is(.header-login-keyhole,.icon-link,.user-menu summary) {min-width:32px; min-height:36px; padding:3px; margin:0; display:flex; align-items:center; justify-content:center;}
  html:is([data-theme="spring-blue"],[data-theme="spring-ihem"]) .site-header .user-menu summary .hide-sm {display:none;}
  html:is([data-theme="spring-blue"],[data-theme="spring-ihem"]) .site-header .header-row > .header-search {display:none;}
  html[data-theme="spring-ihem"] .vm-home-light .vm-intro-grid.wrap {display:flex !important; flex-direction:column; padding:0 !important; margin:0; min-height:0; width:100%;}
  html[data-theme="spring-ihem"] .vm-home-light .vm-intro-grid.wrap > .vm-intro-media {display:block !important; order:0; width:100%; min-height:0 !important; height:auto; aspect-ratio:1.95; border-radius:0; background-position:72% center; background-size:cover;}
  html[data-theme="spring-ihem"] .vm-home-light .vm-intro-grid.wrap > .vm-intro-copy {width:100%; max-width:100%; box-sizing:border-box; padding:20px 18px 22px !important; align-self:stretch; order:-1; background:#edf7fc;}
  html[data-theme="spring-ihem"] .vm-home-light .vm-intro-copy h1#vm-home-title {font-size:clamp(1.35rem,5.5vw,1.7rem) !important; line-height:1.14; letter-spacing:-.025em; margin:0 0 10px;}
  html[data-theme="spring-ihem"] .vm-home-light .vm-intro-copy .vm-intro-lead {font-size:.94rem; line-height:1.45; margin:0 0 14px;}
  html[data-theme="spring-ihem"] .vm-home-light .vm-intro-copy .vm-intro-actions {display:grid; grid-template-columns:minmax(0,1fr); gap:8px;}
  html[data-theme="spring-ihem"] .vm-home-light .vm-intro-copy .vm-intro-actions .btn {font-size:.88rem; min-height:40px; padding:8px 12px; width:100%; box-sizing:border-box;}
  html[data-theme="spring-ihem"] .vm-home-light .spring-categories {grid-template-columns:repeat(3,minmax(0,1fr)); gap:0; margin:0 0 16px; padding:8px 0;}
  html[data-theme="spring-ihem"] .vm-home-light .spring-categories a {min-width:0; min-height:82px; padding:9px 3px; gap:6px; font-size:.75rem; line-height:1.25; flex-direction:column;}
  html[data-theme="spring-ihem"] .vm-home-light .spring-categories a:nth-child(3n+1) {border-left:0;}
  html[data-theme="spring-ihem"] .vm-home-light .spring-categories .ico {width:25px;height:25px;flex-shrink:0;}
  html[data-theme="spring-ihem"] .vm-home-light .vm-intelligent-features {grid-template-columns:1fr; gap:16px; margin-bottom:30px;}
}

/* Compact stacked brand and softly translucent introduction, phone only. */
@media(max-width:600px){
 html:is([data-theme="spring-blue"],[data-theme="spring-ihem"]) .site-header .header-row.wrap {padding:8px 16px;gap:4px 8px;}
 html:is([data-theme="spring-blue"],[data-theme="spring-ihem"]) .site-header .header-row > .brand {display:flex;justify-content:center;align-items:center;}
 html:is([data-theme="spring-blue"],[data-theme="spring-ihem"]) .site-header .brand .spring-logo {content:url('../img/spring/logo-mobile.png');width:170px;max-width:100%;height:auto;max-height:none;}
 html[data-theme="spring-ihem"] .vm-home-light .vm-intro {background:#eaf5fb url('../img/spring/intelligent/panorama.webp') left center / auto 100% no-repeat;}
 html[data-theme="spring-ihem"] .vm-home-light .vm-intro-grid.wrap > .vm-intro-copy {background:rgba(237,247,252,.82);}
}

/* Approved single-row mobile header. Keep the original horizontal logo. */
@media(max-width:600px){
 html:is([data-theme="spring-blue"],[data-theme="spring-ihem"]) .site-header .header-row.wrap {display:grid !important;grid-template-columns:minmax(0,1fr) 40px auto;grid-template-rows:auto;gap:4px;min-height:56px;padding:6px 8px;align-items:center;}
 html:is([data-theme="spring-blue"],[data-theme="spring-ihem"]) .site-header .header-row > .brand {grid-column:1;grid-row:1;justify-content:flex-start;min-width:0;width:100%;}
 html:is([data-theme="spring-blue"],[data-theme="spring-ihem"]) .site-header .brand .spring-logo {content:normal;width:145px;max-width:100%;height:auto;max-height:none;}
 html:is([data-theme="spring-blue"],[data-theme="spring-ihem"]) .site-header .header-row > .menu-toggle {grid-column:2;grid-row:1;justify-self:center;}
 html:is([data-theme="spring-blue"],[data-theme="spring-ihem"]) .site-header .header-row > .header-user {grid-column:3;grid-row:1;justify-self:end;flex-wrap:nowrap;gap:2px;width:auto;}
 html:is([data-theme="spring-blue"],[data-theme="spring-ihem"]) .site-header .header-languages {flex-wrap:nowrap;gap:2px;}
 html:is([data-theme="spring-blue"],[data-theme="spring-ihem"]) .site-header .header-languages button {width:28px;min-width:28px;flex:0 0 28px;}
 html:is([data-theme="spring-blue"],[data-theme="spring-ihem"]) .site-header .header-languages img {width:22px;max-width:100%;height:auto;}
}

/* Approved mobile preview: only phone layout changes. */
html[data-theme="spring-ihem"] .vm-home-light .vm-intro-actions .vm-mobile-villaparm{display:none;}
@media(max-width:600px){
html:is([data-theme="spring-blue"],[data-theme="spring-ihem"]) .site-header .header-row.wrap{grid-template-columns:minmax(0,1fr) auto 36px;grid-template-rows:auto auto;gap:0 12px;padding:12px 14px 8px;min-height:94px;}
html:is([data-theme="spring-blue"],[data-theme="spring-ihem"]) .site-header .header-row > .brand{grid-column:1;grid-row:1;align-self:center;}
html:is([data-theme="spring-blue"],[data-theme="spring-ihem"]) .site-header .brand .spring-logo{content:normal;width:220px;max-width:100%;height:auto;}
html:is([data-theme="spring-blue"],[data-theme="spring-ihem"]) .site-header .header-row > .header-user{display:contents;}
html:is([data-theme="spring-blue"],[data-theme="spring-ihem"]) .site-header .header-user > .header-languages{grid-column:1/-1;grid-row:2;justify-self:end;display:flex;gap:10px;padding:0 6px;min-height:34px;}
html:is([data-theme="spring-blue"],[data-theme="spring-ihem"]) .site-header .header-languages button{width:28px;min-width:28px;min-height:28px;padding:0;border:0;background:transparent;}
html:is([data-theme="spring-blue"],[data-theme="spring-ihem"]) .site-header .header-languages img{width:25px;height:17px;object-fit:contain;}
html:is([data-theme="spring-blue"],[data-theme="spring-ihem"]) .site-header .header-row > .menu-toggle{grid-column:3;grid-row:1;justify-self:end;width:36px;min-width:36px;height:36px;border:0;background:transparent;box-shadow:none;}
html:is([data-theme="spring-blue"],[data-theme="spring-ihem"]) .site-header .header-user > :is(.header-login-keyhole,.user-menu){grid-column:2;grid-row:1;justify-self:end;}
html:is([data-theme="spring-blue"],[data-theme="spring-ihem"]) .site-header .header-user > .icon-link{grid-column:1;grid-row:2;justify-self:start;}
html[data-theme="spring-ihem"] .vm-home-light .vm-intro{background:none !important;}
html[data-theme="spring-ihem"] .vm-home-light .vm-intro-grid.wrap{display:block !important;position:relative;}
html[data-theme="spring-ihem"] .vm-home-light .vm-intro-grid.wrap > .vm-intro-media{display:none !important;}
html[data-theme="spring-ihem"] .vm-home-light .vm-intro-grid.wrap > .vm-intro-copy{position:relative;display:block;padding:calc(100vw / 2.55 + 18px) 20px 20px !important;background:#edf7fc;}
html[data-theme="spring-ihem"] .vm-home-light .vm-intro-copy::before{content:"";position:absolute;inset:0 0 auto;height:calc(100vw / 2.55);background:url('../img/spring/intelligent/panorama.webp') center center / cover no-repeat;}
html[data-theme="spring-ihem"] .vm-home-light .vm-intro-copy h1#vm-home-title{position:absolute;left:4%;top:calc(100vw / 5.1);transform:translateY(-50%);width:47%;max-width:47% !important;padding:5px 3px 5px 0;margin:0;font-family:Arial,sans-serif;font-size:clamp(13px,3.8vw,22px) !important;line-height:1.16;letter-spacing:-.03em;text-shadow:0 1px 5px #fff,0 0 10px #fff;}
html[data-theme="spring-ihem"] .vm-home-light .vm-intro-copy .vm-intro-lead{font-size:15px;line-height:1.48;margin:0 0 16px;}
html[data-theme="spring-ihem"] .vm-home-light .vm-intro-copy .vm-intro-actions{display:flex;gap:10px;flex-wrap:wrap;}
html[data-theme="spring-ihem"] .vm-home-light .vm-intro-copy .vm-intro-actions .btn{flex:1 1 0;min-width:0;width:auto;min-height:42px;padding:8px 7px;font-size:14px;justify-content:center;text-align:center;}
html[data-theme="spring-ihem"] .vm-home-light .vm-intro-actions .vm-desktop-explore{display:none !important;}
html[data-theme="spring-ihem"] .vm-home-light .vm-intro-actions .vm-mobile-villaparm{display:inline-flex !important;}
html[data-theme="spring-ihem"] .vm-home-light .vm-intro-actions .vm-intro-primary .ico{display:none;}
}
