/* The four typefaces, served from the site itself (static/fonts, from Google Fonts, SIL Open Font
   Licence: static/fonts/licences) since 19 November 2026. Fetching them from Google held up every
   page's first paint by about 0.8 s on a phone (Lighthouse), and sent each visitor's address to
   Google. Latin and Latin Extended only, which covers English, Portuguese and French; a browser
   downloads only the faces a page uses. */
/* Lora italic 400-700, latin-ext */
@font-face {
  font-family: 'Lora';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/lora-italic-400-700-latin-ext.bd592077c416.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Lora italic 400-700, latin */
@font-face {
  font-family: 'Lora';
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/lora-italic-400-700-latin.1640b0b69ef0.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Lora normal 400-700, latin-ext */
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/lora-normal-400-700-latin-ext.1d361631357e.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Lora normal 400-700, latin */
@font-face {
  font-family: 'Lora';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/lora-normal-400-700-latin.9577af3ccda5.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Montserrat italic 100-900, latin-ext */
@font-face {
  font-family: 'Montserrat';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/montserrat-italic-100-900-latin-ext.09331aad1aef.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Montserrat italic 100-900, latin */
@font-face {
  font-family: 'Montserrat';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/montserrat-italic-100-900-latin.7921052ef928.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Montserrat normal 100-900, latin-ext */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/montserrat-normal-100-900-latin-ext.d16dfe26bcd7.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Montserrat normal 100-900, latin */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/montserrat-normal-100-900-latin.311d352d9323.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Poppins normal 400, latin-ext */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/poppins-normal-400-latin-ext.90926c36b712.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Poppins normal 400, latin */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/poppins-normal-400-latin.9212f6f9860f.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Poppins normal 500, latin-ext */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/poppins-normal-500-latin-ext.1f24684cbd72.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Poppins normal 500, latin */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/poppins-normal-500-latin.a09f2fccfee3.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Poppins normal 600, latin-ext */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/poppins-normal-600-latin-ext.a575b6d9df98.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Poppins normal 600, latin */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/poppins-normal-600-latin.72993dddf88a.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Raleway italic 100-900, latin-ext */
@font-face {
  font-family: 'Raleway';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/raleway-italic-100-900-latin-ext.2a4471793b0e.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Raleway italic 100-900, latin */
@font-face {
  font-family: 'Raleway';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/raleway-italic-100-900-latin.0a76d379864d.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Raleway normal 100-900, latin-ext */
@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/raleway-normal-100-900-latin-ext.77d813a04981.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Raleway normal 100-900, latin */
@font-face {
  font-family: 'Raleway';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/raleway-normal-100-900-latin.e401cae7a129.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --primary-color: #2a74b2;
    --primary-color-dark: #1f5f93;
    --secondary-color: #946700;
    --secondary-color-soft: #f9e7b0;
    --secondary-color-soft-dark: #f2d48a;
    --pink-color: #333;
    --background-color: #f7fafc;
    --primary-font: 'Lora', serif;
    --secondary-font: 'Raleway', sans-serif;
    --tertiary-font: 'Montserrat', sans-serif;
    --picker-font: 'Poppins', sans-serif;
    --primary-box-shadow: 0 4px 8px rgba(0, 0, 0, 0.288);
    --primary-margin-bottom: 60px;
    --status-available-bg: #e5f4ec;
    --status-available-color: #2f8f5b;
    --status-booked-bg: #fbe4e4;
    --status-booked-color: #c1554f;
    --status-provisional-bg: var(--secondary-color-soft);
    --status-provisional-color: var(--secondary-color);
    --status-mine-bg: #ece3f7;
    --status-mine-color: #6b3fa0;
}

/* Every page - the public site, the Guest, Owner and Accountants suites and the staff pages - keeps the room
   for its vertical scrollbar whether or not it needs one. Without it a centred page slides sideways by half a
   scrollbar (about 7px) between a short page or tab and a tall one: the staff Settings and Property tabs, the
   Manage Booking hub's sections, anything that grows past the window (2026-10-06, per Thomas). A phone's
   overlay scrollbar takes no room, so nothing changes there. */
html {
    scrollbar-gutter: stable;
}

body {
    margin: 0;
    padding: 0;
    background-color: white;
    font-family: var(--tertiary-font);
    /* Sticky footer: every page includes templates/footer/footer.html's single shared
       .site-footer, so pushing THAT to the bottom via margin-top:auto (rather than growing each
       page's own differently-shaped main-content wrapper) works universally across every page
       type - public pages, the guest Manage Booking hub, staff, and Owner Suite alike - without
       needing a matching flex-grow rule added to each one individually. Confirmed with Thomas
       2026-08-30 as a genuine sitewide layout change, not scoped to one area. */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* =========================
   HEADINGS
   ========================= */

h1 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 30px;
    font-family: var(--primary-font);
    font-size: 3.2em;
    font-weight: 400;
}

/* The line under a complex's or apartment's name saying what it is, inside the <h1>. */
h1 .page-tagline {
    display: block;
    margin-top: 12px;
    color: var(--secondary-color);
    font-family: var(--secondary-font);
    font-size: 0.36em;
    letter-spacing: 0.04em;
    line-height: 1.4;
    text-transform: none;
}

/* Home > Complex > Apartment, above an apartment's name. */
.page-breadcrumb {
    margin: 0 0 18px;
    text-align: center;
    color: var(--secondary-color);
    font-family: var(--secondary-font);
    font-size: 0.85rem;
    letter-spacing: 0.04em;
}

.page-breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
}

.page-breadcrumb a:hover {
    text-decoration: underline;
}

h2 {
    text-align: center;
    color: var(--secondary-color);
    margin-bottom: 10px;
    font-family: var(--secondary-font);
    font-size: 2em;
    font-weight: 400;
}

h3 {
    color: var(--secondary-color);
    font-family: var(--tertiary-font);
    font-size: 1.2em;
    font-weight: 400;
}

/* =========================
IMAGES
   ========================= */

img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  
}

/* A photo with sized versions is an <img> inside a <picture> (properties/_photo.html). The wrapper
   takes no part in the layout, so every rule written for the <img> still sees it where it was. */
picture {
    display: contents;
}

.background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.icon {
    width: 50px;
    height: 50px;
}

/* =========================
   MAIN CONTAINER: BASE
   ========================= */
   
.container {
    width: 100%;
    height: 100vh;
    margin: 0 0 var(--primary-margin-bottom) 0;
    position: relative;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

/* =========================
   MAIN CONTAINER: CENTER
   ========================= */

.container.center {
    max-width: 1200px;
    margin: 0 auto var(--primary-margin-bottom) auto;
    text-align: center;
}

/* =========================
    MAIN CONTAINER: TOP
    ========================= */

.container.top {
    justify-content: center;
    align-items: center;
}

/* =========================
   MAIN CONTAINER: TOP HERO CAROUSEL
   ========================= */

/* Never taller than the photos' own shape (2026-10-03, per Thomas): every photo is 3:2, and a
   full-height hero on a phone showed only a narrow vertical slice of each one. On a landscape
   desktop window the 100vh limit still wins, so nothing changes there. */
.container.top.hero {
    overflow: hidden;
    background-color: #000;
    margin-bottom: 0;
    height: min(100vh, calc(100vw * 2 / 3));
}

.container.top.hero .hero-carousel-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.container.top.hero .hero-carousel-image.active {
    opacity: 1;
}

/* A photo not yet called for. With no box it is not fetched either (its loading="lazy" waits for
   it to come near the screen, which a photo with no box never does), so a page opens with one
   photo and not twenty. hero_carousel.js takes the class off each photo as its turn approaches. */
.container.top.hero .hero-carousel-image.pending {
    display: none;
}

.container.top.hero .hero-carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    font-size: 1.8rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.container.top.hero .hero-carousel-control:hover {
    background: rgba(0, 0, 0, 0.55);
}

.container.top.hero .hero-carousel-control.prev {
    left: 20px;
}

.container.top.hero .hero-carousel-control.next {
    right: 20px;
}

@media (max-width: 768px) {
    .container.top.hero .hero-carousel-control {
        width: 36px;
        height: 36px;
        font-size: 1.5rem;
    }

    .container.top.hero .hero-carousel-control.prev {
        left: 10px;
    }

    .container.top.hero .hero-carousel-control.next {
        right: 10px;
    }
}

/* =========================
   MAIN CONTAINER: FIFTY-FIFTY
   ========================= */
.container.fifty-fifty .left,
.container.fifty-fifty .right {
    width: 50%;
    height: 100%;
    box-shadow: var(--primary-box-shadow);
}

/* =========================
   MAIN CONTAINER: MOSAIC
   ========================= */

.container.mosaic {
    align-items: center;
    justify-content: center;
}

.container.mosaic .tile img {
    object-fit: cover;
    filter: brightness(0.7);
    opacity: 0.9;
    z-index: -1;
}

.container.mosaic .tile h1, 
.container.mosaic .tile h2, 
.container.mosaic .tile h3, 
.container.mosaic .tile p {
    position: absolute;
    color: white;
    z-index: 1;
    text-shadow: 0px 0px 10px rgba(0,0,0,1), 0px 0px 10px rgba(0,0,0,0.5);
    text-decoration: solid;
}

.container.mosaic .tile {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    text-decoration: none;
    color: inherit;
}

/* height: auto (overriding the base .container's fixed 100vh) lets this grid grow with however
   many locations exist, rather than clipping to exactly one viewport's worth - .tile below sizes
   itself directly off the viewport (50vh) rather than a percentage of this container's own height,
   which is what actually let the 2x2 grid this was built for silently break the moment a 5th
   location (Balaia Atlantico/Cerro Mar, added straight to the DB) needed a 3rd row: at a fixed
   100vh parent height, tile height:50% only ever carved out exactly two rows' worth of space, so
   the row after that overflowed the container and visually collided with the next section down
   the page (confirmed via screenshot, 2026-09-08).

   A fixed 2-per-row (width: 50%) had its own version of the same problem at a count that isn't a
   clean multiple of 2 (2026-09-11, per Thomas - 3 locations left the last tile alone, centred in
   a mostly-empty row rather than sitting flush with its neighbours). auto-fit here instead lets
   however many tiles exist share one row evenly whenever they fit (3 or 4 today), wrapping only
   once they genuinely can't - no longer tied to being an even number, so nothing needs revisiting
   the next time a location is added or removed. */
.container.mosaic.simple {
    height: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.container.mosaic.simple .tile {
    height: 50vh;
    box-sizing: border-box;
    border: 2px solid white;
}

.container.mosaic.simple .tile:hover {
    filter: brightness(1.3);
    opacity: 1;
    transition: filter 0.3s ease;
    cursor: pointer;
}

.container.mosaic.simple .tile:hover h1,
.container.mosaic.simple .tile:hover h2,
.container.mosaic.simple .tile:hover h3,
.container.mosaic.simple .tile:hover p {
    display: none;
}

.container.mosaic.ornate {
    height: 50vh;
    justify-content: flex-start;
}

.container.mosaic.ornate .tile {
    box-shadow: none;
    box-sizing: border-box;
    border: 10px solid white;
}

.container.mosaic.ornate img {
    filter: brightness(0.65);
}

.container.mosaic.ornate .left {
    width: 33%;
    height: 100%;
    
}

.container.mosaic.ornate .left .tile {
    width: 100%;
    height: 100%;
}

.container.mosaic.ornate .left .tile img {
    display: flex;
    object-fit: cover;
}

.container.mosaic.ornate .right {
    display: flex;
    flex-direction: row;
    width: 67%;
    height: 100%;
    flex-wrap: wrap;
}

.container.mosaic.ornate .right .tile {
    width: 50%;
    height: 50%;
}

/* =========================
   MAIN CONTAINER: TEXT + IMAGE
   ========================= */
.container.text-image {
    height: 50vh;
    flex-direction: row;
    flex-wrap: nowrap;
    margin-bottom: 5px;
}

.container.text-image.odd {
    display: flex;
    flex-direction: row-reverse;
}

.container.text-image.even {
    display: flex;
}

.container.text-image .text {
    width: 42.5%;
}

.container.text-image .image {
    width: 52.5%;
}   

/* =========================
   MAIN CONTAINER: TEXT BOXES
   ========================= */

.container.text-boxes {
    justify-content: space-between;
    row-gap: 100px;
}

.container.text-boxes .text-box {
    width: 30%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 0;
}   

.container.text-boxes .text-box.wide {
    width: 43%;
}

.container.text-boxes .text-box-icon {
    text-align: center;
    width: 90px;
    height: 90px;
}

.container.text-boxes h2 {
    font-size: 1.2em;
    font-weight: 600;
    text-align: center;
    padding-top: 20px;
}

.container.text-boxes .text-box-content {
    padding: 20px;
    padding-bottom: 0;
    line-height: 1.5;
    text-align: center;
    font-size: 0.9em;
    color: rgb(80, 80, 80);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* =========================
   MAIN CONTAINER: LISTS
   ========================= */

.container.lists {
    justify-content: center;
    align-items: flex-start;
}

.container.lists h1 {
    margin-bottom: 20px;
    top: 10%;
}

.container.lists .list {
    width: fit-content;
    height: fit-content;
    margin: 0px 20px;
    padding: 20px;
    top: 30%;
    position: relative;
}   

.container.lists .list h3 {
    text-align: center;
    margin-bottom: 20px;
}

.container.lists .list ul {
    padding-left: 20px;
}

.container.lists .list ul li {
    margin-bottom: 10px;
    font-size: 0.9em;
}

/* =========================
   MAIN CONTAINER: CARDS
   ========================= */

.container.cards {
    align-items: center;
    justify-content: center;

}

.cards .card {
    max-width: 80%;
    width: 500px;
    background-color: rgb(255, 255, 255);
    box-shadow: var(--primary-box-shadow);
    overflow: hidden;
    text-align: left;
    margin: 20px;
}

.cards .card-content {
    padding: 0 20px;
}

.cards h3 {
    color: var(--secondary-color);
    font-size: 1.5em;
    font-weight: 600;
    margin: 10px 0;
}

.cards .card-description {
    font-size: .9em;
    margin: 10px 0;
}

.cards .card-address {
    font-size: 0.8em;
    color: rgb(100, 100, 100);
    margin: 10px 0;
}

.cards .card img {
    width: 100%;
    height: auto;
}

/* =========================
    MAIN CONTAINER: PICKERs
    ========================= */

.container.picker.visible {
    position: relative;
    display: inline-block;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--picker-font);
    color: var(--picker-color);
}

.container.picker[hidden] {
    display: none !important;
}

.container.picker input {
    padding: 10px;
    font-size: 1rem;
    border: none;
    border-right: 1px solid #b1acac;
    padding: 10px;
    color: var(--primary-color, #2a74b2);
    width: 100px;
    height: 30px;
    text-align: center;
}

.container.picker input:focus,
.container.picker input:focus-visible {
    outline: none;
    box-shadow: none;
}

.container.picker.hidden {
    position: absolute;
    z-index: 100;
    margin-top: 2px;
    background: #fff;
    padding: 10px;
    border-radius: 5px;
    border: 2px solid #ddd;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    height: fit-content;
    width: fit-content;
}

.container.picker.hidden button {
    cursor: pointer;
    border: none;
    border-radius: 3px;
    font-size: .8rem;
    font-weight: 500;
    background: transparent;
    text-transform: uppercase;
    transition: .3s;
}

.container.picker.hidden button:hover {
    background: rgba(119, 136, 153, 0.1);
    color: #fff;
    border-radius: 5px;
    cursor: pointer;
}

.container.picker.hidden button:disabled {
    opacity: 0.5;
    pointer-events: none;
    user-select: none;
}

/* Faded prev/next-month fill dates - unlike :disabled dates, these stay clickable so clicking
   one navigates the calendar to that month instead of doing nothing (or, before this rule
   existed, silently advancing the toolbar to the next field - see static/pickers/dates.js). */
.container.picker.hidden button.other-month {
    opacity: 0.5;
}

.container.picker.hidden button.other-month:hover {
    opacity: 0.8;
}

.container.picker.hidden .picker.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    gap: 8px;
}

.container.picker.hidden .picker.header > div {
    display: flex;
    align-items: center;
    gap: 8px;
}

.container.picker.hidden select,
.container.picker.hidden input {
    border: 1px solid #eee;
    border-radius: 3px;
    padding: 4px 6px;
}

.container.picker.hidden .picker.header input.year {
    font-size: 0.9rem;
    width: 56px;
}

.container.picker.hidden select {
    min-width: 100px;
}

.container.picker.hidden input {
    max-width: 64px;
    width: 64px;
}

.container.picker.hidden button {
    color: slategray;
}

.container.picker.hidden button:hover {
    color: var(--primary-color, #2a74b2);
}

/* =========================
   RESPONSIVE: CONTAINER OVERRIDES
   ========================= */
@media (max-width: 768px) {
    .container.text-image .text {
        width: 100%;
        height: 50%;
    }

    .container.tiles {
        flex-direction: column;
        height: 150vh;
    }
    
    .container.tiles .tile {
        width: 100%;
        height: 25%;
    }
    
    .container.text-image.odd,
    .container.text-image.even {
        flex-direction: column-reverse;
    }
    
    .container.text-image .text {
        width: 100%;
    }

    .container.text-image .image {
        width: 100%;
    }
}

.currency-toggle {
    display: inline-flex;
    background: rgba(42, 116, 178, 0.08);
    border: 1px solid rgba(42, 116, 178, 0.18);
    border-radius: 999px;
    padding: 3px;
    gap: 2px;
}

.currency-toggle button {
    border: none;
    background: transparent;
    padding: 6px 16px;
    border-radius: 999px;
    font-family: var(--secondary-font);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--secondary-color);
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}

.currency-toggle button.active {
    background: var(--primary-color, #2a74b2);
    color: #fff;
}
