/* Oxygen shortcode wrapper replaced the full-width code block. */
#shortcode-13-13775 { width: 100%; }
.ct-shortcode:has(.location-page-container) { width: 100%; }

html { scroll-behavior: smooth; }

#back-to-top-btn {
    position: fixed !important; bottom: 30px !important; right: 30px !important;
    z-index: 999999 !important; width: 48px !important; height: 48px !important;
    border: none !important; border-radius: 50% !important; background-color: #d71920 !important;
    color: #ffffff !important; cursor: pointer !important; display: flex !important;
    align-items: center !important; justify-content: center !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important; opacity: 0 !important;
    visibility: hidden !important; transform: translateY(10px) !important;
    transition: opacity 0.3s ease, transform 0.3s ease !important;
}
#back-to-top-btn.visible { opacity: 1 !important; visibility: visible !important; transform: translateY(0) !important; }

.location-gallery-toolbar {
    display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-bottom: 18px; flex-wrap: wrap;
}
.location-gallery-toolbar-label { font-size: 0.88rem; font-weight: 700; color: #a0aec0; margin-right: 4px; }
.location-limit-btn {
    padding: 6px 14px; border-radius: 999px; border: 1px solid #cbd5e1; background: #ffffff;
    color: #334155; font-size: 0.85rem; font-weight: 700; cursor: pointer; transition: all 0.2s ease;
}
.location-limit-btn:hover { background: #f1f5f9; border-color: #94a3b8; }
.location-limit-btn.is-active { background: #0f172a; border-color: #0f172a; color: #ffffff; }

.location-slideshow-start {
    margin-left: auto;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid #b91c1c;
    background: #d91f26;
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: filter .2s ease, transform .2s ease;
}
.location-slideshow-start:hover { filter: brightness(1.08); transform: translateY(-1px); }
.location-slideshow-start:disabled { opacity: .45; cursor: not-allowed; }

.location-gallery-wrapper, .gphotos-masonry-container, .gphotos-masonry-grid { overflow: visible !important; }
/* Legacy !important frame rules removed so the shared masonry styling below applies. */

.location-map-wrapper { margin-top: 35px; width: 100%; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 15px rgba(0,0,0,0.3); border: 1px solid rgba(255, 255, 255, 0.15); }
.location-map-wrapper iframe { width: 100%; height: 380px; border: 0; display: block; }

@media screen and (max-width: 768px) {
    .location-map-wrapper { display: none !important; }
    #back-to-top-btn { right: auto !important; left: 50% !important; bottom: 20px !important; transform: translateX(-50%) translateY(10px) !important; }
    #back-to-top-btn.visible { transform: translateX(-50%) translateY(0) !important; }
    .hero-bottom-bar { left: 15px !important; right: 15px !important; bottom: 15px !important; flex-wrap: wrap !important; justify-content: flex-end !important; }
    .location-gallery-toolbar { justify-content: center; }
    .location-slideshow-start { margin-left: 0; width: 100%; }
}

.gphotos-masonry-item.gphotos-item-hidden { display: none !important; }
.gallery-load-more-wrapper { text-align: center; margin: 35px 0 25px 0; }
.gallery-load-more-btn {
    background: #2b6cb0; color: #ffffff; border: none; padding: 14px 32px; font-size: 1.05rem;
    font-weight: 600; border-radius: 30px; cursor: pointer; box-shadow: 0 4px 12px rgba(0,0,0,0.25); transition: background-color 0.2s ease;
}
.gallery-load-more-btn:hover { background: #2c5282; }
.gallery-item-count-badge { margin-top: 10px; font-size: 0.9rem; color: #a0aec0; }

/* Custom Badges */
.custom-header-badge-pill {
    display: inline-flex !important; align-items: center !important; gap: 8px !important;
    background: rgba(0, 0, 0, 0.65) !important; backdrop-filter: blur(4px) !important;
    padding: 6px 14px !important; border-radius: 20px !important; border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important; font-weight: 600 !important; font-size: 0.9rem !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3) !important; line-height: 1 !important; transition: all 0.2s ease !important;
}
.custom-header-badge-pill:hover { background: rgba(0, 0, 0, 0.85) !important; border-color: rgba(255, 255, 255, 0.4) !important; }
.custom-header-badge-blog { background: #2563eb !important; border-color: rgba(255, 255, 255, 0.6) !important; }
.custom-header-badge-blog:hover { background: #1d4ed8 !important; transform: translateY(-2px) !important; }

/* YouTube Badge */
.custom-header-badge-youtube { background: #ff0000 !important; border-color: rgba(255, 255, 255, 0.6) !important; }
.custom-header-badge-youtube:hover { background: #cc0000 !important; transform: translateY(-2px) !important; }

/* YouTube Section Grid */
.location-youtube-section {
    margin-top: 45px;
    padding: 30px;
    background: #0f172a;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.location-youtube-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 20px 0;
}
.location-youtube-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
}
.location-youtube-card {
    background: #1e293b;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.4);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.location-youtube-embed-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}
.location-youtube-embed-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.location-youtube-card-title {
    padding: 12px 15px;
    color: #cbd5e1;
    font-size: 0.95rem;
    font-weight: 600;
    background: #1e293b;
}

#custom-lightbox-modal {
    position: fixed; inset: 0; z-index: 9999999; display: flex; align-items: center; justify-content: center;
    background: rgba(10, 15, 26, 0.94); backdrop-filter: blur(8px); opacity: 0; visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
#custom-lightbox-modal.is-open { opacity: 1; visibility: visible; }
.lb-content-stage { position: relative; width: 92%; height: 88%; overflow: hidden; }
.lb-media-element { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 6px; box-shadow: 0 20px 50px rgba(0,0,0,0.8); user-select: none; opacity: 1; transition: opacity 2s ease; }
.lb-media-element.lb-media-fade { opacity: 0; }
.lb-nav-btn {
    position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25); color: #fff; width: 54px; height: 54px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 10;
    transition: background 0.2s ease, transform 0.2s ease;
}
.lb-nav-btn:hover { background: rgba(255, 255, 255, 0.3); transform: translateY(-50%) scale(1.08); }
.lb-prev-btn { left: 20px; }
.lb-next-btn { right: 20px; }

.lb-top-controls {
    position: absolute; top: 20px; right: 25px; display: flex; align-items: center; gap: 14px; z-index: 10;
}
.lb-control-icon-btn {
    background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.25); color: #fff;
    padding: 8px 16px; border-radius: 20px; font-size: 0.9rem; font-weight: 600; cursor: pointer;
    display: flex; align-items: center; gap: 6px; transition: all 0.2s ease;
}
.lb-control-icon-btn:hover { background: rgba(255, 255, 255, 0.3); }

.lb-control-icon-btn.is-playing {
    background: #16a34a !important;
    border-color: rgba(255, 255, 255, 0.6) !important;
}

.lb-bottom-bar {
    position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.65); border: 1px solid rgba(255, 255, 255, 0.2); color: #fff;
    padding: 6px 18px; border-radius: 20px; font-size: 0.88rem; font-weight: 600; z-index: 10;
}
.location-hero-card {
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    width: 100% !important;
    min-height: 400px;
    padding: 40px;
    color: #fff;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
  }
  .action-btn-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #ffffff;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    text-decoration: none;
    transition: transform 0.2s ease, background-color 0.2s ease;
  }
  .action-btn-circle:hover {
    background-color: rgba(0, 0, 0, 0.85);
    transform: scale(1.08);
  }
  .gphotos-masonry-container { width: 100%; box-sizing: border-box; margin-top: 10px; }
  .gphotos-masonry-grid { column-count: 3; column-gap: 20px; width: 100%; }
  .gphotos-lightbox-trigger { display: block; border: 0; padding: 0; border-radius: 12px; text-decoration: none; }
  .gphotos-masonry-item { break-inside: avoid; box-sizing: border-box; margin-bottom: 20px; border: 1px solid rgba(255,255,255,0.28); border-radius: 12px; overflow: hidden; box-shadow: 0 4px 14px rgba(0,0,0,0.15); transition: transform 0.2s ease, box-shadow 0.2s ease; background: #1a202c; }
  .gphotos-masonry-item:hover { transform: translateY(-4px); box-shadow: 0 8px 22px rgba(0,0,0,0.25); }
  .gphotos-thumb-wrapper { position: relative; width: 100%; display: block; overflow: hidden; border-radius: 12px; }
  .gphotos-thumb-wrapper img { width: 100%; height: auto; display: block; border: 0; border-radius: inherit; }
  .gphotos-play-icon {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.55); color: #ffffff; border-radius: 50%; padding: 10px;
    display: flex; align-items: center; justify-content: center; backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px); border: 1px solid rgba(255, 255, 255, 0.3); pointer-events: none;
    transition: transform 0.2s ease, background-color 0.2s ease;
  }
  .gphotos-masonry-item:hover .gphotos-play-icon { transform: translate(-50%, -50%) scale(1.1); background: rgba(0, 0, 0, 0.75); }
  .gphotos-video-badge {
    position: absolute; bottom: 10px; right: 10px; background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px); color: #ffffff; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.8px;
    padding: 4px 8px; border-radius: 6px; display: flex; align-items: center; gap: 5px; border: 1px solid rgba(255, 255, 255, 0.2); pointer-events: none;
  }
  .gphotos-lightbox-modal { display: none; position: fixed; z-index: 999999; padding-top: 50px; left: 0; top: 0; width: 100%; height: 100%; overflow: auto; background-color: rgba(0, 0, 0, 0.9); backdrop-filter: blur(8px); }
  .gphotos-lightbox-container { display: flex; align-items: center; justify-content: center; height: 85vh; width: 100%; }
  .gphotos-lightbox-content { margin: auto; display: block; max-width: 90%; max-height: 85vh; border-radius: 8px; box-shadow: 0 0 20px rgba(0,0,0,0.5); }
  .gphotos-lightbox-close { position: absolute; top: 20px; right: 35px; color: #fff; font-size: 40px; font-weight: bold; cursor: pointer; transition: color 0.2s ease; z-index: 1000000; }
  .gphotos-lightbox-close:hover { color: #bbb; }
  .youtube-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; width: 100%; box-sizing: border-box; }
  .youtube-card { background: rgba(0,0,0,0.3); border-radius: 12px; overflow: hidden; border: 1px solid rgba(255,255,255,0.15); box-shadow: 0 4px 16px rgba(0,0,0,0.2); }
  .youtube-embed-container { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; }
  .youtube-embed-container iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }

  /* RETURN TO TOP BUTTON STYLES */
  .return-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 48px;
    height: 48px;
    background: rgba(18, 24, 38, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.2s ease, background-color 0.2s ease;
  }
  .return-to-top-btn.visible {
    opacity: 1;
    visibility: visible;
  }
  .return-to-top-btn:hover {
    background-color: rgba(18, 24, 38, 0.98);
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.4);
  }

  @media (max-width: 992px) { .gphotos-masonry-grid { column-count: 2; } }
  @media (max-width: 768px) {
    .youtube-grid { grid-template-columns: 1fr; }
    .return-to-top-btn { bottom: 20px; right: 20px; width: 42px; height: 42px; }
  }
  @media (max-width: 600px) { .gphotos-masonry-grid { column-count: 1; } }
