:root {
  --gold: #c8940a;
  --gold-light: #f0b429;
  --blue: #1a6fff;
  --bg: #020b1a;
  --bg2: #040f1e;
  --surface: rgba(4, 15, 30, 0.88);
  --surface-strong: rgba(4, 15, 30, 0.96);
  --border: rgba(200, 148, 10, 0.24);
  --border-soft: rgba(255, 255, 255, 0.08);
  --text: #eef4ff;
  --muted: rgba(238, 244, 255, 0.66);
  --dim: rgba(238, 244, 255, 0.42);
  --font-head: "Orbitron", monospace;
  --font-body: "Rajdhani", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: var(--font-body);
}

a {
  color: inherit;
  text-decoration: none;
}

.landing-body {
  background-image:
    radial-gradient(circle at 78% 22%, rgba(200, 148, 10, 0.18), transparent 34%),
    linear-gradient(90deg, rgba(2, 11, 26, 0.94), rgba(2, 11, 26, 0.68), rgba(2, 11, 26, 0.92)),
    url("/inn.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.landing-body::before,
.admin-body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent 80%);
  z-index: -1;
}

.public-nav,
.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(4, 15, 30, 0.78);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font: inherit;
}

.brand-mark {
  width: 36px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: linear-gradient(135deg, var(--gold), var(--blue));
  color: #fff;
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 900;
}

.brand-text {
  font-family: var(--font-head);
  font-size: 17px;
  font-weight: 900;
  letter-spacing: 0.09em;
}

.brand-text span {
  color: var(--gold-light);
}

.nav-dropdown-wrapper {
  position: relative;
}

.nav-caret {
  color: var(--dim);
  font-size: 10px;
  transition: transform 0.18s, color 0.18s;
}

.nav-dropdown-toggle.open .nav-caret {
  color: var(--gold-light);
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 250px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(4, 15, 30, 0.98);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(16px);
  z-index: 100;
}

.nav-dropdown-menu.open {
  display: block;
}

.nav-sub-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 10px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.nav-sub-item:hover,
.nav-sub-item.active {
  background: rgba(200, 148, 10, 0.12);
  color: var(--text);
}

.nav-sub-icon {
  width: 26px;
  min-width: 26px;
  height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 13px;
}

.nav-divider {
  border: 0;
  border-top: 1px solid var(--border-soft);
  margin: 6px 0;
}

.nav-actions,
.admin-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-actions .profile-wrapper {
  margin-left: 4px;
}

.nav-actions a {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.nav-actions a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.nav-actions .login-link,
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 11px 17px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue), #0d4fd6);
  color: #fff;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  cursor: pointer;
  box-shadow: 0 12px 32px rgba(26, 111, 255, 0.28);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.compact {
  min-height: 36px;
  padding: 8px 12px;
}

.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(360px, 0.82fr) minmax(420px, 1.18fr);
  align-items: stretch;
  gap: clamp(22px, 4vw, 58px);
  padding: clamp(34px, 6vw, 70px) clamp(18px, 5vw, 72px);
}

.hero-content {
  max-width: 820px;
  align-self: center;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold-light);
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.hero h1 {
  max-width: 820px;
  margin-bottom: 18px;
  font-family: var(--font-head);
  font-size: clamp(38px, 7vw, 78px);
  line-height: 1.02;
  letter-spacing: 0.02em;
  text-shadow: 0 22px 52px rgba(0, 0, 0, 0.62);
}

.hero-copy {
  max-width: 650px;
  margin-bottom: 26px;
  color: var(--muted);
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 500;
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-board,
.editor-panel,
.list-panel,
.announcement-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(18px);
}

.hero-board {
  min-height: min(76vh, 740px);
  padding: clamp(22px, 3vw, 34px);
  background:
    linear-gradient(180deg, rgba(4, 15, 30, 0.94), rgba(4, 15, 30, 0.82)),
    rgba(4, 15, 30, 0.9);
  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.panel-kicker,
.card-date,
.status-pill {
  color: var(--gold-light);
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-board .section-head {
  margin-bottom: 16px;
}

.hero-board .section-head h2 {
  margin: 10px 0 12px;
  font-family: var(--font-head);
  font-size: 24px;
  line-height: 1.22;
}

.hero-announcement-grid {
  grid-template-columns: 1fr;
  max-height: calc(min(76vh, 740px) - 120px);
  overflow: auto;
  padding: 2px 8px 2px 2px;
  scrollbar-color: rgba(200, 148, 10, 0.65) rgba(255, 255, 255, 0.06);
}

.hero-announcement-grid .announcement-card {
  box-shadow: none;
}

.hero-announcement-grid .announcement-content {
  padding: 16px;
}

.hero-announcement-grid .announcement-card h3 {
  font-size: 18px;
}

.hero-board p,
.announcement-card p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.5;
}

.rich-text {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.rich-text p {
  margin: 0 0 10px;
}

.rich-text p:last-child,
.rich-text ul:last-child {
  margin-bottom: 0;
}

.rich-text ul {
  display: grid;
  gap: 7px;
  margin: 8px 0 12px;
  padding-left: 0;
  list-style: none;
}

.rich-text li {
  position: relative;
  padding-left: 20px;
  color: var(--text);
}

.rich-text li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border: 1px solid rgba(240, 180, 41, 0.75);
  border-radius: 2px;
  background: rgba(200, 148, 10, 0.2);
  transform: rotate(45deg);
}

.section {
  padding: 74px clamp(18px, 6vw, 84px);
  background: linear-gradient(180deg, rgba(2, 11, 26, 0.92), rgba(4, 15, 30, 0.98));
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.section-head {
  margin-bottom: 22px;
}

.about-section .section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
}

.about-edit-link {
  white-space: nowrap;
}

.section-head h1,
.section-head h2 {
  margin-bottom: 0;
  font-family: var(--font-head);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.12;
}

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

.announcement-card {
  overflow: hidden;
  transition: transform 0.18s, border-color 0.18s, background 0.18s;
}

.announcement-clickable {
  cursor: pointer;
}

.announcement-clickable:hover,
.announcement-clickable:focus {
  border-color: rgba(240, 180, 41, 0.7);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-2px);
  outline: none;
}

.announcement-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--border-soft);
  background: rgba(255, 255, 255, 0.04);
}

.announcement-content {
  padding: 20px;
}

.announcement-card h3 {
  margin: 8px 0 10px;
  font-family: var(--font-head);
  font-size: 18px;
  line-height: 1.28;
}

.read-more {
  display: inline-flex;
  margin-top: 8px;
  color: var(--gold-light);
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.empty-state {
  padding: 22px;
  grid-column: 1 / -1;
}

.about-section {
  display: block;
}

.about-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  width: calc(100% - 1in);
  margin: 0 auto;
}

.about-photo-card {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.26);
  cursor: pointer;
  position: relative;
  transition: transform 0.18s, border-color 0.18s, background 0.18s;
}

.about-photo-card:hover,
.about-photo-card:focus {
  border-color: rgba(240, 180, 41, 0.72);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-2px);
  outline: none;
}

.about-photo-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  display: block;
  border-bottom: 1px solid var(--border-soft);
  background: rgba(2, 11, 26, 0.88);
}

.about-photo-card figcaption {
  padding: 20px;
  color: var(--text);
  font-family: var(--font-head);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.28;
}

.announcement-modal[hidden] {
  display: none;
}

.modal-open {
  overflow: hidden;
}

.announcement-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 22px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(1, 6, 16, 0.78);
  backdrop-filter: blur(12px);
}

.modal-card {
  position: relative;
  z-index: 1;
  width: min(980px, 96vw);
  max-height: 90vh;
  overflow: auto;
  border: 1px solid rgba(240, 180, 41, 0.42);
  border-radius: 10px;
  background: rgba(4, 15, 30, 0.98);
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.66);
}

.modal-card.photo-fit {
  width: min(1180px, 96vw);
}

.modal-close {
  position: sticky;
  top: 12px;
  float: right;
  z-index: 2;
  margin: 12px 12px 0 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(4, 15, 30, 0.9);
  color: var(--text);
  padding: 9px 12px;
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.modal-nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 52px;
  height: 88px;
  border: 1px solid rgba(240, 180, 41, 0.34);
  border-radius: 8px;
  background: rgba(4, 15, 30, 0.72);
  color: var(--text);
  font-size: 46px;
  line-height: 1;
  transform: translateY(-50%);
  cursor: pointer;
}

.modal-nav:hover,
.modal-nav:focus {
  border-color: rgba(240, 180, 41, 0.8);
  background: rgba(240, 180, 41, 0.18);
  outline: none;
}

.modal-nav-prev {
  left: 12px;
}

.modal-nav-next {
  right: 12px;
}

.modal-image {
  width: 100%;
  max-height: 68vh;
  object-fit: contain;
  display: block;
  border-bottom: 1px solid var(--border-soft);
  background: rgba(1, 6, 16, 0.96);
}

.modal-content {
  padding: clamp(22px, 4vw, 38px);
}

.modal-content h2 {
  margin: 10px 0 14px;
  font-family: var(--font-head);
  font-size: clamp(25px, 4vw, 44px);
  line-height: 1.13;
}

.modal-content p {
  color: var(--muted);
  font-size: 20px;
  line-height: 1.55;
}

.modal-content .rich-text {
  font-size: 20px;
}

.public-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 16px;
  padding: clamp(28px, 5vw, 54px) clamp(18px, 6vw, 84px);
  background: var(--bg2);
  border-top: 1px solid var(--border);
  color: var(--dim);
  font-weight: 700;
  letter-spacing: 0.04em;
}

.footer-about {
  max-width: 980px;
}

.footer-about h2 {
  margin: 0 0 12px;
  color: var(--text);
  font-family: var(--font-head);
  font-size: clamp(23px, 3vw, 34px);
  line-height: 1.14;
}

.footer-about-text,
.footer-about .rich-text {
  color: var(--muted);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.55;
  letter-spacing: 0;
}

.footer-meta {
  display: grid;
  gap: 8px;
  text-align: right;
  white-space: nowrap;
}

.admin-body {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(2, 11, 26, 0.96), rgba(4, 15, 30, 0.9)),
    url("/inn.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
}

.admin-shell {
  display: grid;
  grid-template-columns: minmax(320px, 520px) minmax(0, 1fr);
  gap: 18px;
  padding: 24px clamp(18px, 4vw, 42px) 42px;
}

.about-editor-panel,
.gallery-editor-panel {
  align-self: start;
}

.editor-panel,
.list-panel {
  padding: 22px;
  background: var(--surface-strong);
}

.announcement-form {
  display: grid;
  gap: 14px;
}

.announcement-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.announcement-form input,
.announcement-form textarea,
.announcement-form select {
  width: 100%;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  outline: none;
  padding: 12px 13px;
}

.announcement-form textarea {
  resize: vertical;
  min-height: 150px;
}

.announcement-form input:focus,
.announcement-form textarea:focus,
.announcement-form select:focus {
  border-color: rgba(200, 148, 10, 0.72);
  box-shadow: 0 0 0 3px rgba(200, 148, 10, 0.1);
}

.upload-zone {
  display: grid;
  gap: 12px;
  min-height: 154px;
  padding: 18px;
  border: 1px dashed rgba(200, 148, 10, 0.48);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s, transform 0.18s;
}

.upload-zone:hover,
.upload-zone.drag-over {
  border-color: var(--gold-light);
  background: rgba(200, 148, 10, 0.08);
  transform: translateY(-1px);
}

.upload-copy {
  display: grid;
  gap: 4px;
  place-items: center;
  text-align: center;
  color: var(--muted);
  font-weight: 700;
}

.upload-copy strong {
  color: var(--text);
  font-family: var(--font-head);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.upload-copy span {
  font-size: 14px;
}

.upload-preview {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 130px;
  gap: 12px;
}

.form-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: var(--gold-light);
  font-weight: 700;
}

.admin-list {
  display: grid;
  gap: 12px;
}

.admin-item {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.admin-thumb {
  width: 120px;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border-soft);
  background: rgba(255, 255, 255, 0.04);
}

.admin-item h3 {
  margin: 6px 0 7px;
  font-family: var(--font-head);
  font-size: 16px;
}

.admin-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.4;
}

.item-actions {
  display: flex;
  gap: 8px;
}

.icon-btn {
  min-width: 70px;
  min-height: 34px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.icon-btn.danger {
  border-color: rgba(239, 68, 68, 0.4);
  color: #fecaca;
}

.icon-btn:hover,
.icon-btn:focus {
  border-color: rgba(240, 180, 41, 0.72);
  background: rgba(240, 180, 41, 0.12);
  outline: none;
}

.icon-btn.danger:hover,
.icon-btn.danger:focus,
.gallery-delete-btn:hover,
.gallery-delete-btn:focus {
  border-color: rgba(248, 113, 113, 0.8);
  background: linear-gradient(135deg, rgba(127, 29, 29, 0.92), rgba(185, 28, 28, 0.72));
  color: #fff;
  box-shadow: 0 12px 28px rgba(127, 29, 29, 0.26);
}

.admin-empty {
  padding: 18px;
  border: 1px dashed var(--border);
  border-radius: 8px;
  color: var(--muted);
  font-weight: 700;
}

.gallery-admin-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.gallery-admin-item {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.gallery-admin-item img {
  width: 108px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border-soft);
}

.gallery-admin-item h3 {
  margin: 6px 0 0;
  font-family: var(--font-head);
  font-size: 15px;
}

.gallery-admin-item .item-actions {
  justify-content: flex-end;
  flex-wrap: wrap;
}

.gallery-delete-btn {
  background: rgba(127, 29, 29, 0.18);
}

@media (max-width: 980px) {
  .hero,
  .about-section,
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .about-section .section-head {
    align-items: start;
    flex-direction: column;
  }

  .announcement-grid,
  .about-gallery {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .about-photo-card img {
    min-height: auto;
  }

  .modal-nav {
    width: 42px;
    height: 68px;
    font-size: 34px;
  }

  .hero {
    align-items: start;
    min-height: auto;
  }
}

@media (max-width: 680px) {
  .public-nav,
  .admin-topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .public-footer {
    grid-template-columns: 1fr;
  }

  .footer-meta {
    text-align: left;
    white-space: normal;
  }

  .nav-actions,
  .admin-actions {
    justify-content: flex-start;
  }

  .hero {
    padding-top: 42px;
  }

  .form-row,
  .admin-item {
    grid-template-columns: 1fr;
  }

  .admin-thumb,
  .gallery-admin-item img {
    width: 100%;
  }

  .gallery-admin-item {
    grid-template-columns: 1fr;
  }
}
