/* Glavni layout */
.home-main {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* Linkovi korisnika */
.user-links {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 10px;
}
.user-links.vertical{
  flex-direction: column;
}

.user-links a,
.user-links .asA  
{
  cursor: pointer; 
  background: #f7f7f7;
  padding: 8px 14px;
  border-radius: 20px;
  text-decoration: none;
  color: #333;
  font-weight: 500;
  transition: all 0.2s ease;
}
.user-links a:hover,
.user-links .asA:hover
{
  background: #0078d7;
  color: white;
}

/* Dvostupčani layout */ 
.home-layout {
  display: grid;
  grid-template-columns: 80% 20%;
  gap: 25px;
}
@media (max-width: 900px) {
  .home-layout {
    grid-template-columns: 1fr;
  }
}

/* Glavni oglasi */
.main-listings h2 {
  margin-bottom: 15px;
  font-size: 1.5rem;
}
.listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}
.listing-thumb {
  background: white;
  border: 1px solid #eee;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}
.listing-thumb:hover {
  transform: translateY(-4px);
  box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}
.listing-thumb img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}
.listing-info {
  padding: 10px 12px;
  text-align: center;
}
.listing-info h3 {
  font-size: 1rem;
  color: #333;
  margin-bottom: 6px;
}

/* Cijene */
.price {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 8px;
}
.old-price {
  text-decoration: line-through;
  color: #999;
  font-size: 0.95rem;
}
.new-price {
  color: #e53935;
  font-weight: bold;
  font-size: 1.1rem;
}

/* Sidebar istaknuti oglasi */
.featured-sidebar h2 {
  margin-bottom: 15px;
  font-size: 1.3rem;
}
.featured-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.featured-thumb {
  background: #fafafa;
  border: 1px solid #eee;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s ease;
}
.featured-thumb:hover {
  background: #f0f8ff;
  transform: translateY(-3px);
}
.featured-thumb img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  display: block;
}
.featured-thumb span {
  display: block;
  text-align: center;
  padding: 8px;
  font-size: 0.95rem;
  color: #444;
  font-weight: 500;
}

/* Donji tekst */
.about-section {
  border-top: 1px solid #ddd;
  padding-top: 25px;
}
.about-section h2 {
  margin-bottom: 10px;
}
.about-section p {
  line-height: 1.6;
  color: #555;
}


.listing-thumb {
  background: white;
  border: 1px solid #eee;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.listing-thumb:hover {
  transform: translateY(-3px);
  box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

.listing-link {
  display: block;
  position: relative;
  text-decoration: none;
}

.listing-thumb img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid #eee;
}

/* Discount badge */
.discount-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(229, 57, 53, 0.9); /* crveno */
  color: white!important;
  font-weight: bold;
  font-size: 0.85rem;
  padding: 5px 10px;
  border-radius: 5px;
  text-transform: uppercase;
  z-index: 2;
}

/* Ispod slike: naziv i adresa */
.listing-info {
  padding: 10px 12px;
  text-align: center;
}

.listing-info h3 {
  font-size: 1rem;
  color: #333;
  margin-bottom: 5px;
}

.listing-info p {
  font-size: 0.9rem;
  color: #555;
}

.lastminute-more {
  text-align: center;
  margin-top: 20px;
}

.btn-lastminute {
  display: inline-block;
  background: #e53935;
  color: white;
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.2s ease;
}

.btn-lastminute:hover {
  background: #d32f2f;
  color: white!important;
}

.btn-lastminute:visited,
.btn-lastminute:focus,
.btn-lastminute:active {
  color: white!important;
}


.explore-croatia {
  margin-top: 40px;
}

.explore-croatia h2 {
  text-align: center;
  margin-bottom: 25px;
  font-size: 1.8rem;
}

.explore-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 15px;
}

.explore-item {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  text-decoration: none;
  color: #333;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.explore-item img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.explore-item span {
  display: block;
  text-align: center;
  padding: 8px 5px;
  background: #fff;
  font-size: 0.95rem;
  font-weight: 500;
  border-top: 1px solid #eee;
}

.explore-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}

@media (max-width: 700px) {
  .explore-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  }
  .explore-item img {
    height: 100px;
  }
}

#footer .bg_collage{
  color: white;
}

#footer .bg_collage h2{
  border-bottom: 1px solid white!important;
}

#footer .bg_collage a:hover{
  color: white!important;
  opacity: 1;
  text-decoration: none;
}

#footer .bg_collage a,
#footer .bg_collage p,
#footer .bg_collage h2{
  opacity: 0.8;
  transition: opacity 0.2s;
}

.socialIcon{
  opacity: 0.8;
  transition: opacity 0.2s;

}

.socialIcon:hover{
  opacity: 1;
}

.ad-social-section {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: Arial, sans-serif;
}

.ad-social-label {
  font-size: 14px;
  color: #444;
}

.ad-social-buttons {
  display: flex;
  gap: 8px;
}

.ad-social-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff !important;
  text-decoration: none !important;
  font-size: 15px;
}

/* Pregazi globalni hover za linkove unutar social sekcije */
.ad-social-buttons .ad-social-btn:hover,
.ad-social-buttons .ad-social-btn:focus {
  color: #fff !important;
  text-decoration: none !important;
  opacity: 0.85;
}
.ad-social-btn-fb { background: #3b5998; }
.ad-social-btn-tw { background: #000000; } /* X / Twitter */
.ad-social-btn-ig { 
  background: radial-gradient(circle at 30% 30%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}
