/* RESET I OSNOVNE POSTAVKE */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #fdfcf9;
  color: #222;
}

a {
  text-decoration: none;
}

/* KONTEJNER */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

html {
  scroll-behavior: smooth;
}



/* === HOTEL INFO SECTION === */
.hotel-info-section {
  padding-top: 120px; /* povećaj ili smanji ako treba */
  background-color: #fff;
  padding-left: 20px;
  padding-right: 20px;
}

.hotel-info-section h2 {
  font-size: 32px;
  margin-bottom: 20px;
}

.hotel-info-section p {
  font-size: 16px;
  line-height: 1.6;
}

.hotel-features {
  list-style: none;
  padding-left: 0;
  margin-top: 20px;
}

.hotel-features li {
  margin-bottom: 10px;
  font-size: 15px;
}

.hotel-info-section p:first-of-type {
  margin-bottom: 25px;
}

/* === ROOMS SECTION === */
.rooms-showcase {
  padding: 60px 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
  background-color: #fff;
}

.room-box {
  background-color: #f3f3f3;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  flex: 1 1 calc(33% - 26.66px);
  max-width: calc(33% - 26.66px);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.3s ease;
}

.room-box:hover {
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.room-box img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.room-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.room-content h3 {
  font-size: 20px;
  margin: 0 0 10px;
}

.room-content p {
  font-size: 14px;
  margin-bottom: 15px;
}

.show-more {
  padding: 10px 16px;
  background-color: #a98c66;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  align-self: flex-start;
  transition: background-color 0.3s ease;
}

.show-more:hover {
  background-color: #c0a472;
}

.room-details {
  display: none;
  padding: 15px 0 0;
}

.room-details img {
  width: 100%;
  max-width: 100%;
  height: auto;
  margin-top: 10px;
  border-radius: 4px;
}

/* Show/hide class */
.hidden {
  display: none;
}

.room-slider-wrapper {
  position: relative;
  max-width: 400px;
  width: 100%;
  overflow: hidden;
}

.room-slider {
  position: relative;
}

.room-slider .slide {
  display: none;
  width: 100%;
}

.room-slider .slide.active {
  display: block;
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.prev, .next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0,0,0,0.5);
  color: white;
  border: none;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 4px;
  font-size: 20px;
  z-index: 10;
}

.prev { left: 10px; }
.next { right: 10px; }

.prev:hover, .next:hover {
  background-color: rgba(0,0,0,0.8);
}

/* === GALLERY SECTION === */
.gallery-grid {
  padding: 60px 20px;
  background-color: #f7f7f7;
}

.gallery-grid h2 {
  text-align: center;
  font-size: 28px;
  margin-bottom: 30px;
}

.gallery-grid-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
}

.gallery-grid-wrapper a {
  display: block;
  overflow: hidden;
  border-radius: 6px;
}

.gallery-grid-wrapper img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  transition: transform 0.3s ease;
  display: block;
}

.gallery-grid-wrapper img:hover {
  transform: scale(1.05);
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .room-box {
    flex: 1 1 calc(50% - 20px);
    max-width: calc(50% - 20px);
  }
}

@media (max-width: 768px) {
  .rooms-showcase {
    flex-direction: column;
  }

  .room-box {
    max-width: 100%;
  }
}

/* CONTACT */
.contact-section {
  padding: 100px 20px 80px;
  background-color: #fdfcf9;
  color: #222;
}

.contact-container {
  max-width: 1300px;
  /* povećano */
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  /* manji razmak */
  flex-wrap: wrap;
  align-items: flex-start;
}

.contact-info {
  flex: 1 1 40%;
  font-size: 17px;
  line-height: 1.8;
}

.contact-info h2 {
  font-size: 36px;
  margin-bottom: 20px;
}

.contact-info p {
  font-size: 17px;
  line-height: 1.8;
  color: #444;
  margin-bottom: 25px;
}

.contact-info ul {
  list-style: none;
  padding: 0;
}

.contact-info li {
  margin-bottom: 12px;
  font-size: 16px;
  color: #333;
}

.contact-info li strong {
  color: black;
}
.contact-info li a {
  color: #e6b800;
}

.contact-form {
  flex: 1 1 55%;
  background: #fff;
  padding: 35px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.contact-form form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-form label {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 5px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 15px;
  font-family: inherit;
  background-color: #fff;
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-btn {
  background-color: #e6b800;
  color: #fff;
  font-weight: bold;
  padding: 12px 20px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  align-self: flex-start;
}

.contact-btn:hover {
  background-color: #cfa500;
}

.row-2 {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.row-2 .form-group {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Responsive Design */
@media (max-width: 768px) {
  .contact-container {
    flex-direction: column;
  }

  .contact-info,
  .contact-form {
    /* flex: 1 1 100%; */
    max-width: 100%;
    width: 100%;
  }

  .row-2 {
    flex-direction: column;
  }
}

/* FOOTER */
footer {
  background-color: #161a1d;
  color: #d1d1d1;
  font-family: Arial, sans-serif;
  padding: 60px 80px 30px 80px;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  gap: 60px;
  flex-wrap: nowrap;
}

.footer-logo-social {
  flex: 1;
}

.footer-logo-social h3 {
  font-size: 24px;
  font-weight: bold;
  color: #ffffff;
}

.footer-logo-social h3 span {
  color: #f9c300;
}

.footer-logo-social p {
  font-size: 16px;
  margin: 20px 0;
  line-height: 1.6;
}

.footer-social-icons {
  display: flex;
  gap: 25px;
  margin-top: 10px;
}

.footer-social-icons img {
  width: 24px;
  height: 24px;
}

.footer-links {
  flex: 1;
}

.footer-links h4 {
  color: #f9c300;
  font-size: 20px;
  margin-bottom: 20px;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links ul li {
  margin-bottom: 12px;
}

.footer-links ul li a {
  text-decoration: none;
  color: #d1d1d1;
  font-size: 16px;
}

.footer-links ul li a:hover {
  color: #f9c300;
}

.footer-hotels {
  flex: 2;
  margin-left: -30px; /* 👈 Pomjera cijelu Our Hotels sekciju bliže Quick Links */
}

.footer-hotels h4 {
  color: #f9c300;
  font-size: 20px;
  margin-bottom: 20px;
}

.footer-hotel-group {
  display: flex;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 40px;
}

.footer-hotel {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
}

.footer-hotel h5 {
  font-size: 17px;
  font-weight: bold;
  color: #ffffff;
  margin-bottom: 10px;
}

.footer-hotel p {
  font-size: 15px;
  margin: 5px 0;
  color: #d1d1d1;
  line-height: 1.5;
}

.footer-hotel a {
  color: #fbbf24;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-hotel a:hover {
  color: #f59e0b;
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid #2c2f33;
  margin-top: 40px;
  padding-top: 20px;
  font-size: 14px;
  color: #b0b0b0;
}

/* ✅ Responsive for mobile */
@media (max-width: 768px) {
  .footer-container {
    flex-direction: column;
    gap: 40px;
    padding: 40px 30px 20px 30px;
  }

  .footer-logo-social,
  .footer-links,
  .footer-hotels {
    width: 100%;
  }

  .footer-hotel-group {
    flex-direction: column;
    gap: 25px;
  }

  .footer-hotel {
    width: 1;
    max-width: 0;
  }

  .footer-social-icons {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 15px;
  }

  .footer-bottom {
    font-size: 13px;
    padding-top: 15px;
  }
}

/* === UTILITIES === */
.hidden {
  display: none;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}


.error {
  color: #ff0000;
  font-size: 14px;
  margin-top: 5px;
  transition: opacity 0.3s ease-in-out;
}

#email_submit {
  display: flex;
  justify-content: center;
  align-items: center;
}


#snackbar {
  visibility: hidden;
  min-width: 250px;
  margin-left: -125px;
  background-color: #333;
  color: #fff;
  text-align: center;
  border-radius: 8px;
  padding: 16px;
  position: fixed;
  z-index: 9999;
  left: 50%;
  bottom: 30px;
  font-size: 17px;
}

#snackbar.show {
  visibility: visible;
  animation: fadein 0.5s, fadeout 0.5s 2.5s;
}

@keyframes fadein {
  from {bottom: 0; opacity: 0;}
  to {bottom: 30px; opacity: 1;}
}

@keyframes fadeout {
  from {bottom: 30px; opacity: 1;}
  to {bottom: 0; opacity: 0;}
}
