:root {
  --bg: #fff6f6;
  --bg-deep: #8cc7c4;
  --ink: #2c687b;
  --muted: #5b7c86;
  --card: rgba(255, 246, 246, 0.88);
  --card-strong: #fff6f6;
  --line: rgba(44, 104, 123, 0.16);
  --accent: #db1a1a;
  --accent-dark: #a71414;
  --accent-soft: #8cc7c4;
  --shadow: 0 24px 60px rgba(44, 104, 123, 0.16);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 20px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Trebuchet MS", "Lucida Sans Unicode", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.9), transparent 28%),
    radial-gradient(circle at 85% 10%, rgba(219, 26, 26, 0.16), transparent 24%),
    linear-gradient(145deg, #fff6f6 0%, #dff2f0 52%, #8cc7c4 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.16) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.35), transparent 85%);
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 48px;
}

.hero-panel,
.portal-panel {
  position: relative;
  overflow: hidden;
}

.hero-panel {
  padding: 42px;
  border: 1px solid rgba(255, 255, 255, 0.44);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(44, 104, 123, 0.96), rgba(58, 129, 148, 0.84));
  color: #fff6f6;
  box-shadow: var(--shadow);
}

.hero-panel::after {
  display: none;
}

.brand-row,
.portal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-row h1,
.login-card h2,
.portal-header h2,
.feature-card h2,
.portal-card h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  line-height: 1;
}

.brand-row h1 {
  font-size: clamp(2.8rem, 6vw, 4.8rem);
}

.login-hero-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 220px;
}

.login-hero-logo img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  display: block;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
  padding: 5px;
  overflow: hidden;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.eyebrow,
.label {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.76rem;
  font-weight: 800;
}

.hero-copy {
  margin-top: 36px;
}

.intro,
.card-copy,
.portal-card p,
.feature-card p,
.status-strip p,
li {
  line-height: 1.7;
}

.intro {
  max-width: 720px;
  margin: 0 0 28px;
  font-size: 1.08rem;
  color: rgba(255, 246, 246, 0.88);
}

.feature-grid,
.portal-grid {
  display: grid;
  gap: 18px;
}

.feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card,
.login-card,
.portal-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  backdrop-filter: blur(18px);
}

.feature-card {
  padding: 22px;
  background: rgba(255, 246, 246, 0.09);
}

.feature-card span {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 0.84rem;
  font-weight: 800;
  color: #8cc7c4;
}

.login-panel {
  display: flex;
  justify-content: center;
  margin: -56px auto 0;
  position: relative;
  z-index: 1;
}

.login-panel-static {
  margin-top: -3px;
}

.login-card {
  width: min(720px, 100%);
  padding: 30px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.login-card h2,
.portal-header h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.card-copy {
  margin: 10px 0 24px;
  color: var(--muted);
}

.login-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: end;
}

.login-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
}

.login-form input,
.login-form button,
.ghost-link,
.status-strip a {
  border-radius: var(--radius-sm);
}

.login-form input {
  width: 100%;
  padding: 15px 18px;
  border: 1px solid rgba(44, 104, 123, 0.16);
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  font: inherit;
}

.login-form input::placeholder {
  color: #7e857e;
}

.login-form button {
  grid-column: span 2;
  border: 0;
  padding: 16px 18px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff8f3;
  font: inherit;
  font-weight: 800;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.login-form button:disabled,
.login-form input:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.login-form button:hover,
.login-form button:focus-visible,
.ghost-link:hover,
.status-strip a:hover {
  transform: translateY(-1px);
}

.login-feedback {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  line-height: 1.5;
}

.login-feedback.neutral {
  background: rgba(255, 246, 246, 0.95);
  color: #2c687b;
}

.login-feedback.success {
  background: rgba(140, 199, 196, 0.28);
  color: #244f5d;
}

.login-feedback.error {
  background: rgba(219, 26, 26, 0.12);
  color: #9f1111;
}

.status-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid rgba(31, 42, 43, 0.1);
}

.status-strip p,
.muted {
  color: var(--muted);
  margin: 6px 0 0;
}

.status-strip a,
.ghost-link {
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
  border: 1px solid rgba(44, 104, 123, 0.16);
  padding: 12px 16px;
  background: rgba(255, 246, 246, 0.88);
}

.ghost-button {
  font: inherit;
  cursor: pointer;
  border: 1px solid rgba(44, 104, 123, 0.16);
}

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

.action-link,
.primary-inline-link,
.generated-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.action-link,
.primary-inline-link {
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-weight: 800;
}

.action-link {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff8f3;
  border: 0;
}

.primary-inline-link {
  margin-top: 8px;
  background: rgba(255, 246, 246, 0.94);
  color: var(--ink);
  border: 1px solid rgba(44, 104, 123, 0.16);
}

.generated-link {
  margin-top: 12px;
  color: inherit;
  font-weight: 800;
}

.portal-panel {
  margin-top: 0;
  padding: 36px 8px 8px;
}

.portal-panel.is-hidden {
  display: none;
}

.portal-grid {
  margin-top: 22px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.portal-card {
  padding: 24px;
  background: rgba(255, 246, 246, 0.8);
}

.collapsible-card {
  grid-column: span 3;
  border: 1px solid rgba(44, 104, 123, 0.12);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.collapsible-card summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  cursor: pointer;
  list-style: none;
  border-bottom: 1px solid rgba(44, 104, 123, 0.08);
}

.collapsible-card summary::-webkit-details-marker,
.collapsible-card summary::marker {
  display: none;
}

.collapsible-card summary h3 {
  margin: 6px 0 4px;
}

.collapsible-card summary p {
  margin: 0;
  color: var(--muted);
  max-width: 72ch;
}

.collapse-indicator {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}

.collapse-indicator::before {
  content: '';
  width: 9px;
  height: 9px;
  border-right: 2px solid rgba(44, 104, 123, 0.82);
  border-bottom: 2px solid rgba(44, 104, 123, 0.82);
  transform: rotate(45deg);
  transition: transform 0.25s ease;
}

.collapsible-card[open] .collapse-indicator::before {
  transform: rotate(225deg);
}

.collapsible-body {
  padding: 20px 24px 24px;
}

.static-content-panel {
  padding: 0;
}

.hero-banner-preview {
  margin-top: 16px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(44, 104, 123, 0.12);
  background: #fff;
}

.hero-banner-preview img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  display: block;
}

.hero-banner-form {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

#review-cards {
  display: grid;
  gap: 16px;
}

#review-cards .review-card {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(44, 104, 123, 0.12);
  background: rgba(255, 255, 255, 0.88);
}

#review-cards .review-card h4 {
  margin: 0 0 12px;
  color: var(--ink);
}

#review-cards .review-image {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin: 0 0 12px;
  border: 2px solid rgba(140, 199, 196, 0.24);
}

.add-review-button {
  justify-self: start;
  width: auto !important;
  min-width: 0;
  background: rgba(140, 199, 196, 0.16) !important;
  color: var(--ink) !important;
  border: 1px solid rgba(44, 104, 123, 0.18) !important;
}

.hero-banner-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
}

.hero-banner-form input,
.hero-banner-form > button {
  width: 100%;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(44, 104, 123, 0.16);
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  font: inherit;
}

.hero-banner-form input[type="file"] {
  padding: 12px 14px;
  cursor: pointer;
}

.hero-banner-form > button {
  border: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff8f3;
  font-weight: 800;
  letter-spacing: 0.03em;
  cursor: pointer;
}

.itenary-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
  align-items: end;
}

.itenary-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
}

.itenary-form input,
.itenary-form textarea,
.itenary-form > button {
  width: 100%;
  padding: 15px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(44, 104, 123, 0.16);
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  font: inherit;
}

.itenary-form input[type="file"] {
  padding: 12px 14px;
  cursor: pointer;
}

.editor-field {
  align-items: stretch;
}

.editor-shell {
  border: 1px solid rgba(44, 104, 123, 0.16);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.94);
  overflow: hidden;
}

.editor-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: rgba(140, 199, 196, 0.18);
  border-bottom: 1px solid rgba(44, 104, 123, 0.12);
}

.editor-toolbar button,
.editor-toolbar select {
  flex: 0 0 auto;
  width: auto;
  min-width: 0;
  padding: 6px 9px;
  border-radius: 10px;
  border: 1px solid rgba(44, 104, 123, 0.16);
  background: #fff;
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.1;
  box-shadow: none;
}

.editor-surface {
  min-height: 180px;
  padding: 18px;
  outline: none;
  line-height: 1.7;
  font-weight: 400;
}

.editor-surface-large {
  min-height: 280px;
}

.editor-surface strong,
.editor-surface b {
  font-weight: 900;
  color: var(--ink);
}

.editor-surface h2,
.editor-surface h3 {
  font-weight: 800;
}

.editor-surface h2,
.editor-surface p,
.editor-surface ul,
.editor-surface ol {
  margin: 0 0 14px;
}

.editor-surface ul,
.editor-surface ol {
  padding-left: 24px;
}

.editor-input {
  display: none;
}

.field-help {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}

.itenary-form textarea {
  resize: vertical;
  min-height: 120px;
}

.day-builder,
.hotel-builder {
  display: grid;
  gap: 18px;
}

.hotel-builder {
  padding: 20px;
  border-radius: 20px;
  border: 1px solid rgba(219, 26, 26, 0.16);
  background: linear-gradient(180deg, rgba(255, 246, 246, 0.98) 0%, rgba(255, 255, 255, 0.94) 100%);
}

.hotel-builder-head h4 {
  margin: 0 0 6px;
  font-size: 1.08rem;
  color: var(--ink);
}

.hotel-builder-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
  font-weight: 600;
}

.day-block,
.hotel-block {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(44, 104, 123, 0.12);
  background: rgba(255, 255, 255, 0.72);
}

.hotel-block {
  background: rgba(255, 255, 255, 0.86);
  border-color: rgba(219, 26, 26, 0.12);
}

.day-block-head,
.hotel-block-head {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.day-block-head h4,
.hotel-block-head h4 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--ink);
}

.inclusion-builder {
  display: grid;
  gap: 14px;
  padding: 20px;
  border-radius: 20px;
  border: 1px solid rgba(44, 104, 123, 0.14);
  background: linear-gradient(180deg, rgba(255, 246, 246, 0.96) 0%, rgba(255, 255, 255, 0.92) 100%);
}

.inclusion-builder-head h4 {
  margin: 0 0 6px;
  font-size: 1.08rem;
  color: var(--ink);
}

.inclusion-builder-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
  font-weight: 600;
}

.inclusion-builder-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.exclusion-builder {
  display: grid;
  gap: 14px;
  padding: 20px;
  border-radius: 20px;
  border: 1px solid rgba(44, 104, 123, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.92) 100%);
}

.exclusion-builder-head h4 {
  margin: 0 0 6px;
  font-size: 1.08rem;
  color: var(--ink);
}

.exclusion-builder-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
  font-weight: 600;
}

.exclusion-builder-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.exclusion-builder-field textarea {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(44, 104, 123, 0.16);
  color: var(--ink);
}

.add-day-button,
.remove-day-button {
  width: auto;
  min-width: 0;
}

.add-day-button {
  background: #ffc107 !important;
  color: #3e3103 !important;
  border-color: #ebb004 !important;
}

.itenary-form .full-span,
.itenary-form > button {
  grid-column: span 3;
}

.primary-btn,
.itenary-form > button {
  display: inline-block;
  text-align: center;
  text-decoration: none;
  border: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff8f3;
  font-weight: 800;
  letter-spacing: 0.03em;
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 16px 18px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-btn:hover,
.itenary-form > button:hover {
  transform: translateY(-1px);
}

.generated-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.generated-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(44, 104, 123, 0.12);
  color: var(--ink);
}

.generated-meta {
  display: grid;
  gap: 4px;
}

.generated-item span {
  font-weight: 800;
  word-break: break-word;
}

.generated-item strong {
  color: var(--muted);
  font-size: 0.85rem;
  text-align: right;
}

.generated-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.generated-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(44, 104, 123, 0.16);
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 800;
  cursor: pointer;
}

.generated-delete-form {
  margin: 0;
}

.danger-action {
  border-color: rgba(167, 20, 20, 0.2);
  color: var(--accent-dark);
}

.disabled-action {
  opacity: 0.56;
  cursor: not-allowed;
}

.highlight-card {
  grid-column: span 2;
  background: linear-gradient(135deg, rgba(140, 199, 196, 0.36), rgba(255, 246, 246, 0.92));
}

.wide-card {
  grid-column: span 3;
}

.landscape-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

.landscape-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.landscape-text .hero-banner-form {
  width: 100%;
  max-width: 380px;
}

.landscape-text .hero-banner-form label {
  align-items: center;
}

.landscape-preview {
  height: 100%;
  display: flex;
  flex-direction: column;
}

.landscape-preview .hero-banner-preview {
  margin-top: 0;
  flex: 1;
}

.landscape-preview .hero-banner-preview img {
  height: 100%;
  min-height: 250px;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.badge-row span {
  padding: 10px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #1f4d5c;
  font-size: 0.84rem;
  font-weight: 800;
}

ul {
  margin: 14px 0 0;
  padding-left: 18px;
}

@media (max-width: 900px) {
  .feature-grid,
  .portal-grid,
  .login-form {
    grid-template-columns: 1fr;
  }

  .login-form button,
  .highlight-card,
  .wide-card {
    grid-column: span 1;
  }

  .landscape-card {
    grid-template-columns: 1fr;
  }

  .landscape-preview .hero-banner-preview img {
    min-height: 180px;
  }

  .hero-panel,
  .login-card,
  .portal-card {
    padding: 24px;
  }

  .login-panel {
    margin-top: -24px;
  }

  .portal-header,
  .brand-row,
  .status-strip,
  .portal-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .portal-panel {
    padding: 24px 0 0;
  }

  .portal-actions,
  .status-strip {
    width: 100%;
  }

  .login-hero-logo {
    min-height: 190px;
  }

  .login-hero-logo img {
    width: 48px;
    height: 48px;
  }

  .brand-mark {
    width: 56px;
    height: 56px;
    border-radius: 16px;
  }

  .itenary-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .itenary-form .full-span,
  .itenary-form > button {
    grid-column: span 2;
  }

  .day-block,
  .hotel-block {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .generated-item {
    align-items: flex-start;
    flex-direction: column;
  }

  .generated-meta,
  .generated-actions {
    justify-content: flex-start;
    width: 100%;
  }

  .generated-action,
  .generated-delete-form {
    flex: 1 1 140px;
  }
}

@media (max-width: 640px) {
  .itenary-form,
  .login-form {
    grid-template-columns: 1fr;
  }

  .itenary-form .full-span,
  .itenary-form > button,
  .login-form button {
    grid-column: span 1;
  }

  .day-block,
  .hotel-block {
    grid-template-columns: 1fr;
  }

  .portal-card {
    padding: 18px;
  }

  .hero-panel {
    padding: 20px;
  }

  .portal-panel {
    margin-top: 0;
  }

  .portal-header h2 {
    font-size: 1.8rem;
  }

  .brand-row h1 {
    font-size: 2rem;
  }

  .editor-toolbar {
    gap: 6px;
    padding: 8px;
  }

  .editor-toolbar button {
    padding: 5px 8px;
    font-size: 0.68rem;
  }

  .editor-surface {
    min-height: 150px;
    padding: 14px;
  }

  .editor-surface-large {
    min-height: 220px;
  }

  .generated-item {
    padding: 14px;
  }

  .generated-action,
  .generated-delete-form {
    flex: 1 1 100%;
  }
}

@media (max-width: 560px) {
  .page-shell {
    width: min(100% - 18px, 100%);
    padding-top: 12px;
  }

  .hero-panel {
    padding: 22px;
  }

  .login-hero-logo {
    min-height: 150px;
  }

  .login-hero-logo img {
    width: 80px;
    height: 80px;
  }

  .brand-mark {
    width: 48px;
    height: 48px;
    border-radius: 14px;
  }
}








