:root {
  --pure-black: #000000;
  --apple-black: #1d1d1f;
  --apple-dark-gray: #5a6067;
  --apple-gray: #92989f;
  --apple-light-gray: #e7eaed;
  --apple-border: #bfc4ca;
  --pure-white: #ffffff;
  
  --status-pending: #92989f;
  --status-confirmed: #000000;
  --status-cancelled: #b30000;

  --radius-sf: 12px;
  --radius-lg: 22px;
  --sf-transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; min-height: 100%; background: linear-gradient(180deg, #f5f7f9 0%, #e9edf1 100%); }
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: linear-gradient(180deg, #f7f8fa 0%, #eef1f5 100%);
  color: var(--apple-black);
  line-height: 1.47059;
  font-weight: 400;
  letter-spacing: -0.022em;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; transition: var(--sf-transition); }

.container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 22px; }
main.container { padding-top: 60px; padding-bottom: 80px; flex: 1 0 auto; }

header {
  background: linear-gradient(180deg, rgba(245, 247, 249, 0.96), rgba(229, 233, 238, 0.96));
  position: sticky; top: 0; z-index: 999;
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(191, 196, 202, 0.7);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.8);
}
.site-title { display: flex; align-items: center; justify-content: space-between; height: 52px; }
.site-title h1 { font-size: 15px; font-weight: 600; color: var(--pure-black); }

nav { display: flex; align-items: center; gap: 24px; }
nav a { font-size: 12px; font-weight: 400; color: var(--apple-black); opacity: 0.8; }
nav a:hover { opacity: 1; color: var(--pure-black); }
nav a.nav-btn-action { background-color: var(--pure-black); color: var(--pure-white) !important; padding: 5px 12px; border-radius: 999px; font-size: 11px; opacity: 1; }
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(145, 152, 159, 0.35);
  border-radius: 14px;
  background: rgba(255,255,255,0.9);
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 3px 0;
  background: var(--apple-black);
  border-radius: 999px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}
.site-title { position: relative; }
.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.site-nav.open {
  display: flex;
}

.hero-carousel {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  width: 100%;
  max-width: 1036px;
  aspect-ratio: 16 / 9;
  height: auto;
  box-shadow: 0 20px 40px rgba(15,20,36,0.14);
  margin: 0 auto;
}
.hero-carousel .carousel-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.6s ease;
}
.hero-carousel .carousel-slide {
  flex: 0 0 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 100%;
  height: 100%;
  position: relative;
}
.hero-carousel .carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.hero-carousel .carousel-caption {
  display: none;
}
.hero-carousel .carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: rgba(0,0,0,0.55);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-carousel .carousel-control.prev { left: 14px; }
.hero-carousel .carousel-control.next { right: 14px; }
.hero-carousel .carousel-indicators {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 2;
}
.hero-carousel .carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.35);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.hero-carousel .carousel-indicators button.active {
  background: rgba(255,255,255,0.95);
  transform: scale(1.1);
}

.page-intro { display: grid; grid-template-columns: 1fr; margin-bottom: 56px; }
.badge { display: inline-block; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; color: #7f858d; margin-bottom: 12px; }
.page-intro h2 { font-size: 40px; font-weight: 700; line-height: 1.1; letter-spacing: -0.04em; color: var(--pure-black); margin-bottom: 12px; }
.page-intro p { font-size: 20px; color: #6d737b; font-weight: 400; }

.cta, button, input[type=submit] {
  display: inline-flex; align-items: center; justify-content: center;
  background-color: var(--pure-black); color: var(--pure-white);
  padding: 12px 24px; font-size: 14px; font-weight: 500; border-radius: 999px; border: none; cursor: pointer; transition: var(--sf-transition);
}
.cta:hover, button:hover, input[type=submit]:hover { background-color: #2a2e33; transform: scale(1.01); }

.rooms-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; margin-top: 40px; }
.room-card { background: linear-gradient(145deg, #e6ebee 0%, #d9dde2 34%, #eef2f5 72%, #f8fafc 100%); border-radius: var(--radius-lg); padding: 36px; display: flex; flex-direction: column; justify-content: center; align-items: center; min-height: 260px; text-align: center; transition: var(--sf-transition); border: 1px solid rgba(184, 191, 198, 0.88); background-image: linear-gradient(145deg, #e6ebee 0%, #d9dde2 34%, #eef2f5 72%, #f8fafc 100%), repeating-linear-gradient(90deg, rgba(255,255,255,0.08), rgba(255,255,255,0.08) 1px, transparent 1px, transparent 5px); background-blend-mode: normal, overlay; background-size: auto, 100% 24px; box-shadow: 0 18px 30px rgba(0, 0, 0, 0.18), inset 0 -12px 20px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255,255,255,0.72); transform: translateZ(0); }
.room-card:hover { background: linear-gradient(145deg, #eef2f6 0%, #e1e6eb 40%, #f2f6f9 100%); border-color: rgba(166, 174, 182, 0.96); box-shadow: 0 26px 60px rgba(0, 0, 0, 0.28), inset 0 -12px 20px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255,255,255,0.8); transform: translateY(-3px); }
.room-card h3 { font-size: 22px; font-weight: 600; color: var(--pure-black); margin-bottom: 8px; }
.room-card p { font-size: 14px; color: var(--apple-dark-gray); flex-grow: 1; margin: 0; }
.room-price { font-size: 16px; font-weight: 600; color: var(--pure-black); margin-top: 16px; }

.info-card { background: linear-gradient(180deg, #edf2f6 0%, #dfe5eb 38%, #eff4f8 100%); border-radius: var(--radius-lg); padding: 40px; margin-bottom: 24px; border: 1px solid rgba(184, 191, 198, 0.9); box-shadow: 0 16px 36px rgba(0,0,0,0.15), inset 0 -12px 20px rgba(0, 0, 0, 0.08), inset 0 0 0 1px rgba(255,255,255,0.65); background-image: linear-gradient(180deg, #edf2f6 0%, #dfe5eb 38%, #eff4f8 100%), repeating-linear-gradient(90deg, rgba(255,255,255,0.08), rgba(255,255,255,0.08) 1px, transparent 1px, transparent 10px); background-blend-mode: normal, overlay; background-size: auto, 100% 28px; transform: translateZ(0); }

.events-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 24px; }
.event-card-link { display: block; color: inherit; text-decoration: none; }
.event-card { position: relative; min-height: 320px; border-radius: var(--radius-lg); overflow: hidden; display: flex; align-items: flex-end; background-size: cover; background-position: center; transition: transform 0.3s ease, box-shadow 0.3s ease; box-shadow: 0 16px 20px rgba(0,0,0,0.28); }
.event-card::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10,11,13,0.06) 0%, rgba(10,11,13,0.45) 100%); }
.event-card-overlay { position: relative; z-index: 1; padding: 28px; color: #fff; width: 100%; background: rgba(0,0,0,0.28); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); }
.event-card h3 { margin: 0 0 10px; font-size: 24px; line-height: 1.1; }
.event-card p { margin: 0 0 12px; color: rgba(255,255,255,0.92); }
.event-category { display: inline-flex; margin-bottom: 12px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.14em; color: rgba(255,255,255,0.92); }
.event-date { font-size: 14px; margin-bottom: 16px; color: rgba(255,255,255,0.85); }
.event-card-link:hover .event-card { transform: translateY(-4px); box-shadow: 0 16px 24px rgba(0,0,0,0.38); }

.trustees-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 28px; margin-top: 24px; }
.trustee-card { background: linear-gradient(180deg, #e9eef2 0%, #d7dee4 40%, #eef4f8 100%); border-radius: var(--radius-lg); overflow: hidden; transition: var(--sf-transition); border: 1px solid rgba(184, 191, 198, 0.88); box-shadow: 0 14px 40px rgba(0,0,0,0.16), inset 0 -12px 20px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255,255,255,0.75); background-image: linear-gradient(180deg, #e9eef2 0%, #d7dee4 40%, #eef4f8 100%), repeating-linear-gradient(90deg, rgba(255,255,255,0.08), rgba(255,255,255,0.08) 1px, transparent 1px, transparent 8px); background-blend-mode: normal, overlay; background-size: auto, 100% 24px; transform: translateZ(0); }
.trustee-card img { width: 100%; height: 240px; object-fit: cover; display: block; }
.trustee-card h4 { font-size: 18px; font-weight: 700; color: var(--pure-black); margin: 20px 20px 4px; }
.trustee-role { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--apple-gray); margin: 0 20px 12px; }
.trustee-bio { font-size: 14px; color: var(--apple-dark-gray); margin: 0 20px 20px; line-height: 1.5; }
.trustee-card:hover { box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22), inset 0 -12px 20px rgba(0, 0, 0, 0.1); transform: translateY(-3px); }

form { background: transparent; }
label { display: block; font-size: 12px; font-weight: 600; color: var(--apple-dark-gray); margin-bottom: 6px; margin-top: 14px; }
input, select, textarea, input[type=file] { width: 100%; padding: 14px; background: #ffffff; border: 1px solid rgba(191, 196, 202, 0.8); border-radius: var(--radius-sf); color: var(--pure-black); font-size: 15px; margin-bottom: 12px; transition: var(--sf-transition); box-shadow: inset 0 1px 0 rgba(255,255,255,0.9); }
input[type=file] { padding: 12px 14px; }
input[type=file]::-webkit-file-upload-button { background: rgba(255,255,255,0.92); border: 1px solid rgba(191, 196, 202, 0.8); border-radius: 10px; padding: 8px 12px; cursor: pointer; }
input[type=file]::-ms-browse { background: rgba(255,255,255,0.92); border: 1px solid rgba(191, 196, 202, 0.8); border-radius: 10px; padding: 8px 12px; cursor: pointer; }
input:focus, select:focus, textarea:focus { outline: none; background-color: #ffffff; border-color: rgba(100, 109, 119, 0.9); box-shadow: 0 0 0 3px rgba(145, 152, 159, 0.12); }
textarea { min-height: 140px; }

.table-scroll { overflow-x: auto; border: 1px solid rgba(191, 196, 202, 0.9); border-radius: var(--radius-sf); background: linear-gradient(180deg, #eef2f6 0%, #dfe6ec 100%); margin-top: 16px; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.6); background-image: linear-gradient(180deg, #eef2f6 0%, #dfe6ec 100%), repeating-linear-gradient(90deg, rgba(255,255,255,0.06), rgba(255,255,255,0.06) 1px, transparent 1px, transparent 15px); background-blend-mode: normal, overlay; background-size: auto, 100% 32px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; text-align: left; }
th { background: linear-gradient(180deg, #edf1f5 0%, #e4e9ee 100%); color: var(--pure-black); font-weight: 600; padding: 14px 18px; border-bottom: 1px solid rgba(191, 196, 202, 0.9); }
td { padding: 16px 18px; border-bottom: 1px solid rgba(223, 228, 233, 0.9); color: var(--apple-dark-gray); }

span.badge-pending { color: var(--apple-gray); font-weight: 500; }
span.badge-confirmed { color: var(--pure-black); font-weight: 600; text-decoration: underline; }
span.badge-cancelled { color: var(--status-cancelled); opacity: 0.7; }

footer { background: linear-gradient(180deg, #eceff3 0%, #dfe4e9 100%); color: var(--apple-gray); font-size: 12px; padding: 56px 0; border-top: 1px solid rgba(191, 196, 202, 0.85); margin-top: auto; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-links a { color: var(--apple-dark-gray); margin-left: 18px; }
.footer-links a:hover { color: var(--pure-black); }

.days-picker { display: flex; gap: 8px; margin-top: 6px; margin-bottom: 20px; flex-wrap: wrap; }
.days-picker label { display: block; margin: 0; position: relative; cursor: pointer; }
.days-picker input { position: absolute; opacity: 0; width: 0; height: 0; margin: 0; }
.day-capsule { display: inline-block; padding: 8px 16px; border-radius: 999px; background: linear-gradient(180deg, #f4f6f9 0%, #dde1e6 100%); font-size: 13px; font-weight: 500; color: var(--apple-black); transition: all 0.2s; min-width: 44px; text-align: center; border: 1px solid rgba(191, 196, 202, 0.9); }
.days-picker input:checked + .day-capsule { background: var(--pure-black); color: var(--pure-white); }
.toggle-section { display: none; }
.toggle-section.active { display: block; }

.event-feed-page { padding-top: 80px; }
.event-feed-admin-panel { margin-bottom: 28px; }
.event-feed-admin-panel h3 { margin-bottom: 18px; }
.event-feed-shell { margin-top: 12px; }
.event-feed-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}
.event-feed-item {
  background: linear-gradient(180deg, #f5f7fa 0%, #e8edf2 100%);
  border: 1px solid rgba(191, 196, 202, 0.9);
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
.event-feed-image-wrap {
  width: 200px;
  height: 200px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(191, 196, 202, 0.8);
  background: #eef2f6;
  margin: 0 auto 18px;
}
.event-feed-image-wrap img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.event-feed-content {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.event-feed-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.event-feed-category {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,0.06);
  color: var(--pure-black);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.event-feed-date {
  color: var(--apple-gray);
  font-size: 12px;
  font-weight: 600;
}
.event-feed-item h3 {
  margin: 0 0 12px;
  font-size: 24px;
  line-height: 1.18;
  letter-spacing: -0.04em;
}
.event-feed-summary {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--apple-dark-gray);
}
.event-feed-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.event-feed-action-form {
  margin: 0;
}
.event-feed-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: var(--sf-transition);
}
.event-feed-edit-btn {
  background: rgba(0,0,0,0.75);
  color: #fff;
}
.event-feed-edit-btn:hover {
  background: rgba(0,0,0,0.9);
}
.event-feed-delete-btn {
  background: rgba(107,29,29,0.88);
  color: #fff;
}
.event-feed-delete-btn:hover {
  background: rgba(123,42,42,0.95);
}
.event-feed-empty h3 { margin-bottom: 12px; }

@media (max-width: 980px) {
  .event-feed-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .event-feed-list {
    grid-template-columns: 1fr;
  }
}

/* Mouse-tracking shine/glare effect */
.card-with-shine {
  position: relative;
  overflow: hidden;
}
.card-with-shine::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(ellipse 100% 30% at 50% 8%, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.3) 25%, rgba(255, 255, 255, 0.05) 60%, transparent 100%);
  pointer-events: none;
  z-index: 10;
  opacity: 1;
}
.card-with-shine::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(800px at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0) 80%);
  pointer-events: none;
  z-index: 9;
  opacity: 0;
  transition: opacity 0.15s ease;
}
.card-with-shine:hover::after {
  opacity: 1;
}

@media (max-width: 900px) {
  .site-title { flex-wrap: wrap; gap: 12px; }
  nav { gap: 12px; }
  .page-intro h2 { font-size: 32px; }
  .page-intro p { font-size: 16px; }
  .room-card { min-height: 220px; padding: 28px; }
  .info-card { padding: 32px; }
}

@media (max-width: 720px) {
  .container { padding: 0 16px; }
  main.container { padding-top: 48px; padding-bottom: 60px; }
  .site-title { align-items: flex-start; }
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 12px; padding: 18px 16px; background: rgba(255,255,255,0.98); border-bottom-left-radius: 18px; border-bottom-right-radius: 18px; box-shadow: 0 18px 40px rgba(0,0,0,0.14); z-index: 999; }
  .site-nav.open { display: flex; }
  .site-nav a { display: block; width: 100%; padding: 10px 0; border-bottom: 1px solid rgba(191,196,202,0.15); }
  .site-title { width: 100%; justify-content: space-between; }
  .site-title a { flex: 1 1 auto; }
  .site-title a h1 { font-size: 16px; }
  nav a { font-size: 14px; opacity: 0.95; }
  nav a.nav-btn-action { padding: 8px 14px; font-size: 12px; }
  .page-intro h2 { font-size: 28px; margin-bottom: 10px; }
  .page-intro p { font-size: 15px; line-height: 1.6; }
  .hero-carousel { width: 100%; height: 260px; }
  .hero-carousel .carousel-control { width: 36px; height: 36px; }
  .hero-carousel .carousel-indicators { gap: 8px; bottom: 10px; }
  .hero-carousel .carousel-indicators button { width: 10px; height: 10px; }
  .room-card { min-height: auto; padding: 24px; }
  .event-card { min-height: 220px; }
  .event-card-overlay { padding: 20px; }
  .trustee-card img { height: auto; }
  .info-card { padding: 24px; }
  .days-picker { gap: 6px; }
  .day-capsule { padding: 8px 12px; font-size: 12px; }
  input, select, textarea, input[type=file] { font-size: 14px; }
  .cta, button, input[type=submit] { width: 100%; padding: 14px 18px; }
  section[style*="display:grid"] { display: block !important; }
  section[style*="display:grid"] > * { width: 100% !important; }
  .table-scroll { overflow-x: auto; }
}
