:root {
   --tt-blue: #1a5a94;
   --tt-blue-light: #2471b8;
   --tt-blue-soft: #e8f1f8;
   --tt-green: #2d6a3e;
   --tt-bg: #f4f7fa;
}

html, body {
   min-height: 100%;
}

body {
   background: var(--tt-bg);
   display: flex;
   flex-direction: column;
   font-family: "Segoe UI", system-ui, sans-serif;
   color: #1c2a36;
}

.tt-navbar {
   background: linear-gradient(135deg, var(--tt-blue) 0%, var(--tt-blue-light) 100%);
   box-shadow: 0 2px 8px rgba(26, 90, 148, 0.25);
}

.tt-navbar .navbar-brand {
   font-weight: 600;
   letter-spacing: 0.02em;
}

.tt-main {
   max-width: 720px;
   flex: 1 0 auto;
}

.tt-footer {
   background: #fff;
   border-top: 1px solid #dbe4ec;
}

.tt-card {
   background: #fff;
   border: 1px solid #dbe4ec;
   border-radius: 0.75rem;
   padding: 1.25rem;
   margin-bottom: 1rem;
}

.tt-title {
   color: var(--tt-blue-light);
   font-weight: 700;
}

.tt-kohdekuva {
   width: 100%;
   height: auto;
   border-radius: 0.5rem;
   object-fit: cover;
   display: block;
}

/* Valikkopainikkeet – kevyt vaaleansininen (ei välilehtiä) */
.tt-menu > .tt-op-btn,
.tt-menu > .btn {
   display: flex !important;
   align-items: center !important;
   justify-content: flex-start !important;
   text-align: left !important;
   width: 100%;
   border: 1px solid #c5d9ea !important;
   border-radius: 0.4rem;
   background-color: #F1F9FF !important;
   color: #2471B8 !important;
   font-weight: 500 !important;
   font-size: 1.1rem !important;
   padding: 0.55rem 0.85rem !important;
   margin-bottom: 0.4rem;
   box-shadow: none !important;
   --bs-btn-bg: #F1F9FF;
   --bs-btn-border-color: #c5d9ea;
   --bs-btn-color: #2471B8;
   --bs-btn-hover-bg: #ddeefb;
   --bs-btn-hover-border-color: #2471B8;
   --bs-btn-hover-color: #1a5a94;
}

.tt-menu > .tt-op-btn:hover,
.tt-menu > .tt-op-btn:focus,
.tt-menu > .btn:hover,
.tt-menu > .btn:focus {
   background-color: #ddeefb !important;
   border-color: #2471B8 !important;
   color: #1a5a94 !important;
}

.tt-menu > .btn-donate {
   background-color: #2471B8 !important;
   border-color: #2471B8 !important;
   color: #fff !important;
   font-size: 1.2rem !important;
   font-weight: 600 !important;
   padding: 0.7rem 0.85rem !important;
   text-align: center !important;
   justify-content: center !important;
}

.tt-menu > .btn-donate:hover,
.tt-menu > .btn-donate:focus {
   background-color: #1a5a94 !important;
   border-color: #1a5a94 !important;
   color: #fff !important;
}

.tt-panel {
   display: none;
   background: #fff;
   border: 1px solid #dbe4ec;
   border-radius: 0.5rem;
   padding: 1rem;
   margin-top: 0.5rem;
   margin-bottom: 0.75rem;
}

.tt-panel.show {
   display: block;
}

.tt-summa-btn.valittu {
   background: var(--tt-blue) !important;
   border-color: var(--tt-blue) !important;
   color: #fff !important;
}

.tt-kohde-rivi {
   cursor: pointer;
   padding: 0.75rem;
   border-radius: 0.5rem;
   border: 1px solid #dbe4ec;
   background: #fff;
   margin-bottom: 0.5rem;
   transition: background 0.15s ease;
}

.tt-kohde-rivi:hover {
   background: var(--tt-blue-soft);
}

.tt-kohde-rivi.latu .tt-nimi {
   color: var(--tt-blue-light);
}

.tt-kohde-rivi.muu .tt-nimi {
   color: var(--tt-green);
}

.tt-kohde-ikoni {
   float: left;
}

.tt-lista-kohdekuva {
   width: 100%;
   height: auto;
   border-radius: 0.4rem;
   object-fit: cover;
   display: block;
}

.tt-vieraskirja-merkinta {
   background: #fff;
   border: 1px solid #dbe4ec;
   border-radius: 0.5rem;
   padding: 0.75rem;
   margin-bottom: 0.5rem;
}

.tt-face {
   width: 56px;
   height: 56px;
   cursor: pointer;
   opacity: 0.85;
   transition: transform 0.15s ease, opacity 0.15s ease;
}

.tt-face:hover,
.tt-face.active {
   transform: translateY(-4px);
   opacity: 1;
}

.tt-ilmoitus {
   background: #fff8dc;
   border: 1px solid #e8d99a;
   border-radius: 0.5rem;
   padding: 1rem;
   margin-bottom: 1rem;
}

.tt-tabs {
   border-bottom: 2px solid #c5d9ea;
   gap: 0.25rem;
   flex-wrap: nowrap;
}

.tt-tabs .nav-item {
   margin-bottom: -2px;
}

.tt-tabs .nav-link {
   color: #2471B8;
   background: transparent !important;
   border: none !important;
   border-bottom: 2px solid transparent !important;
   border-radius: 0 !important;
   font-size: 0.95rem;
   font-weight: 500;
   padding: 0.5rem 0.85rem;
   width: auto !important;
   margin: 0 !important;
   display: inline-block !important;
   box-shadow: none !important;
}

.tt-tabs .nav-link:hover {
   color: #1a5a94;
   background: #F1F9FF !important;
   border-bottom-color: #73aee3 !important;
}

.tt-tabs .nav-link.active {
   color: #1a5a94 !important;
   font-weight: 600;
   background: transparent !important;
   border-bottom-color: #2471B8 !important;
}

.btn:disabled,
.btn.disabled {
   opacity: 0.55;
   pointer-events: none;
}

/* Kapea näyttö: reunaan asti, mutta sisällöllä raamit */
@media (max-width: 767.98px) {
   .tt-main.container {
      padding-left: 0.75rem;
      padding-right: 0.75rem;
      max-width: 100%;
   }

   .tt-card {
      border: 1px solid #dbe4ec;
      border-radius: 0.5rem;
      margin-bottom: 0.75rem;
      padding: 1rem;
   }

   .tt-panel {
      background: #fff;
      border: 1px solid #dbe4ec;
      border-radius: 0.5rem;
      padding: 0.85rem;
      margin-top: 0.5rem;
      margin-bottom: 0.75rem;
   }

   .tt-kohde-rivi {
      border: 1px solid #dbe4ec;
      border-radius: 0.5rem;
      padding: 0.75rem;
      margin-bottom: 0.75rem;
      background: #fff;
   }

   .tt-lista-kohdekuva {
      border-radius: 0.4rem;
   }

   .tt-kohdekuva {
      border-radius: 0.4rem;
   }

   .tt-vieraskirja-merkinta {
      border: 1px solid #dbe4ec;
      border-radius: 0.5rem;
   }
}
