/* The dedicated pages of Explore Local and Discover Gujarat (app/views/explore_pages/show.html.erb): the site's fonts and colours,
   with the two sections the client liked on another tourism site (29 Nov): full-width pictures that fade, and a row of tall cards. */
.le-xp { --xp-red: #e6392c; --xp-red-dark: #b12305; --xp-navy: #14295c; --xp-ink: #1d1d1f; --xp-soft: #fdecea; background: #fff; color: var(--xp-ink); font-family: Asap, sans-serif; overflow: hidden; }
.le-xp h1, .le-xp h2, .le-xp h3 { font-family: Montserrat, sans-serif; line-height: 1.2; text-transform: none; }
.le-xp img { display: block; }
.le-xp-preview { background: #fff7d6; color: #5c4d00; text-align: center; padding: 8px 12px; font-weight: 600; }
.le-xp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
/* banner on top: pictures that slide from one to the next, in the shape they are made (1920 x 400) with room around them (client,
   30 Nov). A wide picture fills it; any other is shown whole over a soft copy of itself, so nothing is cut off on a phone */
.le-xp-banner-wrap { padding-top: 16px; }
.le-xp-banner { position: relative; width: 100%; aspect-ratio: 24 / 5; overflow: hidden; border-radius: 14px; background: #1b1d22; }
.le-xp-banner.le-xp-tall { aspect-ratio: 16 / 7; }                       /* no picture is a wide banner (explore-pages.js) */
@media (max-width: 767px) { .le-xp-banner.le-xp-tall { aspect-ratio: 16 / 10; } }
.le-xp-banner-track { display: flex; height: 100%; transition: transform .8s cubic-bezier(.65, .05, .36, 1); }
.le-xp-banner-slide { position: relative; flex: 0 0 100%; display: block; height: 100%; overflow: hidden; }
.le-xp-banner-slide:before { content: ''; position: absolute; inset: -24px; background: var(--xp-slide) center / cover; filter: blur(18px) brightness(.8); }
.le-xp-banner-slide img { position: relative; width: 100%; height: 100%; object-fit: contain; }
.le-xp-banner-slide.le-xp-wide img { object-fit: cover; }
@media (max-width: 1199px) { .le-xp-banner-slide.le-xp-wide img { object-fit: contain; } }
.le-xp-banner-words { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 24px 30px; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .68)); color: #fff; font: 800 clamp(18px, 2.6vw, 34px) Montserrat, sans-serif; text-align: center; }
.le-xp-banner-arrow { position: absolute; top: 50%; z-index: 3; width: 46px; height: 46px; padding: 0; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .42); color: #fff; font-size: 24px; line-height: 46px; transform: translateY(-50%); cursor: pointer; }
.le-xp-banner-arrow:hover { background: var(--xp-red); }
.le-xp-banner-prev { left: 16px; }
.le-xp-banner-next { right: 16px; }
.le-xp-dots { position: absolute; left: 0; right: 0; bottom: 14px; z-index: 3; display: flex; justify-content: center; gap: 8px; }
.le-xp-dots button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .6); cursor: pointer; transition: width .3s, background .3s; }
.le-xp-dots button.is-on { width: 28px; background: var(--xp-red); }

.le-xp-crumbs { padding: 14px 0 6px; font-size: 13.5px; color: #6b6f76; }
.le-xp-crumbs a { color: #6b6f76; }

.le-xp-hero { display: grid; grid-template-columns: 1fr 1.1fr; gap: 34px; align-items: center; padding: 14px 0 6px; }
.le-xp-hero-text { grid-template-columns: 1fr; }
.le-xp .le-xp-hero h1 { margin: 0; font-size: 42px; font-weight: 800; color: var(--xp-navy); }
.le-xp-hero h1:after { content: ''; display: block; width: 80px; height: 5px; margin-top: 14px; border-radius: 3px; background: var(--xp-red); }
.le-xp-hero p { margin: 14px 0 0; font-size: 19px; color: #4a4d53; }
.le-xp-pic { overflow: hidden; border-radius: 22px; background: #eee; }
.le-xp-pic img { width: 100%; height: 100%; object-fit: cover; }
.le-xp-hero .le-xp-pic { height: 340px; }
.le-xp-row { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: center; margin: 30px 0; }
.le-xp-row-flip .le-xp-pic { order: 2; }
.le-xp-row-one { grid-template-columns: 1fr; }
.le-xp-row .le-xp-pic { height: 300px; }
.le-xp-text { font-size: 17px; line-height: 1.7; }
.le-xp-text p { margin: 0 0 14px; font-size: 17px; line-height: 1.7; color: var(--xp-ink); }
.le-xp-text h1, .le-xp-text h2, .le-xp-text h3 { margin: 18px 0 10px; font-size: 22px; font-weight: 700; }
.le-xp-text ul, .le-xp-text ol { margin: 0 0 14px; padding-left: 22px; }
.le-xp-text ul li { list-style: disc; }
.le-xp-text ol li { list-style: decimal; }
.le-xp-text a { color: var(--xp-red-dark); font-weight: 600; text-decoration: underline; }

.le-xp-button { display: inline-flex; align-items: center; justify-content: center; padding: 12px 28px; border: 0; border-radius: 999px; background: var(--xp-red); color: #fff; font: 700 15px Montserrat, sans-serif; text-decoration: none; transition: background .2s, transform .2s; }
.le-xp-button:hover { background: var(--xp-red-dark); color: #fff; text-decoration: none; transform: translateY(-2px); }
.le-xp-button[hidden] { display: none; }
.le-xp-button-light { background: #fff; color: var(--xp-red-dark); }
.le-xp-button-light:hover { background: #111; color: #fff; }
.le-xp-arrow { width: 46px; height: 46px; padding: 0; border: 0; border-radius: 50%; background: transparent; font-size: 30px; line-height: 1; cursor: pointer; transition: background .2s, opacity .2s; }
.le-xp-arrow:focus-visible { outline: 3px solid var(--xp-red); outline-offset: 2px; }

/* destinations: a screen-high picture that fades into the next one */
.le-xp-destinations { position: relative; height: 88vh; min-height: 480px; max-height: 820px; margin-top: 46px; background: #111; color: #fff; text-align: center; }
.le-xp-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease; }
.le-xp-slide.is-on { opacity: 1; }
.le-xp-slide img { width: 100%; height: 100%; object-fit: cover; }
.le-xp-destinations:after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .45), rgba(0, 0, 0, 0) 38%, rgba(0, 0, 0, 0) 62%, rgba(0, 0, 0, .62)); pointer-events: none; }
.le-xp-dest-head, .le-xp-dest-foot { position: absolute; left: 0; right: 0; z-index: 2; padding: 0 16px; }
.le-xp-dest-head { top: 34px; }
.le-xp .le-xp-dest-head h2 { margin: 0; color: #fff; font-size: clamp(36px, 8.4vw, 118px); font-weight: 900; line-height: 1; text-transform: uppercase; text-shadow: 0 4px 24px rgba(0, 0, 0, .35); overflow-wrap: anywhere; }
.le-xp-dest-head p { margin: 6px 0 0; color: #fff; font: 500 clamp(17px, 2.4vw, 34px) Montserrat, sans-serif; }
.le-xp-dest-foot { bottom: 30px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.le-xp-dest-pick { display: flex; align-items: center; gap: 18px; }
.le-xp-dest-pick strong { min-width: 150px; font: 700 clamp(24px, 3vw, 40px) Montserrat, sans-serif; text-shadow: 0 2px 12px rgba(0, 0, 0, .45); }
.le-xp-dest-pick .le-xp-arrow { color: #fff; }
.le-xp-dest-pick .le-xp-arrow:hover { background: rgba(255, 255, 255, .18); }

/* attractions: tall cards in a row that slides; a card under the pointer lifts and shows Explore */
.le-xp-attractions { padding: 54px 0 46px; text-align: center; background: radial-gradient(900px 320px at 15% 0%, #fff, transparent 70%), radial-gradient(900px 380px at 90% 18%, #fff, transparent 70%), radial-gradient(1200px 420px at 50% 100%, #e7e7ea, transparent 70%), #f1f1f3; }
.le-xp .le-xp-att-head h2 { margin: 0; padding: 0 12px; color: var(--xp-red); font-size: clamp(34px, 8.4vw, 118px); font-weight: 900; line-height: 1; text-transform: uppercase; overflow-wrap: anywhere; }
.le-xp-att-head p { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 8px 16px 0; color: var(--xp-navy); font: 500 clamp(16px, 2.2vw, 32px) Montserrat, sans-serif; }
.le-xp-att-head p:before, .le-xp-att-head p:after { content: ''; flex: none; width: 46px; height: 2px; background: var(--xp-red); }
.le-xp-track { display: flex; gap: 16px; margin-top: 18px; padding: 26px max(16px, 3.4vw) 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 max(16px, 3.4vw); scroll-behavior: smooth; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.le-xp-track::-webkit-scrollbar { display: none; }
.le-xp-card { position: relative; flex: 0 0 calc((100% - 48px) / 4); height: 540px; overflow: hidden; border-radius: 15px; background: #222; scroll-snap-align: start; transition: transform .35s ease, box-shadow .35s ease; }
.le-xp-card > img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.le-xp-card:after { content: ''; position: absolute; inset: 45% 0 0; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .86)); }
.le-xp-card-foot { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; padding: 16px 12px 34px; }
.le-xp .le-xp-card-foot h3 { margin: 0; color: #fff; font-size: 22px; font-weight: 700; transition: transform .35s ease; }
.le-xp-card-foot .le-xp-button { margin-top: 14px; padding: 9px 22px; font-size: 14px; }
.le-xp-att-foot { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 6px; }
.le-xp-att-arrows { display: flex; gap: 8px; }
.le-xp-att-arrows .le-xp-arrow { color: #111; }
.le-xp-att-arrows .le-xp-arrow:hover { background: rgba(0, 0, 0, .08); }
.le-xp-att-arrows .le-xp-arrow:disabled { opacity: .25; cursor: default; }
@media (hover: hover) {
  .le-xp-card .le-xp-button { opacity: 0; transform: translateY(12px); transition: opacity .3s ease, transform .3s ease, background .2s; }
  .le-xp-card-foot { transition: padding .35s ease; }
  .le-xp-card-linked:not(:hover):not(:focus-within) .le-xp-card-foot h3 { transform: translateY(40px); }   /* with a button: the name sits low until the card is pointed at */
  .le-xp-card:hover, .le-xp-card:focus-within { transform: translateY(-18px); box-shadow: 0 18px 34px rgba(0, 0, 0, .28); }
  .le-xp-card:hover > img, .le-xp-card:focus-within > img { transform: scale(1.05); }
  .le-xp-card:hover .le-xp-button, .le-xp-card:focus-within .le-xp-button { opacity: 1; transform: none; }
}

/* a page that is not switched on yet */
.le-xp-soon { margin: 14px 0 0; padding: 56px 24px; border-radius: 22px; background: var(--xp-soft); text-align: center; }
.le-xp-soon-tag { display: inline-block; padding: 7px 18px; border-radius: 999px; background: var(--xp-red); color: #fff; font: 700 14px Montserrat, sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.le-xp .le-xp-soon h1 { margin: 18px 0 8px; color: var(--xp-navy); font-size: clamp(28px, 4.4vw, 48px); font-weight: 800; }
.le-xp-soon p { max-width: 560px; margin: 0 auto; color: #4a4d53; font-size: 18px; }

.le-xp-band { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; margin: 40px 0 0; padding: 30px 34px; border-radius: 22px; background: linear-gradient(115deg, #e0291f, #82100a); color: #fff; }
.le-xp .le-xp-band h2 { margin: 0; color: #fff; font-size: 25px; font-weight: 800; }
.le-xp-band p { margin: 4px 0 0; color: rgba(255, 255, 255, .92); }
.le-xp .le-xp-more { margin: 36px 0 14px; font-size: 24px; font-weight: 700; }
.le-xp-others { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.le-xp-end { padding-bottom: 40px; }
.le-xp-end .le-xp-band + .le-xp-others, .le-xp-end > .le-xp-others:first-child { margin-top: 36px; }   /* the list without its heading */
.le-xp-others a { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 8px; border: 1px solid #ececec; border-radius: 16px; background: #fff; color: var(--xp-ink); font-weight: 700; font-size: 14px; line-height: 1.25; text-align: center; text-decoration: none; transition: box-shadow .2s, transform .2s; }
.le-xp-others a:hover { box-shadow: 0 10px 22px rgba(0, 0, 0, .12); transform: translateY(-3px); color: var(--xp-ink); text-decoration: none; }
.le-xp-others span { display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; background: var(--xp-soft); }
.le-xp-others i { color: var(--xp-red); font-size: 22px; }

/* the client's design of 30 Nov: heading and text, sections of a picture beside text, the photo collage, the closing text */
.le-xp-intro { padding: 10px 0 4px; }
.le-xp .le-xp-intro h1 { margin: 0; color: var(--xp-navy); font-size: 40px; font-weight: 800; }
.le-xp-sub { margin: 6px 0 14px; color: #4a4d53; font-size: 20px; line-height: 1.4; }
.le-xp-sec { display: grid; grid-template-columns: minmax(0, 28fr) minmax(0, 72fr); gap: 24px; margin: 36px 0; align-items: stretch; }
.le-xp-sec-right { grid-template-columns: minmax(0, 72fr) minmax(0, 28fr); }
.le-xp-sec-right .le-xp-sec-pic { order: 2; }
.le-xp-sec-words { grid-template-columns: minmax(0, 1fr); }
/* the picture takes the height of the text beside it, at least 220px, cut to fit */
.le-xp-sec-pic { position: relative; min-height: 220px; max-height: 640px; margin: 0; overflow: hidden; border-radius: 14px; background: #eee; }
.le-xp-sec-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.le-xp .le-xp-sec h2, .le-xp .le-xp-closing h2 { margin: 0; color: var(--xp-navy); font-size: 28px; font-weight: 800; }
.le-xp-sec .le-xp-sub, .le-xp-closing .le-xp-sub { margin: 2px 0 10px; font-size: 18px; }
.le-xp-collage { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin: 36px 0; }
.le-xp-photo { position: relative; display: block; margin: 0; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 12px; background: #eee; }
.le-xp-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.le-xp-photo:hover img { transform: scale(1.04); }
.le-xp-photo span { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 8px 8px; background: linear-gradient(180deg, transparent, rgba(0, 0, 0, .72)); color: #fff; font-size: 14px; font-weight: 700; text-align: center; }
.le-xp-closing { margin: 36px 0 8px; }
@media (max-width: 991px) { .le-xp-collage { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767px) {
  .le-xp .le-xp-intro h1 { font-size: 29px; }
  .le-xp-sub { font-size: 17px; }
  .le-xp-sec, .le-xp-sec-right { grid-template-columns: minmax(0, 1fr); gap: 14px; margin: 28px 0; }
  .le-xp-sec-right .le-xp-sec-pic { order: 0; }                    /* on a phone the picture is always above its text */
  .le-xp-sec-pic { min-height: 0; aspect-ratio: 16 / 10; }
  .le-xp .le-xp-sec h2, .le-xp .le-xp-closing h2 { font-size: 23px; }
  .le-xp-collage { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}

@media (max-width: 1199px) { .le-xp-card { flex-basis: calc((100% - 32px) / 3); height: 460px; } .le-xp-others { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 767px) {
  .le-xp-banner-wrap { padding-top: 12px; }
  .le-xp-banner { border-radius: 10px; }
  .le-xp-banner-arrow { width: 28px; height: 28px; font-size: 15px; line-height: 28px; }
  .le-xp-banner-words { display: none; }                          /* the banner is small on a phone: its words are on the picture itself */
  .le-xp-banner-prev { left: 8px; }
  .le-xp-banner-next { right: 8px; }
  .le-xp-hero, .le-xp-row { grid-template-columns: 1fr; gap: 14px; }
  .le-xp .le-xp-hero h1 { font-size: 29px; }
  .le-xp-hero .le-xp-pic { order: -1; height: 220px; }
  .le-xp-row .le-xp-pic { order: -1; height: 210px; }
  .le-xp-destinations { height: 76vh; min-height: 420px; margin-top: 30px; }
  .le-xp-dest-head { top: 22px; }
  .le-xp-dest-foot { bottom: 20px; }
  .le-xp-card { flex-basis: 76%; height: 400px; }
  .le-xp-band { padding: 22px 18px; }
  .le-xp-band .le-xp-button { width: 100%; }
  .le-xp-others { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .le-xp-others a { font-size: 12.5px; padding: 12px 4px; }
}
@media (prefers-reduced-motion: reduce) { .le-xp * { transition: none !important; scroll-behavior: auto !important; } }

/* card pages (the See Local layout) and the words above a page the site already has (Map, News, Special Listings) */
.le-xp-words { overflow: visible; }
.le-xp-words .le-xp-intro { max-width: 900px; margin: 0 auto; padding: 26px 0 10px; text-align: center; }
.le-xp-city { display: flex; justify-content: center; align-items: center; gap: 10px; padding-top: 18px; }
.le-xp-city label { margin: 0; }
.le-xp-city select { width: auto; min-width: 240px; background: #fff; border: 1px solid #e6392c; }
.le-xp-site-end .le-xp-end { padding-top: 36px; }
.le-xp-site-end .le-xp-end .le-xp-band { margin-top: 0; }
