/* =====================
   Base
===================== */

body {
    font-family: "Twemoji Country Flags", "Inter", sans-serif;
    font-size: 14px;
}

.container {
    max-width: 856px;
}

/* =====================
     Navigation
  ===================== */

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    gap: 20px;
}

/* Brand */
.navbar-brand {
    font-weight: 700;
    font-size: 18px;
    white-space: nowrap;
}
.navbar-brand .logo {

    vertical-align: middle;
}
.navbar-brand a {
    text-decoration: none;
    vertical-align: middle;
    color: #000;
}
.navbar-brand a:visited {
    color: #000;
}
.copyright img{
    display: inline;
    float: left;
}
footer p{
    display: inline;
    vertical-align: top;
}
/* Hamburger */
.hamburger {
    display: none;
    font-size: 24px;
    cursor: pointer;
    background: none;
    border: none;
    color: #000;
}

/* Controls (mobile only) */
.nav-controls {
    display: none;
    align-items: center;
    gap: 16px;
}

.lang-mobile {
    display: none;
}

/* Collapse */
.navbar-collapse {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    flex-grow: 1;
}

/* Nav list */
nav ul {
    display: flex;
    align-items: center;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 24px;
}

nav ul li a {
    color: #000;
    text-decoration: none;
    font-weight: 500;
}

nav ul li a:hover {
    text-decoration: underline;
}

/* Divider */
.vertical-line {
    width: 1px;
    height: 24px;
    background: #ccc;
}

/* Spacer */
.nav-right {
    width: 24px;
}

/* =====================
     Search
  ===================== */

.search {
    display: inline-flex;
    align-items: stretch;
    border: 1px solid #000;
    width: 100%;
}
.search-form {
    width: 100%;
    display: flex
}
.search-form2 {
    width: 100%;
}

.search input {
    border: none;
    padding: 8px 12px;
    font-size: 14px;
    min-width: 220px;
    outline: none;
}

.search button {
    border: none;
    border-left: 1px solid #000;
    padding: 8px 20px;
    font-size: 14px;
    background: #000;
    color: #fff;
    cursor: pointer;
    flex-shrink: 0;
}

.search_button_home {
    margin-left: 32px;
}

.search button:hover {
    background: #222;
}

/* =====================
     Dropdown Navigation
  ===================== */

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background: none;
    border: none;
    cursor: pointer;
    font: inherit;
    font-weight: 500;
    padding: 10px;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: auto;
    background: #fff;
    list-style: none;
    margin: 0;
    padding: 8px 0;
    min-width: 160px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.dropdown-menu li a {
    display: block;
    text-decoration: none;
    color: #333;
}

.dropdown-menu li a:hover {
    background: #f2f2f2;
}

.dropdown.open .dropdown-menu {
    display: block;
}

.has-icon .dropdown-icon {
    margin-left: 8px;
    transition: transform 0.2s ease;
}

.dropdown.open .dropdown-icon {
    transform: rotate(90deg);
}

.dropdown-icon {
    margin-left: 2px;
    width: 16px;
    height: 16px;
    display: inline-block;
    transition: transform 0.25s ease;
    transform-origin: center;
}

/* =====================
     Mobile Navigation
  ===================== */

@media (max-width: 1000px) {
    nav {
        flex-wrap: wrap;
    }

    .hamburger {
        display: block;
    }

    .nav-controls {
        display: flex;
        margin-left: auto;
    }

    .lang-mobile {
        display: inline-block;
        cursor: pointer;
    }

    /* Hide desktop-only language icon */
    nav ul li img {
        display: none;
    }

    .navbar-collapse {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 16px;
        justify-content: flex-start;
        align-items: flex-start;
    }

    .navbar-collapse.show {
        display: flex;
    }

    nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        width: 100%;
    }

    nav ul li {
        width: 100%;
    }

    nav ul li a {
        display: block;
        padding: 10px;
    }

    nav ul li a:hover {
        background: #f2f2f2;
    }

    .navbar-collapse .dropdown {
        width: 100%;
    }

    .navbar-collapse .dropdown-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        padding-left: 16px;
    }

    .navbar-collapse .dropdown-toggle {
        width: 100%;
        font-weight: 500;
    }

    .navbar-collapse .dropdown-toggle:hover {
        background: #f2f2f2;
    }

    /* Prevent CTA stretch */
    nav ul li a.btn-primary {
        width: auto;
        display: inline-block;
    }

    .search {
        width: 90%;
    }

    .search input {
        flex: 1;
        min-width: 0;
    }

    .vertical-line,
    .nav-right {
        display: none;
    }

    .card {
        flex-direction: column;
    }

    .card-left,
    .card-right {
        width: 100%;
    }

    .card-right img {
        border-radius: 0 0 12px 12px !important;
    }

    .btn {
        margin-top: 10px;
    }
}

/* =====================
     Buttons
  ===================== */

.btn {
    border-radius: 8px;
    background-color: #CDCDCD;
}

.btn-primary {
    background-color: #4169E1;
    color: #fff;
    font-weight: 500;
    padding: 8px 16px;
}

.btn-primary:hover {
    background-color: color-mix(in srgb, #4169E1, black 20%);
}

/* =====================
     Cards
  ===================== */

.card {
    background-color: #F5F7FC;
    border: 1px solid #C1CCF2;
    border-radius: 12px;
    display: flex;
    margin: 5px;
}

.card-content {
    padding: 15px;
    width: 94%;
}

.card-left {
    float: left;
    width: 46%;
    flex: 1;
    padding: 24px;
}

.card-right {
    flex: 0 0 auto;
    width: 46%;
}

.card-img {
    display: flex;
}

.card-right img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 0 12px 12px 0;
}

/* =====================
     Lists
  ===================== */

.inline-list li {
    display: inline-block;
    margin-right: 15px;
}

.inline-list li a {
    text-decoration: none;
    color: #FFF;
}

.inline-list li a:hover {
    text-decoration: underline;
}

.info-list,
.country-list {
    list-style: none;
    padding: 0;
    margin: 0;
    overflow: hidden;
}

.country-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    text-decoration: none;
}

.country-list li:nth-child(even) {
    background: #f5f5f5;
}

.country-list .left {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #000;
}

.country-list .left:hover {
    text-decoration: underline;
}

.country-list .icon {
    display: flex;
    align-items: center;
}

.country-list .arrow {
    display: flex;
    align-items: center;
}

.list-row-4 {
  display: grid !important;
  /* 1st col: 100px, 2nd col: expands, 3rd col: 150px */
  grid-template-columns: 370px 40px 190px 1fr !important;
  align-items: center;
}

.list-row-5 {
  display: grid !important;
  /* 1st col: 100px, 2nd col: expands, 3rd col: 150px */
  grid-template-columns: 150px 150px 150px 40px 1fr !important;
  align-items: center;
}

.list-row-4-iin {
  display: grid !important;
  /* 1st col: 100px, 2nd col: expands, 3rd col: 150px */
  grid-template-columns: 100px 100px 190px 1fr !important;
  align-items: center;
}

.list-row-3 {
  display: grid !important;
  /* 1st col: 100px, 2nd col: expands, 3rd col: 150px */
  grid-template-columns: 40px 190px 1fr !important;
  align-items: center;
}

.list-row-2 {
  display: grid !important;
  /* 1st col: 100px, 2nd col: expands */
  grid-template-columns: 100px 1fr !important;
  align-items: center;
}

/* =====================
     Pagination
  ===================== */

.pagination-wrapper {
    display: flex;
    justify-content: center;
}

.pagination {
    display: flex;
    gap: 5px;
    list-style: none;
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
    justify-content: center;
}

.pagination li a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 30px;
    text-decoration: none;
    color: #000;
    background-color: #F5F7FC;
    border: 1px solid #C1CCF2;
    border-radius: 12px;
}

.pagination li a:hover {
    background-color: #C1CCF2;
}

.pagination li span.active {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 30px;
    text-decoration: none;
    color: #fff;
    background-color: #000;
    border: 1px solid #C1CCF2;
    border-radius: 12px;
    cursor: default;
}

/* =====================
     Tables
  ===================== */

table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #E4E4E4;
}

table th,
table td {
    padding: 12px 16px;
    text-align: left;
}

table tr:nth-child(even),
thead {
    background: #f5f5f5;
}

table .action {
    text-align: right;
}

/* =====================
     Footer
  ===================== */

footer {
    background-color: #000;
    color: #FFF;
    margin-top: 40px;
}

footer p {
    font-size: 10px;
}


/* =====================
     Utilities
  ===================== */

.m-0 {
    margin: 0 !important;
}

.mt-2 {
    margin-top: 20px;
}

.mb-1 {
    margin-bottom: 10px;
}

.ml-1 {
    margin-left: 10px;
}

.pt-3 {
    padding-top: 30px;
}

.pb-3 {
    padding-bottom: 30px;
}

.text-center {
    text-align: center;
}

.text-bold {
    font-weight: bold;
}

.image-center {
    display: block;
    margin: 0 auto;
}

.subtext {
    font-weight: 500;
    color: #4169E1;
    font-size: 16px;
}

/* misc */
/* #country-map {
    height: 390px;
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
    border-radius: 12px;
} */

#country-map-wrapper {
    height: 390px;
    max-width: 500px;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #f5f5f5;
}

#country-map {
    height: 100%;
    width: 100%;
}

/* Overlay message */
#map-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 16px;
    color: #333;
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(2px);

    text-align: center;
    padding: 20px;
    z-index: 500;
}

.align-middle {
  vertical-align: middle; /* Aligns the middle of the image with the middle of the text */
}

.submit-success {
    border: 1px solid #000000;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 2px;
    text-align: center;
}

.image-container img {
  max-width: 100%;
  height: auto;
  display: block;
}

.image-container {
  width: 100%;
  border: 1px solid black;
}

@media (max-width: 500px) {
    /*  mobil fixes */
    .card-content {
        width: 90%;
    }
    .card-right {
         width: 100%;
    }
    .list-row-5 {
        display: flex !important;
    }
    .mobile-card-image {
        margin-bottom: -12px;
    }
    .search-form {
        width: 96%;
        display: flex
    }
    .search-form2 {
         width: 95%;
    }
    .mobile-flex {
        display: flex;
    }
    .search_button_home {
        margin-left: 0px;
    }
}

html {
  scroll-behavior: smooth;
}

.back-to-top {
    position: fixed;
    bottom: 20px;
    right: 30px;
    background-color: #333;
    color: white;
    padding: 10px 15px;
    border-radius: 50%;
    text-decoration: none;
    font-size: 20px;
    z-index: 100;
}

.row [class^="col"] {
  float: left;
  margin: .5rem 0 .5rem 0;
  min-height: .125rem;
}

.search-table {
    border: 1px solid black;
    height: 33px;
    max-width: 341px;
}
.search-table-tr {
    height: 33px;
}
.search-table-td1 {
    width:70%;
    padding:0;
    height: 33px;
}
.search-table-td2 {
    width:1%;
    height: 33px;
    padding:0;
}
.search-table-input {
    border: none;
    font-size: 14px;
    width: 100%;
    outline: none;
    height: 33px;
    padding-left: 12px;
}
.search-table-button {
    border: none;
    padding: 8px 20px;
    font-size: 14px;
    background: #000;
    color: #fff;
    cursor: pointer;
    height: 35px;
    width: 100%;
}