:root {
  /* Ancho del contenido y margen lateral que alinea barra superior, menú, contenido y pie */
  --page-width: 1200px;
  --page-gutter: 1.5rem;
  --page-inline: max(var(--page-gutter), calc((100% - var(--page-width)) / 2 + var(--page-gutter)));
  /* Colores del logo */
  --brand-blue: #073391;
  --brand-blue-light: #0b47c4;
  --brand-red: #dc1212;
  --brand-red-dark: #b50e0e;
  --primary: #0284c7;
  --primary-hover: #0369a1;
  --primary-light: #e0f2fe;
  --secondary: #0f766e;
  --accent: #f59e0b;
  --tour-color: #0284c7;
  --group-color: #7c3aed;
  --local-color: #059669;
  --bg-main: #f8fafc;
  --bg-card: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --radius: 14px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
}

/* Header & Navigation */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 1rem var(--page-inline);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-main);
}

.brand-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
  font-weight: bold;
}

.brand-title {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand-subtitle {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.nav-link {
  text-decoration: none;
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--primary);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.15rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-outline {
  border: 1px solid var(--border);
  background: white;
  color: var(--text-main);
}

.btn-outline:hover {
  background: var(--bg-main);
  border-color: #cbd5e1;
}

/* Hero Section */
.hero {
  padding: 4.5rem 1.5rem 3rem;
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary-light);
  color: var(--primary);
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  color: #0f172a;
}

.hero-highlight {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 2rem;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Category Filter Tabs */
.categories-tabs {
  max-width: 1200px;
  margin: 1.5rem auto 2.5rem;
  padding: 0 1.5rem;
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border-radius: 9999px;
  font-size: 0.95rem;
  font-weight: 600;
  border: 1px solid var(--border);
  background: white;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.tab-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.tab-btn.active {
  background: var(--text-main);
  color: white;
  border-color: var(--text-main);
}

/* Main Container & Sections */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem 5rem;
}

.section-header {
  margin-bottom: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 0.25rem;
}

/* Grid & Cards */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.75rem;
}

.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-header-banner {
  height: 140px;
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 1rem;
  color: white;
}

.banner-tour {
  background: linear-gradient(135deg, #0284c7, #2563eb);
}

.banner-group {
  background: linear-gradient(135deg, #7c3aed, #9333ea);
}

.banner-local {
  background: linear-gradient(135deg, #059669, #0d9488);
}

.card-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card-price-badge {
  background: white;
  color: var(--text-main);
  padding: 0.35rem 0.8rem;
  border-radius: 8px;
  font-weight: 800;
  font-size: 1rem;
  box-shadow: var(--shadow-sm);
}

.card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.card-meta-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.card-description {
  color: #475569;
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.card-footer {
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-status {
  font-size: 0.8rem;
  font-weight: 600;
  color: #059669;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* Architecture Features Section */
.features-box {
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 2.5rem;
  margin-top: 4rem;
  box-shadow: var(--shadow-sm);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin-top: 1.5rem;
}

.feature-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--bg-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.feature-title {
  font-size: 1.1rem;
  font-weight: 700;
}

.feature-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Footer */
.footer {
  background: white;
  border-top: 1px solid var(--border);
  padding: 3rem var(--page-inline) 2rem;
  margin-top: 4rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-text {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--primary);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .navbar {
    padding: 0.75rem var(--page-inline);
  }
  .nav-links {
    gap: 1rem;
  }
  .hero-title {
    font-size: 2.2rem;
  }
}

/* Logo de marca */
.brand-logo {
  display: block;
  height: 64px;
  width: auto;
  max-width: 100%;
}
.brand-logo--footer { height: 48px; }
.brand-logo--login { height: 84px; margin: 0 auto; }
/* El logo es azul/rojo: sobre fondos oscuros va dentro de una placa blanca */
.brand-logo-tile {
  display: block;
  background: #ffffff;
  border-radius: 10px;
  padding: 0.5rem 0.6rem;
}
.brand-logo-tile .brand-logo { height: auto; width: 100%; }
@media (max-width: 768px) {
  .brand-logo { height: 40px; }
  .brand-logo--login { height: 68px; }
}

/* Tarjetas con foto del destino */
.card-header-banner.has-image {
  height: 200px;
  background-size: cover;
  background-position: center;
}
/* La foto va encima del degradado: si el archivo falta, se ve el degradado */
.banner-tour.has-image { background-image: var(--card-img), linear-gradient(135deg, #0284c7, #2563eb); }
.banner-group.has-image { background-image: var(--card-img), linear-gradient(135deg, #7c3aed, #9333ea); }
.banner-local.has-image { background-image: var(--card-img), linear-gradient(135deg, #059669, #0d9488); }
/* Sombra superior para que las etiquetas se lean sobre cualquier foto */
.card-header-banner.has-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.45) 0%, rgba(15, 23, 42, 0) 45%);
  pointer-events: none;
}
.card-header-banner.has-image > * { position: relative; }

/* Galería pública */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.gallery-item {
  position: relative;
  padding: 0;
  border: 0;
  border-radius: 10px;
  overflow: hidden;
  cursor: zoom-in;
  background: #e2e8f0;
  aspect-ratio: 4 / 3;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.25s; }
.gallery-item:hover img, .gallery-item:focus-visible img { transform: scale(1.05); }
.gallery-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.25rem 0.6rem 0.45rem;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0));
  color: white;
  font-size: 0.78rem;
  text-align: left;
}
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(15, 23, 42, 0.92);
}
.lightbox.active { display: flex; }
.lightbox figure { margin: 0; max-width: 100%; text-align: center; }
.lightbox img { max-width: 100%; max-height: 82vh; border-radius: 8px; }
.lightbox figcaption { color: #e2e8f0; margin-top: 0.75rem; font-size: 0.95rem; }
.lightbox-close {
  position: absolute;
  top: 1rem; right: 1.25rem;
  background: none; border: 0;
  color: white; font-size: 2.25rem; line-height: 1;
  cursor: pointer;
}

/* ---------- Modal de cotización ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.modal-overlay.active { opacity: 1; visibility: visible; }

.bk-modal {
  width: 100%;
  max-width: 560px;
  max-height: calc(100vh - 2.5rem);
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 30px 60px -15px rgba(15, 23, 42, 0.45);
  transform: translateY(16px) scale(0.97);
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.modal-overlay.active .bk-modal { transform: none; }

.bk-header {
  position: relative;
  flex-shrink: 0;
  min-height: 132px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 1.25rem 1.5rem;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-light));
  background-size: cover;
  background-position: center;
  border-bottom: 4px solid var(--brand-red);
}
.bk-badge {
  align-self: flex-start;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.bk-title {
  margin: 0;
  padding-right: 2.5rem;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 8px rgba(15, 23, 42, 0.45);
}
.bk-close {
  position: absolute;
  top: 0.9rem;
  right: 0.9rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: rgba(7, 51, 145, 0.55);
  color: #ffffff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}
.bk-close:hover { background: var(--brand-red); transform: rotate(90deg); }

.bk-form { display: flex; flex-direction: column; min-height: 0; }
.bk-body { padding: 1.25rem 1.5rem 0.5rem; overflow-y: auto; }
.bk-intro { margin: 0 0 1.1rem; font-size: 0.9rem; line-height: 1.5; color: var(--text-muted); }

.bk-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem 1rem; }
.bk-full { grid-column: 1 / -1; }
.bk-field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--brand-blue);
}
.bk-req { color: var(--brand-red); }
.bk-field input,
.bk-field select,
.bk-field textarea {
  width: 100%;
  padding: 0.7rem 0.95rem;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: #f8fafc;
  color: var(--text-main);
  font: inherit;
  font-size: 0.95rem;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}
.bk-field textarea { resize: vertical; min-height: 84px; }
.bk-field select {
  appearance: none;
  padding-right: 2.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%2364748b' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m3 6 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 14px;
}
.bk-field input::placeholder,
.bk-field textarea::placeholder { color: #94a3b8; }
.bk-field input:hover,
.bk-field select:hover,
.bk-field textarea:hover { border-color: #94a3b8; }
.bk-field input:focus,
.bk-field select:focus,
.bk-field textarea:focus {
  outline: 0;
  background-color: #ffffff;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 0.25rem rgba(7, 51, 145, 0.18);
}

.bk-footer {
  flex-shrink: 0;
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 1rem 1.5rem 1.25rem;
  border-top: 1px solid #f1f5f9;
  background: #ffffff;
}
.bk-btn {
  padding: 0.75rem 1.5rem;
  border: 0;
  border-radius: 999px;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s, transform 0.15s;
}
.bk-btn-ghost { background: #eef2fb; color: var(--brand-blue); }
.bk-btn-ghost:hover { background: #dde6f8; }
.bk-btn-primary {
  flex: 1;
  background: var(--brand-red);
  color: #ffffff;
  box-shadow: 0 8px 18px -6px rgba(220, 18, 18, 0.6);
}
.bk-btn-primary:hover { background: var(--brand-red-dark); transform: translateY(-1px); box-shadow: 0 12px 22px -6px rgba(220, 18, 18, 0.65); }
.bk-btn-primary:disabled { opacity: 0.65; cursor: wait; transform: none; }
.bk-btn:focus-visible, .bk-close:focus-visible { outline: 3px solid rgba(7, 51, 145, 0.45); outline-offset: 2px; }

/* En teléfono el modal sube desde abajo, a todo el ancho */
@media (max-width: 600px) {
  .modal-overlay { align-items: flex-end; padding: 0; }
  .bk-modal { max-width: none; max-height: 94vh; border-radius: 22px 22px 0 0; transform: translateY(100%); }
  .bk-grid { grid-template-columns: 1fr; }
  .bk-header { min-height: 116px; }
  .bk-footer { padding-bottom: calc(1.25rem + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) {
  .modal-overlay, .bk-modal, .bk-close, .bk-btn { transition: none; }
}

/* ---------- Menú con desplegables (Tours / Grupos / Tours Locales) ---------- */
.nav-dropdown { position: relative; padding: 0.5rem 0; }
.nav-dropdown > .nav-link { display: inline-flex; align-items: center; gap: 0.3rem; }
.nav-caret { font-size: 0.75rem; transition: transform 0.2s; }
.nav-dropdown:hover .nav-caret, .nav-dropdown:focus-within .nav-caret { transform: rotate(180deg); }
.nav-dropdown:hover > .nav-link, .nav-dropdown:focus-within > .nav-link { color: var(--brand-blue); }
.nav-submenu {
  position: absolute;
  top: 100%;
  left: -0.75rem;
  z-index: 60;
  min-width: 300px;
  max-width: 380px;
  margin: 0;
  padding: 0.5rem;
  list-style: none;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 18px 40px -12px rgba(15, 23, 42, 0.28);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}
.nav-dropdown:hover .nav-submenu, .nav-dropdown:focus-within .nav-submenu { opacity: 1; visibility: visible; transform: none; }
.nav-submenu a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  color: var(--text-main);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.35;
}
.nav-submenu a:hover, .nav-submenu a:focus-visible { background: #eef2fb; color: var(--brand-blue); outline: 0; }
.nav-submenu small { flex-shrink: 0; color: var(--text-muted); font-size: 0.78rem; font-weight: 600; white-space: nowrap; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #ffffff;
  cursor: pointer;
}
.nav-toggle span { display: block; height: 2px; border-radius: 2px; background: var(--brand-blue); transition: transform 0.2s, opacity 0.2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* La tarjeta elegida desde el menú se resalta un momento; el margen evita que quede bajo el menú fijo */
.card, #catalogo, #abordaje, #galeria, #nosotros { scroll-margin-top: 110px; }
.card-highlight { box-shadow: 0 0 0 3px var(--brand-blue), 0 18px 40px -12px rgba(7, 51, 145, 0.35) !important; }

/* Tableta y teléfono: el menú se pliega tras el botón y los desplegables quedan abiertos en lista */
@media (max-width: 1024px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
    padding: 0.75rem var(--page-inline) 1.25rem;
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 18px 30px -18px rgba(15, 23, 42, 0.35);
  }
  .nav-links.open { display: flex; }
  .nav-links > li > .nav-link { display: flex; padding: 0.6rem 0; font-weight: 700; color: var(--text-main); }
  .nav-links > li > .btn { justify-content: center; margin-top: 0.5rem; }
  .nav-dropdown { padding: 0; }
  .nav-caret { display: none; }
  .nav-submenu {
    position: static;
    min-width: 0;
    max-width: none;
    padding: 0 0 0.5rem 0.75rem;
    border: 0;
    border-left: 2px solid #e2e8f0;
    border-radius: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }
}

/* ---------- Ventana de detalle de tour ---------- */
[data-detail] { cursor: pointer; }
.card-title-btn {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.card-title-btn:hover, .card-title-btn:focus-visible { color: var(--brand-blue); text-decoration: underline; outline: 0; }
.card-more {
  align-self: flex-start;
  margin: -0.25rem 0 1rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--brand-blue);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
}
.card-more:hover, .card-more:focus-visible { text-decoration: underline; outline: 0; }

.dt-modal { max-width: 780px; }
.dt-hero {
  position: relative;
  flex-shrink: 0;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.6rem;
  padding: 1.5rem 1.75rem;
  color: #ffffff;
  background: linear-gradient(135deg, var(--brand-blue), var(--brand-blue-light));
  background-size: cover;
  background-position: center;
  border-bottom: 4px solid var(--brand-red);
}
.dt-title { font-size: 1.7rem; }
.dt-body { padding: 1.5rem 1.75rem 0.75rem; overflow-y: auto; }
.dt-topline { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; margin-bottom: 1.25rem; }
.dt-price {
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: var(--brand-red);
  color: #ffffff;
  font-size: 1.05rem;
  font-weight: 800;
  white-space: nowrap;
}
.dt-meta { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.dt-chip {
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: #eef2fb;
  color: var(--brand-blue);
  font-size: 0.82rem;
  font-weight: 600;
}
.dt-section { margin-bottom: 1.25rem; }
.dt-section[hidden] { display: none; }
.dt-section h4 { margin: 0 0 0.4rem; font-size: 0.95rem; font-weight: 800; color: var(--brand-blue); }
.dt-section p { margin: 0; font-size: 0.95rem; line-height: 1.65; color: #334155; white-space: pre-line; }
.dt-section .dt-lead { font-size: 1.05rem; color: var(--text-main); }
.dt-includes { padding: 1rem 1.15rem; border-radius: 14px; background: #f0fdf4; border: 1px solid #bbf7d0; }
.dt-includes h4 { color: #166534; }
.dt-photos-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 0.6rem; }
.dt-note { margin: 0 0 0.5rem; font-size: 0.78rem; color: var(--text-muted); }
.dt-note[hidden] { display: none; }

@media (max-width: 600px) {
  .dt-hero { min-height: 210px; padding: 1.25rem; }
  .dt-title { font-size: 1.35rem; }
  .dt-body { padding: 1.25rem 1.25rem 0.5rem; }
}
