/* ----------------------------------------------------------
   main.css – Styles for Family Baggage (Home Page)
   ----------------------------------------------------------
   - Defines base styles, map styling, buttons, nav bar tabs,
     and typography.
   - Includes hover/focus interactions and mobile responsiveness.
   - Used across the home/index.ejs view.
---------------------------------------------------------- */


/* --------------------
   Base Reset & Layout
-------------------- */
html {
  box-sizing: border-box;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

html,
body {
  height: 100%;
}

body {
  background: #21252b;
  font-family: "Roboto", sans-serif;
}


/* --------------------
   World Map Styling
-------------------- */
.ag-canvas {
  display: flex;
  align-items: center;
  position: relative;
  visibility: visible;
  width: 100%;
  height: 100%;
  padding: 3rem 1rem;
  opacity: 1;
  transition: opacity 0.5s;
  z-index: -1;
  margin-top: -90px;
}

.ag-canvas_svg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 100%;
  margin-left: 1rem;
}

.ag-canvas_svg path {
  fill: #383d46;
  fill-opacity: 1;
  stroke: #21252b;
  stroke-opacity: 1;
  stroke-width: 0.5;
  transition: 0.5s;
}


/* --------------------
   Input & Button Styling
-------------------- */
input {
  font-family: "Roboto", sans-serif;
  outline: 0;
  background: #f2f2f2;
  width: 100%;
  border: 0;
  margin: 0 0 15px;
  padding: 15px 15px 15px 21px;
  box-sizing: border-box;
  font-size: 16px;
}

input[type="text"]:hover {
  background-color: #eaeaea;
  transition: background-color 0.3s ease;
}

button {
  font-family: "Roboto", sans-serif;
  text-transform: uppercase;
  outline: 0;
  background: teal;
  border: 0;
  padding: 15px;
  color: #ffffff;
  font-size: 14px;
  min-width: 100px;
  text-align: center;
  border-radius: 4px;
  transition: all 0.3s ease;
  cursor: pointer;
}

button:hover {
  background-color: #009999;
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

button:focus-visible {
  outline: 2px dashed white;
  outline-offset: 3px;
}

/* Button Group Layout */
.button-group {
  display: flex;
  gap: 10px;
  justify-content: left;
  flex-wrap: wrap;
  /* margin-top: 10px; */
  /* margin-left: 10px; */
}


/* --------------------
   Footer Country Count
-------------------- */
.total-count {
  font-family: "Roboto", sans-serif;
  color: white;
  font-size: 1.5rem;
  text-align: left;
  padding: 15px;
  margin-top: -140px;
  margin-bottom: 80px;
  /* Removed position: absolute, left, bottom */
}


/* --------------------
   Tab Navigation Styling
-------------------- */
.tab-view {
  margin: 0;
  padding: 0;
  border: 0;
  outline: none;
  font-size: 0;
  text-align: left;
}

.tab-view > input {
  position: absolute;
  display: none;
}

.tab-view > label {
  position: relative;
  display: inline-block;
  margin: 0;
  padding: 0 20px;
  background: #e5e5e5;
  font-size: 16px;
  line-height: 49px;
  transition: background 0.2s, transform 0.2s;
  cursor: pointer;
}

.tab-view > label:hover {
  background: #cfcfcf;
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.tab-view > label:active {
  transform: scale(0.97);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
}

.tab-view > input:checked + label {
  background: white;
  font-weight: bold;
  border-bottom: 3px solid #333;
}

.tab-view > ul {
  background: #fff;
  text-align: left;
  list-style: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
}


/* --------------------
   Tab Content Panels
-------------------- */
.tab-view > ul > li {
  position: absolute;
  width: 100%;
  overflow: auto;
  padding: 30px 40px 40px;
  opacity: 0;
  transition: all 0.5s;
}

.tab-view > .tab-content-first:checked ~ ul .tab-content-first,
.tab-view > .tab-content-2:checked ~ ul .tab-content-2,
.tab-view > .tab-content-3:checked ~ ul .tab-content-3,
.tab-view > .tab-content-4:checked ~ ul .tab-content-4,
.tab-view > .tab-content-5:checked ~ ul .tab-content-5,
.tab-view > .tab-content-6:checked ~ ul .tab-content-6,
.tab-view > .tab-content-7:checked ~ ul .tab-content-7,
.tab-view > .tab-content-8:checked ~ ul .tab-content-8,
.tab-view > .tab-content-9:checked ~ ul .tab-content-9,
.tab-view > .tab-content-last:checked ~ ul .tab-content-last {
  z-index: 1;
  top: 0;
  left: 0;
  opacity: 1;
  transform: scale(1);
}


/* --------------------
   Grid System (Tab Layout Helpers)
-------------------- */
.tab-view .grid-row {
  margin-top: 20px;
}

.tab-view .grid-row:after {
  content: "";
  display: table;
  clear: both;
}

.tab-view .grid-col {
  display: block;
  float: left;
  margin-left: 2%;
}

.tab-view .grid-col:first-child {
  margin-left: 0;
}

.tab-view .grid-col .inner {
  padding: 10px 0;
  border-radius: 5px;
  background: #f2f2f2;
  text-align: center;
}


/* --------------------
   Typography Styles
-------------------- */
.tab-view .typography {
  color: #666;
}

.tab-view .typography h1,
.tab-view .typography h2,
.tab-view .typography h3,
.tab-view .typography h4,
.tab-view .typography h5,
.tab-view .typography h6 {
  margin: 40px 0 0 0;
  padding: 0;
  text-align: left;
  color: #333;
}

.tab-view .typography h1 {
  font-size: 40px;
  line-height: 60px;
  text-shadow: 3px 3px rgba(0, 0, 0, 0.1);
}

.tab-view .typography h2 {
  font-size: 32px;
  line-height: 48px;
  text-shadow: 2px 2px rgba(0, 0, 0, 0.1);
}

.tab-view .typography p {
  margin: 20px 0 0 0;
  padding: 0;
  line-height: 20px;
  text-align: left;
}


/* ================================
   🔗 Footer Styles (Blended, Minimal)
   ================================ */

footer {
  padding: 10px 0 15px;
  background: #21252b; /* Match body background */
  text-align: center;
  color: #cccccc;
  font-family: "Roboto", sans-serif;
  font-size: 0.9rem;
  border-top: 1px solid #2f343e;
}

footer nav {
  margin-top: 6px;
}

footer nav a {
  color: #bbb;
  text-decoration: none;
  margin: 0 12px;
  font-weight: 400;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

footer nav a:hover {
  color: #ffffff;
}


/* --------------------
   Mobile Responsiveness
-------------------- */
@media screen and (max-width: 767px) {
  .ag-canvas {
    flex-flow: row wrap;
    height: auto;
    padding: 4rem 1rem 1rem;
    margin-top: -20px;
  }

  .ag-canvas_svg {
    max-height: calc(100% - 6rem);
    margin-left: 0;
  }

  form {
    margin-bottom: 20px;
  }

  .tab-view > label {
    padding: 10px 14px;
    font-size: 16px;
    margin: 5px;
    width: auto;
    min-width: 100px;
    line-height: 1.4;
    border-radius: 6px;
    text-align: center;
  }

  .tab-view {
    text-align: center;
    padding: 10px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
  }

  input[type="text"] {
    font-size: 15px;
    padding: 12px 16px;
  }

  button {
    display: block;
    margin: 0 auto;
    font-size: 16px;
    padding: 16px 30px;
    width: 100%;
    max-width: 120px;
    text-align: center;
    border-radius: 6px;
  }

  .button-group {
    gap: 0;
  }

  .total-count {
    font-size: 1.2rem;
    text-align: left;
    /* padding: 20px 10px 30px; */
    margin-top: 10px;
    margin-bottom: 40px;
  }
}


/* --------------------
   Misc Helpers
-------------------- */
.spacer {
  margin-bottom: 20px;
}