/* Yachts by CHAPMAN: featured Managed Vessel section (modules/charter/managed.php) */
section.cmv{background:#221B33;color:#fff;padding:90px 24px 100px;margin:40px 0 70px;position:relative;overflow:hidden}
section.cmv:before{content:"";position:absolute;inset:0;background:radial-gradient(ellipse at 50% 0%,rgba(255,255,255,.07),transparent 60%);pointer-events:none}
section.cmv *{box-sizing:border-box}
section.cmv .cmv-inner{max-width:1400px;margin:0 auto;position:relative}
section.cmv .cmv-head{text-align:center;margin-bottom:52px}
section.cmv .cmv-title{font-family:'ivypresto-headline',serif!important;font-weight:100;font-size:clamp(32px,3.6vw,48px);line-height:1.1;text-transform:uppercase;letter-spacing:2px;margin:0 0 16px;color:#fff}
section.cmv .cmv-sub{font-family:Lora,serif!important;font-size:16px;line-height:1.7;color:rgba(255,255,255,.75);max-width:620px;margin:0 auto}

/* One row of four */
section.cmv .cmv-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px}
section.cmv .cmv-card{min-width:0;background:#fff;color:#221B33;display:flex;flex-direction:column;text-decoration:none;transition:transform .45s ease,box-shadow .45s ease}
section.cmv .cmv-card:hover{transform:translateY(-6px);box-shadow:0 24px 50px rgba(0,0,0,.35)}
section.cmv .cmv-media{position:relative;aspect-ratio:686/380;overflow:hidden;background:#33294a}
section.cmv .cmv-media img{width:100%;height:100%;object-fit:cover;display:block;transition:transform 1.2s ease}
section.cmv .cmv-card:hover .cmv-media img{transform:scale(1.06)}
section.cmv .cmv-media:after{content:"";position:absolute;inset:0;background:linear-gradient(to top,rgba(20,15,32,.7) 0%,rgba(20,15,32,.1) 40%,transparent 65%);pointer-events:none}

/* Heart: the site's wishlist button (js/user-save-global.js), icons from the theme's icomoon font */
section.cmv .cmv-heart{position:absolute;top:12px;right:12px;z-index:2;width:40px;height:40px;border-radius:50%;background:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer;font-size:18px;color:#221B33}
section.cmv .cmv-heart:before{content:"\e932";font-family:'icomoon'}
section.cmv .cmv-heart.active:before{content:"\e9da"}

section.cmv .cmv-loc{position:absolute;left:18px;right:18px;bottom:14px;z-index:2;font-family:Montserrat,sans-serif!important;font-size:11px;font-weight:600;letter-spacing:.16em;text-transform:uppercase;color:#fff}
section.cmv .cmv-body{padding:20px 20px 22px;display:flex;flex-direction:column;gap:16px;flex:1}
/* Name and price match the live listing cards (Montserrat) */
section.cmv .cmv-name{font-family:Montserrat,sans-serif!important;font-weight:600;font-size:19px;letter-spacing:1px;line-height:1.2;margin:0;color:#221B33;text-transform:none}
section.cmv .cmv-price{background:#F4F4F6;padding:12px 16px;font-family:Montserrat,sans-serif!important;color:#221B33;text-transform:uppercase}
section.cmv .cmv-price span{font-family:Montserrat,sans-serif!important}
section.cmv .cmv-price .t1{display:block;font-size:12px;font-weight:400;margin-bottom:2px}
section.cmv .cmv-price .t2{font-size:20px;font-weight:600;margin-right:6px;white-space:nowrap}
section.cmv .cmv-price .t3{font-size:12px;font-weight:400;margin-right:6px}
section.cmv .cmv-price .t4{font-size:12px;font-weight:600}
section.cmv .cmv-price .nw{white-space:nowrap;display:inline-block}
section.cmv .cmv-specs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 12px;margin:0;text-transform:uppercase}
section.cmv .cmv-specs dt,section.cmv .cmv-specs dd{font-family:Montserrat,sans-serif!important;color:#221B33;letter-spacing:1px}
section.cmv .cmv-specs dt{font-size:12px;font-weight:400;margin-bottom:4px}
section.cmv .cmv-specs dd{margin:0;font-size:14px;font-weight:600}
section.cmv .cmv-cta{margin-top:auto;align-self:flex-start;font-family:Montserrat,sans-serif!important;font-size:14px;letter-spacing:2px;text-transform:uppercase;color:#221B33;padding:0 16px 10px;border-bottom:3px solid #221B33;transition:padding .3s ease}
section.cmv .cmv-card:hover .cmv-cta{padding-right:30px}

section.cmv .cmv-dots{display:none;justify-content:center;gap:10px;margin-top:22px}
section.cmv .cmv-dot{width:9px;height:9px;padding:0;border:1px solid rgba(255,255,255,.7);border-radius:50%;background:transparent;cursor:pointer;transition:background .3s,transform .3s}
section.cmv .cmv-dot.is-active{background:#fff;transform:scale(1.15)}

/* Desktop: four in a row; with five or more vessels the row scrolls and dots appear */
@media (min-width:1101px){
 section.cmv.is-carousel .cmv-row{display:flex;gap:24px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;padding:8px 0;margin:-8px 0}
 section.cmv.is-carousel .cmv-row::-webkit-scrollbar{display:none}
 section.cmv.is-carousel .cmv-card{flex:0 0 calc((100% - 72px)/4);scroll-snap-align:start}
 section.cmv.is-carousel .cmv-card:hover{transform:none}
 section.cmv.is-carousel .cmv-dots{display:flex}
}
/* Tablet and mobile: one row, swipe sideways, image height matches the listing cards */
@media (max-width:1100px){
 section.cmv{padding:70px 0 80px}
 section.cmv .cmv-head{padding:0 16px;margin-bottom:36px}
 section.cmv .cmv-row{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scroll-padding-inline:16px;gap:16px;padding:0 16px 8px;scrollbar-width:none}
 section.cmv .cmv-row::-webkit-scrollbar{display:none}
 section.cmv .cmv-card{flex:0 0 calc(50% - 8px);scroll-snap-align:start}
 section.cmv .cmv-card:hover{transform:none}
 section.cmv .cmv-dots{display:flex}
 section.cmv .cmv-media{aspect-ratio:auto;height:210px}
}
/* Below 1024 the boat filter (margin-top:-300px in charter.css) sits higher; extra room keeps it off the cards and straddling the band edge as on desktop */
@media (max-width:1023px){
 section.cmv{margin-bottom:190px}
}
/* Phone: one complete card per swipe, nothing cut off */
@media (max-width:767px){
 section.cmv .cmv-card{flex:0 0 100%}
}
/* Price box: AUD PER HOUR always on its own line so every shaded box is the same height (a range price wrapped on Evolution). Five by Five, Nov 2026 */
section.cmv .cmv-price .nw{display:block;margin-top:2px}
/* Anchor target for the Managed by CHAPMAN menu link: keep the section clear of the sticky header */
section.cmv{scroll-margin-top:90px}
