/* ========== GLOBAL ========== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  font-family: "Georgia", serif;
  color: black;
}

body {
  background: linear-gradient(
    90deg,
    rgba(32, 30, 74, 1) 0%,
    rgba(4, 2, 36, 1) 50%,
    rgba(22, 20, 64, 1) 100%
  );
}

body.waiting {
  cursor: wait;
}

/* ========== SPINNER ========== */
.spinner-div {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
}

.spinner-small {
  width: 64px;
  height: 64px;
}

/* ========== FOOTER ========== */
footer {
    width: 100%;
    font-family: "Georgia", serif;
    font-size: 0.9em;
    color: white;
    background-color: rgba(44, 87, 117, 0.3);
    padding: 10px 14px;  /* increased vertical padding */
    box-sizing: border-box;
}

/* Footer rows */
.footer-row {
    display: flex;
    width: 100%;
/*     margin-bottom: 8px; space between rows */
}

/* First row right-aligned */
.footer-row.first-row {
    justify-content: flex-end;
}

/* Second row with three columns */
.footer-row.second-row {
    justify-content: space-between;
    align-items: center;
}

/* Columns in second row */
.footer-col.left {
    text-align: left;
}

.footer-col.right {
    text-align: right;
}
/* ========== IMAGES ========== */
.img-thumbnail {
  display: block;
  width: auto;
  height: 300px;
  max-height: 240px;
  background: none;
  border: none;
  padding: 0;
  object-fit: contain;
}

.img-responsive {
  width: 100%;
  max-width: 104px;
  height: auto;
  float: right;
}

/* ========== NAVBAR ========== */
.navbar {
  background-color: rgba(44, 87, 117, 0.3) !important;
  padding: 0.1rem 1rem;
}

/* ========== TITLES ========== */
.panel-title {
  display: inline-block;
  margin: 0 0 8px 4px;
  font-weight: bold;
  font-size: 0.9em;
}

.panel-title-sm {
  font-weight: normal;
  font-size: 0.8em;
}

.card-col-title {
  font-size: 0.8em;
  font-weight: bold;
  color: black;
  text-align: left;
  padding: 2px 0;
  display: flex;
  align-items: center;
}

.card-col-title-lg {
  font-size: 0.95em;
  font-weight: bold;
  font-style: italic;
}

.card-col-title-price {
  font-size: 1em;
}

/* ========== BADGES ========== */
.badge-lg-custom {
  font-size: 1em;
  font-weight: normal;
}

.badge-price {
  font-size: 1em;
  font-weight: normal;
}

.badge-icon {
  display: inline-flex;
  align-items: flex-end;
  justify-content: center;
  font-size: 1.25rem;
  background: #007bff;
  color: white;
  border-radius: 50%;
  position: relative;
  margin-left: 10px;
}

.badge-counter {
  position: absolute;
  top: -8px;
  left: 16px;
  width: 42px;
  height: 20px;
  font-size: 0.75rem;
  font-weight: normal;
  color: white;
  background: #007bff;
  border-radius: 40%;
  text-align: center;
  line-height: 20px;
}

/* ========== CONTAINERS ========== */
.container-fluid-prodej {
  width: 100%;
  /*
  padding: 0 10px;
  margin: 0 auto;
  */
}

.container-prodej {
  width: 50%;
  margin: 60px auto;
  background: rgb(240, 240, 244);
  padding: 15px;
  box-shadow: 0px 5px 5px rgba(0, 0, 0, 0.3);
  border-radius: 5px;
}

.card-prodej {
 /* background: #fff;*/
  border-radius: 8px;
/*  padding: 16px;*/
  margin-bottom: 16px; /* space between cards */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid #e0e0e0;
}

.card-prodej:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

/* add breathing space inside card body */
.card-prodej .card-body {
	padding: 0.4rem;
}

/* optional: subtle header separation */
.card-prodej .card-header {
  background: #f7f7f7;
  font-weight: bold;
  border-bottom: 1px solid #ddd;
}

/* optional: price highlight */
.card-prodej .cena {
  font-size: 1.1em;
  font-weight: bold;
  color: #007bff;
}


/*
.card-prodej {
  box-shadow: 0px 5px 5px rgba(0, 0, 0, 0.3);
  border-radius: 5px;
}
*/
/* ========== COLUMNS ========== */
.img-col,
.img-col-carousel {
  display: flex;
  justify-content: center;
  align-items: center;
  height: auto;
  border: none;
}
/*
.img-col {
  background: #ededed;
  border-right: 1px solid gray;
}
*/
.img-col-carousel {
  background: black;
}

/* ========== MODALS ========== */
.modal-content.carusel {
  border: none;
}

.modal-body.carusel {
  padding: 0.4rem;
  background: black;
}

.modal-title {
  font-weight: bold;
}

.modal-header button {
  background: none;
  border: none;
  color: #000;
}

.modal-header button:hover {
  color: red !important;
}

.modal-header.close {
  font-size: 2rem;
  padding: 0.5rem 1rem;
}

.modal-header-view {
  align-items: unset;
}

/* ========== CAROUSEL ========== */
.carusel-info {
  width: 100% !important;
  padding-left: 15px;
  color: black;
  background-color: rgba(250, 250, 250, 0.7);
}

.carousel-control-prev,
.carousel-control-next {
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-control-prev i,
.carousel-control-next i {
  font-size: 2rem;
  color: black;
  background-color: rgba(250, 250, 250, 0.7);
  border-radius: 20%;
  padding: 8px 12px;
}

/* ========== FORMS ========== */
label {
  float: left;
  width: 10em;
  text-align: left;
}

input[readonly].forsale {
  background: #d4d4d4;
}

.form-row.forsale {
  height: 48px;
}

.h6-thin {
  font-weight: normal;
  font-size: 0.8em;
  padding-top: 5px;
}

/* ========== HELPERS ========== */
.center {
  padding: 4px 0;
  text-align: center;
}

.row-detail {
  padding: 1px;
}

.spacer { height: 4px; }
.spacer-md { height: 8px; }
.spacer-lg { height: 12px; background: white; }

.cena-title {
  padding-right: 4px;
}

.curly-brackets {
  position: relative;
  padding: 0 10px;
}

.curly-brackets::before,
.curly-brackets::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 10px;
  border: 1px solid silver;
  border-left: none;
  border-right: none;
  border-radius: 12px 0 0 12px;
}

.curly-brackets::after {
  right: 0;
  border-radius: 0 12px 12px 0;
  border-left: none;
  border-right: 1px solid silver;
}

.curly-brackets::before {
  left: 0;
  border-left: 1px solid silver;
  border-right: none;
  border-radius: 12px 0 0 12px;
}


.custom-select-filter {
  margin-right: 8px;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 600px) {
  body { font-family: 'Roboto', sans-serif; }

  .container-prodej {
    width: 100%;
/*    margin: 0 auto;*/
    padding: 0 2px;
  }

  .card-body { padding: 0.6rem; }

  .panel-title { margin-bottom: 0; }

  .img-responsive { max-width: 96px; }

  .col-12, .col-11, .col-10, .col-9,
  .col-8, .col-7, .col-6, .col-5,
  .col-4, .col-3, .col-2 {
    padding: 0 2px;
  }

  .badge { font-size: 0.8em; }
  

.badge.badge-lg
{
	font-size: 1.0em;
	font-weight: normal;
}

.badge.badge-cena
{
	font-size: 1.0em;
	font-weight: normal;
}  

  .form-group {
    height: 26px;
    margin: 10px 8px;
  }

  .form-row.forsale { height: auto; }

  .row.row-pagination {
    flex-wrap: nowrap;
    margin-left: -5px;
  }

  footer {
    padding: 6px;
    font-size: 0.75em;
  }
  
 /*
   .footer-row {
        flex-direction: column;
        align-items: flex-start;
    }
    .footer-col.center, .footer-col.right {
        text-align: left;
        margin-top: 4px;
    }
*/


  .card-col-title { font-size: 0.75em; }
  .card-col-title-lg { font-size: 0.9em; }

  .badge-lg-custom { font-size: 0.9em; }
  .badge-price { font-size: 0.9em; }

  .badge-icon { font-size: 1.1rem; }
  .badge-counter { font-size: 0.72rem; }
  .custom-select-filter { margin-right: 4px; }
}

@media (max-width: 960px) and (orientation: landscape) {
  .container-prodej { width: 95%; }
}

@media (min-width: 720px) and (max-width: 1024px) and (orientation: portrait) {
  .container-prodej { width: 90%; }
}

@media (min-width: 600px) and (max-width: 1024px) and (orientation: landscape) {
  .container-prodej { width: 80%; }
}

@media (max-width: 1280px) and (resolution: 1dppx) {
  .container-prodej { width: 70%; }
}
