/* ===== ROOT & BASE ===== */
:root {
  --primary: #a96b4f;
  --accent: #3b6ea5;
  --light: #fffaf5;
  --text: #333;
  --hero: #656a55;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Lato', sans-serif;
  background-color: var(--light);
  color: var(--text);
  line-height: 1.6;
}

h1, h2, h3 {
  /*font-family: 'Merriweather', serif;*/
  font-family: 'Lato', sans-serif;
  color: var(--primary);
  margin-bottom: 10px;
}

h1, h2 {
  font-size: 2.2em;
}

h3 {
  font-size: 1.8em;
}

p {
  font-size: 1.5em;
}

a { 
text-decoration: none; color: var(--accent);
}

small {
  font-size: smaller;
}

section {
  padding: 60px 20px;
/*  max-width: 1100px;*/
  max-width: 80%;
  margin: 0 auto;
}

.btn {
  display: inline-block;
  padding: 12px 24px;
  background-color: var(--primary);
  color: white;
  border-radius: 6px;
  margin: 5px;
  transition: 0.3s;
  font-size: 1.5em;
}

.btn:hover { 
  background-color: var(--accent);
}

/* ===== HERO ===== */
#hero {
  background: url('images/Home-1611 Paramythia Apartment.jpg') center/cover no-repeat;
  background-size: auto 100%;
  background-color: var(--hero);
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  position: relative;
  max-width: 100%;
}

#hero::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.2);
/*  background-color: rgba(101,106,85,0.2);*/
  z-index: 0;
}

#hero h1, #hero p, #hero .btn {
  position: relative;
  z-index: 1;
}

#hero h1 {
  background-color: rgba(20,20,20,0.7);
  border-radius: 12px;
  font-size: 4.5em;
  margin-bottom: 10px;
  padding: 0 1.1em 0 1.1em;
}

#hero p {
  font-size: 2.2em;
  margin-bottom: 20px;
}

.scroll-down {
  position: absolute;
  bottom: 20px;
  color: white;
  font-size: 3em;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
  40% {transform: translateY(-10px);}
  60% {transform: translateY(-5px);}
}

/* ===== ABOUT ===== */
#about .images {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
#about img {
  width: 48%;
  height: 48%;
  border-radius: 8px;
}

/* ===== AMENITIES ===== */
#amenities ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  font-size: 1em;
}

#amenities li {
  background: white;
  border: 1px solid #eee;
  border-left: 5px solid var(--primary);
  padding: 10px;
  border-radius: 4px;
}

/* ===== GALLERY ===== */
#gallery ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  margin: 0 0 15px 0;
  font-size: 1.2em;
}

#gallery li {
  background: white;
  border: 1px solid #eee;
  border-left: 5px solid var(--primary);
  padding: 10px;
  border-radius: 4px;
}

#gallery .room {
  margin-bottom: 40px;
}

#gallery .images {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-start;
}

#gallery img {
  height: auto;            /* Keep natural aspect ratio */
  width: auto;             /* Adjust width automatically */
  max-width: 23%;          /* Limit per-row size but keep ratio */
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.3s;
  object-fit: contain;     /* Prevent cropping */
}

#gallery img:hover {
  transform: scale(1.02);
}

/* ===== MAP ===== */
#map iframe {
  width: 100%;
  height: 400px;
  border: none;
  border-radius: 8px;
}

/* ===== CONTACT ===== */
#contact {
  justify-content: center;
  align-items: center;
  text-align: center;
}
#contact .buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

/* ===== FOOTER ===== */
footer {
  background-color: var(--primary);
  color: white;
  text-align: center;
  padding: 20px;
}

footer a { 
  color: white;
}

/* ===== BACK TO TOP ===== */
#backToTop {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: var(--accent);
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 50%;
  display: none;
  cursor: pointer;
}

/* ===== LIGHTBOX ===== */
#lightbox {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
  flex-direction: column;
  overflow: hidden;
}

#lightbox-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 95vw;
  max-height: 90vh;
}

#lightbox-img {
  max-width: 100%;
  max-height: 85vh;      /* image height fits browser window */
  width: auto;
  height: auto;
  object-fit: contain;   /* keeps full image visible */
  border-radius: 8px;
  transition: opacity 0.3s ease;
}

#lightbox-caption {
  color: #fff;
  margin-top: 10px;
  font-size: 1.1em;
  text-align: center;
  max-width: 90%;
  line-height: 1.4;
  word-wrap: break-word;
}

/* Arrows & close button */
#close-lightbox,
#prev-lightbox,
#next-lightbox {
  position: absolute;
  color: white;
  font-size: 3em;
  cursor: pointer;
  user-select: none;
  transition: color 0.3s ease;
  text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

#close-lightbox { top: 20px; right: 30px; }
#prev-lightbox { left: 30px; top: 50%; transform: translateY(-50%); }
#next-lightbox { right: 30px; top: 50%; transform: translateY(-50%); }

#close-lightbox:hover,
#prev-lightbox:hover,
#next-lightbox:hover {
  color: var(--accent);
}

/* Responsive adjustment for small screens */
@media (max-width: 768px) {
  #lightbox-img {
    max-width: 95vw;
    max-height: 70vh;
  }
  #lightbox-caption {
    font-size: 1em;
    margin-top: 8px;
  }
}


/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  section { 
    max-width: 100%;
  }
  #about .images img, #gallery img {
    width:auto;
	height:auto;
	max-width: 100%;
    border-radius: 6px;
	object-fit: contain;     /* Prevent cropping */	
  }
  p { font-size: 1.2em; }
  #hero h1 { font-size: 2.6em; }
  #hero p { font-size: 1.2em; }
  .btn { font-size: 1.1em; }
  #contact h2 { font-size: 1.6em; }
  footer { font-size: 0.6em; }
  footer a { color: white; }
}
