/* ZUNIFIKOWANE STYLE DLA WSZYSTKICH POKOI */

/* Gallery styles */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 1.2rem 0;
}

.gallery img {
  width: 100%;
  aspect-ratio: 4/3;
  height: auto;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  margin: 0;
}

.gallery img:hover { 
  transform: translateY(-4px); 
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

/* Professional Lightbox */
.lightbox {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(20,20,20,0.96);
  z-index: 10000;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.2s;
}
.lightbox.active {
  display: flex;
  opacity: 1;
}
.lightbox-content {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  max-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: none;
  padding: 0;
  border-radius: 0;
}
.lightbox-img-container {
  position: relative;
  width: 100vw;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox img {
  max-width: 90vw;
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 0;
  background: #222;
  margin: 0;
  box-shadow: none;
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #fff;
  color: #222;
  border: 2px solid #222;
  box-shadow: 0 4px 24px rgba(0,0,0,0.18);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 38px;
  font-weight: bold;
  z-index: 2;
  opacity: 0.97;
  transition: box-shadow 0.2s, transform 0.2s, background 0.2s, color 0.2s;
  outline: none;
}
.lightbox-nav:hover, .lightbox-nav:focus {
  background: var(--accent);
  color: #fff;
  border: 2px solid var(--accent2);
  box-shadow: 0 8px 32px rgba(45,54,72,0.18);
  transform: translateY(-50%) scale(1.08);
}
.lightbox-prev {
  left: 2vw;
}
.lightbox-next {
  right: 2vw;
}
.lightbox-close {
  position: fixed;
  top: 32px;
  right: 48px;
  background: #fff;
  color: #222 !important;
  border: 2px solid #222;
  box-shadow: 0 4px 24px rgba(0,0,0,0.18);
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 32px;
  z-index: 10001;
  opacity: 0.97;
  transition: box-shadow 0.2s, background 0.2s, color 0.2s, transform 0.2s;
}
.lightbox-close:hover, .lightbox-close:focus {
  background: var(--accent2);
  color: #fff;
  border: 2px solid var(--accent);
  box-shadow: 0 8px 32px rgba(45,54,72,0.18);
  transform: scale(1.08);
}
.lightbox-close svg {
  width: 60%;
  height: 60%;
  color: inherit;
  display: block;
}
.lightbox-close svg line {
  stroke: #222 !important;
}
.lightbox-thumbs {
  display: none !important;
}
@media (max-width: 768px) {
  .lightbox-img-container {
    height: 60vh;
    min-height: 180px;
  }
  .lightbox img {
    max-width: 100vw;
    max-height: 60vh;
  }
  .lightbox-nav, .lightbox-close {
    width: 52px;
    height: 52px;
    font-size: 30px;
  }
  .lightbox-thumbs {
    max-width: 100vw;
    margin-top: 8px;
  }
  .lightbox-thumb {
    width: 28px;
    height: 18px;
  }
}
@media (max-width: 480px) {
  .lightbox-img-container {
    height: 44vh;
    min-height: 100px;
  }
  .lightbox img {
    max-width: 100vw;
    max-height: 44vh;
  }
  .lightbox-nav, .lightbox-close {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
  .lightbox-thumbs {
    margin-top: 4px;
  }
  .lightbox-thumb {
    width: 18px;
    height: 12px;
  }
}

/* Prevent body scroll when lightbox is open */
body.lightbox-open {
  overflow: hidden !important;
  position: fixed;
  width: 100%;
}

/* 360° Panorama container */
.panorama-360-container {
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 8px 40px 0 rgba(0,0,0,0.13);
  padding: 2.5rem 2rem 2.5rem 2rem;
  margin-bottom: 3.5rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  position: relative;
}

.panorama-360-container h3 {
  margin-bottom: 2rem;
  font-size: 2.2rem;
  color: var(--accent2);
  font-weight: 800;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* Panorama controls */
.panorama-controls {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.panorama-btn {
  background: var(--accent);
  color: var(--white);
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(127,200,195,0.3);
  font-size: 0;
}

.panorama-btn:hover {
  background: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(45,54,72,0.2);
}

.panorama-btn svg {
  width: 24px;
  height: 24px;
  color: var(--white);
}

.panorama-viewer {
  width: 100%;
  max-width: 820px;
  height: 500px;
  margin: 0 auto 0 auto;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 32px 0 rgba(0,0,0,0.13);
}

/* Mobile responsive */
@media (max-width: 900px) {
  .panorama-360-container { 
    padding: 1.2rem 0.2rem; 
    max-width: 100%; 
  }
  
  .panorama-viewer { 
    height: 300px; 
    max-width: 100%; 
  }
  
  .panorama-360-container h3 { 
    font-size: 1.3rem; 
    margin-bottom: 1rem; 
  }
  
  .panorama-controls {
    gap: 0.8rem;
    margin-bottom: 1rem;
  }
  
  .panorama-btn {
    width: 44px;
    height: 44px;
  }
}

/* Room grid layout */
.room-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 768px) {
  .room-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* Room card (booking details) */
.room-details-card {
  position: sticky;
  top: 6rem;
}

@media (max-width: 768px) {
  .room-details-card {
    position: static;
    order: -1;
  }
}

/* Room description */
.room-description {
  line-height: 1.8;
  color: var(--text-light);
  margin-bottom: 2rem;
}

/* Hero section for rooms */
.room-hero {
  min-height: 60vh;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent2) 100%);
}

.room-hero .hero-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  padding: 6rem 2rem 4rem 2rem;
}

.room-hero .hero-title {
  font-size: 3rem;
  color: var(--white);
}

.room-hero .hero-lead {
  color: rgba(255,255,255,0.9);
}

/* Booking details styling */
.booking-details {
  margin: 1.5rem 0;
}

.booking-detail-row {
  display: flex;
  margin-bottom: 0.05rem;
  gap: 0.05rem;
}

.booking-detail-row span {
  padding-right: 0.15em;
}

.booking-detail-row:last-of-type {
  margin-bottom: 1.5rem;
}

.booking-detail-row strong {
  color: var(--accent);
  font-size: 1.2rem;
  white-space: nowrap;
}

/* Buttons */
.booking-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.booking-buttons .hero-cta {
  width: 100%;
}

.booking-buttons .details-btn {
  width: 100%;
  text-align: center;
  display: block;
  text-decoration: none;
}

html, body {
  margin: 0;
  padding: 0;
}

@media (max-width: 600px) {
  .gallery {
    padding-left: 10vw !important;
    padding-right: 10vw !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  .gallery img {
    border-radius: 8px;
    box-shadow: none;
  }
  .room-details-card.room-card {
    display: block !important;
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding-left: 6vw !important;
    padding-right: 6vw !important;
    padding-top: 1.2rem !important;
    padding-bottom: 1.2rem !important;
    box-sizing: border-box !important;
    background-clip: padding-box !important;
  }
}

.room-header {
  text-align: center;
  margin-top: 100px;
  margin-bottom: -120px;
}

/* Responsywność dla nagłówków pokoi */
@media (max-width: 1024px) {
  .room-header {
    margin-top: 80px;
    margin-bottom: -100px;
  }
}

@media (max-width: 768px) {
  .room-header {
    margin-top: 60px;
    margin-bottom: -80px;
  }
}

@media (max-width: 480px) {
  .room-header {
    margin-top: 40px;
    margin-bottom: -60px;
  }
}

.room-title {
  text-align: center !important;
  font-size: 2.1rem !important;
  font-weight: 600 !important;
  color: var(--primary) !important;
  margin-bottom: 2.5rem !important;
  letter-spacing: 0.01em;
  position: relative;
  padding-bottom: 0.7rem;
}
.room-title::after {
  content: '';
  display: block;
  margin: 0 auto;
  margin-top: 0.5rem;
  width: 80px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
}

.room-details-card.room-card {
  padding: 1.2rem 1.2rem 1rem 1.2rem;
  margin-top: 1.2rem;
  margin-bottom: 0.1rem;
  box-sizing: border-box;
} 