/* Reset + basic */
* {
  box-sizing: border-box;
}
body {
  width: 100%;
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f9f9f9;
  color: #333;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Navigation */
nav {
  background-color: #222;
  display: flex;
  align-items: center;
  justify-content: space-between; /* ⬅️ pushes logo left, menu right */
  padding: 15px 30px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
.logo {
  width: 160px;
  cursor: pointer;
  flex-shrink: 0;
}
.logo img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 6px;
}
.nav-menu {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 10px;
}

.left-menu {
  margin-left: 40px;
}

.right-menu {
  margin-left: auto;
}

/* Links */
.nav-menu li a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 4px;
  transition: background-color 0.25s ease;
}


.nav-menu li a:hover,
.nav-menu li a:focus {
  background-color: #444;
  outline: none;
}

/* Main content wrapper */
main {
  flex: 1;
  max-width: 100%;
  margin: 40px 300px;
  background: #fff;
  padding: 30px 35px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgb(0 0 0 / 0.1);
}
main h1 {
  margin-top: 10px;
  margin-left: 10px;
  font-weight: 700;
  color: #222;
}
main p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  margin-left: 10px;
  color: #555;
}

/* Form styles */
form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #444;
}
form input,
form textarea,
form select {
  width: 100%;
  padding: 12px 15px;
  margin-bottom: 20px;
  border: 1.8px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s ease;
}
form input:focus,
form textarea:focus,
form select:focus {
  border-color: #ff6600;
  outline: none;
  box-shadow: 0 0 6px #ff6600aa;
}
form textarea {
  resize: vertical;
  min-height: 120px;
}
button.submit-btn,
.button-book {
  background-color: #ff6600;
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  padding: 14px 24px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  width: 100%;
}
button.submit-btn:hover,
.button-book:hover {
  background-color: #e65c00;
}

/* Popup Overlay */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0,0,0,0.85);
  display: none;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 1000;
}
.popup-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 12px;
  box-shadow: 0 0 20px rgba(0,0,0,0.7);
}


/* --- Order page specific styles --- */

/* Cart table */
table.cart {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 30px;
}
table.cart th,
table.cart td {
  padding: 15px 12px;
  text-align: left;
  border-bottom: 1px solid #ddd;
  vertical-align: middle;
}
table.cart th {
  background-color: #f4f4f4;
  font-weight: 600;
  color: #555;
}
table.cart td input[type="number"] {
  width: 60px;
  padding: 5px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  text-align: center;
}
table.cart td button.remove-btn {
  background-color: #e74c3c;
  border: none;
  color: white;
  padding: 6px 12px;
  font-weight: bold;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
table.cart td button.remove-btn:hover {
  background-color: #c0392b;
}

/* Total */
.total-container {
  text-align: right;
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 40px;
  color: #111;
}

/* Payment form */
form.payment-form {
  max-width: 600px;
  margin: 0 auto 40px auto;
}
form.payment-form label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #444;
}
form.payment-form input,
form.payment-form select {
  width: 100%;
  padding: 10px 12px;
  margin-bottom: 20px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}
form.payment-form input:focus,
form.payment-form select:focus {
  outline: none;
  border-color: #ff6600;
  box-shadow: 0 0 8px #ff6600aa;
}
button.pay-btn {
  width: 100%;
  background-color: #ff6600;
  border: none;
  padding: 15px 0;
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
button.pay-btn:hover {
  background-color: #e65c00;
}


.nav-menu a.active {
  border-bottom: 3px solid #ff6600;
  color: #ff6600;
  font-weight: bold;
}

.nav-menu a.active {
  border-bottom: 3px solid #ff6600;
  padding-bottom: 4px;
  color: #ff6600;
}


/* --- Logo Popup Animation --- */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0,0,0,0.85);
  display: none;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 1000;
  animation: fadeIn 0.4s ease forwards;
}

.popup-overlay img {
  max-width: 80vw;
  max-height: 80vh;
  border-radius: 12px;
  box-shadow: 0 0 25px rgba(0,0,0,0.7);
  transform: scale(0.8);
  opacity: 0;
  animation: zoomIn 0.4s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes zoomIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* --- Ensure popup is always visible --- */
.popup-overlay {
  position: fixed;
  z-index: 9999 !important;
}

nav, .hero, footer {
  position: relative;
  z-index: 1;
}

.what-we-do {
  text-align: center;
  padding: 60px 20px;
  background-color: #fff;
  font-family: Arial, sans-serif;
}

.what-we-do h2 {
  font-size: 32px;
  margin-bottom: 40px;
  color: #333;
}

/* === About Us Section (Who We Are) === */
.about-us {
  background-color: #fff;
  padding: 80px 10%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.about-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
  max-width: 1200px;
  width: 100%;
  flex-wrap: wrap;
}

.about-image {
  flex: 1 1 45%;
  aspect-ratio: 4 / 3; /* ✅ blocca il rapporto corretto */
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* riempie senza deformare */
  display: block; /* elimina bordini indesiderati */
  transition: transform 0.6s ease;
}

.about-image:hover img {
  transform: scale(1.05);
}

.about-text {
  flex: 1 1 45%;
  color: #333;
}

.about-text h2 {
  font-size: 2.2rem;
  color: #222;
  margin-bottom: 20px;
}

.about-text p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #555;
  margin-bottom: 30px;
}

.about-text .btn-main {
  font-size: 1rem;
  padding: 10px 22px;
  border-radius: 25px;
  background: #ff6600;
  color: white;
  text-decoration: none;
  transition: background 0.3s;
}

.about-text .btn-main:hover {
  background: #e65c00;
}




/* ⬇️ Layout orizzontale */
.boxes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 45px;
  max-width: 100%;
  margin: auto;
}

.box-link {
  text-decoration: none;
  color: inherit;
  display: block;
}
.box-link .box {
  transition: transform 0.2s ease;
}

.box-link:hover .box {
  transform: scale(1.03);
}


/* ⬇️ Ogni box con immagine - versione migliorata */
.box {
  position: relative;
  flex: 1 1 30%;
  min-width: 320px;
  height: 320px; /* 🔹 dimensione grande e uniforme */
  border-radius: 15px;
  overflow: hidden;
  color: white;
  font-size: 24px;
  font-weight: 600;
  display: flex;
  flex-direction: column; /* ⬅️ imposta layout verticale */
  justify-content: flex-end; /* ⬅️ contenuto in basso */
  align-items: center; /* ⬅️ centrato orizzontalmente */
  text-align: center; /* ⬅️ centra testo */
  text-shadow: 2px 2px 6px rgba(0,0,0,0.8);
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: #000;
  background-size: cover; /* ⬅️ riempie il box senza deformare */
  background-repeat: no-repeat;
  background-position: center;
}

.box::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6), rgba(0,0,0,0));
}

.box h3 {
  position: relative;
  z-index: 1;
  margin-bottom: 20px;
  font-size: 1.6rem;
}

/* Descrizione nei box */
.box p {
  position: relative;
  z-index: 1;
  margin: 5px 20px 25px;
  font-size: 1rem;
  font-weight: 400;
  color: #f0f0f0;
  text-align: center;
  text-shadow: 1px 1px 4px rgba(0,0,0,0.7);
  line-height: 1.4;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

.box:hover p {
  opacity: 1;
}

.box:hover p {
  opacity: 1;
}

.box img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* oppure "contain" se vuoi vederle tutte senza tagli */
  z-index: 0;
  transition: transform 0.4s ease;
}

.box:hover img {
  transform: scale(1.05);
}



/* Effetto hover */
.box:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 16px rgba(0,0,0,0.3);
}



/* ===== Fullscreen Hero Section ===== */
.hero {
  position: relative;
  height: 100vh;
  width: 100%;
  background: url('images/ohrid.jpg') center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

.btn-main {
  background: #ff6600;
  color: white;
  padding: 12px 24px;
  border-radius: 30px;
  text-decoration: none;
  transition: background 0.3s;
}

.btn-main:hover {
  background: #e65c00;
}

html  {
  scroll-behavior: smooth;
}

body  {
  width: 100%;
  margin: 0;
  background-color: #f9f9f9;
  color: #333;
  font-family: 'Poppins', 'Segoe UI', sans-serif;
}


nav a {
  color: white;
  text-decoration: none;
  margin: 0 15px;
  position: relative;
  transition: color 0.3s;
}

nav a:hover {
  color: #ff6600;
}


/* ======================================================
   RENT PAGE — styles scoped only to .apartments-page
   ====================================================== */
.apartments-page {
  max-width: 100%;
  margin: 0;
  padding: 0;
  background: #fafafa;
  box-shadow: none;
  border-radius: 5;
}

/* Layout principale per i blocchi di appartamenti */
.apartments-page .apartment-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 50px;
  padding: 60px 10%;
  border-bottom: 1px solid rgba(0,0,0,0.1);
}

/* Alterna direzione ogni sezione */
.apartments-page .apartment:nth-child(even) .apartment-container {
  flex-direction: row-reverse;
  background-color: #fff;
}

/* Immagini principali */
.apartments-page .apartment-image {
  flex: 1 1 45%;
}

.apartments-page .apartment-image img {
  display: flex;
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
  margin-bottom: 12px;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Galleria di immagini sotto */
.apartments-page .apartment-gallery {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.apartments-page .apartment-gallery img {
  width: 30%;
  border-radius: 8px;
  cursor: pointer;
  opacity: 0.85;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.apartments-page .apartment-gallery img:hover {
  opacity: 1;
  transform: scale(1.05);
}
.apartments-page .apartment-image img:hover {
  opacity: 1;
  transform: scale(1.05);
}


/* Dettagli testuali */
.apartments-page .apartment-details {
  flex: 1 1 50%;
  color: #333;
}

.apartments-page .apartment-details h2 {
  margin-top: 0;
  font-size: 1.8rem;
  color: #222;
}

.apartments-page .features {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.apartments-page .features li {
  margin-bottom: 6px;
}

/* Mappa */
.apartments-page .map {
  margin-top: 20px;
}

.apartments-page .map-note {
  font-size: 0.9rem;
  color: #777;
  margin-top: 5px;
}
.info-table a{
  display: block;
  text-decoration: none;
  
}

/* ======================================================
   RENT PAGE — fullscreen image popup
   ====================================================== */

/* Overlay per popup immagini */
.apartments-page .image-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0,0,0,0.85);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  cursor: zoom-out;
  animation: fadeIn 0.3s ease forwards;
}

/* Immagine ingrandita */
.apartments-page .image-popup-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 10px;
  box-shadow: 0 0 25px rgba(0,0,0,0.7);
  transform: scale(0.9);
  opacity: 0;
  animation: zoomIn 0.4s ease forwards;
}


/* Animazioni */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes zoomIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}



/* Responsive tweak - smartphone e schermi piccoli (≤ 640px) */
@media (max-width: 720px) {
  /* NAV: contenitore principale della barra di navigazione */
  nav {
    display: flex;           /* garantisce che nav sia layout flex (se non lo è già) */
    flex-wrap: wrap;         /* permette agli elementi interni di andare a capo se manca spazio */
    align-items: center;     /* centra verticalmente contenuti (logo, toggle, ecc.) */
    justify-content: space-between; /* spazio tra logo e menu / icona toggle */
    padding: 12px 20px;      /* padding interno ridotto per schermi piccoli */
    gap: 8px;                /* spazio minimo tra elementi figli */
  }

  /* .nav-menu: contenitore degli elementi di navigazione (es. <ul class="nav-menu">) */
  .nav-menu {
    display: flex;           /* mantiene un layout flex interno */
    flex-direction: column;  /* impila le voci una sopra l'altra su mobile */
    align-items: center;     /* centra le voci orizzontalmente */
    width: 100%;             /* occupa tutta la larghezza disponibile */
    margin: 12px 0 0 0;      /* separazione dall'eventuale riga superiore (logo/toggle) */
    padding: 0;              /* reset del padding per lista non voluto su mobile */
    gap: 12px;               /* spazio tra le voci del menu */
    list-style: none;        /* se è una <ul>, rimuove i bullet */
  }

  /* voci del menu (se usi .nav-menu li > a) — migliora usabilità touch */
  .nav-menu a {
    display: block;          /* permette padding cliccabile su tutta l'area */
    padding: 10px 14px;      /* area tappabile più grande (usabilità mobile) */
    text-decoration: none;   /* rimuove sottolineatura, se lo desideri */
    width: 100%;             /* fa sì che il link occupi tutta la larghezza del contenitore */
    text-align: center;      /* centra il testo della voce */
    box-sizing: border-box;  /* evita overflow dovuto a padding */
  }

  /* Se sul desktop il menu era inline-left (es. margin-left:auto), azzeralo */
  .nav-menu {
    margin-left: 0;          /* evita che il menu venga spostato da margini ereditati */
  }

  /* main: area di contenuto principale (riduce margini/padding su mobile) */
  main {
    min-height: 100vh;
    overflow: visible;
    margin: 20px 15px;       /* margini laterali più stretti per adattarsi allo schermo */
    padding: 25px 20px;      /* padding interno ridotto mantenendo leggibilità */
    box-sizing: border-box;  /* include padding nel calcolo larghezza */
  }

  /* Optional: se usi una "hamburger icon" per aprire/chiudere il menu */
  .nav-toggle {
    display: block;          /* mostra l'icona toggle su mobile (assumendo nascosta su desktop) */
    cursor: pointer;         /* indica che è cliccabile */
  }

  /* Optional: stato nascosto del menu — se implementi il toggle con JS aggiungi/rimuovi .hidden */
  .nav-menu.hidden {
    display: none;           /* nasconde il menu quando necessario (es. stato chiuso) */
  }

  /* Optional: miglioramento tipografico su schermi piccoli */
  body, main, nav, .nav-menu a {
    font-size: 16px;         /* dimensione leggibile su mobile (adattare se necessario) */
    line-height: 1.4;        /* distanza tra righe per leggibilità */
  }
.apartments-page .apartment-container {
    display: flow;
    justify-content: center;
    align-items: flex-start;
    gap: 50px;
    padding: 60px 10%;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
}


/*footer copyrights*/

.site-footer {
  text-align: center;
  padding: 20px 10px;   /* QUESTO è il padding */
  font-size: 14px;
  color: #777;
}

.site-footer hr {
  border: none;
  border-top: 1px solid #ddd;
  margin-bottom: 15px;
}

.site-footer p {
  margin: 0;
}