/* ============================================================================
   option4/index.php -- "3xl" breakpoint: large screens, 1600px and wider.

   Tailwind's own scale stops at 2xl (1536px) and this page's tailwind.css is
   a build-time scan, so new 3xl: classes can't be added to the markup; this
   file is that breakpoint instead. Below 1600px nothing here applies.

   Type scale (size at 1600px+ for every size the page uses on desktop):
     10 -> 13   11 -> 14   12 -> 16   13 -> 16   13.5 -> 16   14 -> 16
     15 -> 16   16 -> 20   18 -> 22   20 -> 26   22 -> 28     24 -> 30
     26 -> 32   36 -> 48   40 -> 52

   Paragraphs (<p>) never go below 16px here.

   Every rule is !important and scoped to #page-root (the popups live
   outside it and keep their sizes): most sizes come from Tailwind classes,
   but several are backed by !important rules in style.css (h2, the tab
   labels, the subtitles, the pricing card headings), and this file loads
   last so it wins those ties. Class rules are ordered base -> md: -> lg: ->
   xl:, the same order Tailwind emits them, so an element carrying several
   size classes still resolves to its largest-breakpoint one.
   ========================================================================= */
@media (min-width: 1600px) {
  /* ---- size classes, base ---- */
  #page-root .text-\[10px\] { font-size: 13px !important; }
  #page-root .text-\[11px\] { font-size: 14px !important; }
  #page-root .text-\[12px\] { font-size: 16px !important; }
  #page-root .text-\[13px\] { font-size: 16px !important; }
  #page-root .text-\[14px\] { font-size: 16px !important; }
  #page-root .text-\[15px\] { font-size: 16px !important; }
  #page-root .text-\[22px\] { font-size: 28px !important; }

  /* ---- md: ---- */
  #page-root .md\:text-\[10px\] { font-size: 13px !important; }
  #page-root .md\:text-\[12px\] { font-size: 16px !important; }
  #page-root .md\:text-\[13px\] { font-size: 16px !important; }
  #page-root .md\:text-\[14px\] { font-size: 16px !important; }
  #page-root .md\:text-\[16px\] { font-size: 16px !important; }
  #page-root .md\:text-\[18px\] { font-size: 22px !important; }
  #page-root .md\:text-\[24px\] { font-size: 30px !important; }
  #page-root .md\:text-\[36px\] { font-size: 48px !important; }
  #page-root .md\:text-\[40px\] { font-size: 40px !important; }

  /* ---- lg: ---- */
  #page-root .lg\:text-\[13px\] { font-size: 16px !important; }
  #page-root .lg\:text-\[14px\] { font-size: 16px !important; }
  #page-root .lg\:text-\[20px\] { font-size: 26px !important; }

  /* ---- xl: (header nav + phone buttons) ---- */
  #page-root .xl\:text-\[13\.5px\] { font-size: 16px !important; }
  #page-root .xl\:text-\[14px\] { font-size: 16px !important; }

  /* ---- sizes set by style.css / option4-bundle.css rules ---- */
  #page-root h2 { font-size: 40px !important; }                         /* section titles, 36 */
  #page-root .leading-\[1\.25\] { font-size: 25px !important; }         /* subtitles under h2, 20 */
  #page-root .lg\:text-\[45px\] { font-size: 48px !important; }         /* Master/Unit Plan, Gallery tabs, 36 */
  #page-root .lg\:text-\[30px\] { font-size: 32px !important; }         /* pricing card headings, 26 */
  #page-root #location-highlights .lh-tab-label { font-size: 16px !important; } /* 13 */

  /* Hero form band: the consent label is capped at 188px inline; at 13px
     its text wrapped to 6 lines and doubled the band's height. Wider label,
     ~3 lines, band back to roughly one field tall. */
  #page-root #hero-form label { max-width: 440px !important; }

  /* 16px floor for small paragraphs: every <p> whose size class maps below
     16px above (10/11/12px classes -> 13/14/16) is 16px at 1600px+.
     Larger paragraphs (subtitles, prices, stats) keep their own sizes. */
  #page-root p.text-\[10px\],
  #page-root p.text-\[11px\],
  #page-root p.text-\[12px\],
  #page-root p.md\:text-\[10px\],
  #page-root p.md\:text-\[12px\] { font-size: 16px !important; }
}

/* ---- About Maduram (1600px+) ------------------------------------------
   Panel, logo, stat cards and spacing scaled up with the type, and grown
   with the screen height so the block doesn't shrink to a strip on tall
   screens: --atv runs 0 -> 540px as the screen goes 900 -> 1440px tall, and
   each size adds a share of it (logo 220 -> 300, numbers 64 -> 88, card
   padding 48 -> 86, panel padding 64 -> 96). Panel widened 1440 -> 1600px
   (same as Pricing); subtitle 25px like the other secondary headings. Inline styles on the logo circle, cards
   and divider need !important. */
@media (min-width: 1600px) {
  #page-root #about-maduram { --atv: clamp(0px, calc(100vh - 900px), 540px); }
  #page-root #about-maduram > .max-w-\[1440px\] { max-width: 1600px !important; }
  #page-root #about-maduram h2 { margin-bottom: calc(12px + var(--atv) * 0.03) !important; }
  #page-root #about-maduram .mb-10.md\:mb-14 {
    font-size: 25px !important;
    margin-bottom: calc(72px + var(--atv) * 0.08) !important;
  }
  #page-root #about-maduram .p-6.md\:p-10 {
    padding: calc(64px + var(--atv) * 0.06) !important;
    border-radius: 36px !important;
  }
  #page-root #about-maduram .flex.flex-col.sm\:flex-row { gap: calc(56px + var(--atv) * 0.04) !important; }
  #page-root #about-maduram .rounded-full.flex-shrink-0 {
    width: calc(220px + var(--atv) * 0.15) !important;
    height: calc(220px + var(--atv) * 0.15) !important;
    padding: calc(30px + var(--atv) * 0.02) !important;
  }
  #page-root #about-maduram .grid { gap: 32px !important; }
  #page-root #about-maduram .rounded-2xl {
    padding: calc(48px + var(--atv) * 0.07) 32px !important;
  }
  #page-root #about-maduram .rounded-2xl p.md\:text-\[36px\] { font-size: calc(64px + var(--atv) * 0.045) !important; }
  #page-root #about-maduram .rounded-2xl > div {
    width: 60px !important;
    margin: 16px auto !important;
  }
}

/* ---- Location Highlights (1600px+) -----------------------------------------
   The map (data-lh-map, in .lh-map-wrap) was a fixed 300px and the category
   image (data-lh-image, in .lh-image-wrap) a fixed 340x110 strip at every
   size. Both now grow with the screen height, clamped so the section still
   fits one screen; the distance list widens to match the image. */
@media (min-width: 1600px) {
  #page-root #location-highlights .lh-map-wrap {
    height: clamp(420px, calc(100vh - 400px), 760px) !important;
  }
  #page-root #location-highlights .lh-image-wrap {
    width: 480px !important;
    height: clamp(130px, calc(100vh - 760px), 300px) !important; /* 20px list: -40px on 900-950px-tall screens */
  }
  #page-root #location-highlights .lh-list { max-width: 480px !important; }
}

/* ---- Amenities (#amenities-section wrapper: max-w-[1920px]) ----------------
   max-w-[1920px] is not in the build-time tailwind.css, so it is backed here:
   the old 1440px cap below 1600px (unchanged), 1920px on large screens. */
#page-root .max-w-\[1920px\] { max-width: 1440px; }
@media (min-width: 1600px) {
  #page-root .max-w-\[1920px\] { max-width: 1920px; }
}

/* ---- Amenities cards (1600px+) ---------------------------------------------
   Before: tall cards 280x280 (md:w/h-[280px]), short cards 240x190
   (w-[240px] + .ch-card-short) at every size from 1024px up. Now sized from
   the screen height: tall 460x460 at 1600x900 up to 560x560 (cap) on
   1000px+ tall screens; short cards in proportion. Owl (autoWidth) measures the cards at init, so
   the carousel picks these widths up without script changes. */
@media (min-width: 1600px) {
  /* Tall card side follows the screen height (100vh - 440px keeps heading +
     padding + carousel inside one screen), 400-560px. Short cards keep their
     240x190-vs-280 proportions: 0.85x as wide, 0.675x as tall. */
  #page-root #clubhouse-owl { --ch-card: clamp(400px, calc(100vh - 440px), 560px); }
  #page-root #clubhouse-owl .md\:w-\[280px\] { width: var(--ch-card) !important; }
  #page-root #clubhouse-owl .md\:h-\[280px\] { height: var(--ch-card) !important; }
  #page-root #clubhouse-owl .ch-card-short {
    width: calc(var(--ch-card) * 0.85) !important;
    height: calc(var(--ch-card) * 0.675) !important;
  }
}

/* ---- Pricing (1600px+) ------------------------------------------------------
   Before: 2 cards of 632x304 in a 1280px strip at every size from 640px.
   Now (with pricing-owl.js's data-pricing-large opt-in): 3 cards from 1600px,
   in a container widened 1440 -> 1600px; roomier cards; the
   two small uppercase labels at 14px (the one exception to the 18px
   paragraph floor -- tracked caps at 18px outweighed the price); 44px
   arrows. */
@media (min-width: 1600px) {
  #page-root #pricing > .max-w-\[1440px\] { max-width: 1600px !important; }
  #page-root #pricing-owl .rounded-2xl {
    padding: 36px !important;
    border-radius: 24px !important;
  }
  #page-root #pricing-owl .my-2\.5 {
    margin-top: 32px !important;
    margin-bottom: 32px !important;
  }
  /* "CONFIGURATION" label (the bold one) and the price get more space under
     them, so the card fills more of the section. */
  #page-root #pricing-owl p.font-bold.tracking-\[2\.5px\] { margin-bottom: 16px !important; }
  #page-root #pricing-owl p.md\:text-\[24px\] { margin-bottom: 16px !important; }
  #page-root #pricing-owl .mb-5.flex-1 { margin-bottom: 28px !important; }
  #page-root #pricing-owl p.tracking-\[2\.5px\] { font-size: 14px !important; }
  #page-root #pricing [data-pricing-prev],
  #page-root #pricing [data-pricing-next] {
    width: 44px !important;
    height: 44px !important;
  }
  #page-root #pricing [data-pricing-prev] svg,
  #page-root #pricing [data-pricing-next] svg {
    width: 24px !important;
    height: 24px !important;
  }
}

/* ---- Master Plan (1600px+) --------------------------------------------------
   Before: master plan pinned at 400x283 (inline max-width:400px; the file is
   1600x1131) and unit plans at 440x300 each (files 851x597). Both now follow
   the screen height so the section still fits one screen; width/height auto
   keeps each image in its own proportions (no crop, no stretch). */
@media (min-width: 1600px) {
  #page-root #master-plan [data-mp-tab="master"] img {
    max-width: none !important;
    width: auto !important;
    height: clamp(380px, calc(100vh - 420px), 760px) !important;
  }
  #page-root #master-plan .unit-plan-pair-img {
    width: auto !important;
    height: auto !important;
    max-width: 680px !important;
    max-height: clamp(300px, calc(100vh - 440px), 600px) !important;
  }
}

/* ---- Popups (1600px+) -------------------------------------------------------
   The popups live outside #page-root, so the page scale above skips them.
   Scaled ~1.2-1.25x here. Brochure / Enquire / Call Back share one markup
   pattern (Tailwind classes); the Site Visit drawer is sized by !important
   rules in style.css, so it is overridden with the same selectors (this file
   loads last); the Policy popup is text only. Class rules run base -> md:,
   as Tailwind orders them. */
@media (min-width: 1600px) {
  /* Brochure / Enquire / Call Back */
  :is(#brochure-modal, #enquire-modal, #callback-modal) .max-w-\[460px\] { max-width: 560px !important; }
  :is(#brochure-modal, #enquire-modal, #callback-modal) .md\:px-8 { padding-left: 40px !important; padding-right: 40px !important; }
  :is(#brochure-modal, #enquire-modal, #callback-modal) .md\:py-8 { padding-top: 40px !important; padding-bottom: 40px !important; }
  :is(#brochure-modal, #enquire-modal, #callback-modal) .text-\[12px\] { font-size: 15px !important; }
  :is(#brochure-modal, #enquire-modal, #callback-modal) .text-\[13px\] { font-size: 16px !important; }
  :is(#brochure-modal, #enquire-modal, #callback-modal) .text-\[15px\] { font-size: 17px !important; }
  :is(#brochure-modal, #enquire-modal, #callback-modal) .text-\[16px\] { font-size: 16px !important; }
  :is(#brochure-modal, #enquire-modal, #callback-modal) .md\:text-\[13px\],
  :is(#brochure-modal, #enquire-modal, #callback-modal) .md\:text-\[14px\] { font-size: 16px !important; }
  :is(#brochure-modal, #enquire-modal, #callback-modal) .md\:text-\[32px\] { font-size: 40px !important; }

  /* Book a Site Visit drawer (style.css sizes) */
  #site-visit-modal .book-visit-panel { max-width: 500px !important; }
  #site-visit-modal .book-visit-panel > div { padding: 30px !important; }
  #site-visit-modal .book-visit-panel h2 { font-size: 30px !important; }
  #site-visit-modal .book-visit-panel .grid.grid-cols-3 span,
  #site-visit-modal .book-visit-panel label p { font-size: 15px !important; }
  #site-visit-modal .book-visit-panel input[type="text"],
  #site-visit-modal .book-visit-panel input[type="tel"],
  #site-visit-modal .book-visit-panel input[type="email"] {
    padding-top: 15px !important;
    padding-bottom: 15px !important;
    font-size: 17px !important;
  }
  #site-visit-modal .book-visit-panel button[type="submit"] {
    padding-top: 15px !important;
    padding-bottom: 15px !important;
    font-size: 17px !important;
  }

  /* Policy popup */
  #policy-modal .text-\[13px\] { font-size: 16px !important; }
  #policy-modal .text-\[14px\] { font-size: 17px !important; }
  #policy-modal .text-\[22px\] { font-size: 26px !important; }
  #policy-modal .md\:text-\[26px\] { font-size: 40px !important; }
}

/* ---- Gallery (1600px+) ------------------------------------------------------
   Before: 1440px container, every tile 464x300 (lg:h-[300px]); the 2 videos
   sat in a 3-up strip with an empty slot. Now: 1760px container; photo tiles
   follow the screen height (3 in view; photos are 1200x750); the Video tab
   (gallery-owl.js data-gallery-large) shows 2 wide 16:9 tiles with 1280x720
   thumbnails; bigger play button and video titles. */
@media (min-width: 1600px) {
  #page-root #gallery > .max-w-\[1440px\] { max-width: 1760px !important; }
  #page-root #gallery-owl-grid [data-g1-index] {
    height: clamp(320px, calc(100vh - 520px), 480px) !important;
  }
  #page-root #gallery-owl-grid [data-g1-youtube] {
    height: auto !important;
    aspect-ratio: 16 / 9 !important;
  }
  #page-root #gallery-owl-grid .md\:w-16.md\:h-16 {
    width: 88px !important;
    height: 88px !important;
  }
  #page-root #gallery-owl-grid .md\:w-16.md\:h-16 svg {
    width: 34px !important;
    height: 34px !important;
  }
  #page-root #gallery-owl-grid p.md\:text-\[22px\] { font-size: 30px !important; }
  #page-root #gallery [data-g1-prev],
  #page-root #gallery [data-g1-next] {
    width: 44px !important;
    height: 44px !important;
  }
}

/* ---- Testimonials (1600px+) -------------------------------------------------
   Before: 3 cards of 411x334 in a 1280px container, 28px padding, 24px quote
   icon, 44px avatar, 16px stars at every size. Now: 1600px container (cards
   ~520px wide), roomier cards, larger icon/avatar/stars, quote text 16px
   (body size), and spacing that grows with the screen
   height (--tm: 0 -> 540px as the screen goes 900 -> 1440px tall). */
@media (min-width: 1600px) {
  #page-root #testimonials { --tm: clamp(0px, calc(100vh - 900px), 540px); }
  #page-root #testimonials > .max-w-\[1280px\] { max-width: 1600px !important; }
  #page-root #testimonials h2 { margin-bottom: calc(20px + var(--tm) * 0.03) !important; }
  #page-root #testimonials .mb-10.md\:mb-14 { margin-bottom: calc(56px + var(--tm) * 0.08) !important; }
  #page-root #testimonials .rounded-2xl.bg-white {
    padding: calc(44px + var(--tm) * 0.05) !important;
    border-radius: 24px !important;
  }
  #page-root #testimonials .lucide-quote {
    width: 40px !important;
    height: 40px !important;
    margin-bottom: calc(16px + var(--tm) * 0.02) !important;
  }
  #page-root #testimonials .rounded-2xl.bg-white p.lg\:text-\[14px\] { font-size: 16px !important; }
  #page-root #testimonials .rounded-2xl.bg-white .my-4 {
    margin-top: calc(20px + var(--tm) * 0.03) !important;
    margin-bottom: calc(20px + var(--tm) * 0.03) !important;
  }
  #page-root #testimonials .w-11.h-11 {
    width: 60px !important;
    height: 60px !important;
    font-size: 20px !important;
  }
  #page-root #testimonials .lucide-star {
    width: 22px !important;
    height: 22px !important;
  }
}

/* ---- Schedule a Visit (1600px+) ---------------------------------------------
   Form fields a bit taller: 14px -> 20px top/bottom padding (60 -> ~72px). */
@media (min-width: 1600px) {
  #page-root #schedule-visit input[type="text"],
  #page-root #schedule-visit input[type="tel"],
  #page-root #schedule-visit input[type="email"] {
    padding-top: 20px !important;
    padding-bottom: 20px !important;
  }
}
