/* ========================================
   Kentucky Rejuvenation Retreat 2027
   Brand overrides + custom components
   Tailwind handles most layout/utilities
   ======================================== */

/* --- Section label --- */
.section-label {
  display: inline-block;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #B56A43;
  margin-bottom: 8px;
}

/* --- Primary button --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: #B56A43;
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 10px 20px;
  font-family: 'Lato', Arial, sans-serif;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s, transform 0.25s, box-shadow 0.25s;
}
.btn-primary:hover {
  background: #9e5a36;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(181, 106, 67, 0.35);
}

/* --- Nav links --- */
.nav-link {
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.05em;
  color: #4A3528;
  transition: color 0.2s;
}
.nav-link:hover {
  color: #B56A43;
}

/* --- Activity badges — frosted glass style --- */
.activity-badge {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  padding: 7px 16px;
  font-weight: 900;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 5px;
  backdrop-filter: blur(4px);
}

/* --- Expect cards --- */
.expect-card {
  background: #fff;
  border: 1px solid #e6e0d7;
  border-radius: 12px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: box-shadow 0.25s;
}
.expect-card:hover {
  box-shadow: 0 4px 20px rgba(74, 53, 40, 0.08);
}

/* --- Gallery items --- */
.gallery-item {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #ddd5ca;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.gallery-item:hover img {
  transform: scale(1.05);
}

/* --- Lodging cards --- */
.lodging-card {
  background: #F9F7F3;
  border: 1px solid #e6e0d7;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  font-weight: 700;
  font-size: 15px;
  color: #4A3528;
}

/* --- Mobile nav toggle animation --- */
.nav-toggle-active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}
.nav-toggle-active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle-active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ========================================
   Ken Burns effect — hero background
   ======================================== */
.ken-burns {
  animation: kenBurns 24s ease-in-out infinite alternate;
}
@keyframes kenBurns {
  0%   { transform: scale(1) translate(0, 0); }
  100% { transform: scale(1.12) translate(-1.5%, -0.8%); }
}

/* ========================================
   Editor mode
   ======================================== */

/* Edit indicator on hover */
.editor-active [data-editable] {
  position: relative;
  cursor: pointer;
  transition: outline 0.15s;
}
.editor-active [data-editable]:hover {
  outline: 2px dashed rgba(181, 106, 67, 0.6);
  outline-offset: 3px;
}

/* Text editing */
.editor-active [data-editable="text"]:hover::after {
  content: '✎';
  position: absolute;
  top: -10px;
  right: -10px;
  background: #B56A43;
  color: #fff;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  pointer-events: none;
}
.editor-active [data-editable="text"].editing {
  outline: 2px solid #B56A43 !important;
  outline-offset: 4px;
  background: rgba(181, 106, 67, 0.04);
  cursor: text;
  border-radius: 4px;
}

/* Image editing */
.editor-active [data-editable="image"] {
  position: relative;
}
.editor-active [data-editable="image"]:hover {
  outline: 2px dashed rgba(181, 106, 67, 0.6);
  outline-offset: 3px;
  filter: brightness(0.9);
}
.editor-active [data-editable="image"]:hover::after {
  content: '↻ Replace';
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  background: #B56A43;
  color: #fff;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  z-index: 5;
  pointer-events: none;
  white-space: nowrap;
}

/* Editor toolbar banner */
.editor-toolbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #4A3528;
  color: #fff;
  padding: 8px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
  font-family: 'Lato', Arial, sans-serif;
}
.editor-toolbar button {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 6px;
  padding: 5px 14px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  transition: background 0.2s;
}
.editor-toolbar button:hover {
  background: rgba(255,255,255,0.25);
}
.editor-toolbar button.save-btn {
  background: #B56A43;
  border-color: #B56A43;
}
.editor-toolbar button.save-btn:hover {
  background: #9e5a36;
}

/* Auth modal */
.auth-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.auth-modal {
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  max-width: 380px;
  width: 90%;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}
.auth-modal h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  color: #4A3528;
  margin: 0 0 20px;
}
.auth-modal input {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid #e6e0d7;
  border-radius: 8px;
  font-size: 15px;
  margin-bottom: 12px;
  font-family: 'Lato', sans-serif;
}
.auth-modal input:focus {
  outline: none;
  border-color: #B56A43;
}
.auth-modal .auth-btns {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}
.auth-modal .auth-btns button {
  flex: 1;
  padding: 10px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  border: 0;
}
.auth-modal .login-btn {
  background: #B56A43;
  color: #fff;
}
.auth-modal .cancel-btn {
  background: #e6e0d7;
  color: #4A3528;
}
.auth-modal .error-msg {
  color: #c0392b;
  font-size: 13px;
  margin-top: 8px;
  display: none;
}

/* Media picker modal */
.media-picker-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.media-picker {
  background: #fff;
  border-radius: 16px;
  padding: 28px;
  max-width: 520px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}
.media-picker h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  color: #4A3528;
  margin: 0 0 16px;
}
.media-picker .url-input {
  width: 100%;
  padding: 10px 14px;
  border: 2px solid #e6e0d7;
  border-radius: 8px;
  font-size: 14px;
  margin-bottom: 12px;
  font-family: 'Lato', sans-serif;
}
.media-picker .url-input:focus {
  outline: none;
  border-color: #B56A43;
}
.media-picker .media-actions {
  display: flex;
  gap: 10px;
}
.media-picker .media-actions button {
  flex: 1;
  padding: 10px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  border: 0;
}
.media-picker .apply-btn {
  background: #B56A43;
  color: #fff;
}
.media-picker .cancel-btn {
  background: #e6e0d7;
  color: #4A3528;
}
.media-picker .media-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 16px;
}
.media-picker .media-gallery img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.15s;
}
.media-picker .media-gallery img:hover {
  border-color: #B56A43;
}

/* Body offset when editor toolbar is present */
body.editor-open {
  padding-top: 42px;
}

