* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 40px;
  background-color: #1B2121;
}

body {
  font-family: 'Open Sans', Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}

h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 16px;
}

h2 {
  font-family: 'Open Sans', sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 4px;
}

h3 {
  font-family: 'Open Sans', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 60px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  color: #fff;
  background: rgba(27, 33, 33, 0.85); /* #1B2121 */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
}

.navbar {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  line-height: 0;
}

.logo img {
  width: 60px;
  border: 1px solid #fff;
  padding: 6px 12px;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 40px;
  padding: 0;
}

.nav-links a {
  color: #fff;
  text-decoration: none;
}

.nav-links a:hover {
  color: #ebebeb;
}

.menu-toggle {
  visibility: hidden;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-icon {
  width: 24px;
  transition: transform 0.3s ease, opacity 0.15s ease;
}

.menu-icon.open {
  transform: rotate(90deg);
}


.hero-wrapper {
  position: relative;
}

.cta-box {
  position: absolute;
  right: 0;
  top: 50vh;
  padding: 32px 48px;
  text-align: center;
  background-color: #1B2121;
  color: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  border-radius: 8px 0 0 8px;
}

.hero {
  height: 100vh;
  min-height: 500px;
  background-image: url('images/hero.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding-top: 55vh;
  background-blend-mode: overlay;
  background-color: rgba(0, 0, 0, 0.4);
  color: #fff;
}

.hero h1 {
  font-size: 2.5rem;
}

.hero h2 {
  font-size: 1.5rem;
  font-weight: 300;
  line-height: 1.4;
}

.cta-box p {
  font-size: 1.1rem;
}

.phone {
  color: inherit;
  text-decoration: none;
  font-weight: inherit;
  font-size: 1.1rem;
  display: block;
  cursor: pointer;
}

.button {
  display: block;
  margin-bottom: 16px;
  padding: 8px 20px;
  background-color: #71A99F;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border-radius: 20px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.button:hover {
  background-color: #588B81;
}

.button.secondary {
  background-color: #fff;
  color: #333;
}

.button.secondary:hover {
  background-color: #ebebeb;
}

.button.tertiary:hover {
  background-color: #71A99F;
  color: #fff;
}

.button.tertiary {
  background-color: #f2f2f2;
  color: #333;
  display: inline-block;
}

.gray-section {
  background: #f1f1f2;
  padding: 48px 0 60px;
}

.white-section {
  background: #ffffff;
  padding: 40px 0 60px;
}

.content-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.feature-wrapper {
  display: flex;
  gap: 32px;
}

.feature-text {
  margin-bottom: 32px;
}

.feature-left {
  flex: 2;
}

.feature-right {
  flex: 1;
}

.feature-image {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 40px;
}

.feature-image-no-margin {
  margin-bottom: 0;
}

.image-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.image-row img {
  width: calc(50% - 10px); /* To account for 20px flex gap */
  max-width: 50%;
  height: auto;
  display: block;
}

.poi-list {
  margin: 20px 40px 20px 20px;
}

.poi {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.poi-name {
  font-weight: 600;
}

.amenity {
  display: flex;
  margin: 8px;
  gap: 12px;
}

.amenity img {
  height: 28px;
}

.amenity-note {
  font-weight: 600;
}

.floorplan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.floorplan-card {
  overflow: hidden;
  background: #fff;
  box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.2)
}

.floorplan-card button {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 1rem;
  border: none;
  margin: 20px auto 16px;
  cursor: pointer;
}

.floorplan-image-wrapper {
  position: relative;
}

.floorplan-badge {
  position: absolute;
  top: 20px;
  right: 20px;
  background: #CC7C4C;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.floorplan-image {
  width: 100%;
  display: block;
}

.floorplan-info {
  display: flex;
  justify-content: space-between;
  padding: 16px 20px;
  flex-wrap: wrap; 
}

.floorplan-left {
  flex: 1 1 60%;
}

.floorplan-right {
  flex: 1 1 40%;
  text-align: right;
}

.floorplan-name {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.floorplan-available {
  color: #888;
}

.floorplan-details {
  margin-top: 2px;
}

.availability-wrapper {
  display: flex;
  gap: 24px;
}

.availability-left {
  flex: 1;
  text-align: center;
}

.availability-right {
  flex: 1;
}

.availability-table {
  width: 100%;
  overflow: hidden;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid #e8e8e8;
}

.availability-table thead {
  background-color: #71A99F;
  color: #fff;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.availability-table thead tr {
  height: 40px;
}

.availability-table th,
.availability-table td {
  padding: 8px 16px;
  text-align: left;
}

.availability-table tbody tr:nth-child(even) {
  background-color: #f1f1f2;
}

.availability-table tbody tr td:first-child {
  font-weight: 600;
}

.gallery-wrapper {
  position: relative;
}

.image-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  align-items: stretch;
  margin: 8px 0;
}

.gallery-left,
.gallery-right {
  width: 100%;
}

.gallery-left img,
.gallery-right img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-right {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 8px;
  height: 100%;
}

.more-photos {
  position: absolute;
  right: 20px;
  transform: translateY(-180%);
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 1rem;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.modal {
  display: none;
  position: fixed; 
  left: 0;
  top: 0;
  width: 100%; 
  height: 100%; 
  background-color: rgba(0,0,0,0.6);
  align-items: center;
  justify-content: center;
  overflow: hidden;
  z-index: 1000;
}

.modal.show {
  display: flex;
}

.modal-content {
  position: relative;
  background-color: #fff;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.modal-header {
  position: sticky;
  top: 0;
  background-color: #fff;
  color: #333;
  padding: 12px 16px;
  border-bottom: 1px solid #ccc;
  z-index: 100; 
  display: flex;
  justify-content: space-between;
}

.modal-header h2{
  padding: 0;
}

.modal-body {
  padding: 16px;
}

.modal-content::-webkit-scrollbar {
  display: none;                
}

.modal-content {
  scrollbar-width: none;       
  -ms-overflow-style: none;   
}

.modal.show .modal-content {
  opacity: 1;
  transform: translateY(0);
}

body.modal-open {
  overflow: hidden;
  padding-right: var(--scrollbar-width, 0);
}

.close-button {
  background: none;
  border: none;
  cursor: pointer;
}

.close-icon {
  width: 24px;
  color: #999;
  transition: color 0.3s ease;
}

.close-button:hover .close-icon {
  color: #333;
}

.photo-tabs {
  display: flex;
  justify-content: flex-start;
  gap: 12px;
  padding-bottom: 40px;
  overflow-x: auto;
}

.photo-tab {
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  width: 160px;
  color: #333;
  font-size: 0.9rem;
  transition: transform 0.2s ease, color 0.2s ease;
}

.photo-tab img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  margin-bottom: 6px;
  transition: opacity 0.3s ease;
  opacity: 1;
}

.photo-tab:hover img {
  opacity: 0.9;
}

.photo-wrapper {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.photo-heading {
  position: sticky;
  top: 80px;
  flex: 0 0 180px;
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
  align-self: flex-start;
  z-index: 1;
  padding: 8px 0;
}

.photo-heading .subheading {
  display: block;
  font-size: 0.9rem;
  color: #666;
  font-weight: 400;
  margin-top: 4px;
}

.photo-container {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 8px;
}

.photo-container img {
  width: 100%;
}

footer {
  background-color: #1B2121;
  color: #fff;
  padding: 12px 40px 60px;
  text-align: center;
  font-size: 1.1em
}

footer h1 {
  font-size: 2rem;
  font-weight: 600;
  margin: 0;
}

footer h2 {
  font-weight: 300;
  margin-bottom: 20px;
}

footer .button {
  display: inline-block;
}

footer .button.secondary {
  margin-left: 8px;
}

footer img {
  margin-top: 24px;
  width: 80px;
  border: 1px solid #fff;
  padding: 8px 16px;
}

@media (max-width: 768px) {
  .cta-box {
    position: static;
    transform: none;
    padding: 32px 20%;
    border-radius: 0;
  }
  
  .hero {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 0;
  }

  .feature-right {
    display: flex;
    flex-direction: column;
  }

  .feature-right .feature-image {
    order: 2;
  }

  .feature-right .feature-text {
    order: 1;
  }

  .feature-right h2,
  .feature-right .amenity {
    order: 3;
  }

  .image-row {
    gap: 12px;
    margin-bottom: 12px;
  }

  .feature-wrapper {
    gap: 0;
    flex-direction: column;
  }

  .image-gallery {
    grid-template-columns: 1fr;
    gap:0;
  }

  .gallery-left {
    order: 1;
  }

  .gallery-left img {
    width: 100%;
    height: auto;
    object-fit: cover;
  }

  .gallery-right {
    order: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    height: auto;
    margin-top: 8px;
  }

  .gallery-right img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
  }

  .menu-toggle {
    visibility: visible;
    display: block;
  }

  .nav-links {
    position: absolute;
    top: 60px;
    left: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(27, 33, 33, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    gap: 0;
  }

  .nav-links.active {
    max-height: 300px;
    padding: 16px 0;
  }

  .nav-links li {
    margin: 0.5rem 0;
    text-align: center;
    font-size: 1.5rem;
    width: 100%;
  }

  .nav-links li a {
    display: block;
  }

  .photo-tabs {
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;    
    padding-bottom: 12px;
    scroll-snap-type: x mandatory;
  }

  .photo-tab {
    flex: 0 0 auto;
    width: 240px;
    white-space: normal;
    scroll-snap-align: start;
    font-size: 1rem;
    margin-bottom: 20px;
  }

  .photo-tab img {
    aspect-ratio: 16 / 9;
  }

  .photo-wrapper {
    display: block;
  }

  .photo-heading {
    font-size: 1.2rem;
    top: 70px;
    position: static;
    padding: 16px 0 8px;
  }

  .photo-heading .subheading {
    margin: 0 0 4px;
  }

  .photo-container {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 0 -16px;
  }

  .modal-content {
    width: 95%;
    max-height: 92vh;
  }

  .photo-tabs {
    scroll-behavior: smooth;
    padding: 8px;
  }

  .availability-wrapper {
    flex-direction: column;
  }
}