/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */


.partners {
  text-align: center;
}

.partners img {
  transform: scale(0.7);
}

.search-icon img {
  max-width: 64px;
  padding-top: 20px;
}

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

.services-intro img {
  max-width: 64px;
}

.service-print,
.service-select {
  width: 40px;
}

.card.scored,
.card.service {
  margin-bottom: 20px;
}

.fieldlist {
  padding-bottom: 20px;
}

.fieldlist label {
  margin-top: 10px;
  display: block;
  font-weight: bold;
}

h6.datasource a {
  color: #AD208E;
  text-decoration: none;
}

h6.datasource a:hover {
  text-decoration: underline;
}

h2, h2 a, h1 a {
  color: #5FBB4F;
  text-decoration: none;
}

h2 a:hover, h1 a:hover {
  text-decoration: underline;
}

h3, h3 a {
  color: #F15C22;
}

.side-more li {
  margin-bottom: 10px;
}

.side-more li a {
  color: #5FBB4F;
  text-decoration: none;
}

.side-more li a:hover {
  text-decoration: underline;
}
  
.results {
  margin-top: 40px;
  margin-bottom: 40px;
}

.card.service {
  h4 a {
    color: #00AA9A;
    text-decoration: none;
  }
  h4 a:hover {
    text-decoration: underline; 
  }
}

h4 a {
  color: #00AA9A;
  text-decoration: none;
}

h4 a:hover {
  text-decoration: underline;
}

.card-body {
  overflow: hidden;
}

.validity {
  margin-bottom: 20px;

  .label {
    padding: 3px 10px;
    font-size: 12px;
    font-weight: bold;
    border-radius: 3px;
    margin-bottom: 5px;
    display: inline-block;
  }

  .label-success {
    background-color: #5cb85c;
    color: #fff;
  }

  .label-warning {
    background-color: #f0ad4e;
    color: #fff;
  }

  .label-danger {
    background-color: #d9534f;
    color: #fff;
  }
}

.all-institutions {
  text-align: center;
  margin: 40px;
}

.all-institutions a {
  color: #5FBB4F;
  text-decoration: none;
  font-weight: bold;
}

.all-institutions a:hover {
  text-decoration: underline;
}

.institution-list {
  padding-bottom: 20px;
  border-bottom: 1px solid #ccc;
  margin-bottom: 20px;
}

.pagination {
  margin-top: 20px;

  a, em {
    display: inline-block;
    padding: 5px 10px;
    margin: 0 5px;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 3px;
    text-decoration: none;
    color: #333;
  }

  a:hover {
    background-color: #ddd;
  }

  em {
    background-color: #ddd;
  }
}

h1 {
  margin-bottom: 40px!important;
  color: #F15C22!important; 
}

/* Print styles for search results page */
@media print {
  /* Reset and base styles */
  * {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  body {
    font-size: 10.8pt;
    line-height: 1.2;
    color: #000;
    background: #fff;
  }

  /* Hide navigation, form, title and non-essential elements */
  nav,
  .navbar,
  .navbar-brand,
  .pagination,
  .btn,
  button,
  .service-print,
  .service-select,
  .float-end,
  .pull-right .btn,
  i-paginate,
  .simple-form,
  form,
  title,
  h1:first-child,
  .container h1:first-of-type,
  .services-intro,
  .main-title {
    display: none !important;
  }

  /* Page layout */
  .container,
  .container-fluid {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .row {
    margin: 0 !important;
  }

  .col-1, .col-2, .col-3, .col-4, .col-5, .col-6, 
  .col-7, .col-8, .col-9, .col-10, .col-11, .col-12 {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
    padding: 0 5px !important;
  }

  /* Search form - make it compact */
  .simple-form,
  form {
    border: 1px solid #ccc;
    padding: 10pt;
    margin-bottom: 15pt;
    page-break-inside: avoid;
  }

  .simple-form h3,
  form h3 {
    font-size: 14pt;
    margin: 0 0 8pt 0;
  }

  /* Results section */
  .results {
    margin-top: 0 !important;
  }

  .results h1 {
    display: none !important;
  }

  .results h4 {
    font-size: 12.6pt;
    margin: 0 0 4pt 0;
  }

  /* Institution cards */
  .card.service {
    border: none;
    border-bottom: 1pt solid #ccc;
    margin-bottom: 8pt;
    padding-bottom: 5pt;
    page-break-inside: avoid;
    background: #fff;
  }

  .card-header {
    background: transparent !important;
    border-bottom: 1pt solid #ddd;
    padding: 4pt 0 2pt 0;
  }

  .card-header h4 {
    font-size: 12.6pt;
    margin: 0;
    font-weight: bold;
  }

  .card-header h4 a {
    color: #000 !important;
    text-decoration: none;
  }

  .card-body {
    padding: 4pt 0;
  }

  /* Service cards within institutions */
  .card.scored {
    border: none;
    margin: 4pt 0;
    padding-bottom: 3pt;
    page-break-inside: avoid;
  }

  .card.scored .card-header {
    background: transparent !important;
    padding: 3pt 0 1pt 0;
  }

  .card.scored .card-header h4 {
    font-size: 10.8pt;
    margin: 0;
  }

  .card.scored .card-header h4 a {
    color: #000 !important;
    text-decoration: none;
  }

  .card.scored .card-body {
    padding: 3pt 0;
  }

  /* Service tags */
  .card.scored .card-body a {
    display: inline-block;
    background: transparent !important;
    color: #000 !important;
    padding: 1pt 3pt;
    margin: 0.5pt;
    border: none;
    border-bottom: 1pt solid #ddd;
    text-decoration: none;
    font-size: 9pt;
  }

  /* Validity labels */
  .validity {
    margin: 4pt 0;
  }

  .label {
    display: inline-block;
    padding: 2pt 4pt;
    margin: 1pt;
    border: none;
    border-bottom: 1pt solid #ccc;
    font-size: 9pt;
    font-weight: bold;
  }

  .label-success {
    background: #d4edda !important;
    color: #155724 !important;
  }

  .label-warning {
    background: #fff3cd !important;
    color: #856404 !important;
  }

  .label-danger {
    background: #f8d7da !important;
    color: #721c24 !important;
  }

  /* Address card */
  .card.address {
    border: none;
    margin-top: 4pt;
    padding-top: 3pt;
  }

  .card.address .card-body {
    padding: 3pt 0;
  }

  .card.address table {
    width: 100%;
    border-collapse: collapse;
  }

  .card.address td {
    padding: 2pt;
    border: none;
    font-size: 9pt;
  }

  .card.address td:first-child {
    width: 20pt;
    text-align: center;
  }

  .card.address a {
    color: #000 !important;
    text-decoration: underline;
  }

  /* Font Awesome icons - replace with text */
  .fa-globe:before { content: "📍 "; }
  .fa-phone:before { content: "📞 "; }
  .fa-fax:before { content: "📠 "; }
  .fa-envelope:before { content: "✉️ "; }
  .fa-desktop:before { content: "🌐 "; }

  /* No results message */
  h3 {
    font-size: 12.6pt;
    margin: 8pt 0;
    text-align: center;
  }

  /* Page breaks */
  .card.service {
    page-break-inside: avoid;
  }

  .card.service:nth-child(3n) {
    page-break-after: auto;
  }

  /* Links */
  a {
    color: #000 !important;
  }

  a[href]:after {
    content: "";
  }

  /* Remove shadows and rounded corners */
  .card,
  .btn,
  .label {
    box-shadow: none !important;
    border-radius: 0 !important;
  }

  /* Ensure text is readable */
  .text-muted {
    color: #666 !important;
  }

  /* Header for print */
  @page {
    margin: 1cm;
    @top-center {
      content: "Kezenfogyva.hu - Keresési eredmények";
    }
    @bottom-center {
      content: counter(page);
    }
  }

  /* Print-specific layout adjustments */
  .col-7 {
    width: 65% !important;
    float: left !important;
  }

  .col-5 {
    width: 35% !important;
    float: right !important;
  }

  .pull-right {
    float: right !important;
  }

  /* Clear floats */
  .card.service:after {
    content: "";
    display: table;
    clear: both;
  }
}
