/* Mantis 5757 - "make all website curvy edges" (Amit, 02-Dec-2026, after approving the
   curvy-only X42 demo mantis-5757c on 01-Dec-2026: "curvy bit first only not the colour").
   WHY one site-wide sheet: the ask is a shape change on every page, not a redesign. This file only
   sets border-radius (plus the overflow clip a rounded frame needs), so colours, spacing, markup and
   every booking/payment script stay exactly as they are, and rollback is deleting one <link>.
   INVARIANT: shape only. No colour, shadow, size, spacing or font rule belongs here - the colour
   proposals (crimson/gold/ivory) were explicitly set aside by Amit on 01-Dec-2026.
   SEAM: loaded by template/layout_website.tpl, last in <head>. AppChrome5709Model appends
   xy5709.css / xy5709-rd.css AFTER it, so every rule here carries "html body" (two extra type
   selectors) to win equal-class-weight ties, and !important only where 5709 itself used !important.
   GOTCHA: .xy5709 is the BODY's class (body.xy5709), not a wrapper - write "html body.xy5709 .x",
   never "html body .xy5709 .x", which matches nothing. Rules that 5709 scopes under html.xy5709js
   need that html class too, or they lose on class count.
   GOTCHA: Bootstrap 3 squares the inner corners of joined controls (.input-group, .btn-group) with
   selectors of weight 0,3,0. Our control rules stay below that weight on purpose, so a joined
   field + button still meets flush and only the outer ends round. Do not raise them.
   Not covered: the React islands (Tailwind/shadcn, already rounded), /tours-new/ (separate SPA shell),
   and the pages on other layouts: layout_checkin.tpl (check-in, refund review) and layout_simple.tpl
   (guest link, QR). /book/ and /billing/ DO use layout_website.tpl, so they get this sheet. */

html body{--xy-curve-lg:22px;--xy-curve-md:16px;--xy-curve-sm:12px}

/* 5709 chrome + page redesign read their radius from variables: raise them at the source. */
html body.xyrd{--rad:18px}
html body [data-r3-page]{--xy-r3-radius:16px}

/* Buttons: pill. */
html body .btn,html body .default-btn,html body .btn5709,html body .xy-r3-button,
html body button.btn,html body input[type=submit].btn,html body .yacht-book-button,
html body .btn-book-whatsapp,html body .btn-book-download,html body .xyc-all{border-radius:999px}
html body [data-r3-page] .xy-r3-button,html body.xy5709 .xyhero .btn5709,html.xy5709js body.xy5709 .xy-menu-btn,html.xy5709js body.xy5709 .lux-btn{border-radius:999px}
html body.xy5709 .xy-scard .xy-r3-button,html body.xyrd-contact .form_contact .xy-r3-button{border-radius:999px!important}
/* Joined controls: same curve as the field they sit against (see GOTCHA in the header). */
html body .input-group .btn,html body .input-group-btn>.btn,html body .btn-group>.btn{border-radius:var(--xy-curve-sm)}
/* The left-edge "Online Booking" tab is rotated 270deg: its LOCAL bottom corners are the ones on show (style.css: 0 0 5px 5px). */
html body .online-booking-side-tab{border-radius:0 0 var(--xy-curve-sm) var(--xy-curve-sm)}

/* Form fields. */
html body .form-control,html body .input-group-addon,html body .selectbox,html body .sbHolder{border-radius:var(--xy-curve-sm)}
html body .input-group-addon.btn{border-radius:var(--xy-curve-sm)}
html body.xy5709 .utility .cur select,html body.xy5709 .xy-tools .cur select,html body .xy-currency-select,
html body .xy-react-currency-control select{border-radius:999px}
html body.xyrd-contact .form_contact .form-control{border-radius:var(--xy-curve-sm)}
html body.xyrd .accordion-quick-search .form-control{border-radius:var(--xy-curve-sm) 0 0 var(--xy-curve-sm)}

/* Chips, badges, labels, date legend, time picker. */
html body .label,html body .badge,html body .yc-count,html body .yc-ft,html body .yc-badge,html body .xyc-badge,
html body .yc-shift,html body .xyc-when,html body .nye-yacht-badge,html body .price-heat-legend .label,
html body .xy-when-hours button,html body .xy-when button,html body .xy-when .irs-line,html body .xy-when .irs-bar{border-radius:999px}

/* Panels, wells, alerts, popups. */
html body .panel,html body .well,html body .alert,html body .modal-content,html body .dropdown-menu,
html body .popover,html body .panel-book{border-radius:var(--xy-curve-md)}
html body .online-booking-results .panel-book{border-radius:var(--xy-curve-md)!important}
html body .panel>.panel-heading{border-radius:calc(var(--xy-curve-md) - 1px) calc(var(--xy-curve-md) - 1px) 0 0}
html body .panel-group .panel-heading+.panel-collapse>.panel-body{border-radius:0 0 calc(var(--xy-curve-md) - 1px) calc(var(--xy-curve-md) - 1px)}
html body .book-results{border-radius:var(--xy-curve-lg)}
html body.xyrd .accordion-quick-search-list .panel{border-radius:var(--xy-curve-sm)!important}

/* Photos and media frames. */
html body .thumbnail,html body .embed-responsive,html body .slider.listing-slider,
html body .listing-slider .flexslider,html body .listing-slider .flex-viewport,html body .flexslider-book,
html body .page-slider-wrapper,html body .google-map-home{border-radius:var(--xy-curve-lg);overflow:hidden}
html body .thumbnail>img,html body .thumbnail>.embed-responsive{border-radius:calc(var(--xy-curve-lg) - 5px)}
/* GOTCHA: .img-thumbnail is inline-block; overflow:hidden on it moves its baseline and adds ~5px under
   every one (measured on the home page). Round it and the picture inside instead of clipping. */
html body .img-thumbnail{border-radius:var(--xy-curve-lg)}
html body .img-thumbnail img,html body .img-thumbnail .corner-ribbon-outer{border-radius:calc(var(--xy-curve-lg) - 5px)}
html body .fancybox img.img-responsive,html body .yacht-image-link img,html body img.img-responsive.img-thumbnail,
html body .post-entry img.img-responsive,html body .xyrd-news-card img,html body .xy-nye-feature__image{border-radius:var(--xy-curve-md)}
html body.xy5709 .xyhero,html body.xy5709 .xyhero-img{border-radius:var(--xy-curve-lg)}
html body .flex-direction-nav a,html body .flex-control-nav a,html body .bx-wrapper .bx-prev,html body .bx-wrapper .bx-next,
html body .xy-banner-dots button,html body .xy-nye-dot{border-radius:50%}

/* Cards: the frame rounds and clips, so a photo on top follows the curve. */
html body .yc-card,html body .xy-tm,html body .xyc-tile,html body .vcard,html body .ocard,html body .xyb-card,
html body .xyb-feat,html body article.card,html body .xyrd-news-card,html body .xy-r3-card{border-radius:var(--xy-curve-md);overflow:hidden}
html body.xy5709 .xy-tm{border-radius:var(--xy-curve-md)}
html body.xy5709 .xy-scard,html body.xyrd .nye-yacht-card,html body.xyrd .xy-scard,html body .nye-yacht-card{border-radius:var(--xy-curve-md)!important;overflow:hidden}
html body.xy5709 .xy-scard-specs{border-radius:var(--xy-curve-sm)!important}
html body .yc-img{border-radius:var(--xy-curve-md) var(--xy-curve-md) 0 0}
html body .nye-yacht-img,html body .nye-yacht-img img{border-radius:var(--xy-curve-md) var(--xy-curve-md) 0 0}
html body .review,html body .yacht-reviews .review{border-radius:var(--xy-curve-md)}
html body table.yacht-particulars td{border-radius:18px}

/* Fleet flip cards (the "other yachts" carousel on every yacht page and the home page). */
html body .flip .card,html body .flip .card .face{border-radius:var(--xy-curve-lg);overflow:hidden}
html body .carasouel-slider3 img{border-radius:var(--xy-curve-lg) var(--xy-curve-lg) 0 0}
html body .car-block-bottom{border-radius:0 0 var(--xy-curve-lg) var(--xy-curve-lg)}
html body #slideControls3 a{border-radius:50%}

/* Yacht page: floating booking card and spec chips, as in the approved X42 demo. */
html body section.content #book_yacht_form,html body section.content #book_yacht_result{border-radius:var(--xy-curve-lg)}

/* Footer social icons. */
html body .xyf-soc a{border-radius:50%}

/* Online booking box (/yacht-rental/, /boat-rental/, /book/): the red tab sits on its top-left corner,
   so that corner stays square to meet it; the SHARE tab sits in the bottom-right corner and follows it. */
html body #online_booking_form>div{border-radius:0 var(--xy-curve-md) var(--xy-curve-md) var(--xy-curve-md)}
html body .title-ribbon{border-top-left-radius:var(--xy-curve-sm)}
html body #online_booking_form .btn-book-form-share{border-radius:var(--xy-curve-sm) 0 calc(var(--xy-curve-md) - 2px) 0}

/* Second pass - elements whose existing rule outweighs a plain class (found by tools/audit-after.mjs). */
/* GOTCHA: the online booking box's look is an INLINE style (border-radius:0 5px 5px 5px), so only !important reaches it. */
html body #online_booking_form>div{border-radius:0 var(--xy-curve-md) var(--xy-curve-md) var(--xy-curve-md)!important}
/* /yacht-rental/ cards: their rules live in a <style> inside the page (.yc-card .yc-x = two classes). */
html body .yc-card .yc-count,html body .yc-card .yc-ft,html body .yc-card .yc-badge,html body .yc-card .xyc-badge,
html body .yc-card .yc-shift,html body .yc-card .xyc-when,html body .yc-card .yc-video,html body .yc-fill-btns .btn{border-radius:999px}
html body .yc-fill{border-radius:var(--xy-curve-md)}
html body .slider .flexslider-book{border-radius:var(--xy-curve-lg);overflow:hidden}
html body .accordion-quick-search-list .panel{border-radius:var(--xy-curve-sm)}
/* Pagination arrows (/reviews/, /news/), New Year's Eve tabs, chips and card buttons. */
html body .pagination>li>a,html body .pagination>li>span,html body a.left-arrow,html body a.right-arrow{border-radius:999px}
html body.xyrd-new-years-eve-dubai ul.nye-tabs li a{border-radius:999px!important}
html body .nye-yacht-card .nye-yacht-badge,html body .nye-yacht-card .nye-yacht-share,html body .xy-nye-feature__cta,
html body.xyrd .nye-area-btn{border-radius:999px}
html body .xy-offers-pk{border-radius:var(--xy-curve-md)}
/* /contact/: marina cards and the map / street-view pictures. */
html body .car-block,html body.xyrd-contact .xyrd-marina .car-block{border-radius:var(--xy-curve-md);overflow:hidden}
html body .img-flex.map-modal,html body .img-flex.street-view-modal{border-radius:var(--xy-curve-md);overflow:hidden}
/* /about/ redesign tiles (xy5709-rd.css writes 5px literally there, not var(--rad)). */
html body.xyrd-about .xyrd-tiles .slide,html body.xyrd-about .xyrd-press li,html body.xyrd-about .xyrd-revlinks a,
html body.xyrd-about .xyrd-celeb-grid .slides>li,html body.xyrd-about .xyrd-news-card{border-radius:var(--xy-curve-sm)}
html body.xyrd .xyrd-sec-photos .page-slider-wrapper,html body.xyrd .xyrd-sec-photos .bx-wrapper,html body.xyrd .xyrd-sec-faq .flexslider{border-radius:var(--xy-curve-md)}

/* ===== Static pages: /packages/ (packages-site, pk.css) and /corporate-event-hire/ (corporate-event-hire-site,
   site.css). They never pass through layout_website.tpl; they get this file through an @import at the top of
   /xy-hero-css/ (AppHero5709Controller), which every one of them links in <head>. Their own sheets use single
   classes, which "html body main#main" outweighs. On these pages .xy5709 is a WRAPPER div (div.xy5709.xy5709s), not the body.
   INVARIANT: every content rule below is scoped to main#main - all static content sits in <main id="main">
   and no PHP-rendered page has one (checked 02-Dec-2026), so these class names (.hero, .cta, .toast ...)
   cannot leak onto the layout pages, which load this same file.
   GOTCHA: no !important on the heroes here - the hero endpoint's "banner off" CSS sets border-radius:0!important
   on the same heroes and must keep winning. */
html.xy5709js body .xy5709s .xy-menu-btn,html.xy5709js body .xy5709s .lux-btn,
html body .xy5709s .xy-tools .cur select,html body .xy5709s .utility .cur select{border-radius:999px}
html body .xy5709s .xyhero{border-radius:var(--xy-curve-lg)}
html body .xy5709s .xyhero .btn5709{border-radius:999px}
html body main#main .hero,html body main#main .cta,html body main#main .sec.dark,html body main#main .yt,html body main#main .nofilm,
html body main#main .planner,html body main#main .partner{border-radius:var(--xy-curve-lg)}
html body main#main .stats{border-radius:0 0 var(--xy-curve-lg) var(--xy-curve-lg)}
html body main#main .fcard,html body main#main .vcard,html body main#main .ocard,html body main#main .bcard,html body main#main .ccard,html body main#main .tcard,
html body main#main .ycard,html body main#main .gal figure,html body main#main .small-boats div{border-radius:var(--xy-curve-md);overflow:hidden}
html body main#main .bstep,html body main#main .sumcard,html body main#main .assist,html body main#main .pform,html body main#main .scn,html body main#main details.faq,
html body main#main details.sec,html body main#main blockquote,html body main#main .toast,html body main#main .ok-msg,html body main#main .steps div{border-radius:var(--xy-curve-md)}
html body main#main .bstep input,html body main#main .bstep select,html body main#main .bstep textarea,html body main#main .pform input,html body main#main .pform select,
html body main#main .pform textarea,html body main#main .planner input,html body main#main .planner select,html body main#main .planner textarea,
html body main#main .builder input,html body main#main .builder select,html body main#main .builder textarea,
html body main#main .seg,html body main#main .ychoice button,html body main#main .opts button,html body main#main .pv,html body main#main .tracker div,html body main#main .scn button,
html body main#main .ups button,html body main#main .warn,html body main#main .strip img,html body main#main .gal img,html body main#main .lb-in img,html body main#main .card .evid{border-radius:var(--xy-curve-sm)}
html body main#main .qty button,html body main#main .yt .play,html body main#main .steps b{border-radius:50%}
html body main#main .tiers span,html body main#main .prg,html body main#main .star,html body main#main em.draft,html body main#main nav.explore-jumps a,html body main#main .chips em,
html body main#main .chips button,html body main#main .chips2 button,html body main#main .tabs button{border-radius:999px}

/* ===== Tour pages (/yacht-party-dubai/, /dubai-marina-tour/ ...): the /tours-new/ React app (Tailwind + shadcn),
   pre-rendered by the layout-refine-shine repo, whose scripts/xy-postbuild.mjs links this file after xy5709.css.
   SEAM: shadcn draws rounded-lg/md/sm from ONE variable, --radius (.5rem in the app); raising it here curves
   every card, field and button of the app without touching its build. .rounded is a fixed .25rem (!important). */
html body.xy5709-tours{--radius:1rem}
html body.xy5709-tours .rounded{border-radius:.75rem!important}
/* The app's own currency picker in the header (CHROME_FIX in xy-postbuild.mjs sets 3px at weight 0,4,1). */
html body.xy5709 .xy-tools .xy-react-currency-slot select{border-radius:999px}
