@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&display=swap');

:root {
  --navy: #071a52;
  --blue: #2e5bff;
  --ink: #172033;
  --muted: #64708a;
  --line: #e6eaf2;
  --soft: #f5f7fb;
  --gold: #f4c95d;
  --green: #17835b;
  --white: #fff;
  --shadow: 0 16px 45px rgba(17, 35, 83, 0.10);
  --danger: #c23a3a;
  --success: #1d8a5a;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: hidden; }
body {
  margin: 0;
  font-family: 'DM Sans', sans-serif;
  color: var(--ink);
  background: var(--white);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea {
  font: inherit;
}
button { cursor: pointer; }
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.header {
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 78px;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 800 23px 'Manrope', sans-serif;
  letter-spacing: -1px;
  color: var(--navy);
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: block;
  object-fit: contain;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  gap: 28px;
  color: #526079;
  font-size: 14px;
  font-weight: 600;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--navy);
  background: var(--white);
  font-size: 22px;
}

.mobile-nav {
  display: none;
}

@media (min-width: 561px) {
  .mobile-menu-toggle,
  .mobile-nav {
    display: none !important;
  }
}

.btn {
  border: 0;
  border-radius: 10px;
  padding: 12px 18px;
  color: #fff;
  background: var(--blue);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: .2s ease;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { cursor: not-allowed; opacity: .55; transform: none; }
.btn.small { padding: 9px 13px; font-size: 13px; }
.btn.ghost {
  background: #edf1ff;
  color: var(--blue);
}
.btn.danger {
  background: var(--danger);
  color: var(--white);
}
.btn.full {
  width: 100%;
}

.hero {
  min-height: 560px;
  display: flex;
  align-items: center;
  color: white;
  background: linear-gradient(90deg, rgba(5,19,67,.98) 0%, rgba(5,19,67,.82) 45%, rgba(5,19,67,.22)),
              url('https://images.unsplash.com/photo-1519167758481-83f550bb49b3?auto=format&fit=crop&w=1900&q=85') center/cover;
}

.hero-inner {
  width: min(1180px, calc(100% - 40px));
  padding: 70px 0 92px;
}

.eyebrow {
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 11px;
  font-weight: 800;
}

h1, h2, h3 {
  font-family: 'Manrope', sans-serif;
  margin: 0;
  letter-spacing: -1.5px;
}

.hero h1 {
  max-width: 630px;
  margin: 16px 0 18px;
  font-size: clamp(39px, 5.3vw, 67px);
  line-height: 1.03;
}

.hero-copy {
  max-width: 515px;
  color: #d5def7;
  font-size: 17px;
  line-height: 1.65;
}

.search-box {
  max-width: 1000px;
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr auto;
  gap: 8px;
  padding: 9px;
  margin-top: 40px;
  background: var(--white);
  border-radius: 15px;
  box-shadow: 0 17px 38px rgba(0,0,0,.2);
}

.search-field {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 8px 14px;
  border-right: 1px solid var(--line);
  color: var(--muted);
}

.search-field label {
  display: block;
  font-size: 11px;
  color: #8a94a9;
}

.search-field select,
.search-field input,
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  border: 1px solid var(--line);
  outline: none;
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
  font-size: 14px;
}

.form-note {
  color: var(--muted);
  line-height: 1.5;
  margin: -8px 0 22px;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 18px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.checkbox-row input {
  flex: 0 0 auto;
  margin-top: 3px;
}

.checkbox-row a {
  color: var(--blue);
  font-weight: 700;
}

.form-group input[type="file"] {
  padding: 10px;
  background: var(--soft);
}

.form-help {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.upload-error {
  min-height: 18px;
  margin-top: 8px;
  color: var(--danger);
  font-size: 12px;
  font-weight: 700;
}

.image-preview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.image-preview {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--soft);
}

.image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-preview span {
  position: absolute;
  right: 6px;
  bottom: 6px;
  left: 6px;
  padding: 4px 5px;
  border-radius: 5px;
  color: var(--white);
  background: rgba(7, 26, 82, .78);
  font-size: 10px;
  font-weight: 700;
  text-align: center;
}

.image-preview.is-primary {
  border: 2px solid var(--blue);
}

.booking-summary {
  display: grid;
  gap: 5px;
  margin: -2px 0 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--soft);
}

.booking-summary span {
  color: var(--muted);
  font-size: 13px;
}

.price-estimate {
  margin: 4px 0 18px;
  color: var(--muted);
}

.price-estimate strong {
  color: var(--navy);
}

.section {
  padding: 78px 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 29px;
  gap: 20px;
}

.section-head h2 {
  font-size: 32px;
  color: var(--navy);
}

.section-head p {
  color: var(--muted);
  margin: 8px 0 0;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 18px rgba(17,35,83,.04);
}

.card-image {
  height: 218px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.badge {
  position: absolute;
  left: 13px;
  top: 13px;
  background: var(--gold);
  color: var(--navy);
  border-radius: 6px;
  padding: 6px 9px;
  font-size: 11px;
  font-weight: 800;
}

.card-body {
  padding: 17px;
}

.card-body h3 {
  font-size: 18px;
  color: var(--navy);
}

.meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  margin: 9px 0 15px;
}

.rating {
  color: #b17800;
  font-weight: 800;
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.price {
  font-weight: 800;
  color: var(--navy);
  font-size: 14px;
}

.price small {
  font-weight: 400;
  color: var(--muted);
}

.footer {
  background: #06143d;
  color: #bdc7dc;
  padding: 50px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 35px;
}

.footer h3 {
  color: var(--white);
  margin-bottom: 16px;
  font-size: 14px;
}

.footer-brand {
  color: var(--white);
  margin-bottom: 20px;
}

.footer a, .footer p {
  display: block;
  margin: 10px 0;
  color: inherit;
}

.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--soft);
}

.auth-shell {
  width: min(1180px, calc(100% - 32px));
  display: flex;
  justify-content: center;
  padding: 40px 0;
}

.auth-card {
  width: min(520px, 100%);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 28px;
}

.wide-card {
  width: min(700px, 100%);
}

.back-link {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--blue);
  font-weight: 700;
}

.auth-card h1 {
  color: var(--navy);
  font-size: clamp(28px, 3vw, 38px);
  margin: 8px 0 20px;
}

.form-group {
  margin-bottom: 16px;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.auth-switch {
  text-align: center;
  color: var(--muted);
  margin-top: 18px;
  font-size: 14px;
}

.auth-switch a {
  color: var(--blue);
  font-weight: 700;
}

.flash {
  max-width: 1180px;
  margin: 18px auto 0;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
}

.flash-success { background: #e7f9f0; color: var(--success); }
.flash-danger { background: #fde9e9; color: var(--danger); }
.flash-warning { background: #fff4db; color: #9a6700; }

.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.status-success { color: #126342; background: #e3f7ed; }
.status-warning { color: #815800; background: #fff2cc; }
.status-danger { color: #982e2e; background: #fde5e5; }
.status-neutral { color: #526079; background: #edf1f6; }

.dashboard-shell {
  padding: 46px 0 80px;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  gap: 20px;
}

.dashboard-header h1 {
  color: var(--navy);
  font-size: 34px;
  margin-top: 6px;
}

.profile-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--navy);
  font-weight: 700;
}

.dashboard-grid {
  display: grid;
  gap: 16px;
  margin-bottom: 24px;
}

.dashboard-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dashboard-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-section-heading {
  margin: 30px 0 14px;
}

.admin-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 0 0 28px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line);
}

.admin-tab {
  flex: 0 0 auto;
  padding: 10px 14px;
  border: 0;
  border-bottom: 3px solid transparent;
  color: var(--muted);
  background: transparent;
  font-weight: 800;
}

.admin-tab:hover,
.admin-tab.is-active {
  border-bottom-color: var(--blue);
  color: var(--blue);
}

.admin-filter {
  width: 100%;
  margin: -6px 0 16px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink);
  background: var(--soft);
}

.admin-filter::placeholder { color: var(--muted); }

.admin-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.admin-section-heading:first-of-type {
  margin-top: 0;
}

.admin-section-heading h2 {
  color: var(--navy);
  font-size: 25px;
  letter-spacing: -0.5px;
}

.section-count {
  display: inline-flex;
  min-width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  margin-left: 5px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--blue);
  font-size: 12px;
  vertical-align: middle;
}

.metric-box {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px;
}

.metric-box span {
  color: var(--muted);
  font-size: 12px;
}

.metric-box strong {
  display: block;
  color: var(--navy);
  font-size: 24px;
  margin: 8px 0 4px;
  word-break: break-word;
}

.metric-box small {
  color: var(--green);
  font-weight: 700;
}

.panel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
}

.panel h3 {
  font-size: 18px;
  color: var(--navy);
  margin-bottom: 18px;
}

.list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  color: var(--ink);
}

.list li {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.list li:first-child {
  border-top: 0;
  padding-top: 0;
}

[hidden] { display: none !important; }

.admin-user-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.admin-user-row form {
  flex: 0 0 auto;
}

.admin-user-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.admin-user-actions select {
  max-width: 150px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  color: var(--ink);
  background: var(--white);
}

.admin-user-row > small {
  color: var(--muted);
  white-space: nowrap;
}

.inline-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.moderation-panel {
  margin-top: 24px;
}

.moderation-list {
  display: grid;
  gap: 14px;
}

.moderation-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.moderation-item:first-child {
  padding-top: 0;
  border-top: 0;
}

.moderation-item strong,
.moderation-item span {
  display: block;
}

.moderation-item span {
  color: var(--muted);
  margin-top: 5px;
}

.moderation-item img {
  width: 72px;
  height: 52px;
  object-fit: cover;
  border-radius: 8px;
  margin-top: 10px;
}

.moderation-actions form {
  display: flex;
  gap: 8px;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table-wrap { overflow-x: auto; }

.table th, .table td {
  text-align: left;
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
}

.empty-text {
  color: var(--muted);
  margin: 0;
}

.empty-state {
  padding: 32px;
  border: 1px dashed #cbd3e2;
  border-radius: 14px;
  background: var(--soft);
  text-align: center;
}

.empty-state h3 { color: var(--navy); margin-bottom: 8px; }
.empty-state p { max-width: 520px; margin: 0 auto 18px; color: var(--muted); line-height: 1.6; }

.error-page {
  width: min(560px, calc(100% - 40px));
  min-height: 70vh;
  display: grid;
  align-content: center;
  justify-items: start;
  margin: 0 auto;
}

.error-page h1 { margin: 10px 0 12px; color: var(--navy); font-size: clamp(32px, 6vw, 54px); }
.error-page p { margin: 0 0 24px; color: var(--muted); line-height: 1.6; }

.detail-shell {
  padding: 46px 0 80px;
}

.legal-content {
  max-width: 800px;
  margin: 22px auto 0;
}

.legal-content h1 {
  color: var(--navy);
  margin: 12px 0 22px;
}

.legal-content h2 {
  color: var(--navy);
  font-size: 20px;
  margin-top: 28px;
}

.legal-content p {
  color: var(--muted);
  line-height: 1.7;
}

.detail-reviews {
  margin-top: 28px;
}

.detail-reviews h2 {
  color: var(--navy);
  margin-bottom: 18px;
}

.detail-reviews p {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  color: var(--muted);
  line-height: 1.6;
}

.feedback-item p {
  margin: 12px 0;
  color: var(--muted);
  line-height: 1.6;
}

.feedback-item > strong {
  color: var(--navy);
}

.feedback-item > small {
  color: var(--muted);
}

.support-history-title {
  color: var(--navy);
  font-size: 20px;
  margin: 30px 0 16px;
}

.support-ticket {
  display: grid;
  gap: 9px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.support-ticket textarea,
.support-ticket select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 38px;
  align-items: center;
  margin-top: 20px;
}

.detail-gallery {
  min-width: 0;
}

.detail-image-frame {
  position: relative;
  overflow: hidden;
  min-height: 460px;
  border-radius: 18px;
  background: var(--soft);
  box-shadow: var(--shadow);
}

.detail-image-main {
  width: 100%;
  height: 460px;
  object-fit: cover;
}

.gallery-count {
  position: absolute;
  right: 16px;
  bottom: 16px;
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 999px;
  color: var(--white);
  background: rgba(7, 26, 82, .72);
  font-size: 12px;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.detail-thumbnails {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.detail-thumbnail {
  overflow: hidden;
  aspect-ratio: 1.35;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  background: var(--soft);
  cursor: pointer;
  opacity: .72;
  transition: .2s ease;
}

.detail-thumbnail:hover,
.detail-thumbnail.is-active {
  border-color: var(--blue);
  opacity: 1;
}

.detail-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-content h1 {
  color: var(--navy);
  font-size: clamp(32px, 4vw, 52px);
  margin: 12px 0 8px;
}

.detail-location {
  color: var(--muted);
  font-size: 16px;
}

.detail-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0;
}

.detail-facts div {
  min-width: 130px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.detail-facts strong,
.detail-facts span {
  display: block;
}

.detail-facts span {
  color: var(--muted);
  font-size: 12px;
  margin-top: 5px;
}

.panel-heading-row,
.admin-content-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.panel-heading-row {
  margin-bottom: 18px;
}

.panel-heading-row h3 {
  margin-bottom: 0;
}

.management-grid {
  margin-top: 24px;
}

.admin-content-row span {
  min-width: 0;
  overflow-wrap: anywhere;
}

@media (max-width: 850px) {
  .dashboard-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-image-frame { min-height: 360px; }
  .detail-image-main { height: 360px; }
}

@media (max-width: 560px) {
  .dashboard-grid-4 { grid-template-columns: 1fr; }
  .image-preview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 850px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .panel-grid { grid-template-columns: 1fr; }
  .dashboard-grid-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .nav-links, .nav-actions { display: none !important; }
  .mobile-menu-toggle { display: inline-flex !important; align-items: center; justify-content: center; }
  .mobile-nav {
    display: none;
    padding: 0 20px 16px;
    border-top: 1px solid var(--line);
    background: var(--white);
  }
  .mobile-nav.is-open { display: grid !important; gap: 8px; }
  .mobile-nav a { padding: 10px 0; color: var(--navy); font-weight: 700; }
  .mobile-nav .btn { width: 100%; }
  .nav { min-height: 68px; }
  .search-box { grid-template-columns: 1fr; }
  .search-field { border-right: 0; border-bottom: 1px solid var(--line); }
  .cards { grid-template-columns: 1fr; }
  .section-head, .dashboard-header { display: block; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .auth-card { padding: 20px; }
  .table { min-width: 650px; }
}
