/* --------------------------------------------------
   Base Typography & Layout
-------------------------------------------------- */

:root {
  --accent: #1f4b6e;
  --accent-light: #e5f0f8;
  --text: #222;
  --bg: #ffffff; 
}

html {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

*, *:before, *:after {
  box-sizing: inherit;
}

body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
               Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
}

/* Vertical rhythm */
section {
  padding: 48px 20px;
  max-width: 900px;
  margin: 0 auto;
}

h1, h2, h3 {
  font-weight: 600;
  line-height: 1.25;
  margin-top: 0;
}

h1 {
  font-size: 2rem;
  margin-bottom: 0.25rem;
}

h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--accent);
}

h3 {
  font-size: 1.2rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--accent);
}

p, li {
  font-size: 1rem;
}

/* --------------------------------------------------
   Header
-------------------------------------------------- */

header {
  background: #fff;
  border-bottom: 1px solid #ddd;
  padding: 20px;
}

.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
}

.title-block p {
  margin: 0.5rem 0 0;
  max-width: 600px;
}

.cta {
  text-align: right;
  font-size: 0.95rem;
}

.cta a {
  color: #005bbb;
  text-decoration: none;
}

.cta a:hover {
  text-decoration: underline;
}

/* --------------------------------------------------
   Banner
-------------------------------------------------- */

.banner {
  background: #005bbb;
  color: #fff;
  padding: 12px 20px;
  text-align: center;
  font-size: 1rem;
  font-weight: 500;
}

/* --------------------------------------------------
   Hero Image
-------------------------------------------------- */

.hero img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0;
}

/* --------------------------------------------------
   Highlight Box
-------------------------------------------------- */

.highlight-box {
  background: #fff;
  border: 1px solid #ddd;
  padding: 20px 24px;
  border-radius: 8px;
}

.highlight-box ul {
  margin: 0;
  padding-left: 20px;
}

/* --------------------------------------------------
   Photo Grid
-------------------------------------------------- */

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 24px;
  margin-bottom: 48px;
}

.photo-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
}

.photo-item img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

/* Hover caption */
.photo-hover-caption {
  position: absolute;
  bottom: 8px;
  left: 8px;
  right: 8px;
  padding: 6px 10px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 0.85rem;
  border-radius: 4px;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  pointer-events: none;
}

.photo-item:hover .photo-hover-caption {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------
   Lists
-------------------------------------------------- */

ul {
  padding-left: 20px;
}

li {
  margin-bottom: 6px;
}

/* --------------------------------------------------
   Floorplans
-------------------------------------------------- */

.floorplan {
  margin-bottom: 32px;
  text-align: center;
}

.floorplan img {
  width: 100%;
  max-width: 300px;
  border-radius: 8px;
  border: 1px solid #ddd;
}

/* --------------------------------------------------
   Map
-------------------------------------------------- */

iframe {
  border-radius: 8px;
}

/* --------------------------------------------------
   Footer
-------------------------------------------------- */

footer {
  text-align: center;
  padding: 40px 20px;
  font-size: 0.9rem;
  color: #666;
}

/* --------------------------------------------------
   Mobile Adjustments
-------------------------------------------------- */

@media (max-width: 700px) {

  section {
    padding: 36px 16px;
  }

  h1 {
    font-size: 1.6rem;
  }

  h2 {
    font-size: 1.35rem;
  }

  .header-inner {
    flex-direction: column;
    text-align: left;
  }

  .cta {
    text-align: left;
  }

  .photo-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* --------------------------------------------------
   Full Screen Viewer
-------------------------------------------------- */

.viewer-body {
  margin: 0;
  background: #000;
}

.viewer-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.viewer-image {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
}

.viewer-close {
  position: absolute;
  top: 20px;
  right: 30px;
  font-size: 28px;
  color: #fff;
  cursor: pointer;
  z-index: 20;
}

.viewer-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 48px;
  color: #fff;
  cursor: pointer;
  padding: 20px;
  z-index: 20;
  user-select: none;
}

.viewer-arrow-left {
  left: 20px;
}

.viewer-arrow-right {
  right: 20px;
}

.viewer-caption {
  position: absolute;
  bottom: 0;
  width: 100%;
  padding: 20px;
  font-size: 1rem;
  color: #fff;
  background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0));
  text-align: center;
}

@media (max-width: 480px) {

  .photo-grid {
    grid-template-columns: 1fr;
  }

  .banner {
    font-size: 0.95rem;
  }
}
