Toggle menu
17
24
14
1.7K
Landrace.Wiki - The Landrace Cannabis Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Accession/styles.css: Difference between revisions

Template page
No edit summary
Undo revision 1597 by Eloise Zomia (talk)
Tag: Undo
 
(47 intermediate revisions by the same user not shown)
Line 1: Line 1:
/* Cleaner Hero Header - Remove frames and tighten */
/* ============================================ */
/* HERO CONTAINER – SUPER COMPACT              */
/* ============================================ */
 
.hero-header {
.hero-header {
   background: white;
   background: #0f2117;
   border-radius: 8px;
  border: 1px solid #1f3b2a;
   border-radius: 3px;
   overflow: hidden;
   overflow: hidden;
   box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
   box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
   margin-bottom: 1.5rem;
   margin: 0.125rem 0 0.025rem;
  position: relative;
}
}


/* Tighter top section */
.hero-top {
.hero-top {
   background: #0f172a;
   background: #152a21;
   color: white;
   color: #f9fafb;
   padding: 1rem 1.5rem;
   padding: 0.18rem 0.7rem 0.2rem 0.7rem;  /* was 0.45 / 0.9 / 0.5 */
   position: relative;
  border-bottom: 1px solid rgba(140, 184, 156, 0.35);
  line-height: 1.2;
}
 
/* ============================================ */
/* TITLE + METADATA                            */
/* ============================================ */
 
.title-section {
   margin-bottom: 0.02rem;
}
}


.hero-title {
.hero-title {
   font-size: 1.8rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
   font-weight: bold;
   font-size: 1.3rem;
   margin: 0;
   font-weight: 600;
   line-height: 1;
   margin: 0 0 0.01rem 0;  
   color: white;
   line-height: 1.15;
   max-width: 70%;
   letter-spacing: -0.02em;
   color: #f9fafb;
}
}


.hero-subtitle {
.hero-subtitle {
   font-family: monospace;
   font-family: "SF Mono", Monaco, Inconsolata, "Roboto Mono", "Courier New", monospace;
   font-size: 0.7rem;
  font-size: 0.68rem;
   color: #94a3b8;
  color: #e5e9c9;
   background: rgba(255, 255, 255, 0.08);
  background: rgba(18, 42, 33, 0.9);
   padding: 0.25rem 0.5rem;
  border: 1px solid rgba(140, 184, 156, 0.4);
  padding: 0.08rem 0.2rem;  /* slightly tighter */
  border-radius: 2px;
  display: inline-block;
  margin-top: 0.08rem;      /* was 0.18rem */
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
 
.accession-metadata {
  display: flex;
  flex-direction: column;
  gap: 0.04rem;    /* was 0.16rem */
  margin-top: 0.02rem;  /* was 0.15rem */
}
 
.metadata-primary {
  display: flex;
  align-items: center;
  gap: 0.35rem;    /* was 0.5rem */
  flex-wrap: wrap;
}
 
.metadata-secondary {
  display: flex;
  align-items: center;
  gap: 0.2rem;      /* was 0.35rem */
  flex-wrap: wrap;
  font-size: 0.74rem;
  color: #c4d4cc;
}
 
.separator {
  color: #7a9682;
  user-select: none;
}
 
/* ============================================ */
/* BADGES                                      */
/* ============================================ */
 
.status-badge,
.classification-badge {
  padding: 0.1rem 0.35rem;  /* was 0.14rem 0.45rem */
  border-radius: 999px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}
 
.accession-id-badge {
  background: rgba(134, 239, 172, 0.16);
  border-color: rgba(134, 239, 172, 0.4);
  color: #bbf7d0;
  font-family: "SF Mono", Monaco, monospace;
}
 
.collection-date {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
   font-size: 0.76rem;
   color: #c4d4cc;
  font-weight: 500;
   background: rgba(196, 212, 204, 0.08);
  border: 1px solid rgba(196, 212, 204, 0.15);
   padding: 0.16rem 0.5rem; /* was 0.2rem 0.6rem */
   border-radius: 3px;
   border-radius: 3px;
  display: inline-block;
  margin-top: 0.5rem;
}
}


/* Geographic breadcrumb in header - FIXED STYLING */
.collector {
.hero-breadcrumb {
  font-size: 0.74rem;
   margin-top: 0.75rem;
  color: #e5e9c9;
   font-size: 0.7rem;
  font-weight: 500;
   color: #94a3b8;
}
   /* Remove any background - should be transparent */
 
   background: none !important;
.affiliation {
   border: none !important;
  font-size: 0.74rem;
   padding: 0 !important;
  color: #a7c1b1;
}
 
/* Status flavours – unchanged colours */
.status-active {
  background: #14532d;
  border-color: #22c55e;
  color: #e6f9ef;
}
 
.status-tier1 {
  background: #075985;
  border-color: #38bdf8;
  color: #e0f2fe;
}
 
.status-priority {
   background: #7f1d1d;
  border-color: #f97373;
  color: #fee2e2;
}
 
.classification-landrace {
  background: #064e3b;
   border-color: #22c55e;
  color: #bbf7d0;
}
 
.classification-population {
  background: #1e3a8a;
   border-color: #6366f1;
   color: #c7d2fe;
}
 
/* ============================================ */
/* SECTION LABELS + BREADCRUMBS                */
/* ============================================ */
 
.header-section {
  margin-top: 0.04rem;  /* was 0.22rem */
   display: flex;
   align-items: center;
   gap: 0.16rem;          /* was 0.25rem */
  flex-wrap: wrap;
}
}


.hero-breadcrumb-label {
.section-label {
   font-size: 0.6rem;
  font-family: "SF Mono", Monaco, monospace;
   font-size: 0.58rem;
  color: #8fb59b;
   text-transform: uppercase;
   text-transform: uppercase;
  color: #64748b;
  font-weight: bold;
   letter-spacing: 0.5px;
   letter-spacing: 0.5px;
   margin-bottom: 0.25rem;
   white-space: nowrap;
   display: block;
}
 
.section-label.status {
  color: #a6c3b3;
}
 
.section-label.classification {
  color: #e3e7c5;
}
 
.geographic-breadcrumb {
   flex: 1 1 auto;
}
}


.hero-breadcrumb-path {
.breadcrumb-trail {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.75rem;
  line-height: 1.1;  /* was 1.15 */
   display: flex;
   display: flex;
   align-items: center;
   align-items: center;
   flex-wrap: wrap;
   flex-wrap: wrap;
   gap: 0.25rem;
   gap: 0.08rem;       /* was 0.14rem */
}
}


.hero-breadcrumb .level {
.breadcrumb-item {
   color: #10b981;
  background: rgba(155, 191, 167, 0.16);
   font-weight: 600;
  border: 1px solid rgba(155, 191, 167, 0.32);
   color: #e6f4ec;
   font-weight: 500;
  padding: 0.04rem 0.22rem;  /* was 0.06rem 0.24rem */
  border-radius: 999px;
   text-decoration: none;
   text-decoration: none;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  background: rgba(16, 185, 129, 0.15);
  font-size: 0.65rem;
  border: 1px solid rgba(16, 185, 129, 0.3);
  transition: all 0.2s;
}
}


.hero-breadcrumb .level:hover {
.breadcrumb-item a {
   background: rgba(16, 185, 129, 0.25);
  color: inherit;
   border-color: rgba(16, 185, 129, 0.5);
  text-decoration: none;
}
.breadcrumb-item a:visited {
   color: inherit;
}
.breadcrumb-item a:hover {
   text-decoration: underline;
}
}


.hero-breadcrumb .separator {
.breadcrumb-item:last-child {
   color: #64748b;
   background: rgba(155, 191, 167, 0.32);
  margin: 0 0.2rem;
   border-color: rgba(155, 191, 167, 0.6);
   font-weight: normal;
   color: #f4fffa;
   font-size: 0.6rem;
}
}


.hero-badges {
.breadcrumb-separator {
   position: absolute;
   color: #6e8f7c;
   top: 0.75rem;
   font-size: 0.7rem;
   right: 1rem;
  user-select: none;
}
 
/* ============================================ */
/* STATUS ROW                                  */
/* ============================================ */
 
.status-row {
  margin-top: 0.08rem;      /* was 0.3rem */
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.3rem;             /* was 0.7rem */
   flex-wrap: wrap;
}
}


.hero-badge {
.status-group,
  padding: 0.1rem 0.3rem;
.classification-group {
  border-radius: 4px;
   flex: 1;
   font-size: 0.5rem;
   min-width: 180px;         /* was 200px */
  font-weight: bold;
  text-transform: uppercase;
  margin-bottom: 0.1rem;
  display: block;
   min-width: 50px;
  text-align: center;
}
}


.badge-active {
.classification-group {
   background: #16a34a;
   text-align: right;
  color: white;
}
}


.badge-tier1 {
.status-badges {
   background: #2563eb;
   display: flex;
   color: white;
   flex-wrap: wrap;
  gap: 0.18rem;            /* was 0.3rem */
  justify-content: flex-start;
}
}


.badge-priority {
.classification-group .status-badges {
   background: #dc2626;
   justify-content: flex-end;
  color: white;
}
}


/* Split section */
/* ============================================ */
/* HERO SPLIT (IMAGE + MAP)                    */
/* ============================================ */
 
.hero-split {
.hero-split {
   display: table;
   display: table;
   width: 100%;
   width: 100%;
   table-layout: fixed;
   table-layout: fixed;
   background: #f8fafc;
   background: #faf8f5;
  border-top: 1px solid rgba(140, 184, 156, 0.3);
}
}


.hero-image, .hero-map {
.hero-image,
.hero-map {
   display: table-cell;
   display: table-cell;
   width: 50%;
   width: 50%;
   vertical-align: top;
   vertical-align: top;
   height: 400px;
   height: 180px;
   position: relative;
   position: relative;
}
}
/* Image */


.hero-image {
.hero-image {
   background: #f1f5f9;
   background: #f5f3f0;
   border-right: 1px solid #e2e8f0;
   border-right: 1px solid #d4c5b8;
  overflow: hidden;
}
}


.hero-image img {
.hero-image img,
.hero-photo {
   width: 100%;
   width: 100%;
   height: 400px;
   height: 100%;
   object-fit: cover;
   object-fit: cover;
}
/* Placeholder */
.photo-placeholder {
  height: 400px;
  background: #f8fafc;
  display: table;
  width: 100%;
}
.placeholder-content {
  display: table-cell;
  vertical-align: middle;
  text-align: center;
  padding: 2rem;
}
.placeholder-icon {
  font-size: 3rem;
  color: #94a3b8;
  margin-bottom: 1rem;
   display: block;
   display: block;
}
}


.placeholder-title {
/* Image caption */
  font-size: 1.2rem;
  color: #334155;
  font-weight: bold;
  margin-bottom: 0.75rem;
}


.placeholder-subtitle {
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.4;
  max-width: 280px;
  margin: 0 auto 1rem;
}
.placeholder-instruction {
  font-size: 0.8rem;
  color: #94a3b8;
  background: white;
  padding: 0.75rem;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  max-width: 260px;
  margin: 0 auto;
}
/* Image overlay - tightened */
.image-overlay {
.image-overlay {
   position: absolute;
   position: absolute;
  bottom: 0;
   left: 0;
   left: 0;
   right: 0;
   right: 0;
   background: rgba(0, 0, 0, 0.6);
  bottom: 0;
   color: white;
  padding: 0.7rem 0.9rem;
  padding: 0.75rem 1rem 0.5rem;
   background: rgba(12, 30, 23, 0.9);
   color: #e8f0ec;
}
}


.image-caption {
.image-caption {
   font-size: 0.8rem;
   font-family: "SF Mono", Monaco, monospace;
   font-weight: bold;
   font-size: 0.76rem;
   margin: 0;
   margin: 0;
   line-height: 1.2;
   line-height: 1.35;
}
}


/* Map section - FIXED */
/* Map */
 
.hero-map {
.hero-map {
   background: #f8fafc;
   background: #fdfaf6;
  border: 1px solid #e4d6c7;
}
}


.map-container {
.map-container {
   height: 400px;
   height: 178px;
   width: 100%;
   width: calc(100% - 2px);
   background: #e2e8f0;
   background: #f9f6f3;
   display: flex;
   display: flex;
   align-items: center;
   align-items: center;
   justify-content: center;
   justify-content: center;
  color: #64748b;
  font-size: 0.9rem;
  font-weight: bold;
   position: relative;
   position: relative;
}
}


/* Ensure the actual map div takes full space when loaded */
.lw-map {
.lw-map {
   width: 100% !important;
   width: 100% !important;
   height: 400px !important;
   height: 178px !important;
}
}


/* TIGHTENED Map Legend - Much more compact */
/* Map overlays */
.map-legend {
 
.accession-status {
   position: absolute;
   position: absolute;
   top: 0.5rem;
   top: 0.7rem;
   left: 0.5rem;
   left: 0.7rem;
   background: rgba(255, 255, 255, 0.95);
   max-width: 220px;
  border-radius: 6px;
   padding: 0.5rem 0.7rem;
   padding: 0.5rem;
   background: rgba(253, 250, 246, 0.97);
   box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
   border: 1px solid #e4d6c7;
  max-width: 160px;
   border-radius: 3px;
   border: 1px solid rgba(0, 0, 0, 0.1);
   box-shadow: 0 3px 10px rgba(47, 69, 56, 0.18);
   z-index: 1000;
   font-size: 0.7rem;
}
}


.legend-section {
.accession-status-title {
   margin-bottom: 0.4rem;
  font-family: "SF Mono", Monaco, monospace;
  font-size: 0.68rem;
  text-transform: uppercase;
  color: #7b8676;
  font-weight: 600;
   margin-bottom: 0.2rem;
  letter-spacing: 0.5px;
}
}


.legend-section:last-child {
.accession-status-value {
   margin-bottom: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: #b91c1c;
   margin-bottom: 0.08rem;
}
}


.legend-title {
.accession-status-note {
   font-size: 0.6rem;
   font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
   text-transform: uppercase;
   font-size: 0.72rem;
   color: #64748b;
   color: #6b7280;
   font-weight: bold;
   line-height: 1.25;
  margin-bottom: 0.15rem;
  letter-spacing: 0.5px;
}
}


.legend-primary {
.coordinates {
   font-weight: bold;
   position: absolute;
   color: #1e293b;
  bottom: 0.7rem;
  right: 0.7rem;
  padding: 0.45rem 0.7rem;
  background: rgba(253, 250, 246, 0.96);
  border: 1px solid #e4d6c7;
  border-radius: 999px;
   font-family: "SF Mono", Monaco, monospace;
   font-size: 0.7rem;
   font-size: 0.7rem;
   margin-bottom: 0.1rem;
   font-weight: 500;
   line-height: 1.1;
   color: #234232;
}
}


.legend-secondary {
/* ============================================ */
  color: #64748b;
/* DETAIL STRIP                                */
  font-size: 0.65rem;
/* ============================================ */
  margin-bottom: 0.15rem;
  line-height: 1.1;
}


.legend-coords {
.hero-details {
   font-family: monospace;
   background: #234232;
   font-size: 0.6rem;
   border-top: 1px solid rgba(140, 184, 156, 0.5);
  color: #374151;
   padding: 0.32rem 0.7rem;
  background: rgba(248, 250, 252, 0.8);
   display: flex;
   padding: 0.15rem 0.3rem;
  justify-content: space-evenly;
   border-radius: 3px;
  gap: 0.6rem;
   line-height: 1;
  flex-wrap: nowrap;
   overflow-x: auto;
}
}


/* TIGHTENED Conservation Status Legend */
.detail-group {
.leaflet-control {
   display: flex;
   font-size: 0.65rem !important;
  flex-direction: column;
  min-width: 80px;
  max-width: 130px;
  text-align: center;
  flex-shrink: 0;
}
}


.leaflet-control-layers {
.detail-label {
   background: rgba(255, 255, 255, 0.9) !important;
   font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
   border-radius: 4px !important;
   font-size: 0.58rem;
   box-shadow: 0 1px 6px rgba(0, 0, 0, 0.1) !important;
   color: #b7d0c0;
   border: 1px solid rgba(0, 0, 0, 0.1) !important;
   font-weight: 500;
   padding: 0.3rem !important;
   margin-bottom: 0.14rem;
}
}


.leaflet-control-layers-list {
.detail-value {
   margin: 0 !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
   font-size: 0.72rem;
  font-weight: 600;
  color: #f3faf7;
  line-height: 1.2;
}
}


.leaflet-control-layers label {
.detail-value.highlight {
   font-size: 0.6rem !important;
   color: #fbbf24;
  margin-bottom: 0.1rem !important;
  line-height: 1.1 !important;
  padding-left: 0.15rem !important;
}
}


/* Tighten leaflet zoom controls */
/* ============================================ */
.leaflet-control-zoom {
/* PHOTO GALLERY                                */
  border: 1px solid rgba(0, 0, 0, 0.1) !important;
/* ============================================ */
  border-radius: 4px !important;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.1) !important;
}


.leaflet-control-zoom a {
.acc-gallery {
   width: 24px !important;
   display: grid;
   height: 24px !important;
   grid-template-columns: repeat(4, minmax(0, 1fr));
  line-height: 24px !important;
   gap: 0.75rem;
   font-size: 14px !important;
   margin: 1.2rem 0 1.7rem 0;
   background: rgba(255, 255, 255, 0.9) !important;
}
}


/* Legacy map overlay styles (kept for compatibility) */
.acc-gallery-item {
.map-overlay {
   background: #f5f3f0;
   position: absolute;
   border: 1px solid #d4c5b8;
   top: 0.5rem;
   border-radius: 3px;
  left: 0.5rem;
   overflow: hidden;
  background: rgba(255, 255, 255, 0.95);
   display: flex;
   border-radius: 6px;
   flex-direction: column;
   padding: 0.5rem;
   box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
   max-width: 160px;
  border: 1px solid rgba(0, 0, 0, 0.1);
}
}


.map-overlay h4 {
.acc-gallery-img {
   margin: 0 0 0.25rem 0;
   width: 100%;
  font-size: 0.6rem;
   height: 150px;
  text-transform: uppercase;
   object-fit: cover;
   color: #64748b;
   display: block;
   font-weight: bold;
   letter-spacing: 0.5px;
}
}


.location-primary {
.acc-gallery-caption {
   font-weight: bold;
   padding: 0.55rem 0.6rem;
   color: #1e293b;
   font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  margin-bottom: 0.25rem;
   font-size: 0.75rem;
   font-size: 0.7rem;
   line-height: 1.35;
   line-height: 1.1;
  color: #374151;
  background: #fefcf9;
}
}


.location-secondary {
/* ============================================ */
  color: #64748b;
/* RESPONSIVE                                  */
  font-size: 0.65rem;
/* ============================================ */
  line-height: 1.1;
}


.coordinates {
@media (max-width: 1024px) {
   position: absolute;
   .hero-top {
  bottom: 0.5rem;
    padding: 0.45rem 0.7rem 0.5rem 0.7rem;
  right: 0.5rem;
   }
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 0.25rem 0.4rem;
  border-radius: 4px;
  font-family: monospace;
   font-size: 0.6rem;
  font-weight: bold;
  line-height: 1;
}


/* Details section - TIGHTENED AND INTEGRATED */
  .acc-gallery {
.hero-details {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  background: #f8fafc;
   }
  border-top: 1px solid #e2e8f0;
  padding: 0.75rem 1.5rem;
   text-align: center;
}


.detail-group {
  .acc-gallery-img {
  display: inline-block;
    height: 160px;
  margin: 0 0.75rem 0.5rem 0;
   }
  min-width: 85px;
   vertical-align: top;
}
}


.detail-label {
@media (max-width: 768px) {
   font-size: 0.6rem;
   .status-row {
  text-transform: uppercase;
    flex-direction: column;
  color: #64748b;
    gap: 0.6rem;
  font-weight: bold;
   }
  margin-bottom: 0.15rem;
   letter-spacing: 0.5px;
}


.detail-value {
  .classification-group {
  font-size: 0.8rem;
    text-align: left;
   font-weight: bold;
   }
  color: #1e293b;
  line-height: 1.1;
}


.detail-value.highlight {
  color: #059669;
}
/* Mobile */
@media (max-width: 768px) {
   .hero-split {
   .hero-split {
     display: block;
     display: block;
   }
   }
 
 
   .hero-image, .hero-map {
   .hero-image,
  .hero-map {
     display: block;
     display: block;
     width: 100%;
     width: 100%;
     height: 300px;
     height: 180px;
   }
   }
 
 
  .hero-map {
   .map-container,
    border-right: none;
    border-top: 1px solid #e2e8f0;
  }
 
  .photo-placeholder {
    height: 300px;
  }
 
   .map-container {
    height: 300px;
  }
 
   .lw-map {
   .lw-map {
     height: 300px !important;
     height: 178px !important;
   }
   }
 
}
   .hero-badges {
 
     position: static;
@media (max-width: 640px) {
    margin-top: 1rem;
   .metadata-secondary {
     font-size: 0.7rem;
   }
   }
 
 
   .hero-badge {
   .acc-gallery {
     margin: 0 0.5rem 0.5rem 0;
     grid-template-columns: 1fr;
   }
   }
 
 
  .hero-top {
   .acc-gallery-img {
    padding: 1.5rem;
     height: 180px;
  }
 
  .hero-details {
    padding: 1rem 1.5rem;
  }
 
  .map-legend, .map-overlay {
    max-width: 140px;
    padding: 0.4rem;
  }
 
  .legend-primary, .location-primary {
    font-size: 0.65rem;
  }
 
  .legend-secondary, .location-secondary {
    font-size: 0.6rem;
  }
 
   .hero-breadcrumb-path {
     justify-content: flex-start;
   }
   }
}
/* ============================================ */
/* LEAFLET CONTROLS                            */
/* ============================================ */
.leaflet-control {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}
.leaflet-control-layers {
  background: rgba(253, 250, 246, 0.96) !important;
  border: 1px solid #e4d6c7 !important;
  border-radius: 3px !important;
  box-shadow: 0 4px 12px rgba(47, 69, 56, 0.15) !important;
  padding: 0.75rem !important;
}
.leaflet-control-zoom {
  border: 1px solid #e4d6c7 !important;
  border-radius: 3px !important;
  box-shadow: 0 2px 8px rgba(47, 69, 56, 0.1) !important;
}
.leaflet-control-zoom a {
  width: 30px !important;
  height: 30px !important;
  line-height: 30px !important;
  font-size: 16px !important;
  background: #fefcfa !important;
  color: #234232 !important;
  border: none !important;
}
.leaflet-control-zoom a:hover {
  background: #f9f6f3 !important;
  color: #0f172a !important;
}
}

Latest revision as of 00:42, 21 November 2025

/* ============================================ */
/* HERO CONTAINER – SUPER COMPACT               */
/* ============================================ */

.hero-header {
  background: #0f2117;
  border: 1px solid #1f3b2a;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  margin: 0.125rem 0 0.025rem; 
  position: relative;
}

.hero-top {
  background: #152a21;
  color: #f9fafb;
  padding: 0.18rem 0.7rem 0.2rem 0.7rem;  /* was 0.45 / 0.9 / 0.5 */
  border-bottom: 1px solid rgba(140, 184, 156, 0.35);
  line-height: 1.2;
}

/* ============================================ */
/* TITLE + METADATA                             */
/* ============================================ */

.title-section {
  margin-bottom: 0.02rem;  
}

.hero-title {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0 0 0.01rem 0;   
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #f9fafb;
}

.hero-subtitle {
  font-family: "SF Mono", Monaco, Inconsolata, "Roboto Mono", "Courier New", monospace;
  font-size: 0.68rem;
  color: #e5e9c9;
  background: rgba(18, 42, 33, 0.9);
  border: 1px solid rgba(140, 184, 156, 0.4);
  padding: 0.08rem 0.2rem;   /* slightly tighter */
  border-radius: 2px;
  display: inline-block;
  margin-top: 0.08rem;       /* was 0.18rem */
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.accession-metadata {
  display: flex;
  flex-direction: column;
  gap: 0.04rem;     /* was 0.16rem */
  margin-top: 0.02rem;  /* was 0.15rem */
}

.metadata-primary {
  display: flex;
  align-items: center;
  gap: 0.35rem;     /* was 0.5rem */
  flex-wrap: wrap;
}

.metadata-secondary {
  display: flex;
  align-items: center;
  gap: 0.2rem;      /* was 0.35rem */
  flex-wrap: wrap;
  font-size: 0.74rem;
  color: #c4d4cc;
}

.separator {
  color: #7a9682;
  user-select: none;
}

/* ============================================ */
/* BADGES                                       */
/* ============================================ */

.status-badge,
.classification-badge {
  padding: 0.1rem 0.35rem;   /* was 0.14rem 0.45rem */
  border-radius: 999px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.accession-id-badge {
  background: rgba(134, 239, 172, 0.16);
  border-color: rgba(134, 239, 172, 0.4);
  color: #bbf7d0;
  font-family: "SF Mono", Monaco, monospace;
}

.collection-date {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.76rem;
  color: #c4d4cc;
  font-weight: 500;
  background: rgba(196, 212, 204, 0.08);
  border: 1px solid rgba(196, 212, 204, 0.15);
  padding: 0.16rem 0.5rem;  /* was 0.2rem 0.6rem */
  border-radius: 3px;
}

.collector {
  font-size: 0.74rem;
  color: #e5e9c9;
  font-weight: 500;
}

.affiliation {
  font-size: 0.74rem;
  color: #a7c1b1;
}

/* Status flavours – unchanged colours */
.status-active {
  background: #14532d;
  border-color: #22c55e;
  color: #e6f9ef;
}

.status-tier1 {
  background: #075985;
  border-color: #38bdf8;
  color: #e0f2fe;
}

.status-priority {
  background: #7f1d1d;
  border-color: #f97373;
  color: #fee2e2;
}

.classification-landrace {
  background: #064e3b;
  border-color: #22c55e;
  color: #bbf7d0;
}

.classification-population {
  background: #1e3a8a;
  border-color: #6366f1;
  color: #c7d2fe;
}

/* ============================================ */
/* SECTION LABELS + BREADCRUMBS                 */
/* ============================================ */

.header-section {
  margin-top: 0.04rem;   /* was 0.22rem */
  display: flex;
  align-items: center;
  gap: 0.16rem;          /* was 0.25rem */
  flex-wrap: wrap;
}

.section-label {
  font-family: "SF Mono", Monaco, monospace;
  font-size: 0.58rem;
  color: #8fb59b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.section-label.status {
  color: #a6c3b3;
}

.section-label.classification {
  color: #e3e7c5;
}

.geographic-breadcrumb {
  flex: 1 1 auto;
}

.breadcrumb-trail {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.75rem;
  line-height: 1.1;   /* was 1.15 */
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.08rem;       /* was 0.14rem */
}

.breadcrumb-item {
  background: rgba(155, 191, 167, 0.16);
  border: 1px solid rgba(155, 191, 167, 0.32);
  color: #e6f4ec;
  font-weight: 500;
  padding: 0.04rem 0.22rem;  /* was 0.06rem 0.24rem */
  border-radius: 999px;
  text-decoration: none;
}

.breadcrumb-item a {
  color: inherit;
  text-decoration: none;
}
.breadcrumb-item a:visited {
  color: inherit;
}
.breadcrumb-item a:hover {
  text-decoration: underline;
}

.breadcrumb-item:last-child {
  background: rgba(155, 191, 167, 0.32);
  border-color: rgba(155, 191, 167, 0.6);
  color: #f4fffa;
}

.breadcrumb-separator {
  color: #6e8f7c;
  font-size: 0.7rem;
  user-select: none;
}

/* ============================================ */
/* STATUS ROW                                   */
/* ============================================ */

.status-row {
  margin-top: 0.08rem;      /* was 0.3rem */
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.3rem;              /* was 0.7rem */
  flex-wrap: wrap;
}

.status-group,
.classification-group {
  flex: 1;
  min-width: 180px;         /* was 200px */
}

.classification-group {
  text-align: right;
}

.status-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.18rem;             /* was 0.3rem */
  justify-content: flex-start;
}

.classification-group .status-badges {
  justify-content: flex-end;
}

/* ============================================ */
/* HERO SPLIT (IMAGE + MAP)                     */
/* ============================================ */

.hero-split {
  display: table;
  width: 100%;
  table-layout: fixed;
  background: #faf8f5;
  border-top: 1px solid rgba(140, 184, 156, 0.3);
}

.hero-image,
.hero-map {
  display: table-cell;
  width: 50%;
  vertical-align: top;
  height: 180px;
  position: relative;
}

/* Image */

.hero-image {
  background: #f5f3f0;
  border-right: 1px solid #d4c5b8;
  overflow: hidden;
}

.hero-image img,
.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Image caption */

.image-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.7rem 0.9rem;
  background: rgba(12, 30, 23, 0.9);
  color: #e8f0ec;
}

.image-caption {
  font-family: "SF Mono", Monaco, monospace;
  font-size: 0.76rem;
  margin: 0;
  line-height: 1.35;
}

/* Map */

.hero-map {
  background: #fdfaf6;
  border: 1px solid #e4d6c7;
}

.map-container {
  height: 178px;
  width: calc(100% - 2px);
  background: #f9f6f3;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.lw-map {
  width: 100% !important;
  height: 178px !important;
}

/* Map overlays */

.accession-status {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  max-width: 220px;
  padding: 0.5rem 0.7rem;
  background: rgba(253, 250, 246, 0.97);
  border: 1px solid #e4d6c7;
  border-radius: 3px;
  box-shadow: 0 3px 10px rgba(47, 69, 56, 0.18);
}

.accession-status-title {
  font-family: "SF Mono", Monaco, monospace;
  font-size: 0.68rem;
  text-transform: uppercase;
  color: #7b8676;
  font-weight: 600;
  margin-bottom: 0.2rem;
  letter-spacing: 0.5px;
}

.accession-status-value {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: #b91c1c;
  margin-bottom: 0.08rem;
}

.accession-status-note {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.72rem;
  color: #6b7280;
  line-height: 1.25;
}

.coordinates {
  position: absolute;
  bottom: 0.7rem;
  right: 0.7rem;
  padding: 0.45rem 0.7rem;
  background: rgba(253, 250, 246, 0.96);
  border: 1px solid #e4d6c7;
  border-radius: 999px;
  font-family: "SF Mono", Monaco, monospace;
  font-size: 0.7rem;
  font-weight: 500;
  color: #234232;
}

/* ============================================ */
/* DETAIL STRIP                                 */
/* ============================================ */

.hero-details {
  background: #234232;
  border-top: 1px solid rgba(140, 184, 156, 0.5);
  padding: 0.32rem 0.7rem;
  display: flex;
  justify-content: space-evenly;
  gap: 0.6rem;
  flex-wrap: nowrap;
  overflow-x: auto;
}

.detail-group {
  display: flex;
  flex-direction: column;
  min-width: 80px;
  max-width: 130px;
  text-align: center;
  flex-shrink: 0;
}

.detail-label {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.58rem;
  color: #b7d0c0;
  font-weight: 500;
  margin-bottom: 0.14rem;
}

.detail-value {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  color: #f3faf7;
  line-height: 1.2;
}

.detail-value.highlight {
  color: #fbbf24;
}

/* ============================================ */
/* PHOTO GALLERY                                */
/* ============================================ */

.acc-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1.2rem 0 1.7rem 0;
}

.acc-gallery-item {
  background: #f5f3f0;
  border: 1px solid #d4c5b8;
  border-radius: 3px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.acc-gallery-img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
}

.acc-gallery-caption {
  padding: 0.55rem 0.6rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.75rem;
  line-height: 1.35;
  color: #374151;
  background: #fefcf9;
}

/* ============================================ */
/* RESPONSIVE                                   */
/* ============================================ */

@media (max-width: 1024px) {
  .hero-top {
    padding: 0.45rem 0.7rem 0.5rem 0.7rem;
  }

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

  .acc-gallery-img {
    height: 160px;
  }
}

@media (max-width: 768px) {
  .status-row {
    flex-direction: column;
    gap: 0.6rem;
  }

  .classification-group {
    text-align: left;
  }

  .hero-split {
    display: block;
  }

  .hero-image,
  .hero-map {
    display: block;
    width: 100%;
    height: 180px;
  }

  .map-container,
  .lw-map {
    height: 178px !important;
  }
}

@media (max-width: 640px) {
  .metadata-secondary {
    font-size: 0.7rem;
  }

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

  .acc-gallery-img {
    height: 180px;
  }
}

/* ============================================ */
/* LEAFLET CONTROLS                             */
/* ============================================ */

.leaflet-control {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

.leaflet-control-layers {
  background: rgba(253, 250, 246, 0.96) !important;
  border: 1px solid #e4d6c7 !important;
  border-radius: 3px !important;
  box-shadow: 0 4px 12px rgba(47, 69, 56, 0.15) !important;
  padding: 0.75rem !important;
}

.leaflet-control-zoom {
  border: 1px solid #e4d6c7 !important;
  border-radius: 3px !important;
  box-shadow: 0 2px 8px rgba(47, 69, 56, 0.1) !important;
}

.leaflet-control-zoom a {
  width: 30px !important;
  height: 30px !important;
  line-height: 30px !important;
  font-size: 16px !important;
  background: #fefcfa !important;
  color: #234232 !important;
  border: none !important;
}

.leaflet-control-zoom a:hover {
  background: #f9f6f3 !important;
  color: #0f172a !important;
}