/* ============================================================
   INSPIRED EXPLORER — Global Stylesheet
   ============================================================ */

/* === RESET & BASE === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Avenir Next', 'Avenir', -apple-system, BlinkMacSystemFont,
               'Helvetica Neue', Arial, sans-serif;
  background: #ffffff;
  color: #111111;
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* === PHOTO PROTECTION === */
img,
.photo-bg,
.kb-slide {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
}

/* Allow anchor/clickable tiles to receive pointer events,
   but images inside cannot be individually targeted */
a .photo-bg,
.location-tile .photo-bg { pointer-events: none; }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 52px;
  position: sticky;
  top: 0;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 300;
  border-bottom: 1px solid #ebebeb;
}

.site-logo {
  font-size: 13px;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  font-weight: 500;
  text-decoration: none;
  color: #111;
  white-space: nowrap;
}

/* Nav list */
.site-nav {
  display: flex;
  align-items: center;
  list-style: none;
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  font-weight: 400;
}

.site-nav > li {
  position: relative;
  white-space: nowrap;
}

.site-nav > li + li::before {
  content: '|';
  color: #d0d0d0;
  padding: 0 14px;
}

.site-nav a {
  text-decoration: none;
  color: #111;
  transition: opacity 0.25s;
}

.site-nav a:hover { opacity: 0.45; }

/* Locations dropdown */
.nav-dropdown { cursor: pointer; }

.nav-dropdown > span {
  font-size: 11px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  cursor: pointer;
  transition: opacity 0.25s;
}

.nav-dropdown:hover > span { opacity: 0.45; }

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 18px);
  right: 0;
  background: #ffffff;
  border: 1px solid #e8e8e8;
  min-width: 150px;
  padding: 10px 0;
  z-index: 400;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-menu a {
  display: block;
  padding: 11px 22px;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #111;
  text-decoration: none;
  transition: background 0.15s;
}

.nav-dropdown-menu a:hover { background: #f8f8f8; }

/* Hamburger (mobile) */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1px;
  background: #111;
  transition: all 0.3s;
}

/* Mobile nav overlay */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: #ffffff;
  z-index: 500;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
}

.mobile-nav.open { display: flex; }

.mobile-nav-close {
  position: absolute;
  top: 28px;
  right: 36px;
  font-size: 24px;
  cursor: pointer;
  background: none;
  border: none;
  color: #111;
  font-weight: 300;
  line-height: 1;
}

.mobile-nav a {
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #111;
  text-decoration: none;
  font-weight: 400;
}

.mobile-nav-locations {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.mobile-nav-locations .sublabel {
  font-size: 10px;
  letter-spacing: 2px;
  color: #aaa;
  text-transform: uppercase;
}

.mobile-nav-locations a {
  font-size: 12px;
  letter-spacing: 2.5px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 36px 52px;
  border-top: 1px solid #ebebeb;
  margin-top: 80px;
  text-align: center;
}

.footer-nav {
  display: flex;
  align-items: center;
  list-style: none;
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
}

.footer-nav li + li::before {
  content: '|';
  color: #d0d0d0;
  padding: 0 12px;
}

.footer-nav a {
  text-decoration: none;
  color: #111;
  transition: opacity 0.25s;
}

.footer-nav a:hover { opacity: 0.45; }

.footer-copy {
  font-size: 10px;
  color: #111;
  letter-spacing: 0.5px;
}

/* ============================================================
   HOME PAGE
   ============================================================ */

/* Hide the logo slot in the header on the home page;
   the title lives below the header instead */
.site-logo-placeholder {
  width: 1px; /* keeps flex spacing balanced */
}

.home-intro {
  padding: 64px 52px 56px;
  text-align: center;
}

.home-site-title {
  display: block;
  font-size: 22px;
  letter-spacing: 5px;
  text-transform: uppercase;
  font-weight: 500;
  color: #111;
  text-decoration: none;
  margin-bottom: 32px;
  text-align: center;
  transition: opacity 0.25s;
}

.home-site-title:hover { opacity: 0.45; }

.home-tagline {
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #111;
  margin-bottom: 44px;
  font-weight: 400;
}

.home-text {
  font-size: 17px;
  line-height: 1.9;
  color: #111;
  font-weight: 400;
  max-width: 900px;
  margin: 0 auto;
}

/* Location photo grid */
.location-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 0 52px 80px;
}

.location-tile {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 2 / 3;
  text-decoration: none;
  display: block;
  background: #f0f0f0;
}

.location-tile .photo-bg {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  filter: grayscale(100%);
  transition: filter 0.7s ease;
  pointer-events: none;
}

.location-tile:hover .photo-bg {
  filter: grayscale(0%);
}

/* Subtle dark gradient at bottom for label readability */
.location-tile::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  background: linear-gradient(to top, rgba(0,0,0,0.38) 0%, transparent 100%);
  pointer-events: none;
}

.location-tile .location-label {
  position: absolute;
  bottom: 24px;
  left: 0;
  right: 0;
  text-align: center;
  color: #ffffff;
  font-size: 16px;
  letter-spacing: 4px;
  text-transform: uppercase;
  font-weight: 500;
  pointer-events: none;
  z-index: 2;
}

/* Placeholder tile (no photo yet) */
.location-tile.placeholder .photo-bg {
  background-color: #e8e8e8;
  filter: none;
}
.location-tile.placeholder:hover .photo-bg {
  filter: none;
}
.location-tile.placeholder .location-label {
  color: #888;
}

/* ============================================================
   ABOUT PAGE
   ============================================================ */
.about-content {
  padding: 64px 52px 100px;
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}

.about-quote {
  font-family: 'Zapfino', 'Zapf Chancery', cursive;
  font-style: normal;
  font-size: 30px;
  line-height: 1.9;
  color: #111;
  margin-top: 48px;
  margin-bottom: 64px;
  font-weight: 400;
  text-align: center;
}

.about-quote cite {
  display: block;
  font-family: 'Avenir Next', 'Avenir', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  font-style: normal;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #111;
  margin-top: 20px;
  text-align: center;
}

.about-body {
  font-size: 17px;
  line-height: 1.95;
  color: #111;
  font-weight: 400;
  text-align: left;
  max-width: 900px;
  margin: 0 auto;
}

/* ============================================================
   LOCATION SUB-PAGE (Venice etc.)
   ============================================================ */

.location-page-hero {
  padding: 48px 52px 48px;
  border-bottom: 1px solid #ebebeb;
  max-width: 960px;
  margin: 0 auto;
}

.location-page-hero .location-page-title {
  display: block;
  margin-bottom: 20px;
}

.location-page-hero .location-intro {
  margin-bottom: 0;
}
.location-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
}

.location-left {
  padding: 64px 52px;
  border-right: 1px solid #ebebeb;
  position: sticky;
  top: 83px;
  max-height: calc(100vh - 83px);
  overflow-y: auto;
}

.location-right {
  padding: 64px 52px;
}

.location-page-title {
  font-style: italic;
  font-size: 13px;
  letter-spacing: 1px;
  font-weight: 400;
  color: #111;
  margin-bottom: 36px;
  display: block;
}

.location-intro {
  font-size: 15px;
  line-height: 1.95;
  color: #111;
  font-weight: 400;
  margin-bottom: 28px;
}

/* ============================================================
   KEN BURNS GALLERY
   ============================================================ */
.kenburns-gallery {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #ffffff;
}

.kb-slide {
  position: absolute;
  inset: 0;
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  pointer-events: none;
  will-change: transform, opacity;
}

/* Opacity via transition — never conflicts with transform animation */
.kb-slide {
  opacity: 0;
  transition: opacity 1.8s ease;
}
.kb-slide.kb-active { opacity: 1; }

/* Motion via animation — runs independently of opacity */
.kb-slide.kb-enter-1 { animation: kb-motion-1 7s ease-in-out forwards; }
.kb-slide.kb-enter-2 { animation: kb-motion-2 7s ease-in-out forwards; }
.kb-slide.kb-enter-3 { animation: kb-motion-3 7s ease-in-out forwards; }
.kb-slide.kb-enter-4 { animation: kb-motion-4 7s ease-in-out forwards; }

@keyframes kb-motion-1 {
  0%   { transform: scale(1.00) translate(0%, 0%); }
  100% { transform: scale(1.05) translate(-0.5%, -0.5%); }
}
@keyframes kb-motion-2 {
  0%   { transform: scale(1.05) translate(0.5%, 0.5%); }
  100% { transform: scale(1.00) translate(0%, 0%); }
}
@keyframes kb-motion-3 {
  0%   { transform: scale(1.00) translate(-0.5%, 0.5%); }
  100% { transform: scale(1.05) translate(0.5%, -0.5%); }
}
@keyframes kb-motion-4 {
  0%   { transform: scale(1.05) translate(0%, -0.5%); }
  100% { transform: scale(1.00) translate(0%, 0.3%); }
}

/* ============================================================
   OUTLINE / RIGHT PANEL
   ============================================================ */
.outline-section {
  margin-bottom: 44px;
}

.outline-section-title {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 600;
  color: #111;
  padding-bottom: 14px;
  border-bottom: 1.5px solid #111;
  margin-bottom: 6px;
}

.outline-section-intro {
  font-size: 13px;
  line-height: 1.75;
  color: #111;
  margin-bottom: 4px;
  font-weight: 400;
  padding: 12px 0 8px;
  border-bottom: 1px solid #f0f0f0;
}

.outline-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 0;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  transition: padding-left 0.2s ease, border-color 0.2s ease;
}

.outline-item:hover {
  padding-left: 10px;
  border-bottom-color: #bbb;
}

.outline-item-name {
  font-size: 13px;
  font-weight: 500;
  color: #111;
  letter-spacing: 0.2px;
  line-height: 1.4;
}

/* Strip the bold intro from the item name – just show title */
.outline-item-name em {
  font-style: normal;
}

.outline-item-arrow {
  font-size: 12px;
  color: #ccc;
  flex-shrink: 0;
  margin-left: 12px;
  transition: color 0.2s, transform 0.2s;
}

.outline-item:hover .outline-item-arrow {
  color: #111;
  transform: translateX(3px);
}

/* ============================================================
   MODAL / POPUP
   ============================================================ */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 600;
  justify-content: center;
  align-items: flex-start;
  padding: 60px 40px;
  overflow-y: auto;
}

.modal-overlay.open {
  display: flex;
}

.modal-card {
  background: #ffffff;
  max-width: 700px;
  width: 100%;
  padding: 52px;
  position: relative;
  box-shadow: 0 4px 60px rgba(0, 0, 0, 0.07), 0 1px 8px rgba(0,0,0,0.05);
  margin: auto;
  animation: modal-in 0.3s ease;
}

@keyframes modal-in {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.modal-close {
  position: absolute;
  top: 22px;
  right: 28px;
  font-size: 22px;
  cursor: pointer;
  color: #111;
  background: none;
  border: none;
  line-height: 1;
  transition: color 0.2s;
  font-weight: 400;
  font-family: inherit;
}

.modal-close:hover { color: #555; }

/* Portrait layout: photo left, text right */
.modal-portrait-layout {
  max-width: 860px;
}

.modal-portrait-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.modal-portrait-photo {
  position: relative;
}

.modal-portrait-img {
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.modal-portrait-content {
  padding-top: 4px;
}

.modal-portrait-content .modal-section-tag {
  display: block;
  margin-bottom: 10px;
}

.modal-portrait-content .modal-title {
  margin-bottom: 20px;
}

@media (max-width: 640px) {
  .modal-portrait-inner {
    grid-template-columns: 1fr;
  }
}

.modal-section-tag {
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #111;
  margin-bottom: 10px;
  display: block;
}

.modal-title {
  font-size: 16px;
  font-weight: 500;
  color: #111;
  margin-bottom: 28px;
  letter-spacing: 0.3px;
  line-height: 1.4;
  padding-right: 24px;
}

.modal-images {
  margin-bottom: 28px;
}

.modal-image-single {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.modal-image-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.modal-image-pair img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
}

.modal-text {
  font-size: 14px;
  line-height: 1.95;
  color: #111;
  font-weight: 400;
}

.modal-link {
  display: inline-block;
  margin-top: 22px;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #111;
  text-decoration: none;
  border-bottom: 1px solid #111;
  padding-bottom: 1px;
  transition: opacity 0.2s;
}

.modal-link:hover { opacity: 0.45; }

/* ============================================================
   PRIVACY / PROSE PAGES
   ============================================================ */
.prose-page {
  padding: 80px 52px;
  max-width: 760px;
  margin: 0 auto;
}

.prose-page h1 {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 56px;
  color: #111;
}

.prose-page h2 {
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  font-weight: 600;
  margin-top: 44px;
  margin-bottom: 14px;
  color: #111;
}

.prose-page p {
  font-size: 14px;
  line-height: 1.95;
  color: #111;
  font-weight: 400;
  margin-bottom: 18px;
}

.prose-page a {
  color: #111;
  transition: opacity 0.2s;
}

.prose-page a:hover { opacity: 0.45; }

/* ============================================================
   RESOURCES / TBD PLACEHOLDER
   ============================================================ */
.tbd-content {
  padding: 140px 52px;
  text-align: center;
}

.tbd-content p {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #ccc;
}

/* ============================================================
   CONTACT / NEWSLETTER SIMPLE
   ============================================================ */
.simple-page {
  padding: 100px 52px;
  max-width: 560px;
  margin: 0 auto;
}

.simple-page h1 {
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 48px;
}

.simple-page p {
  font-size: 14px;
  line-height: 1.9;
  color: #111;
  font-weight: 400;
  margin-bottom: 32px;
}

.form-field {
  margin-bottom: 24px;
}

.form-field label {
  display: block;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #111;
  margin-bottom: 8px;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid #ddd;
  padding: 10px 0;
  font-size: 14px;
  font-family: inherit;
  color: #111;
  background: transparent;
  outline: none;
  transition: border-color 0.2s;
}

.form-field input:focus,
.form-field textarea:focus {
  border-bottom-color: #111;
}

.form-field textarea {
  resize: none;
  height: 100px;
}

.btn-submit {
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  background: #111;
  color: #fff;
  border: none;
  padding: 14px 32px;
  cursor: pointer;
  font-family: inherit;
  transition: opacity 0.2s;
  margin-top: 8px;
}

.btn-submit:hover { opacity: 0.7; }

/* ============================================================
   RESPONSIVE — TABLET & MOBILE
   ============================================================ */
@media (max-width: 900px) {
  .location-split {
    grid-template-columns: 1fr;
  }

  .location-left {
    border-right: none;
    border-bottom: 1px solid #ebebeb;
    padding: 48px 36px;
    position: static;
    max-height: none;
    overflow-y: visible;
  }

  .location-right {
    padding: 48px 36px;
  }
}

@media (max-width: 768px) {
  .site-header {
    padding: 20px 28px;
  }

  .site-nav { display: none; }
  .nav-hamburger { display: flex; }

  .home-intro {
    padding: 48px 28px 40px;
    text-align: center;
  }

  .location-grid {
    grid-template-columns: 1fr;
    padding: 0 28px 52px;
    gap: 12px;
  }

  .location-tile {
    aspect-ratio: 4 / 3;
  }

  .site-footer {
    padding: 28px 28px;
    margin-top: 48px;
  }

  .about-content {
    padding: 64px 28px;
  }

  .about-quote {
    font-size: 19px;
  }

  .modal-overlay {
    padding: 30px 20px;
  }

  .modal-card {
    padding: 36px 28px;
  }

  .modal-image-pair {
    grid-template-columns: 1fr;
  }

  .modal-image-pair img {
    height: 180px;
  }

  .prose-page {
    padding: 60px 28px;
  }

  .tbd-content {
    padding: 100px 28px;
  }

  .location-left,
  .location-right {
    padding: 40px 28px;
  }
}

@media (max-width: 480px) {
  .site-logo {
    font-size: 11px;
    letter-spacing: 2.5px;
  }

  .home-tagline {
    font-size: 10px;
  }

  .home-text {
    font-size: 14px;
  }

  .location-split {
    min-height: unset;
  }

  .modal-image-single {
    height: 220px;
  }
}
