/* Gedesa application additions (admin dashboard + client portal) */

/* Larger, more comfortable base type */
html { font-size: 21px; }
@media (min-width: 1600px) { html { font-size: 18px; } }
/* Wide, comfortable layout — capped and centred for a premium feel */
.wrap { max-width: 1440px; margin: 0 auto; }
.faq { margin: 0 auto; }
.hidden { display: none !important; }

/* Status pills */
.pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.pill--new, .pill--sent, .pill--draft { color: #0a53be; background: #e7f0ff; }
.pill--contacted, .pill--pending { color: #8a5300; background: #fff3db; }
.pill--proposal, .pill--accepted, .pill--confirmed, .pill--completed { color: #0f5132; background: #d1e7dd; }
.pill--declined, .pill--cancelled { color: #842029; background: #f8d7da; }

/* Generic tables */
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.admin-table th {
  text-align: left; color: var(--muted-light); font-size: 0.68rem;
  letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700;
  padding: 14px 16px; border-bottom: 1px solid var(--border);
}
.admin-table td { padding: 14px 16px; border-bottom: 1px solid var(--border-light); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table a.row-link { color: var(--green-700); font-weight: 600; }
.admin-table a.row-link:hover { color: var(--amber-500); }
.admin-table .muted { color: var(--muted); }

/* Small buttons */
.btn--sm { padding: 8px 14px; font-size: 0.76rem; }
.btn--ghost-sm {
  padding: 8px 14px; font-size: 0.76rem; color: var(--green-900);
  border: 1px solid var(--border); background: #fff; border-radius: var(--radius-sm);
  font-weight: 600; cursor: pointer; text-decoration: none;
}
.btn--ghost-sm:hover { border-color: var(--green-700); }

/* Layout helpers */
.panel-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }

/* Detail view */
.detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 32px; }
.kv-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 20px; }
.kv-card .label { margin-bottom: 8px; }
.kv-card p { margin: 0; font-size: 0.95rem; }

/* Quote / booking cards */
.doc-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 22px; }
.doc-card + .doc-card { margin-top: 16px; }
.doc-card__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.doc-card h4 { margin: 0; }
.doc-card .amount { font-family: "Cormorant Garamond", serif; font-size: 1.5rem; font-weight: 700; color: var(--green-900); }
.doc-card p { color: var(--muted); margin: 4px 0 0; font-size: 0.88rem; }

/* Inline status form */
.status-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.status-form select { padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); font: inherit; font-size: 0.82rem; background: #fff; }

/* Portal hero */
.portal-hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.portal-hero h1 { font-size: clamp(2.25rem, 4vw, 3.5rem); }
.portal-hero p:not(.eyebrow) { color: var(--muted); margin: 8px 0 0; }

/* Two-column split (admin detail) */
.detail-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }

/* Pagination */
.pager { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.pager__item {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 34px; height: 34px; padding: 0 10px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--green-900); font-size: 0.85rem; font-weight: 600;
  background: #fff; text-decoration: none;
}
.pager__item:hover { border-color: var(--green-700); }
.pager__item.is-active { background: var(--green-900); color: #fff; border-color: var(--green-900); }
.pager__item.is-disabled { color: var(--muted-light); background: transparent; cursor: default; }

/* Sidebar action buttons (admin + client portal) */
.sidebar-actions {
  margin-top: auto;
  display: grid;
  gap: 10px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.sidebar-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: #e7efe8;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  text-decoration: none;
  cursor: pointer;
}
.sidebar-btn:hover { background: rgba(255, 255, 255, 0.16); color: #fff; border-color: rgba(255, 255, 255, 0.3); }
.sidebar-btn--signout { background: var(--amber-500); border-color: var(--amber-500); color: #fff; }
.sidebar-btn--signout:hover { background: var(--amber-600); border-color: var(--amber-600); }

/* FAQ accordion */
.faq { max-width: 780px; display: grid; gap: 12px; }
.faq details { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 24px;
  font-family: "Cormorant Garamond", Georgia, serif; font-size: 1.25rem; font-weight: 700; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: "Inter", sans-serif; font-size: 1.4rem; color: var(--amber-500); font-weight: 400; transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 24px 22px; color: var(--muted); line-height: 1.7; }

/* Navigation dropdown */
.nav__dropdown { position: relative; }
.nav__dropdown-trigger {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: 0.03em;
  transition: color 0.2s ease;
}
.nav__dropdown-trigger:hover { color: var(--green-700); }
.nav__dropdown-trigger.is-current { color: var(--green-700); box-shadow: inset 0 -2px 0 var(--amber-500); }
.nav__caret { font-size: 0.6em; margin-left: 4px; opacity: 0.7; transition: transform 0.25s ease; }
.nav__dropdown.is-open .nav__caret { transform: rotate(180deg); }
.nav__dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 250px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 8px;
  z-index: 40;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
.nav__dropdown.is-open .nav__dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__dropdown-menu a { display: block; padding: 10px 14px; border-radius: var(--radius-sm); font-size: 0.88rem; color: var(--ink); }
.nav__dropdown-menu a:hover { background: var(--cream); color: var(--green-700); }

@media (max-width: 900px) {
  .detail-grid { grid-template-columns: 1fr; }
  .detail-cols { grid-template-columns: 1fr; }
  .nav__dropdown { width: 100%; }
  .nav__dropdown-trigger { width: 100%; justify-content: space-between; padding: 12px 0; }
  .nav__dropdown-menu {
    position: static;
    min-width: 0;
    box-shadow: none;
    border: 0;
    border-radius: 0;
    padding: 0 0 4px 14px;
    transform: none;
  }
  .nav__dropdown-menu a { padding: 11px 0; border-radius: 0; }
}

/* Destination slideshow */
.slideshow { position: relative; height: min(72vh, 620px); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.slideshow__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.9s ease; pointer-events: none; }
.slideshow__slide.is-active { opacity: 1; pointer-events: auto; }
.slideshow__slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.slideshow__caption { position: absolute; left: 0; bottom: 0; width: min(100%, 580px); padding: 32px; color: #fff; background: linear-gradient(to top, rgba(15,42,29,0.92), rgba(15,42,29,0) 90%); }
.slideshow__caption h3 { color: #fff; font-size: clamp(1.8rem, 3.5vw, 3rem); margin-bottom: 8px; }
.slideshow__caption p { color: #e9efe9; margin: 0 0 18px; font-size: 1rem; }
.slideshow__dots { position: absolute; right: 24px; bottom: 24px; display: flex; gap: 8px; z-index: 3; }
.slideshow__dot { width: 10px; height: 10px; border-radius: 50%; border: 0; background: rgba(255,255,255,0.45); cursor: pointer; padding: 0; transition: all 0.25s ease; }
.slideshow__dot.is-active { background: var(--amber-500); transform: scale(1.3); }
.slideshow__arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,0.85); color: var(--green-900); font-size: 1.6rem; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: background 0.2s ease, color 0.2s ease; }
.slideshow__arrow:hover { background: #fff; color: var(--green-700); }
.slideshow__arrow--prev { left: 20px; }
.slideshow__arrow--next { right: 20px; }
@media (max-width: 900px) {
  .slideshow { height: 58vh; }
  .slideshow__caption { padding: 24px; }
  .slideshow__arrow { width: 40px; height: 40px; }
}

/* Photo tiles (experiences page) */
.tile--photo { position: relative; padding: 0; overflow: hidden; background: #0b251f; border: 0; }
.tile--photo .tile__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.tile--photo:hover .tile__bg { transform: scale(1.06); }
.tile--photo .tile__content { position: relative; z-index: 1; min-height: 230px; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; text-align: center; padding: 24px 18px; color: #fff; background: linear-gradient(0deg, rgba(11,37,31,.9) 0%, rgba(11,37,31,.28) 58%, rgba(11,37,31,.06) 100%); }
.tile--photo h4 { color: #fff; margin: 0; }
.tile--photo span { color: var(--amber-500); }
.tile--photo:hover { background: #0b251f; }
