/* Reset and Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-color: #1a1a1a;
  --secondary-color: #666;
  --accent-color: #c8a97e;
  --background-color: #fff;
  --text-color: #333;
  --transition: all 0.3s ease;
}

html, body {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-color);
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header and Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.logo img {
  height: 50px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--primary-color);
  font-size: 0.9rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
}

.nav-links a:hover {
  color: var(--accent-color);
}

.language-selector {
  display: flex;
  gap: 0.5rem;
}

.language-selector a {
  font-size: 0.8rem;
  opacity: 0.7;
}

.language-selector a.active {
  opacity: 1;
  color: var(--accent-color);
}

/* Hero Section */
.hero {
  width: 100vw;
  height: 100vh;
  position: relative;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

.hero-slider-wrapper {
  overflow-x: hidden;
  width: 100vw;
  position: relative;
  height: 100vh;
}

.hero-slider {
  display: flex;
  position: relative;
  width: 100vw;
  height: 100vh;
  transition: transform 1s ease-in-out;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  opacity: 0;
  pointer-events: none;
  z-index: 0;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  overflow: hidden;
  min-width: 100vw;
  max-width: 100vw;
  transition: opacity 1s ease;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
  animation: zoomEffect 6s ease-in-out;
  animation-fill-mode: forwards;
}

.slider-img {
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  display: block;
  margin: 0 auto;
  z-index: 1;
  background: #fff;
  max-width: 100vw;
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  z-index: 2;
  width: 90vw;
  max-width: 900px;
  opacity: 0;
  animation: fadeIn 1s ease-in-out forwards;
  animation-delay: 0.5s;
  word-break: break-word;
}

.hero-slide::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.3);
  z-index: 1;
}

@keyframes zoomEffect {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.1);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, -40%);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 300;
  margin-bottom: 2rem;
  line-height: 1.2;
}

.cta-button {
  display: inline-block;
  padding: 1rem 2.5rem;
  background-color: var(--accent-color);
  color: white;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.9rem;
  transition: var(--transition);
}

.cta-button:hover {
  background-color: #b6956a;
  transform: translateY(-2px);
}

/* About Section */
.about {
  padding: 6rem 0;
  background-color: var(--background-color);
}

.about h2 {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 300;
  margin-bottom: 1rem;
}

.subtitle {
  text-align: center;
  font-size: 1.2rem;
  color: var(--secondary-color);
  margin-bottom: 4rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 4rem;
}

.feature {
  text-align: center;
  padding: 2rem;
}

.feature i {
  font-size: 2.5rem;
  color: var(--accent-color);
  margin-bottom: 1rem;
}

.feature h3 {
  font-size: 1.2rem;
  font-weight: 500;
}

.stats-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat {
  padding: 2rem;
}

.stat .number {
  display: block;
  font-size: 2.5rem;
  font-weight: 300;
  color: var(--accent-color);
  margin-bottom: 0.5rem;
}

.stat .label {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--secondary-color);
}

/* Why Montenegro Section */
.why-montenegro {
  padding: 6rem 0;
  background-color: #f9f9f9;
}

.why-montenegro h2 {
  text-align: center;
  font-size: 2.3rem;
  font-weight: 700;
  color: #2d2926;
  margin-bottom: 1.5rem;
  letter-spacing: 0.01em;
}

.reasons-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
}

.reason {
  padding: 2rem;
}

.reason h3 {
  font-size: 1.5rem;
  font-weight: 300;
  margin-bottom: 1rem;
}

/* Structure Section */
.structure {
  padding: 6rem 0;
}

.structure-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.structure-item {
  padding: 2rem;
  text-align: center;
}

.structure-item h3 {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 1rem;
  color: var(--accent-color);
}

/* Apartments Section */
.apartments {
  padding: 6rem 0;
  background-color: #f9f9f9;
}

.apartments h2 {
  text-align: center;
  font-size: 2.6rem;
  margin-bottom: 2.2rem;
  letter-spacing: 1px;
  font-weight: 700;
}

.apartment-grid {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 20px;
  flex-wrap: wrap;
}

.apartment-type {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background-color: white;
  text-align: center;
  transition: var(--transition);
  width: 450px;
}

.apartment-type img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
  transition: var(--transition);
}

.apartment-type:hover img {
  transform: scale(1.05);
}

.apartment-type h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.apartment-type p {
  color: var(--secondary-color);
  margin-bottom: 1.5rem;
}

.view-more {
  display: inline-block;
  margin: 0 auto;
  padding: 0.3rem 1.1rem;
  background: var(--accent-color);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  text-decoration: none;
}

.view-more:hover {
  background: #b6956a;
  transform: translateY(-1px) scale(1.03);
  color: #fff;
}

/* Contact Section */
.contact {
  padding: 80px 0;
  background-color: #fff;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-info h2,
.contact-form h2 {
  font-size: 1.8rem;
  font-weight: 300;
  margin-bottom: 2rem;
}

.contact-info p {
  margin-bottom: 1rem;
}

.social-links {
  margin-top: 2rem;
}

.social-links a {
  color: var(--primary-color);
  font-size: 1.5rem;
  margin-right: 1rem;
  transition: var(--transition);
}

.social-links a:hover {
  color: var(--accent-color);
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form input {
  padding: 1rem;
  border: 1px solid #ddd;
  font-size: 1rem;
}

.submit-button {
  padding: 1rem;
  background-color: var(--accent-color);
  color: white;
  border: none;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition);
}

.submit-button:hover {
  background-color: #b6956a;
}

/* Footer */
footer {
  padding: 2rem 0;
  background-color: var(--primary-color);
  color: white;
  text-align: center;
}

/* Feature Images */
.feature img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
  transition: var(--transition);
}

.feature:hover img {
  transform: scale(1.05);
}

/* Reason Images */
.reason img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  transition: var(--transition);
}

.reason:hover img {
  transform: scale(1.05);
}

/* Structure Images */
.structure-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 1rem;
  transition: var(--transition);
}

.structure-item:hover img {
  transform: scale(1.05);
}

/* Apartment Type Images */
.apartment-type img {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16/6;
  height: auto;
  object-fit: cover;
  border-radius: 18px;
  margin-bottom: 1rem;
  transition: var(--transition);
  display: block;
}

.apartment-type:hover img {
  transform: scale(1.06);
}

@media (max-width: 900px) {
  .apartment-type {
    width: 100%;
  }
  .apartment-type img {
    height: 250px;
  }
}

/* Gallery Section */
.gallery {
  padding: 80px 0;
  background-color: #f9f9f9;
}

.gallery h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 2.5rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.gallery-item {
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 250px;
}

.gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Lightbox Modal */
.lightbox {
  display: none;
  position: fixed;
  z-index: 1000;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.9);
}

.lightbox-content {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 800px;
  max-height: 80vh;
  object-fit: contain;
  animation-name: zoom;
  animation-duration: 0.6s;
}

@keyframes zoom {
  from {transform:scale(0)}
  to {transform:scale(1)}
}

.close-lightbox {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
}

.close-lightbox:hover,
.close-lightbox:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

.prev-lightbox, .next-lightbox {
  cursor: pointer;
  position: absolute;
  top: 50%;
  width: auto;
  padding: 16px;
  margin-top: -50px;
  color: white;
  font-weight: bold;
  font-size: 20px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
  -webkit-user-select: none;
}

.next-lightbox {
  right: 0;
  border-radius: 3px 0 0 3px;
}

.prev-lightbox:hover,
.next-lightbox:hover {
  background-color: rgba(0,0,0,0.8);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .features-grid,
  .stats-container {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .structure-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .hero, .hero-slider, .hero-slide {
    height: 60vh;
    width: 100vw;
  }
  
  .slider-img {
    height: 60vh;
    width: 100vw;
  }
  
  .hero-content {
    top: 60%;
    width: 98vw;
    font-size: 1.2rem;
  }
  
  .reasons-grid,
  .apartment-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .features-grid,
  .stats-container,
  .structure-grid {
    grid-template-columns: 1fr;
  }
  
  .feature img,
  .reason img,
  .structure-item img,
  .apartment-type img {
    height: 180px;
  }
}

.location-map {
  padding: 80px 0;
  background-color: #f9f9f9;
}

.map-container {
  width: 100%;
  height: 500px;
  margin-top: 30px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

#map {
  width: 100%;
  height: 100%;
}

@media (max-width: 768px) {
  .map-container {
    height: 300px;
  }
}

.custom-map-section {
  padding: 80px 0;
  background: #f9f7f2;
  text-align: center;
}
.custom-map-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
#montenegro-map {
  width: 100%;
  max-width: 700px;
  height: auto;
  margin: 0 auto;
  display: block;
}
.map-point {
  cursor: pointer;
  transition: fill 0.2s;
}
.map-point:hover {
  fill: #7a6c53;
}
.map-tooltip {
  position: absolute;
  background: #fff;
  color: #7a6c53;
  border: 1px solid #b8a98b;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 15px;
  pointer-events: none;
  z-index: 10;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  min-width: 120px;
  text-align: left;
}

.location-description {
  margin: 32px auto 0 auto;
  max-width: 700px;
  background: #f9f7f2;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  padding: 32px 28px;
  font-size: 1.08rem;
  color: #5a4d3b;
  text-align: center;
  line-height: 1.7;
}
.location-description p {
  margin-bottom: 18px;
}
.location-description p:last-child {
  margin-bottom: 0;
}

.location-description-wide {
  margin: 38px 0 0 0;
  padding: 32px 0 24px 0;
  background: linear-gradient(90deg, #f9f7f2 80%, #ece7df 100%);
  border-top: 1.5px solid #e5ded6;
  border-bottom: 1.5px solid #e5ded6;
  width: 100%;
}
.location-description-wide h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #7a6c53;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
  text-align: left;
  padding-left: 8vw;
}
.location-description-wide p {
  font-size: 1.08rem;
  color: #5a4d3b;
  margin-bottom: 10px;
  line-height: 1.8;
  max-width: 1100px;
  text-align: left;
  margin-left: 8vw;
  margin-right: auto;
}
.location-description-wide p:last-child {
  margin-bottom: 0;
}
@media (max-width: 900px) {
  .location-description-wide h3, .location-description-wide p {
    padding-left: 4vw;
    margin-left: 4vw;
  }
}
@media (max-width: 600px) {
  .location-description-wide {
    padding: 18px 0 12px 0;
  }
  .location-description-wide h3, .location-description-wide p {
    padding-left: 2vw;
    margin-left: 2vw;
    font-size: 1rem;
  }
}

.about-project-desc {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 4rem auto;
  font-size: 1.1rem;
  line-height: 1.7;
  color: #555;
}

.zaha-feature-stats-row {
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
  max-width: 1200px;
  margin: 4rem auto 0 auto;
}

.zaha-feature-stat-col {
  flex-basis: 22%;
  min-width: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.zaha-feature-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  font-size: 1.1rem;
  font-weight: 500;
}

.zaha-feature-icon {
  color: var(--accent-color);
  font-size: 1.5rem;
}

.zaha-stat-group {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.zaha-number {
  font-size: 3rem;
  font-weight: bold;
  color: var(--accent-color);
  line-height: 1;
}

.zaha-label {
  font-size: 0.9rem;
  color: #777;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 0.5rem;
}

.why-desc {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 4rem auto;
  font-size: 1.1rem;
  line-height: 1.7;
  color: #555;
}

.info-cards-row {
  display: flex;
  justify-content: flex-start;
  gap: 2rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 1rem;
}

.info-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
  flex-basis: 18%;
  min-width: 200px;
  text-align: center;
}

.info-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.1);
}

.why-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

img[src="images/why4.png"] {
    object-position: top;
}

.info-card-content {
  padding: 1.5rem;
}

.info-card-content h4 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--primary-color);
}
