/* WordPress Admin Bar & Editorial Content Compatibility */

body.admin-bar .booking-box {
  top: 56px;
}

body.admin-bar .css-modal {
  z-index: 100001;
}

@media screen and (max-width: 782px) {
  body.admin-bar .booking-box {
    top: 24px;
  }
}

/* Legacy WordPress Posts & Pages Editorial Wrapper */
.wp-content-prose {
  font-size: 15px;
  line-height: 1.75;
  color: #334155;
}

.wp-content-prose h2,
.wp-content-prose h3,
.wp-content-prose h4 {
  color: var(--ink);
  font-weight: 800;
  line-height: 1.3;
  margin: 28px 0 12px;
}

.wp-content-prose p {
  margin: 0 0 16px;
}

.wp-content-prose ul,
.wp-content-prose ol {
  margin: 0 0 16px;
  padding-left: 22px;
}

.wp-content-prose a {
  color: var(--gold);
  text-decoration: underline;
}

.wp-content-prose img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

.wp-content-prose blockquote {
  margin: 22px 0;
  padding: 14px 18px;
  border-left: 3px solid var(--gold);
  background: #faf7f2;
  color: var(--ink);
}

/* Header Image Logo */
.header-top {
  align-items: center;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-logo-img {
  height: 56px;
  width: auto;
  display: block;
  object-fit: contain;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.15;
}

.brand-title {
  font-family: inherit;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.brand-tagline {
  font-family: inherit;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--muted);
}

@media (max-width: 640px) {
  .brand-logo-img {
    height: 46px;
  }

  .brand-title {
    font-size: 16px;
  }

  .brand-tagline {
    font-size: 11px;
  }

  .main-nav {
    flex-wrap: wrap;
    gap: 8px 20px;
  }
}

a.nav-trigger {
  cursor: pointer;
}

a.nav-trigger:hover,
.nav-trigger.is-active {
  border-bottom-color: var(--gold);
  color: var(--ink);
}

/* Minimalist Photo-Only Gallery */
.gallery-filter-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 16px;
}

.gallery-filter-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.gallery-filter-link:hover,
.gallery-filter-link.is-active {
  color: var(--ink);
  border-bottom-color: var(--gold);
  font-weight: 700;
}

.gallery-memories-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

@media (max-width: 960px) {
  .gallery-memories-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.gallery-photo-tile {
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  overflow: hidden;
  background: #f1f5f9;
}

.gallery-photo-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.gallery-photo-tile:hover img {
  transform: scale(1.03);
}

/* Standalone CMS — Full-Height Split-Rail Studio (/cms/) */
.cms-studio-body {
  margin: 0;
  background: #ffffff;
  color: #111111;
  font-variant-numeric: tabular-nums;
}

.cms-studio-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.cms-header {
  position: sticky;
  top: 0;
  z-index: 35;
  height: 56px;
  background: #ffffff;
  border-bottom: 1px solid #eaeaea;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cms-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.cms-header-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.cms-header-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #111111;
  white-space: nowrap;
}

.cms-header-right {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  flex-shrink: 0;
}

.cms-header-user {
  font-weight: 600;
  color: #111111;
}

.cms-header-link {
  color: #666666;
  transition: color 0.12s ease;
}

.cms-header-link:hover {
  color: #111111;
}

.cms-studio-body-grid {
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  flex: 1;
}

.cms-rail {
  background: #fafafa;
  border-right: 1px solid #eaeaea;
  display: flex;
  flex-direction: column;
  padding: 16px 12px;
  position: sticky;
  top: 56px;
  height: calc(100vh - 56px);
  overflow-y: auto;
}

.cms-rail-head {
  display: none;
}

.cms-rail-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #111111;
}

.cms-rail-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cms-rail-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #666666;
  transition: background-color 0.12s ease, color 0.12s ease;
}

.cms-rail-link:hover {
  background: #f2f2f2;
  color: #111111;
}

.cms-rail-link.is-active {
  background: #efefef;
  color: #111111;
  font-weight: 600;
}

.cms-rail-footer {
  display: none;
  margin-top: auto;
  padding: 14px 10px 0;
  border-top: 1px solid #eaeaea;
  flex-direction: column;
  gap: 6px;
}

.cms-rail-user {
  font-size: 12px;
  font-weight: 600;
  color: #111111;
}

.cms-rail-links {
  display: flex;
  gap: 14px;
  font-size: 12px;
  color: #666666;
}

.cms-rail-links a:hover {
  color: #111111;
}

.cms-workspace {
  padding: 32px 40px 64px;
  min-width: 0;
}

.cms-workspace-inner {
  max-width: 1040px;
  margin: 0 auto;
}

.cms-metric-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border: 1px solid #eaeaea;
  border-radius: 8px;
  background: #ffffff;
  margin-bottom: 24px;
  overflow: hidden;
}

.cms-metric-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  border-right: 1px solid #eaeaea;
  transition: background-color 0.12s ease;
}

.cms-metric-cell:last-child {
  border-right: none;
}

.cms-metric-cell:hover {
  background: #fafafa;
}

.cms-metric-label {
  font-size: 12px;
  color: #666666;
}

.cms-metric-val {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #111111;
}

.cms-studio-body .admin-card {
  background: #ffffff;
  border: 1px solid #eaeaea;
  border-radius: 8px;
  padding: 20px 24px;
  box-shadow: none;
}

.cms-studio-body .admin-table th {
  border-bottom: 1px solid #eaeaea;
  color: #666666;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.cms-studio-body .admin-table td {
  border-bottom: 1px solid #f2f2f2;
}

.cms-studio-body .btn-primary {
  background: #111111;
  color: #ffffff;
  border-radius: 6px;
  padding: 8px 14px;
  font-weight: 600;
}

.cms-studio-body .btn-primary:hover {
  background: #2b2b2b;
}

.cms-studio-body .btn-outline {
  border-color: #e2e2e2;
  border-radius: 6px;
  color: #111111;
}

.cms-studio-body .btn-outline:hover {
  background: #f5f5f5;
}

.cms-studio-body .btn-danger {
  border-radius: 6px;
  background: #ffffff;
  border: 1px solid #fecaca;
  color: #b91c1c;
}

.cms-studio-body .btn-danger:hover {
  background: #fef2f2;
}

.cms-studio-body .form-field input,
.cms-studio-body .form-field textarea,
.cms-studio-body .form-field select {
  border-color: #e2e2e2;
  border-radius: 6px;
  background: #ffffff;
}

.cms-studio-body .form-field input:focus,
.cms-studio-body .form-field textarea:focus,
.cms-studio-body .form-field select:focus {
  outline: none;
  border-color: #111111;
}

.cms-nav-toggle,
.cms-menu-btn,
.cms-rail-backdrop,
.cms-rail-close {
  display: none;
}

.cms-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid #e2e2e2;
  border-radius: 6px;
  background: #ffffff;
  color: #333333;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.cms-icon-btn:hover {
  background: #f5f5f5;
  border-color: #cccccc;
  color: #111111;
}

.cms-icon-btn--pinned {
  background: #111111;
  border-color: #111111;
  color: #ffffff;
}

.cms-icon-btn--pinned:hover {
  background: #27272a;
  border-color: #27272a;
  color: #ffffff;
}

.cms-icon-btn--danger {
  border-color: #fecaca;
  color: #b91c1c;
}

.cms-icon-btn--danger:hover {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #991b1b;
}

@media (max-width: 860px) {
  .cms-header {
    padding: 0 14px;
  }

  .cms-header-user {
    display: none;
  }

  .cms-header-right {
    gap: 12px;
  }

  .cms-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    color: #111111;
    cursor: pointer;
  }

  .cms-menu-btn:hover {
    background: #f2f2f2;
  }

  .cms-studio-body-grid {
    grid-template-columns: 1fr;
  }

  .cms-rail {
    position: fixed;
    inset: 0 auto 0 0;
    width: 256px;
    max-width: 82vw;
    height: 100dvh;
    top: 0;
    z-index: 50;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12);
    overflow-y: auto;
  }

  .cms-rail-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 4px 10px 16px;
    border-bottom: 1px solid #eaeaea;
    margin-bottom: 10px;
  }

  .cms-rail-footer {
    display: flex;
  }

  .cms-rail-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    font-size: 16px;
    color: #666666;
    cursor: pointer;
  }

  .cms-rail-close:hover {
    background: #efefef;
    color: #111111;
  }

  .cms-nav-toggle:checked ~ .cms-studio-body-grid .cms-rail {
    transform: translateX(0);
  }

  .cms-nav-toggle:checked ~ .cms-rail-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 40;
    background: rgba(0, 0, 0, 0.35);
    cursor: pointer;
  }

  .cms-workspace {
    padding: 18px 14px 48px;
  }

  .cms-studio-body .admin-card {
    padding: 16px;
  }

  .cms-metric-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cms-metric-cell {
    border-bottom: 1px solid #eaeaea;
  }
}

.admin-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.cms-stats-5 {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

@media (max-width: 960px) {
  .cms-stats-5 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.cms-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 960px) {
  .cms-dashboard-grid {
    grid-template-columns: 1fr;
  }
}

.cms-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

@media (max-width: 1080px) {
  .cms-gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .cms-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
}

.cms-gallery-item {
  border: 1px solid #eaeaea;
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.cms-gallery-item-photo {
  aspect-ratio: 4 / 3;
  background: #f1f5f9;
  overflow: hidden;
}

.cms-gallery-item-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cms-gallery-item-body {
  padding: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}

.cms-gallery-cat-form {
  display: flex;
  gap: 4px;
  align-items: center;
  flex: 1;
  min-width: 0;
}

.cms-gallery-del-form {
  display: flex;
  flex-shrink: 0;
}

.cms-gallery-select {
  flex: 1;
  min-width: 0;
  width: 100%;
  height: 30px;
  padding: 0 6px;
  border: 1px solid #e2e2e2;
  border-radius: 6px;
  font-size: 12px;
  background: #ffffff;
  color: #111111;
  text-overflow: ellipsis;
}

@media (max-width: 720px) {
  .cms-gallery-item-body {
    padding: 6px;
    gap: 4px;
  }

  .cms-gallery-select {
    height: 26px;
    font-size: 11px;
    padding: 0 4px;
  }

  .cms-gallery-item-body .cms-icon-btn {
    width: 26px;
    height: 26px;
  }

  .cms-gallery-item-body .cms-icon-btn svg {
    width: 12px;
    height: 12px;
  }
}

.cms-thumb-preview {
  width: 56px;
  height: 40px;
  object-fit: cover;
  border-radius: 4px;
  display: block;
  background: #f1f5f9;
}

.cms-section-box {
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.cms-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.cms-badge-yes {
  font-size: 12px;
  font-weight: 600;
  color: #166534;
}

.cms-badge-no {
  font-size: 12px;
  color: var(--muted);
}

/* ================= FULL-BLEED VISIT BALI HERO & TRANSPARENT HEADER ================= */
.site-header.site-header--overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.72) 0%,
    rgba(255, 255, 255, 0.36) 65%,
    rgba(255, 255, 255, 0) 100%
  );
  border-bottom: none;
}

.admin-bar .site-header.site-header--overlay {
  top: 32px;
}

@media (max-width: 782px) {
  .admin-bar .site-header.site-header--overlay {
    top: 46px;
  }
}

.site-header.site-header--overlay .main-nav {
  border-bottom: 1px solid rgba(15, 23, 42, 0.12);
  justify-content: flex-end;
}

.site-header.site-header--overlay .brand-title,
.site-header.site-header--overlay .nav-trigger,
.site-header.site-header--overlay .locale-trigger {
  color: #0f172a;
}

.site-header.site-header--overlay .brand-tagline {
  color: #334155;
}

.site-header.site-header--overlay .locale-trigger:hover {
  background: rgba(255, 255, 255, 0.55);
}

/* Hide legacy floating WhatsApp plugin widget */
#qlwapp,
.qlwapp {
  display: none !important;
}

.visit-bali-hero {
  position: relative;
  width: 100%;
  min-height: 102svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background-size: cover;
  background-position: center 54%;
  background-repeat: no-repeat;
  overflow: hidden;
  padding-top: 150px;
  padding-bottom: 92px;
}

.visit-bali-hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    255deg,
    rgba(10, 18, 28, 0.5) 0%,
    rgba(10, 18, 28, 0.22) 34%,
    rgba(10, 18, 28, 0.04) 62%,
    rgba(10, 18, 28, 0) 100%
  );
  pointer-events: none;
  z-index: 1;
}

.visit-bali-hero-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 26%;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.48) 42%,
    rgba(255, 255, 255, 0.88) 78%,
    #ffffff 100%
  );
  pointer-events: none;
  z-index: 2;
}

.visit-bali-hero-inner {
  position: relative;
  z-index: 3;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 96px;
}

.visit-bali-hero-main {
  max-width: 600px;
  margin-left: auto;
  text-align: right;
}

.visit-bali-title {
  margin: 0 0 22px;
  font-size: clamp(56px, 8.2vw, 112px);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.035em;
  color: #ffffff;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.28);
}

.visit-bali-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.visit-bali-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 6px;
  background: #111111;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.visit-bali-btn-primary:hover {
  background: #27272a;
}

.visit-bali-btn-secondary {
  display: inline-flex;
  align-items: center;
  padding: 11px 20px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(15, 23, 42, 0.14);
  color: #111111;
  font-size: 13px;
  font-weight: 600;
  backdrop-filter: blur(8px);
  transition: background-color 0.15s ease;
}

.visit-bali-btn-secondary:hover {
  background: #ffffff;
}

.visit-bali-pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding-top: 22px;
  border-top: 1px solid rgba(15, 23, 42, 0.12);
}

.visit-bali-pillar {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.visit-bali-pillar-num {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.04em;
  padding-top: 2px;
  flex-shrink: 0;
}

.visit-bali-pillar-title {
  font-size: 13px;
  font-weight: 700;
  color: #111111;
  margin-bottom: 4px;
}

.visit-bali-pillar-desc {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
  color: #475569;
}

.guide-hero-copy h3 {
  margin: 0 0 12px;
  font-size: 26px;
  line-height: 1.25;
  font-weight: 800;
  color: var(--ink);
}

@media (max-width: 860px) {
  .site-header.site-header--overlay .main-nav {
    justify-content: flex-start;
  }

  .visit-bali-hero {
    min-height: 96svh;
    padding-top: 156px;
    padding-bottom: 32px;
    background-position: 42% 46%;
  }

  .visit-bali-hero-inner {
    gap: 36px;
  }

  .visit-bali-hero-main {
    margin-left: 0;
    text-align: left;
  }

  .visit-bali-lead {
    margin: 0 0 24px;
  }

  .visit-bali-actions {
    justify-content: flex-start;
  }

  .visit-bali-pillars {
    grid-template-columns: 1fr;
    gap: 14px;
    padding-top: 16px;
  }
}
