/* Language visibility toggle */
.text-hu {
  display: none;
}

/* Site Header */
.top-row-header {
  display: flex;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #ffffff;
  width: 100%;
  padding: 0.5rem 1.5rem;
  box-sizing: border-box;
}

.top-row-header .logo-link {
  width: 35%;
  display: block;
  transition: opacity 0.2s ease;
}

.top-row-header .logo-link:hover {
  opacity: 0.85;
}

.top-row-header .logo {
  width: 100%;
  display: block;
}

.top-row-header .button {
  margin-left: auto;
  margin-right: 1rem;
  white-space: nowrap;
}

.top-row-header img.cards {
  width: 18%;
  margin-right: auto;
  display: block;
}

.top-row-header .langabs {
  display: flex;
  align-items: center;
  line-height: 1;
}

.top-row-header .langabs img {
  width: 1.5rem;
  display: block;
}

@media (max-width: 800px) {
  .top-row-header {
    justify-content: space-between;
    padding: 0.35rem 0.5rem;
  }

  .top-row-header .button {
    margin: 0;
    font-size: 0.8rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }

  .top-row-header img.cards {
    margin: 0;
  }

  .top-row-header .langabs img {
    width: 1.25rem;
  }
}

.center,
h2 {
  text-align: center;
}

/* Hero Carousel / Swiper */
.swiper {
  width: 100vw;
  height: 60vh;
}

.swiper-slide {
  width: 100%;
  height: 100%;
  position: relative;
  text-align: center;
}

.swiper-slide img {
  width: 100%;
  display: block;
}

.img-container {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.img-container > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 5s ease;
  transform: scale(1);
}

.swiper-slide-active .img-container > img {
  transform: scale(1.1);
}

.caption {
  position: absolute;
  bottom: 25px;
  left: 0;
  right: 0;
  width: 100%;
  color: white;
  font-size: 1.5rem;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.7);
  padding: 0 1.5rem;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  box-sizing: border-box;
  pointer-events: none;
  z-index: 5;
  opacity: 0;
  transition: opacity 1.5s ease;
}

.swiper-slide-active .caption {
  opacity: 1;
}

.caption-badge-wrap {
  margin-left: auto;
  width: 20%;
  max-width: 20%;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  pointer-events: auto;
}

.caption-badge-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.caption-badge-img:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5);
}

.caption-badge-img.airbnb-badge {
  background-color: #ffffff;
  border: 6px solid #ffffff;
  box-sizing: border-box;
}

.caption-badge-img.booking-badge {
  background-color: #003b95;
}

@media (max-width: 768px) {
  .caption {
    bottom: 18px;
    padding: 0 0.75rem;
  }

  .caption-badge-wrap {
    width: 30%;
    max-width: 30%;
  }
}

/* Apartment Cards & Rows on Index */
.apartment-card {
  transition: transform 0.3s ease;
  cursor: pointer;
  overflow: hidden;
  border-radius: 8px;
}

.apartment-card img {
  border-radius: 8px;
  object-fit: cover;
}

.apartment-card:hover {
  transform: scale(1.03);
}

.apartment-card-link,
.apartment-title-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.apartment-card-link:hover,
.apartment-title-link:hover {
  color: inherit;
}

.apartment-cta-btn {
  border-color: #5e4773 !important;
  color: #5e4773 !important;
  font-weight: 600;
  background: transparent;
  transition: all 0.2s ease;
}

.apartment-cta-btn:hover {
  background-color: #5e4773 !important;
  color: #ffffff !important;
}

.apartment-row {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2rem !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.3s ease;
}

@media (min-width: 769px) {
  .apartment-row.is-reversed {
    flex-direction: row-reverse;
  }
}

.apartment-row:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.apartment-row:last-child {
  margin-bottom: 0 !important;
}

.apartment-details {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 0 0;
}

.apartment-details li {
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
  color: #4a4a4a;
  position: relative;
  padding-left: 1.25rem;
  line-height: 1.5;
}

.apartment-details li::before {
  content: '•';
  color: #5e4773;
  font-weight: bold;
  position: absolute;
  left: 0.25rem;
}

.apartment-size-tag {
  background-color: #ede7f6;
  color: #5e4773;
  font-weight: 600;
  border-radius: 20px;
  padding: 0.2rem 0.75rem;
  font-size: 0.85rem;
  display: inline-block;
  margin-left: 0.5rem;
  vertical-align: middle;
  white-space: nowrap;
}

.apartment-size-tag:first-child {
  margin-left: 0;
}

.apartment-occupancy-tag {
  background-color: #f1f8e9;
  color: #33691e;
  font-weight: 600;
  border-radius: 20px;
  padding: 0.2rem 0.75rem;
  font-size: 0.85rem;
  display: inline-block;
  margin-left: 0.4rem;
  vertical-align: middle;
  white-space: nowrap;
}

.apartment-occupancy-tag.text-hu {
  display: none;
}

@media (max-width: 768px) {
  .apartment-row {
    padding: 1rem;
    margin-bottom: 1.5rem !important;
  }
}

.gallery-section {
  background-color: #f5f5f5;
  padding: 3rem 1.5rem;
}

.gallery-section .container {
  max-width: 1040px;
}

.gallery-title {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 2rem;
  color: white;
  background-color: #5e4773;
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-title h1,
.gallery-title .title {
  margin-bottom: 0 !important;
}

.custom-foglalas {
  background-color: #007bff;
  color: white;
  border: none;
}

.custom-foglalas:hover {
  background-color: #0069d9;
}

/* Shimmer Light-Beam Button (.btn-shimmer) */
.btn-shimmer {
  position: relative;
  overflow: hidden;
  transform: translateZ(0);
}

.btn-shimmer::after {
  content: '';
  position: absolute;
  top: -60%;
  left: -120%;
  width: 60%;
  height: 220%;
  background: linear-gradient(90deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.45) 50%,
      rgba(255, 255, 255, 0) 100%);
  transform: rotate(25deg);
  animation: bulma-shimmer-sweep 3.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  pointer-events: none;
}

@keyframes bulma-shimmer-sweep {
  0% {
    left: -120%;
  }

  30%,
  100% {
    left: 240%;
  }
}

/* ==========================================================================
   Apartment Subpage & Booking.com Gallery Styles
   ========================================================================== */

/* Property Header Card */
.property-header-card {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.property-header-card h1 {
  font-size: 1.85rem;
  font-weight: 700;
  color: #363636;
  margin-bottom: 0.25rem;
}

/* Booking.com 5-Photo Mosaic Grid */
.booking-gallery-container {
  margin-bottom: 2rem;
}

.booking-photo-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 200px 200px;
  gap: 8px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  background-color: #e2e8f0;
}

.grid-photo-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background-color: #cbd5e0;
}

.grid-photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.grid-photo-item:hover img {
  transform: scale(1.04);
}

.grid-photo-hero {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
}

.grid-photo-more-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-align: center;
  padding: 1rem;
}

.more-photos-count {
  font-size: 1.1rem;
  font-weight: 700;
}

@media (max-width: 900px) {
  .booking-photo-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 220px 130px 130px;
  }

  .grid-photo-hero {
    grid-column: 1 / 3;
    grid-row: 1 / 2;
  }
}

@media (max-width: 600px) {
  .booking-photo-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 200px 105px 105px;
    gap: 6px;
  }

  .grid-photo-hero {
    grid-column: 1 / 3;
    grid-row: 1 / 2;
  }

  .grid-photo-more-overlay {
    padding: 0.5rem;
  }

  .more-photos-count {
    font-size: 0.95rem;
  }
}

/* Lightbox Modal Dialog */
dialog.lightbox-dialog {
  border: none;
  background: transparent;
  padding: 0;
  margin: auto;
  max-width: 95vw;
  max-height: 95vh;
  width: 1050px;
  color: #ffffff;
  outline: none;
}

dialog:modal {
  overscroll-behavior: contain;
}

dialog.lightbox-dialog::backdrop {
  overflow: hidden;
  overscroll-behavior: contain;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: rgba(0, 0, 0, 0.9);
}

.lightbox-content-wrapper {
  display: flex;
  flex-direction: column;
  height: 90vh;
  max-height: 820px;
  position: relative;
  background: rgba(18, 22, 28, 0.9);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.lightbox-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1rem;
  background: rgba(10, 12, 16, 0.8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.lightbox-title {
  font-weight: 600;
  font-size: 1rem;
  color: #ffffff;
  margin: 0;
}

.lightbox-counter {
  background: rgba(255, 255, 255, 0.15);
  padding: 0.15rem 0.6rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #ffffff;
}

.lightbox-close-btn {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 1.2rem;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-close-btn:hover {
  background: rgba(255, 255, 255, 0.25);
}

.lightbox-stage {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 0.5rem;
}

.lightbox-main-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  user-select: none;
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
}

.lightbox-nav-btn:hover {
  background: #5e4773;
}

.lightbox-prev-btn {
  left: 12px;
}

.lightbox-next-btn {
  right: 12px;
}

.lightbox-bottombar {
  background: rgba(10, 12, 16, 0.85);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.5rem 1rem;
}

.lightbox-caption-text {
  text-align: center;
  font-size: 0.9rem;
  color: #e2e8f0;
  margin-bottom: 0.4rem;
  min-height: 1.2rem;
}

.lightbox-thumbs-carousel {
  display: flex;
  gap: 6px;
  justify-content: center;
  overflow-x: auto;
  padding-bottom: 2px;
}

.lightbox-thumb {
  flex: 0 0 56px;
  height: 40px;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.5;
  border: 2px solid transparent;
  transition: all 0.2s ease;
}

.lightbox-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lightbox-thumb:hover {
  opacity: 0.85;
}

.lightbox-thumb.is-active {
  opacity: 1;
  border-color: #ffffff;
}

/* Property Details Section */
.property-details-container {
  width: 100%;
  margin-top: 1.5rem;
  margin-bottom: 2.5rem;
}

.property-details-box {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.property-detail-card {
  border-radius: 8px;
  height: 100%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.property-detail-card .card-bullet-list {
  list-style-type: disc !important;
  margin-left: 1.25rem !important;
  padding-left: 0 !important;
}

.property-detail-card .card-bullet-list li {
  list-style-type: disc !important;
  margin-bottom: 0.2rem;
  line-height: 1.4;
}

.details-section-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #363636;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 0.4rem;
  border-bottom: 2px solid #ede7f6;
}

/* Other apartments bottom section */
.other-apartments-section {
  background-color: #f5f5f5;
  padding: 3rem 1.5rem;
  margin-top: 2rem;
}

.other-apartments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.other-apt-card {
  background-color: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.other-apt-card:hover,
.property-detail-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
  color: inherit;
}

.other-apt-card-img {
  height: 150px;
  overflow: hidden;
}

.other-apt-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.other-apt-card-body {
  padding: 0.85rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.other-apt-card-title {
  font-weight: 700;
  font-size: 1rem;
  color: #1a202c;
  margin-bottom: 0.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
}

.other-apt-card-name {
  white-space: nowrap;
}

.other-apt-card-tags {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.other-apt-card-tags .apartment-size-tag,
.other-apt-card-tags .apartment-occupancy-tag {
  font-size: 0.78rem;
  padding: 0.15rem 0.55rem;
  margin-left: 0.35rem;
  white-space: nowrap;
}

/* Awards & Review Badges Section */
.awards-badges-section {
  padding: 1.5rem 0 2rem 0;
}

.award-badge-col {
  display: flex;
  justify-content: center;
  align-items: center;
}

.award-badge-img {
  width: 100%;
  max-width: 200px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: block;
}

.award-badge-img:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
}

.award-badge-img.airbnb-badge {
  border: 10px solid #ffffff;
  background-color: #ffffff;
  box-shadow: 0 0 0 1px #e5e7eb, 0 4px 12px rgba(0, 0, 0, 0.08);
  box-sizing: border-box;
}

.award-badge-img.airbnb-badge:hover {
  box-shadow: 0 0 0 1px #d1d5db, 0 8px 20px rgba(0, 0, 0, 0.14);
}

.award-badge-img.booking-badge {
  background-color: #003b95;
}
